A security analyst is reviewing application event logs following a report of data exposure in a web portal. The log entries indicate that authenticated users are altering the `user_id` query parameter in the HTTP GET request (`GET /api/v1/profile?user_id=8834`) to retrieve private profile data belonging to other accounts without any server-side validation of ownership. Which of the following security vulnerabilities is demonstrated in this scenario, and what is the most appropriate control to remediate it?
- ABroken Authentication; remediate by enforcing multi-factor authentication (MFA) and shorter session timeouts across all portal endpoints.
- Insecure Direct Object Reference (IDOR); remediate by implementing server-side object-level authorization checks.Cevap
- CCross-Site Scripting (XSS); remediate by applying contextual HTML output encoding to user-supplied query parameters.
- DInsecure Direct Object Reference (IDOR); remediate by deploying an edge Web Application Firewall (WAF) to filter inspectable HTTP request headers.
Cevap
Insecure Direct Object Reference (IDOR); remediate by implementing server-side object-level authorization checks.
The correct answer identifies the vulnerability as Insecure Direct Object Reference (IDOR) and recommends server-side object-level access control. IDOR occurs when an application uses client-provided input to access objects directly (such as database keys or account numbers in URL parameters) without performing server-side authorization checks to verify that the requester owns or is permitted to view the requested data.
Adım Adım Çözüm
Anahtar Kavram
Insecure Direct Object Reference (IDOR) and Object-Level Access Control