Fetch-url-http-3a-2f-2f169.254.169.254-2flatest-2fmeta Data-2fiam-2fsecurity Credentials-2f [upd] 〈8K × FHD〉
: This specifies the version of the metadata service to use. As of my last update, /latest is the correct version to use.
: The vulnerable application server processes the request internally. Because the request originates from inside the EC2 instance, the server successfully queries 169.254.169.254 .
The strange hyphens and percent‑encoded characters ( %3A for colon, %2F for slash) are URL encoding. When we decode the string, we get:
Let's decode it:
When you successfully fetch http://169.254.169.254/latest/meta-data/iam/security-credentials/<role_name> , the output is JSON:
This string is a URL-encoded command used to target the .
Fix the root cause of the SSRF vulnerability within your application code. : Never trust user-supplied URLs. : This specifies the version of the metadata service to use
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Get the full benefits of IMDSv2 and disable IMDSv1 ... - AWS
While a critical tool for developers, this endpoint is also a primary target for attacks. What is the 169.254.169.254 Endpoint? Because the request originates from inside the EC2
The string fetch-url-http-3A-2F-2F169.254.169.254-2Flatest-2Fmeta data-2Fiam-2Fsecurity credentials-2F represents a critical security vulnerability payload. Decoded, it targets the Amazon Web Services (AWS) Instance Metadata Service (IMDS). Attackers use this specific payload during Server-Side Request Forgery (SSRF) attacks to steal sensitive Identity and Access Management (IAM) security credentials. Decoding the Payload
When you query http://169.254.169.254/latest/meta-data/iam/security-credentials/ , the service returns a list of IAM role names associated with the EC2 instance.