目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-80 Web页面中脚本相关HTML标签转义处理不恰当(基本跨站脚本) 类漏洞列表 458

CWE-80 Web页面中脚本相关HTML标签转义处理不恰当(基本跨站脚本) 类弱点 458 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-80即基础型跨站脚本攻击,属于输入验证缺陷。攻击者通过注入包含恶意脚本的HTML标签,利用程序未正确转义特殊字符的漏洞,使浏览器执行非预期代码,从而窃取数据或劫持会话。开发者应严格对用户输入进行白名单过滤,并对输出至HTML页面的数据进行实体编码,确保特殊字符被正确转义,从而阻断脚本执行。

MITRE CWE 官方描述
CWE:CWE-80 Web 页面中脚本相关 HTML 标签的不当中和(基本型 XSS) 英文:产品从上游组件接收输入,但未对特殊字符(如 "<"、">" 和 "&")进行中和或进行了不正确的中和,这些字符在发送给处理 Web 页面的下游组件时,可能被解释为 Web 脚本元素。
常见影响 (1)
Confidentiality, Integrity, Availability Read 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.
缓解措施 (4)
Implementation 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 i…
Implementation Use 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…
Implementation With Struts, write all data from form beans with the bean's filter attribute set to true.
Implementation To 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
代码示例 (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 ID 标题 CVSS 风险等级 Published
CVE-2019-6577 多款Siemens产品跨站脚本漏洞 — SIMATIC HMI Comfort Panels 4" - 22" 7.5 - 2019-05-14
CVE-2018-16555 多款Siemens产品跨站脚本漏洞 — SCALANCE S602, SCALANCE S612, SCALANCE S623, SCALANCE S627-2M 5.4 - 2018-12-13
CVE-2016-9493 PHP FormMail Generator 跨站脚本漏洞 — Generator 6.1 - 2018-07-13
CVE-2016-9500 Accellion FTP服务器 — FTP Server 6.1 - 2018-07-13
CVE-2018-4848 Siemens SCALANCE X-200 IRT 跨站脚本漏洞 — SCALANCE X-200 switch family (incl. SIPLUS NET variants) 9.1 - 2018-06-14
CVE-2017-16015 Forms 跨站脚本漏洞 — forms node module 6.1 - 2018-06-04
CVE-2017-16043 Shout 安全漏洞 — shout node module 6.1 - 2018-06-04
CVE-2014-2353 Cogent Real-Time Systems Cogent DataHub 跨站脚本漏洞 — DataHub 6.1 - 2014-05-30

CWE-80(Web页面中脚本相关HTML标签转义处理不恰当(基本跨站脚本)) 是常见的弱点类别,本平台收录该类弱点关联的 458 条 CVE 漏洞。