312-50V11 · Question #1001
Ron, a security professional, was pen testing web applications and SaaS platforms used by his company. While testing, he found a vulnerability that allows hackers to gain unauthorized access to API…
The correct answer is B. Improper use of CORS. The vulnerability allows unauthorized cross-origin access to API objects, enabling view, update, and delete operations on sensitive data through improper CORS configuration.
Question
Ron, a security professional, was pen testing web applications and SaaS platforms used by his company. While testing, he found a vulnerability that allows hackers to gain unauthorized access to API objects and perform actions such as view, update, and delete sensitive data of the company. What is the API vulnerability revealed in the above scenario?
Options
- ACode injections
- BImproper use of CORS
- CNo ABAC validation
- DBusiness logic flaws
How the community answered
(14 responses)- A7% (1)
- B71% (10)
- C7% (1)
- D14% (2)
Why each option
The vulnerability allows unauthorized cross-origin access to API objects, enabling view, update, and delete operations on sensitive data through improper CORS configuration.
Code injection vulnerabilities exploit unsanitized input to execute arbitrary code or queries on the server, which is a different attack vector from the unauthorized cross-origin access to existing API objects described in the scenario.
Improper use of CORS occurs when an API sets overly permissive cross-origin headers - such as Access-Control-Allow-Origin: * combined with credentials - allowing malicious scripts from unauthorized origins to make authenticated API requests. This misconfiguration bypasses the same-origin policy that normally restricts cross-domain access, granting attackers the ability to read, modify, and delete sensitive API objects. The vulnerability effectively removes the browser-enforced boundary between the attacker's origin and the target API's object-level operations.
Absence of ABAC validation means authorization policies are not enforced based on user or resource attributes, but this is a distinct server-side authorization gap rather than the cross-origin access mechanism described in the scenario.
Business logic flaws involve exploiting gaps or unintended behavior in the application's intended workflow rather than a specific protocol-level misconfiguration such as improper cross-origin resource sharing.
Concept tested: API vulnerability - improper CORS configuration
Source: https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side_Testing/07-Testing_Cross_Origin_Resource_Sharing
Topics
Community Discussion
No community discussion yet for this question.