0PricingLogin
Cyber Security Academy · Lesson

Cross-Site Scripting (XSS)

Explore reflected, stored, and DOM-based XSS with real payloads and CSP mitigations.

What is XSS?

Cross-Site Scripting (XSS) occurs when an attacker injects malicious JavaScript into a web page viewed by other users. The browser executes the script in the context of the victim's session, enabling cookie theft, keylogging, and page manipulation.

Reflected XSS

Reflected XSS (non-persistent): the malicious script is included in the request (e.g., URL parameter) and reflected in the response. The victim must click a crafted link. Example: https://site.com/search?q=<script>alert(1)</script>

All lessons in this course

  1. SQL Injection: How and Why It Works
  2. Cross-Site Scripting (XSS)
  3. Cross-Site Request Forgery (CSRF)
  4. Security Misconfiguration and Exposed Services
← Back to Cyber Security Academy