Attacks and Exploits

A tester's SSRF flaw on a cloud VM can send only GET requests and cannot set custom headers. Requests to the metadata service's credential path return 401 errors. Which two statements explain this? (Choose two.)

Choose 2 answers

Show the answer

Correct answersA. The flaw cannot send the session token header that IMDSv2 demandsD. The instance enforces IMDSv2, which requires a session token requested with PUT

AWhy this is right: Every IMDSv2 metadata request must carry the token header, and this flaw cannot set custom headers.

BWhy not this: Metadata requests are unsigned and need no access key; IMDSv2 uses a session token instead.

CWhy not this: An empty role still receives temporary credentials; a 401 points to a missing token, not missing permissions.

DWhy this is right: IMDSv2 issues a session token only in response to a PUT request, which a GET-only flaw cannot make.

IMDSv2 requires a PUT request to obtain a session token, then that token in a header on every metadata request. A GET-only SSRF flaw with no header control can do neither, hence the 401. A role without a policy would still receive credentials, just with no permissions.