- What is CWE-80?
- The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as " ", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
- What CVEs are caused by CWE-80?
- 479 recorded CVEs are attributed to CWE-80, including CVE-2020-13965, CVE-2023-39216, CVE-2024-34070. 1 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- How do you prevent CWE-80?
- Carefully check each input parameter against a rigorous positive specification (allowlist) defining the specific characters and format allowed. All input should be neutralized, not just parameters that the user is supposed to specify, but all data in the request, including hidden fields, cookies, headers, the URL itself, and so forth. A common mistake that leads to continuing XSS vulnerabilities is to validate only fields that are expected to be redisplayed by the site. We often encounter data from the request that is reflected by the application server or the application that the development team did not anticipate. Also, a field that is not currently reflected may be used by a future developer. Therefore, validating ALL parts of the HTTP request is recommended.
- How is CWE-80 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-80?
- Exploiting CWE-80 can lead to: Read Application Data, Execute Unauthorized Code or Commands.
- Is CWE-80 actively exploited?
- Yes. 1 CWE-80 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 479 recorded CVEs.