NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 30 min
Master the differences between IMDSv1 and IMDSv2. Learn how attackers exploit SSRF to steal credentials, and why IMDSv2's session tokens break the attack chain.
The move from version 1 to version 2 of the Instance Metadata Service is one of the biggest security improvements in cloud infrastructure. To secure or review an environment, you need to know exactly how the two versions differ.
IMDSv1 was built for simplicity. It answers any unauthenticated HTTP GET from the instance. That is its weakness: any SSRF flaw that lets someone make the server send a GET can reach it.
IMDSv2 was built to break that path. It is session-oriented: the caller first sends an HTTP PUT request to get a session token, then includes the token in a header on every later GET. Standard SSRF flaws usually control only the URL of a GET, not the method or the headers, so they cannot do this.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in