🚀 Join our AI Wargame at Black Hat Asia and our Workshop + Wargame at NDC Sydney .


Permissive Cross-Domain Security Policy

The application defines an overly permissive cross-domain security policy that allows communication with untrusted or broadly matched domains. This weakens browser-enforced origin protections such as the Same-Origin Policy and may allow malicious third-party domains to interact with the application in ways that should normally be restricted.

If wildcard domains or untrusted origins are included in a CSP, CORS, crossdomain.xml, or similar client-side security policy, an attacker-controlled domain may be able to send requests, access exposed application data, bypass intended browser protections, or perform actions on behalf of a victim. Depending on the policy and application context, this may enable attacks similar to Cross-Site Scripting, data exfiltration, session abuse, or unauthorised interaction with protected resources.

Remediation

Restrict the cross-domain security policy to only explicitly trusted domains that are required for the application to function. Avoid wildcard entries such as * or broad patterns like *.example.com unless every matching subdomain is fully trusted and controlled. Review CSP, CORS, crossdomain.xml, and other client access policy files to ensure they follow a least-privilege model. Where possible, separate trusted and untrusted content onto different domains and validate that sensitive resources cannot be accessed from unauthorised origins.

Metadata

  • Severity: high
  • Slug: permissive-cross-domain-security-policy

CWEs

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

Available Labs

Select a language to explore available labs for this vulnerability.

No matching labs found

Try adjusting your language filter.

Deco line
Deco line

Play AppSec WarGames

Want to skill-up in secure coding and AppSec? Try SecDim Wargames to learn how to find, hack and fix security vulnerabilities inspired by real-world incidents.

Deco line
Deco line

Got a comment?

Join our secure coding and AppSec community. A discussion board to share and discuss all aspects of secure programming, AppSec, DevSecOps, fuzzing, cloudsec, AIsec code review, and more.

Read more