Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 383 Bytes

vulnerable-code-38.md

File metadata and controls

14 lines (7 loc) · 383 Bytes

SecurityExplained S-51: Vulnerable Code Snippet - 38

Vulnerable Code:

Vulnerable Code

Solution:

The code is vulnerable to DOM-based XSS and allows execution of XSS using "s" parameter using payloads like: x'onmouseover=alert(1)//

Twitter Thread: https://twitter.com/harshbothra_/status/1495224184611524608

Code Credits: @Brumens2