nerdexam
CompTIA

PT0-001 · Question #49

While monitoring WAF logs, a security analyst discovers a successful attack against the following URL: Which of the following remediation steps should be taken to prevent this type of attack?

The correct answer is B. Block URL redirections. The attack exploited an open redirect vulnerability, where a URL parameter was manipulated to redirect users to a malicious external site.

Attacks and exploits

Question

While monitoring WAF logs, a security analyst discovers a successful attack against the following URL:

Which of the following remediation steps should be taken to prevent this type of attack?

Options

  • AImplement a blacklist.
  • BBlock URL redirections.
  • CDouble URL encode the parameters.
  • DStop external calls from the application.

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    79% (19)
  • C
    13% (3)
  • D
    4% (1)

Why each option

The attack exploited an open redirect vulnerability, where a URL parameter was manipulated to redirect users to a malicious external site.

AImplement a blacklist.

A blacklist is a reactive, easily bypassed control that cannot reliably enumerate all malicious redirect destinations an attacker might use.

BBlock URL redirections.Correct

Blocking URL redirections directly eliminates open redirect attacks by preventing the application from forwarding users to attacker-controlled external URLs via manipulated parameters. WAF rules configured to deny redirect parameters pointing to untrusted domains remove the attack vector entirely. This is the most targeted and effective remediation for open redirect vulnerabilities identified in WAF logs.

CDouble URL encode the parameters.

Double URL encoding is itself an attack evasion technique used to bypass filters and does not prevent open redirect exploitation.

DStop external calls from the application.

Stopping all external calls from the application is an overly broad measure that would break legitimate functionality without specifically targeting the redirect vulnerability.

Concept tested: Open redirect attack remediation using WAF rules

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

Topics

#open redirect#WAF#URL redirection#web vulnerabilities

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice