XSS Laboratories

Interactive Cross-Site Scripting Practice Labs

Created by Abdulmohsen

9
Total Labs
5
Reflected XSS
3
Stored XSS
1
DOM XSS
Lab 01

GET Parameter Reflection

🔴 Reflected XSS

Exploit innerHTML injection via URL query parameter. No sanitization applied.

→
Lab 02

Stored Comment Injection

🔴 Stored XSS

Submit malicious input through a comment form that gets stored and reflected on the page.

→
Lab 03

DOM-based XSS via URL Fragment

🔴 DOM-based XSS

Inject JavaScript through the URL fragment (#) that is written to the DOM without sanitization.

→
Lab 04

Reflected XSS into Attribute

🔴 Reflected XSS

Angle Brackets HTML-Encoded - Break Out of Attribute

→
Lab 05

Stored XSS in Profile

🔴 Stored XSS

Inject malicious scripts through user profile fields that persist across sessions.

→
Lab 06

Reflected XSS in Search Results

🔴 Reflected XSS

Demonstrates how search queries can be exploited to inject malicious scripts.

→
Lab 07

Reflected XSS via Referer Header

🔴 Reflected XSS

Demonstrates how the Referer header can be exploited to inject malicious scripts.

→
Lab 08

Reflected XSS in Image Upload

🔴 Reflected XSS

Demonstrates how image upload functionality can be exploited to inject malicious scripts.

→
Lab 09

Stored XSS in Chat Application

🔴 Stored XSS

Demonstrates how a chat application can be exploited to inject malicious scripts.

→

💡 Tips for Solving XSS Labs