4 ms·
You can generate a token on the machine and use a PUT request to set the token. The main difference with IMDSv1 on this is that you now need two requests (One P
by Sayrus 3y ago
You can generate a token on the machine and use a PUT request to set the token. The main difference with IMDSv1 on this is that you now need two requests (One PUT and one GET) instead of a single GET which protects against most SSRF.
The 2019 blog post[1] has fairly good explanations on how it works and the threat model.
[1] https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/ https://aws.amazon.com/blogs/security/defense-in-depth-open-...