nerdexam
CompTIA

PT0-001 · Question #139

A penetration tester has been asked to conduct a penetration test on a REST-based web service. Which of the following items is required?

The correct answer is B. A list of sample application requests. REST API penetration testing requires sample application requests to understand endpoint structure, HTTP methods, parameters, and authentication flows that define the attack surface.

Engagement management

Question

A penetration tester has been asked to conduct a penetration test on a REST-based web service. Which of the following items is required?

Options

  • AThe latest vulnerability scan results
  • BA list of sample application requests
  • CAn up-to-date list of possible exploits
  • DA list of sample test accounts

How the community answered

(48 responses)
  • A
    2% (1)
  • B
    88% (42)
  • C
    8% (4)
  • D
    2% (1)

Why each option

REST API penetration testing requires sample application requests to understand endpoint structure, HTTP methods, parameters, and authentication flows that define the attack surface.

AThe latest vulnerability scan results

Vulnerability scan results reflect findings from automated tools against known signatures and do not reveal the application-specific logic, endpoints, or authentication flows of a REST API.

BA list of sample application requestsCorrect

REST APIs do not have a standardized discovery mechanism like WSDL used in SOAP services, so the tester must have sample requests to understand available endpoints, expected input formats, authentication headers, and data structures. Without sample requests, the tester cannot craft meaningful fuzzing payloads, test for injection flaws, or assess authorization logic. Sample requests serve as the foundational map of the API's attack surface.

CAn up-to-date list of possible exploits

A list of possible exploits is not required upfront because REST API testing is highly application-specific, and generic exploit lists do not map directly to custom API logic or business rules.

DA list of sample test accounts

Sample test accounts may be useful for authentication testing but are not universally required and cannot substitute for understanding the API request structure itself.

Concept tested: REST API attack surface mapping using sample requests

Source: https://owasp.org/www-project-api-security/

Topics

#REST API#web service testing#engagement preparation#API documentation

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice