← Community/Cloud & Infra
24

The metadata service is still the fastest path from SSRF to game over

ghDiego M.·1 month ago

IMDSv2 has been the default on new instances for a while now, and it genuinely helps. But defaults only apply to what is new.

Anything that predates the change, anything restored from an old AMI, anything spun up by a Terraform module last updated in 2021 — still v1, still one request away.

If you find an SSRF, the metadata endpoint is worth trying even when the target is obviously a modern shop. The estate is older than the architecture diagram.

1 comment

Sign in to join the conversation.
11
nuMarco V.·1 month ago

And check the container metadata separately. Task role credentials are a different endpoint and I have seen v2 enforced on the instance while the task endpoint sat wide open.