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.

Can a JavaScript hosted on different domain read/modify DOM of another domain?

I have a question regarding a potential security issue/limitation regarding JavaScript hosted on a domain (ex: domain of a …

javascript security xss same-origin-policy
Is it necessary to "escape" character "<" and ">" for javascript string?

Sometimes, server side will generate strings to be embedded in inline JavaScript code. For example, if "UserName" should be generated …

javascript html xss encode
How to properly sanitize content with AntiXss Library?

I have a simple forums application, when someone posts any content, i do: post.Content = Sanitizer.GetSafeHtml(post.Content); Now, …

asp.net .net security xss antixsslibrary
Chrome Developer Console throws X-XSS-Protection error when embedding youtube link

I'm using Chrome Version 31.0.1650.63 m. Recently, I've noticed a few errors being thrown in the Chrome developer console, but nothing …

google-chrome youtube xss x-frame-options
PHP Form Security With Referer

I'm putting together a site that will make itself available for user input. I was wondering if writing a function …

php security xss
Guide to proper escaping in Play framework

I'm trying to map out how the Play framework supports escaping. This is a nice page spelling out the needed …

java security escaping xss playframework
Is there a definitive anti-XSS library for PHP?

I already know how XSS works, but finding out all the many different ways to inject malicious input is not …

php security input xss
Android App using Webview/javascript. what can be security concern?

I am creating an android web app using Webview and Javascript making addJavascriptInterface(true). My App will content data(html) …

javascript android webview xss malware
Is window.location = window.location susceptible to XSS

This question is relating to the code window.location = window.location as a method to refresh the page and is …

javascript xss window.location
How to use Encode.forHtml() in a javascript file?

I need to use the Encode.forHtml() in a js file. i'm using the jar Recommended by OWASP - encoder-1.2.…

javascript xss owasp esapi cross-site