Jericho Security | Glossary

Jericho's Cybersecurity Glossary | Cross Site Scripting (XSS)

Written by Jericho Security Team | Sep 27, 2024 10:24:53 PM

Definition:

Cross-Site Scripting (XSS) is a type of web vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. These scripts can steal data, manipulate content, or redirect users to malicious sites.

Use Cases:

  • Exploited in phishing campaigns to steal session cookies or sensitive data from users.
  • Used by attackers to deface websites or inject harmful content into web applications.

Related Terms:

  • Injection Attack
  • SQL Injection
  • Web Application Firewall (WAF)
  • Content Security Policy (CSP)

Questions and Answers:

  • How do attackers exploit XSS vulnerabilities?
    Attackers inject malicious code into web pages that execute when viewed by other users, often targeting session cookies or personal data.

  • What are the different types of XSS?
    The main types are stored XSS (where the malicious script is stored on the server) and reflected XSS (where the script is reflected off a web server).

  • How can developers prevent XSS attacks?
    Developers can prevent XSS by validating and sanitizing user input, using secure coding practices, and implementing security headers like Content Security Policy (CSP).