Top "Xss" questions

Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications that enables malicious attackers to inject client-side script into web pages viewed by other users.

Do you have any SQL Injection Testing "Ammo"?

When reading about SQL Injection and XSS i was wondering if you guys have a single string that could be …

testing xss sql-injection
Internet Explorer X-Frame-Options ALLOW-FROM not working in IE 11 and Edge

I am having an issue using X-Frame-Options to embed one site as an iFrame into another (different domains) with IE 11 …

html internet-explorer iframe xss x-frame-options
Setting Content Security Policy in Apache web server

We had a penetration testing and one of the findings were: "Missing Content-Security-Policy HTTP response header" We did a bit …

apache xss content-security-policy penetration-testing
Default escaping in Freemarker

In Freemarker templates we can use the escape directive to automatically apply an escaping to all interpolations inside the included …

java xss escaping freemarker
Is replacing : < and > with &lt; and &gt; enough to prevent XSS injection?

I want to know if entiting the two marks < and > is enough to prevent XSS injections? And if …

xss code-injection
DOMDocument remove script tags from HTML source

I used @Alex's approach here to remove script tags from a HTML document using the built in DOMDocument. The problem …

php html-parsing xss domdocument script-tag
What is cross site scripting?

On this site (archived snapshot) under “The Theory of XSS’, it says: the hacker infects a legitimate web page with …

security xss
Why in Rails 3, <%= note.html_safe %> and <%= h note.html_safe %> give the same result?

It feels like html_safe adds an abstraction to the String class that requires understanding of what is going on, …

ruby-on-rails ruby-on-rails-3 xss html-escape html-safe
Is it unsafe to add localhost to Content Security Policy?

I have the following meta tag set in my index.html which simplifies local development but will also be deployed …

html localhost xss content-security-policy
XSS - Which HTML Tags and Attributes can trigger Javascript Events?

I'm trying to code a secure and lightweight white-list based HTML purifier which will use DOMDocument. In order to avoid …

php javascript html security xss