CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains

CWE-942 là gì?

CWE-942 là Permissive Cross-domain Security Policy with Untrusted Domains. Lỗi phát sinh khi The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate. Hiện có 51 lỗ hổng trong kho dữ liệu liên quan đến CWE-942 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)51
Mức trừu tượngBiến thể
Khả năng khai thác-

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

51 lỗ hổngTăng 920% 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-942

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

TheoMitre CWE

Đặc điểm

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

Giai đoạn hình thành

  • Hiện thực hóa
  • Kiến trúc và thiết kế: COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic.

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

Dữ liệu MITRE CWE chính thức
Tác độngPhạm viDiễn giải
Thực thi mã hoặc lệnh trái phép, Vượt qua cơ chế bảo vệ, Đọc dữ liệu ứng dụng, Thay đổi tùy ngữ cảnhTính bí mật, Tính toàn vẹn, Tính sẵn sàng, Kiểm soát truy cậpWith an overly permissive policy file, an attacker may be able to bypass the web browser's same-origin policy and conduct many of the same attacks seen in Cross-Site Scripting (CWE-79). An attacker can exploit the weakness to transfer private information from the victim's machine to the attacker, manipulate or steal cookies that may include session information, create malicious requests to a web site on behalf of the victim, or execute malicious code on the end user systems. 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 ActiveX controls (under Microsoft Internet Explorer) from sites that a user perceives as trustworthy, and modifying presentation of content.

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

Dữ liệu MITRE CWE chính thức
  1. Giảm bề mặt tấn công · Kiến trúc và thiết kế, Vận hànhDefine a restrictive Content Security Policy [REF-1486] or cross-domain policy file.
  2. Giảm bề mặt tấn công · Kiến trúc và thiết kế, Vận hànhAvoid using wildcards in the CSP / cross-domain policy file. Any domain matching the wildcard expression will be implicitly trusted, and can perform two-way interaction with the target server.
  3. Gia cố môi trường · Kiến trúc và thiết kế, Vận hànhFor Flash, modify crossdomain.xml to use meta-policy options such as 'master-only' or 'none' to reduce the possibility of an attacker planting extraneous cross-domain policy files on a server.

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.