Cross Site Scripting (XSS)
XSS is a web security vulnerability where an attacker injects malicious JavaScript into a website, and that script then runs in other users’ browsers.
XSS happens when a Web application accepts user input, and fails to validate it properly. That input is used in the resulting web page, and it executes there, either as HTML or JavaScript or any other available resource.
XSS is dangerous as it allows the attacker to steal important information such as cookies, impersonate the user, read or modify the page content.
See Also
- PHP Security 3: XSS and Password Storage
- What is cross-site scripting (XSS) and how to prevent it?
- The Quiet Shift Reshaping PHP Security
- XSS Prevention in Laravel — Why {!! !!} Is the Line Between Safe and Hacked
Related
- Cross Site Request Forgery (CSRF)
- html_entity_decode
- htmlspecialchars
- Static Application Security Testing (SAST)
- Session Hijacking
- Vulnerability
- Anchor
- CSS
- Stored XSS
- Escape Character
- Link
- HTML Entity
- CRLF Injection
- Data Flow Analysis (DFA)
- Image Injection
- Twig
- Blade
- Content Security Policy (CSP)
- HTMLPurifier
- Write Context