Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-80 (Web页面中脚本相关HTML标签转义处理不恰当(基本跨站脚本)) — Vulnerability Class 403

403 vulnerabilities classified as CWE-80 (Web页面中脚本相关HTML标签转义处理不恰当(基本跨站脚本)). AI Chinese analysis included.

CWE-80 represents a critical input validation weakness where applications fail to properly sanitize user-supplied data before rendering it in web pages. This flaw allows attackers to inject malicious scripts, typically JavaScript, into the HTML content viewed by other users. Exploitation usually occurs when an attacker crafts a malicious URL or form input containing script tags, which the vulnerable application then executes in the victim’s browser without proper filtering. This can lead to severe consequences such as session hijacking, credential theft, or defacement. To mitigate this risk, developers must implement robust output encoding strategies, ensuring that all special characters like angle brackets and ampersands are converted into their safe HTML entity equivalents. Additionally, employing Content Security Policy headers and utilizing modern frameworks with built-in escaping mechanisms further reduces the attack surface by preventing the execution of unauthorized scripts.

MITRE CWE Description
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.
Common Consequences (1)
Confidentiality, Integrity, AvailabilityRead Application Data, Execute Unauthorized Code or Commands
An attacker could insert special characters that are processed client-side in the context of the user's session.
Mitigations (4)
ImplementationCarefully 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 i…
ImplementationUse and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are i…
ImplementationWith Struts, write all data from form beans with the bean's filter attribute set to true.
ImplementationTo help mitigate XSS attacks against the user's session cookie, set the session cookie to be HttpOnly. In browsers that support the HttpOnly feature (such as more recent versions of Internet Explorer and Firefox), this attribute can prevent the user's session cookie from being accessible to malicious client-side scripts that use document.cookie. This is not a complete solution, since HttpOnly is n…
Effectiveness: Defense in Depth
Examples (1)
In the following example, a guestbook comment isn't properly encoded, filtered, or otherwise neutralized for script-related tags before being displayed in a client browser.
<% for (Iterator i = guestbook.iterator(); i.hasNext(); ) { Entry e = (Entry) i.next(); %> <p>Entry #<%= e.getId() %></p> <p><%= e.getText() %></p> <% } %>
Bad · JSP
CVE IDTitleCVSSSeverityPublished
CVE-2018-25037 Thomson TCW710 RgDdns Persistent cross site scriting — TCW710 3.5 Low2022-06-12
CVE-2018-25036 Thomson TCW710 RgTime Persistent cross site scriting — TCW710 3.5 Low2022-06-12
CVE-2018-25035 Thomson TCW710 RGFirewallEL Persistent cross site scriting — TCW710 3.5 Low2022-06-12
CVE-2018-25034 Thomson TCW710 wlanPrimaryNetwork Persistent cross site scripting — TCW710 3.5 Low2022-06-12
CVE-2017-20036 PHPList Bounce Rule Persistent cross site scriting — PHPList 3.5 Low2022-06-10
CVE-2017-20035 PHPList Subscribe Persistent cross site scriting — PHPList 3.5 Low2022-06-10
CVE-2017-20034 PHPList List Name Persistent cross site scriting — PHPList 3.5 Low2022-06-10
CVE-2017-20033 PHPList Reflected cross site scriting — PHPList 4.3 Medium2022-06-10
CVE-2017-20027 HumHub DOM cross site scriting — HumHub 4.3 Medium2022-06-09
CVE-2017-20026 HumHub Reflected cross site scriting — HumHub 4.3 Medium2022-06-09
CVE-2019-25070 WolfCMS User Add cross site scripting — WolfCMS 3.5 Low2022-06-09
CVE-2020-36544 SialWeb CMS Search cross site scriting — CMS 3.5 Low2022-06-04
CVE-2022-29258 Cross-site Scripting in Filter Stream Converter Application in XWiki Platform — xwiki-platform 7.4 High2022-05-31
CVE-2022-20765 Cisco UCS Director JavaScript Cross-Site Scripting Vulnerability — Cisco UCS Director 4.8 Medium2022-05-27
CVE-2022-29251 Cross-site Scripting in the Flamingo theme manager — xwiki-platform 7.4 High2022-05-25
CVE-2022-29252 Cross-site Scripting in XWiki Platform Wiki UI Main Wiki — xwiki-platform 7.4 High2022-05-25
CVE-2022-21238 InHand Networks InRouter302 跨站脚本漏洞 — InRouter302 6.1 -2022-05-12
CVE-2022-20740 Cisco Firepower Management Center Software Cross-Site Scripting Vulnerability — Cisco Firepower Management Center 6.1.0 6.1 Medium2022-05-03
CVE-2022-21145 Lansweeper 跨站脚本漏洞 — lansweeper 5.4 -2022-04-14
CVE-2022-25756 多款 Siemens 产品跨站脚本漏洞 — SCALANCE X302-7 EEC (230V) 7.5 -2022-04-12
CVE-2022-0989 NS WooCommerce Watermark <= 2.11.3 - Abuse of Functionality — NS WooCommerce Watermark 7.5 -2022-04-11
CVE-2022-28648 JetBrains YouTrack 跨站脚本漏洞 — YouTrack 5.7 Medium2022-04-05
CVE-2022-25620 Stored Cross-Site Scripting (XSS) — SambaBox 3.8 Low2022-03-30
CVE-2008-10001 Pro2col Stingray FTS cross site scriting — Stingray FTS 5.5 Medium2022-03-28
CVE-2003-5003 ISS BlackICE PC Protection Update cross site scriting — BlackICE PC Protection 5.0 Medium2022-03-28
CVE-2022-1002 HTML Injection while inviting Guests — Mattermost 2.0 Low2022-03-18
CVE-2022-24749 Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius — Sylius 6.1 Medium2022-03-14
CVE-2021-37195 Siemens Comos 跨站脚本漏洞 — COMOS V10.2 6.4 -2022-01-11
CVE-2021-43862 Self XSS on user input — jquery.terminal 3.7 Low2021-12-30
CVE-2021-39348 LearnPress – WordPress LMS Plugin <= 4.1.3.1 Authenticated Stored Cross-Site Scripting — LearnPress 5.5 Medium2021-10-21

Vulnerabilities classified as CWE-80 (Web页面中脚本相关HTML标签转义处理不恰当(基本跨站脚本)) represent 403 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.