PT0-002 · Question #236
A penetration tester is testing a new API for the company's existing services and is preparing the following script: Which of the following would the test discover?
The correct answer is C. Supported HTTP methods. The script is using the requests library to send an OPTIONS request to the API endpoint, which returns a list of supported HTTP methods for that resource. This can help the penetration tester to identify potential attack vectors or vulnerabilities based on the methods allowed.
Question
A penetration tester is testing a new API for the company's existing services and is preparing the following script:
Which of the following would the test discover?
Options
- ADefault web configurations
- BOpen web ports on a host
- CSupported HTTP methods
- DListening web servers in a domain
How the community answered
(21 responses)- A5% (1)
- B5% (1)
- C90% (19)
Explanation
The script is using the requests library to send an OPTIONS request to the API endpoint, which returns a list of supported HTTP methods for that resource. This can help the penetration tester to identify potential attack vectors or vulnerabilities based on the methods allowed.
Topics
Community Discussion
No community discussion yet for this question.