Which languages are vulnerable to Cross Site Scripting attacks ?
-
Java
-
ASP.Net
-
Perl
-
All of the above
Reveal answer
Fill a bubble to check yourself
D
Correct answer
Explanation
XSS vulnerabilities occur when web applications output unvalidated user input to HTML without proper encoding. This can happen in any language (Java, ASP.Net, Perl, PHP, Python, etc.) - it's a web application vulnerability, not language-specific.
AI explanation
Cross-site scripting is a vulnerability in how untrusted data is rendered into a page's output, not a flaw tied to any one server-side language. Any language used to generate dynamic HTML — Java, ASP.NET, Perl, or others — can produce an XSS hole if output isn't properly encoded, so all of them are susceptible.