Advisor
Wiki Threats & Attacks Application Attacks Reflected XSS

Reflected XSS

1 min read
Jump to:

Summary

Reflected Cross-Site Scripting (Reflected XSS) is a web application vulnerability where malicious scripts are injected into a web page and immediately reflected back to the user, allowing attackers to execute arbitrary code in the victim’s browser.

Key Characteristics

  • Occurs when user-supplied input is included in web responses without proper validation or encoding.
  • Malicious scripts are embedded in URLs or form inputs and executed when the victim clicks a crafted link.
  • Does not persist on the server; the attack is delivered and executed in real-time.
  • Often used for phishing, session hijacking, or delivering malware.
  • Exploits vulnerabilities in client-side scripting and web application input handling.

Defensive Controls

  • Implement proper input validation and output encoding to neutralize malicious scripts.
  • Use Content Security Policy (CSP) headers to restrict script execution.
  • Employ secure coding practices, including sanitizing user inputs.
  • Utilize web application firewalls (WAFs) to detect and block XSS attack patterns.
  • Regularly update and patch web application frameworks and libraries.

Related Security Solutions

Web Application Firewalls (WAFs), Secure Coding Frameworks, Content Security Policy (CSP) implementations, Input Validation Libraries, and Automated Vulnerability Scanners are commonly used to detect, prevent, and mitigate Reflected XSS attacks.

Tags: Application Attacks content security policy cross-site scripting Input Validation Reflected XSS Threats & Attacks web application firewall web security