CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

CWE-776 là gì?

CWE-776 là Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion'). Lỗi phát sinh khi The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities. Hiện có 27 lỗ hổng trong kho dữ liệu liên quan đến CWE-776 và không có lỗ hổng nào nằm trong danh mục khai thác thực tế của CISA.

THỨ HẠNG OWASP TOP 10:20252 — A02:2025 — Security Misconfiguration
Tổng số CVE liên quan (365 ngày)27
Mức trừu tượngCơ bản
Khả năng khai thácTrung bình

Số lượng lỗ hổng nằm trong CWE-776

27 lỗ hổngTăng 800% so với cùng kỳ

Không có dữ liệu

Chưa có dữ liệu về lỗ hổng trong CISA KEV cho CWE-776

Định nghĩa chính thức

TheoMitre CWE

Đặc điểm

Dữ liệu MITRE CWE chính thức

Tên gọi khác

  • XEE — XEE is the acronym commonly used for XML Entity Expansion.
  • Billion Laughs Attack
  • XML Bomb — While the "XML Bomb" term was used in the early years of knowledge of this issue, the XEE term seems to be more commonly used.

Giai đoạn hình thành

  • Hiện thực hóa
  • Vận hành

Hậu quả thường gặp

Dữ liệu MITRE CWE chính thức
Tác độngPhạm viDiễn giải
Từ chối dịch vụ: tiêu thụ tài nguyên khácTính sẵn sàngIf parsed, recursive entity references allow the attacker to expand data exponentially, quickly consuming all system resources.

Biện pháp giảm thiểu rủi ro

Dữ liệu MITRE CWE chính thức
  1. Vận hànhIf possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.
  2. Hiện thực hóaBefore parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.

Cách phát hiện trong hệ thống

Dữ liệu MITRE CWE chính thức
Phương phápCách làmHiệu quả
Phân tích tĩnh tự độngAutomated 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.)Cao

Lỗ hổng điển hình

Nguồn (2)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Tìm hiểu thêm

Kiểm tra chuyên sâu cùng giải pháp quản lý rủi ro Web toàn diện

Giải pháp CyStack VulnScan liên tục phát hiện tài sản, xác minh lỗ hổng và giúp đội ngũ bảo mật ưu tiên khắc phục cho toàn bộ doanh nghiệp.