VariantIncomplete

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

Category: other

Description

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.

Common consequences· 1

  • Confidentiality / Integrity / Availability / Access Control — Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Read Application Data, Varies by Context
    With 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.

Potential mitigations· 3

  • [Architecture and Design, Operation]Define a restrictive Content Security Policy [REF-1486] or cross-domain policy file.
  • [Architecture and Design, Operation]Avoid 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.
  • [Architecture and Design, Operation]For 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.

References

  1. https://cwe.mitre.org/data/definitions/942.html

(incoming)18

TypeTargetConfidenceTier
VulnerabilityCVE-2025-13017cve-2025-130170%live
VulnerabilityCVE-2025-13019cve-2025-130190%live
VulnerabilityCVE-2025-27909cve-2025-279090%live
VulnerabilityCVE-2025-43480cve-2025-434800%live
VulnerabilityCVE-2025-4839cve-2025-48390%live
VulnerabilityCVE-2026-1181cve-2026-11810%live
VulnerabilityCVE-2026-22812cve-2026-228120%live
VulnerabilityCVE-2026-28792cve-2026-287920%live
VulnerabilityCVE-2026-30924cve-2026-309240%live
VulnerabilityCVE-2026-32610cve-2026-326100%live
VulnerabilityCVE-2026-33010cve-2026-330100%live
VulnerabilityCVE-2026-33043cve-2026-330430%live
VulnerabilityCVE-2026-34227cve-2026-342270%live
VulnerabilityCVE-2026-34449cve-2026-344490%live
VulnerabilityCVE-2026-41056cve-2026-410560%live
VulnerabilityCVE-2026-44184cve-2026-441840%live
VulnerabilityCVE-2026-5302cve-2026-53020%live
VulnerabilityCVE-2026-8948cve-2026-89480%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Reliance on Cookies without Validation and Integrity Checking
CWE
Improper Access Control
CWE
Insufficiently Protected Credentials
CWE
Missing Origin Validation in WebSockets
CWE
Weak Authentication
CWE
Sensitive Cookie Without 'HttpOnly' Flag
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.