Property
Languagepython
Severitymedium
CWECWE-942: Permissive Cross-domain Policy with Untrusted Domains
OWASPA05:2021 - Security Misconfiguration
Confidence LevelMedium
Impact LevelLow
Likelihood LevelHigh

Description#

The CORS policy is configured to allow requests from any origin (’*’), which means any website can interact with your API. This setup is insecure because it removes restrictions on who can access your endpoints.

Impact#

If exploited, malicious websites could make unauthorized requests to your API, potentially exposing sensitive data or enabling CSRF-style attacks. This could lead to data leaks, unauthorized actions, or compromise of user information.