BaseStableTop 25 #1

CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Category: other

Description

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Common consequences· 3

  • Access Control / Confidentiality — Bypass Protection Mechanism, Read Application Data
    The most common attack performed with cross-site scripting involves the disclosure of private information stored in user cookies, such as session information. Typically, a malicious user will craft a client-side script, which -- when parsed by a web browser -- performs some activity on behalf of the victim to an attacker-controlled system (such as sending all site cookies to a given E-mail address). This could be especially dangerous to the site if the victim has administrator privileges to manage that site. This script will be loaded and run by each user visiting the web site. Since the site requesting to run the script has access to the cookies in question, the malicious script does also.
  • Integrity / Confidentiality / Availability — Execute Unauthorized Code or Commands
    In some circumstances it may be possible to run arbitrary code on a victim's computer when cross-site scripting is combined with other flaws, for example, "drive-by hacking."
  • Confidentiality / Integrity / Availability / Access Control — Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Read Application Data
    The consequence of an XSS attack is the same regardless of whether it is stored or reflected. The difference is in how the payload arrives at the server. XSS can cause a variety of problems for the end user that range in severity from an annoyance to complete account compromise. Some cross-site scripting vulnerabilities can be exploited to manipulate or steal cookies, create requests that can be mistaken for those of a valid user, compromise confidential information, or execute malicious code on the end user systems for a variety of nefarious purposes. Other damaging attacks include the disclosure of end user files, installation of Trojan horse programs, redirecting the user to some other page or site, running "Active X" controls (under Microsoft Internet Explorer) from sites that a user perceives as trustworthy, and modifying presentation of content.

Potential mitigations· 5

  • [Architecture and Design]
  • [Implementation, Architecture and Design]
  • [Architecture and Design, Implementation]Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may be obtained indirectly through API calls.
  • [Architecture and Design]For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
  • [Architecture and Design]If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated.

Related CAPEC attack patterns· 6

CAPEC-209CAPEC-588CAPEC-591CAPEC-592CAPEC-63CAPEC-85

References

  1. https://cwe.mitre.org/data/definitions/79.html

Exploits (incoming)5

TypeTargetConfidenceTier
AttackPatternXSS Using MIME Type Mismatchcapec-209100%live
AttackPatternAJAX Footprintingcapec-85100%live
AttackPatternStored XSScapec-592100%live
AttackPatternCross-Site Scripting (XSS)capec-63100%live
AttackPatternReflected XSScapec-591100%live

Compliance frameworks addressing this (incoming)16

TypeTargetConfidenceTier
ComplianceControltiber_eu-generic100%live
ComplianceControlowasp_llm_top10-llm01100%live
ComplianceControlcis_v8-18100%live
ComplianceControliso27001-a.5.7100%live
ComplianceControltiber_eu-preparation100%live
ComplianceControlai_act-art72100%live
ComplianceControlpci_dss_v4-r11100%live
ComplianceControliso27001-a.8.8100%live
ComplianceControlnist_csf-pr100%live
ComplianceControldora-art13100%live
ComplianceControliso27001-a.8.28100%live
ComplianceControlcis_v8-7100%live
ComplianceControlcra-art14100%live
ComplianceControldora-art7100%live
ComplianceControlgdpr-art5100%live
ComplianceControlowasp_llm_top10-llm05100%live

(incoming)129

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0248cve-2025-02480%live
VulnerabilityCVE-2025-0443cve-2025-04430%live
VulnerabilityCVE-2025-0447cve-2025-04470%live
VulnerabilityCVE-2025-0530cve-2025-05300%live
VulnerabilityCVE-2025-0595cve-2025-05950%live
VulnerabilityCVE-2025-0602cve-2025-06020%live
VulnerabilityCVE-2025-0827cve-2025-08270%live
VulnerabilityCVE-2025-0984cve-2025-09840%live
VulnerabilityCVE-2025-10240cve-2025-102400%live
VulnerabilityCVE-2025-10244cve-2025-102440%live
VulnerabilityCVE-2025-10467cve-2025-104670%live
VulnerabilityCVE-2025-10534cve-2025-105340%live
VulnerabilityCVE-2025-10555cve-2025-105550%live
VulnerabilityCVE-2025-10913cve-2025-109130%live
VulnerabilityCVE-2025-11892cve-2025-118920%live
VulnerabilityCVE-2025-11956cve-2025-119560%live
VulnerabilityCVE-2025-12029cve-2025-120290%live
VulnerabilityCVE-2025-1232cve-2025-12320%live
VulnerabilityCVE-2025-12486cve-2025-124860%live
VulnerabilityCVE-2025-12716cve-2025-127160%live
VulnerabilityCVE-2025-13614cve-2025-136140%live
VulnerabilityCVE-2025-13639cve-2025-136390%live
VulnerabilityCVE-2025-13761cve-2025-137610%live
VulnerabilityCVE-2025-14320cve-2025-143200%live
VulnerabilityCVE-2025-14499cve-2025-144990%live
VulnerabilityCVE-2025-1763cve-2025-17630%live
VulnerabilityCVE-2025-21612cve-2025-216120%live
VulnerabilityCVE-2025-22219cve-2025-222190%live
VulnerabilityCVE-2025-22249cve-2025-222490%live
VulnerabilityCVE-2025-22466cve-2025-224660%live

Showing top 30 of 129 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Neutralization of Alternate XSS Syntax
CWE
Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
CWE
Improper Neutralization of Server-Side Includes (SSI) Within a Web Page
CWE
Improper Neutralization of Script in an Error Message Web Page
CWE
Improper Neutralization of Invalid Characters in Identifiers in Web Pages
CWE
Improper Neutralization of Special Elements Used in a Template Engine
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.