Invalid Origin CORS Misconfiguration Detection
"Detects misconfigured Cross-Origin Resource Sharing (CORS) settings by checking for invalid origin values, preventing unauthorized access."
Cross-Origin Resource Sharing (CORS)
Business Logic
How this template works
APIs Selection
The API selection filters in this template specify that the response code should be greater than or equal to 200 and less than 300. This means that only successful responses (status codes in the 2xx range) will be considered for further processing.
Execute request
The execute section of the template defines a single request to be executed. In this case, the request includes an additional header called "origin" with the value "`evil.com". This is used to simulate a request with an invalid origin value.
Validation
The validation section specifies the criteria for validating the response. It checks that the response code is within the expected range (200-299) and that the response headers contain either the "access-control-allow-origin" header with a value containing "`evil.com" or the "access-control-allow-credentials" header with a value containing "true". If any of these conditions are met, the validation will pass.
Frequently asked questions
What is the purpose of the "CORS_MISCONFIGURATION_INVALID_ORIGIN" test in this array
How does the "CORS_MISCONFIGURATION_INVALID_ORIGIN" test impact web application security
What category and subcategory does the "CORS_MISCONFIGURATION_INVALID_ORIGIN" test belong to
What is the severity level of the "CORS_MISCONFIGURATION_INVALID_ORIGIN" test
What are the tags associated with the "CORS_MISCONFIGURATION_INVALID_ORIGIN" test
Are authentication credentials required for the "CORS_MISCONFIGURATION_INVALID_ORIGIN" test
"The text editor in Akto is absolutely remarkable. Its user-friendly YAML format strikes the perfect balance between simplicity and power. With intuitive features like 'API selection filter', 'Execute', Validate' creating test rules becomes incredibly easy. Akto's test editor is a game-changer, enabling seamless creation of highly personalized and effective tests that could meet the needs of any modern day organization. "

Security team,
Rippling