312-50V11 · Question #29
Which of the following attacks exploits web age vulnerabilities that allow an attacker to force an unsuspecting user's browser to send malicious requests they did not intend?
The correct answer is C. Cross-Site Request Forgery (CSRF). Cross-Site Request Forgery (CSRF) tricks an authenticated user's browser into sending unauthorized requests to a trusted site by exploiting the browser's automatic inclusion of session cookies. The victim performs actions they never intended.
Question
Which of the following attacks exploits web age vulnerabilities that allow an attacker to force an unsuspecting user's browser to send malicious requests they did not intend?
Options
- ACommand Injection Attacks
- BFile Injection Attack
- CCross-Site Request Forgery (CSRF)
- DHidden Field Manipulation Attack
How the community answered
(43 responses)- A7% (3)
- B2% (1)
- C88% (38)
- D2% (1)
Why each option
Cross-Site Request Forgery (CSRF) tricks an authenticated user's browser into sending unauthorized requests to a trusted site by exploiting the browser's automatic inclusion of session cookies. The victim performs actions they never intended.
Command injection attacks insert operating system commands into vulnerable input fields to execute them on the server, which does not involve forging requests from a victim's browser.
File injection attacks exploit insecure file inclusion or upload functionality to execute malicious files server-side, not to forge browser-based requests from victims.
CSRF exploits the trust a web application places in a user's browser by crafting a malicious request (such as a forged form submission or image tag) that the victim's browser sends along with valid session credentials. Because the browser automatically attaches cookies, the server cannot distinguish the forged request from a legitimate one, allowing attackers to perform unauthorized state-changing actions such as fund transfers or password changes on behalf of the victim.
Hidden field manipulation involves an attacker directly modifying hidden HTML form values before submission, which is a client-side tampering attack and does not force an unsuspecting third-party user's browser to send requests.
Concept tested: Cross-Site Request Forgery attack mechanism
Source: https://owasp.org/www-community/attacks/csrf
Topics
Community Discussion
No community discussion yet for this question.