Vulnerabilities/

Cross Site Scripting

Impact: High

Description

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it. OWASP

Recommendation

Before using user input for rendering the page, use libraries for sanitizing and encoding untrusted data into HTML. The primary defenses against XSS are described in the OWASP XSS Prevention Cheat Sheet. The OWASP ESAPI project has produced a set of reusable security components in several languages, including validation and escaping routines to prevent parameter tampering and the injection of XSS attacks. OWASP

References

Last updated on February 15, 2021

This issue is available in SmartScanner Professional

See Pricing