nerdexam
EC-Council

312-50V11 · Question #525

While performing online banking using a Web browser, Kyle receives an email that contains an image of a well-crafted art. Upon clicking the image, a new tab on the web browser opens and shows an…

The correct answer is C. Cross-Site Request Forgery. The attacker used CSRF to forge authenticated requests to Kyle's bank by embedding a malicious trigger in an image link that executed while Kyle's banking session was active.

Hacking Web Applications

Question

While performing online banking using a Web browser, Kyle receives an email that contains an image of a well-crafted art. Upon clicking the image, a new tab on the web browser opens and shows an animated GIF of bills and coins being swallowed by a crocodile. After several days, Kyle noticed that all his funds on the bank was gone. What Web browser-based security vulnerability got exploited by the hacker?

Options

  • AClickjacking
  • BWeb Form Input Validation
  • CCross-Site Request Forgery
  • DCross-Site Scripting

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    18% (5)
  • C
    71% (20)
  • D
    4% (1)

Why each option

The attacker used CSRF to forge authenticated requests to Kyle's bank by embedding a malicious trigger in an image link that executed while Kyle's banking session was active.

AClickjacking

Clickjacking tricks users into clicking invisible or disguised UI elements overlaid on a legitimate page - it does not involve forging authenticated background requests via image links.

BWeb Form Input Validation

Web Form Input Validation is a defensive control, not an attack class - it refers to sanitizing user-supplied input to prevent injection attacks.

CCross-Site Request ForgeryCorrect

Cross-Site Request Forgery exploits the trust a website places in the user's authenticated browser session. When Kyle clicked the image while logged into his bank, the malicious link silently issued HTTP requests to the banking site using his existing session cookies, causing unauthorized fund transfers without his knowledge. The bank's server had no way to distinguish these forged requests from legitimate ones.

DCross-Site Scripting

Cross-Site Scripting involves injecting malicious client-side scripts into a vulnerable web page to execute in other users' browsers, which is distinct from hijacking an existing authenticated session via forged requests.

Concept tested: Cross-Site Request Forgery (CSRF) session exploitation

Source: https://owasp.org/www-community/attacks/csrf

Topics

#CSRF#cross-site request forgery#session exploitation#web browser security

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice