← Back to Blog

XSS in a Minute

#appsec #owasp • Updated:
Cross-Site Scripting example

What is XSS?

Cross-Site Scripting (XSS) allows attackers to inject and execute malicious scripts in a victim’s browser. This often happens when user input is not properly sanitized before being rendered on a webpage.

Reflected vs. Stored XSS

Mitigation

Example Attack Vector

Example inline payload: <script>alert('XSS');</script>

Best Practice Summary