nerdexam
CompTIA

PT0-002 · Question #612

During a security assessment of a web application, a penetration tester discovers a vulnerability that allows users to pass a URL to the web application and retrieve information from an internal web…

The correct answer is A. Input validation C. Network segmentation. The vulnerability described is likely Server-Side Request Forgery (SSRF), where an attacker can make a server-side application issue requests to an arbitrary domain.

Attacks and Exploits

Question

During a security assessment of a web application, a penetration tester discovers a vulnerability that allows users to pass a URL to the web application and retrieve information from an internal web application hosted on a different network. Which of the following remediation actions should the penetration tester include? (Choose two.)

Options

  • AInput validation
  • BSecrets management
  • CNetwork segmentation
  • DCertificate management
  • EPatch management
  • FMultifactor authentication

How the community answered

(28 responses)
  • A
    71% (20)
  • B
    14% (4)
  • D
    4% (1)
  • E
    4% (1)
  • F
    7% (2)

Why each option

The vulnerability described is likely Server-Side Request Forgery (SSRF), where an attacker can make a server-side application issue requests to an arbitrary domain.

AInput validationCorrect

Input validation is crucial to prevent SSRF by ensuring that URLs or parameters passed to the web application are restricted to legitimate, expected values and do not allow arbitrary internal or external requests. This sanitizes and validates all user-supplied input before it is used to make server-side requests.

BSecrets management

Secrets management is about securely storing and managing credentials, which is not the primary fix for an SSRF vulnerability.

CNetwork segmentationCorrect

Network segmentation limits the impact of an SSRF attack by isolating the web application from internal networks and systems that it should not access. By placing the vulnerable application in a segmented network, even if an attacker successfully exploits SSRF, they would be unable to reach other sensitive internal resources.

DCertificate management

Certificate management deals with SSL/TLS certificates and their lifecycle, unrelated to preventing a web application from making unauthorized requests.

EPatch management

Patch management addresses software bugs and vulnerabilities, but doesn't specifically prevent the logic flaw of allowing arbitrary URL requests without validation.

FMultifactor authentication

Multifactor authentication secures user logins but does not prevent a server-side vulnerability exploited by an already authenticated or unauthenticated attacker.

Concept tested: Server-Side Request Forgery (SSRF) remediation

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

Topics

#Web Application Security#Server-Side Request Forgery (SSRF)#Input Validation#Network Segmentation

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice