In-depth lesson · technique
Cloud metadata access
What every disclosed Cloud metadata access report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 37
- median public bounty
- $2,525
Learning Server-side injection, step 2Cloud and infrastructure, step 5
Overview
What it is and why programs pay for it.
Cloud metadata access is a form of server-side request forgery where an attacker makes a server fetch the cloud provider's internal metadata service. That service holds instance identity and temporary credentials, so a successful fetch can hand over access to cloud resources. Programs care because the impact is often a full cloud account compromise rather than a single application flaw. The evidence shows this pattern across many report types, with 54 reports in the set and 19 paid, so it is a well-recognised and rewarded class of bug.
It usually starts with any feature that fetches a URL supplied by the user. The server then follows that URL to an internal address that only the server can reach. The metadata service is one such address, and it often returns credentials or tokens without further authentication. The reports show this leading to leaked tokens, internal port scanning, local file reads and, in some cases, deeper cloud access.
It turns up most often in features that fetch remote content: webhook delivery, image and meme generation, screenshot services, SAML metadata import, help endpoints, link unfurling, PDF generation and media processing. It also appears in less obvious places such as repository mirroring, CI runners talking to a Docker daemon, TURN servers and crossdomain policy endpoints. The common thread is a server-side HTTP client or renderer that accepts a user-controlled destination.
Seen in these reports14
-
Medium -
$450 Medium -
$300
Show 5 moreShow fewer
-
$4,000 Critical -
$2,727 High -
$1,000 Critical -
$700 High -
$150 Low
How it works
The mechanics, as the reports show them.
The attacker finds a feature where the server fetches a URL on their behalf. Examples include submitting an image URL, setting a webhook endpoint, importing SAML metadata from a URL, or supplying a link for preview. The attacker then points that URL at the cloud metadata address instead of an external site. If the server does not block internal or link-local destinations, it will make the request.
The metadata service responds with instance information and often temporary credentials. The attacker needs a way to see that response, either directly in the feature output or through a side channel. Reports show direct reflection in generated screenshots, PDFs, image imports and download endpoints. Where the response is blind, attackers use timing differences, error messages or out-of-band callbacks to confirm the fetch.
What makes it possible is missing or incomplete destination filtering. Many reports describe fetches with no block on internal or link-local addresses at all. Others show filters that only check IPv4, only check the initial scheme, only check localhost names, or miss metadata hostnames. Some handlers block most redirect codes but allow one, such as HTTP 303, which lets the server be redirected to an internal address after the initial check.
Redirects and DNS tricks are common ways around partial defences. A URL that passes an initial check can redirect to the metadata address, or a hostname can resolve to an external address first and an internal one later through DNS rebinding. Reports also show IPv6 addresses mapped to IPv4 slipping past IPv4-only filters, and newline characters splitting a value so an allow-list only sees part of it.
Some paths are indirect. A webhook handler may follow a redirect from a controlled server. A Docker client may follow redirects from a user-controlled daemon. A TURN server without peer access control can relay to internal addresses. A PlantUML renderer may include internal resources. In each case the server is making a request to a destination the attacker chose, even if the feature was not designed as a URL fetcher.
The impact depends on what the metadata service returns and what the attacker can do with it. Reports show temporary credentials being displayed, internal ports being scanned, local files being read and, in some cases, further access to cloud resources. The evidence supports these outcomes but does not support claims beyond what each report shows, so the lesson is to demonstrate the actual data returned rather than assume the worst case.
Seen in these reports18
-
$2,500 Medium -
$1,000 Critical -
$300
Show 5 moreShow fewer
-
$200 Medium -
$150 Low -
High -
$4,000 Critical -
$700 High
Year by year
6 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2014 | 1 |
|---|---|
| 2015 | 3 |
| 2016 | 2 |
| 2017 | 2 |
| 2018 | 4 |
| 2019 | 6 |
| 2020 | 11 |
| 2021 | 15 |
| 2022 | 10 |
| 2023 | 6 |
| 2024 | 15 |
| 2025 | 61 |
| 2026 | 81 |
-
2025
New this year2
- Using a game export endpoint with a user-controlled players parameter to trigger server-side fetches is first seen.
- Testing link unfurling and preview generation against link-local addresses to bypass private-network guards is newly observed.
Kept working1
- Rendering services that fetch a URL supplied in a link were used to check whether the service reaches the cloud metadata address.
-
2023
New this year3
- Using the PlantUML include directive to fetch internal URLs and read local files through a wiki preview is first seen.
- Abusing analytics report PDF generation with user-controlled template values to trigger server-side fetches is newly observed.
- Flooding a connection test feature with repeated requests to cause denial of service is first noted.
-
2022
New this year3
- Using DNS rebinding where the first resolution fails so the rebinding protection is not applied is again observed, building on earlier years.
- Bypassing an SSRF protection layer to reach the cloud metadata service is newly observed.
- Testing an Oracle metadata endpoint for server-side request forgery first appears.
Kept working5
- Form-to-PDF generators that render user field values on the server were exploited by injecting a script payload into a form field and refreshing the PDF URL to trigger a fetch of the cloud metadata address.
- A download-url parameter set to the cloud metadata address displayed the metadata and temporary credentials.
Earlier years3
Where it is found
17The features and places the reports found it in, most-reported first.
-
Webhook delivery handlers that follow redirects.
Seen in 3 reports
-
Image and meme generation features that fetch a remote image from a user-supplied URL.
Seen in 1 report
-
Screenshot services that render user-controlled storefronts or templates.
Seen in 1 report
-
SAML application setup flows that import metadata from a URL.
Seen in 1 report
-
Help or documentation endpoints that fetch a URL taken from a query parameter.
Seen in 1 report
Technologies in these reports16
Root causes
17The mistakes in the code or configuration behind the reports.
-
User-supplied URLs were fetched without blocking internal or link-local addresses.
Seen in 6 reports
-
The screenshot service fetched user-controlled URLs without restricting metadata endpoints, and instances lacked metadata concealment.
Seen in 1 report
-
The webhook handler blocked most redirects but allowed HTTP 303, so the server could be redirected to internal addresses.
Seen in 1 report
-
The import attribute cleaner did not strip the uploader's remote attachment URL and request header fields, so the remote download feature fired during import.
Seen in 1 report
-
The TURN server had no peer access control, allowing relay to arbitrary internal addresses.
Seen in 1 report
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Proxy and connection tests
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Webhooks and integrations
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
File and download endpoints
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
-
$1,000 Critical
-
Bypasses and variations
8How reports got past filters, encoders and other defences.
-
Use DNS rebinding where the first resolution fails so the rebinding protection is not applied.
Seen in 2 reports
-
Use an HTTP 303 redirect to get past a webhook handler that blocks most other redirect codes.
Seen in 1 report
-
Insert a newline character into a URL parameter to split the value and get past an allow-list applied to only part of the input.
Seen in 1 report
-
Combine a server-side image fetch with DNS rebinding to reach the cloud metadata endpoint.
-
Supply an HTTPS URL that redirects to HTTP and then to the metadata address to get past a scheme-only check.
Seen in 1 report
Payouts
42 paidPublic bounties in US dollars, from the data. 42 of 322 reports show an amount.
- a quarter paid up to
- $1,000
- median
- $2,525
- three quarters paid up to
- $5,000
- highest
- $42k
One in ten paid reports was paid $23k or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 15 | 4 | $2,750 | $25k |
| High | 17 | 3 | $2,727 | $10k |
| Medium | 18 | 4 | $1,475 | $2,550 |
| Low | 7 | 2 | $200 | $250 |
| Informational | 2 | 0 | None paid | None |
| Unrated | 263 | 29 | $3,500 | $42k |
Highest-paid reports5
-
$42,000 -
$40,000 -
$31,337 -
$31,337 -
$25,000 Critical
Tips for beginners
13Advice for a first hunt, drawn from the reports.
-
Start with features that fetch a URL you supply: image import, screenshot generation, webhook setup, SAML metadata import, link preview, PDF generation and media processing. These are the most common places in the evidence. Look for any input that ends up in a server-side HTTP client or renderer.
Seen in 6 reports
-
Check whether the feature returns the fetched content to you. A screenshot, generated PDF, imported image or download endpoint that shows the response is the clearest way to prove impact. If the response is blind, plan to use timing, error messages or your own server logs to confirm the fetch.
Seen in 5 reports
-
Look beyond obvious URL fetchers. Repository mirroring, CI runners talking to a Docker daemon, TURN servers, PlantUML rendering and crossdomain endpoints all appear in the evidence. These can be blind, so set up a server you control and watch for callbacks to confirm the server is making requests.
Seen in 5 reports
-
Do not stop at the first blocked attempt. The evidence shows many partial fixes: scheme-only checks, IPv4-only filters, localhost-name-only filters and allow-lists applied to only part of the input. Try a redirect, an IPv6-mapped address or a newline split before concluding the feature is safe.
Seen in 4 reports
-
Test the metadata address directly first, then test variations if it is blocked. The evidence shows filters that miss link-local addresses, metadata hostnames, IPv6-mapped IPv4 forms and addresses outside private ranges. Try those variations only after confirming the basic fetch works or is blocked, so you understand what the filter actually checks.
Seen in 3 reports
Guides and techniques
The best explainers, cheat sheets and technique posts on Cloud metadata access, from around the web.
-
CloudFormation bajo la mirada de un atacanteWorkshop showing how low-privilege AWS credentials can be escalated through CloudFormation execution roles and Lambda custom resources to build persistence.
Technique bishopfox.com
-
Code to Cloud Attacks: From Github PAT to Cloud Control PlaneExplains how a leaked GitHub personal access token can be abused to pivot into cloud control planes and how to defend against it.
Technique wiz.io
-
The many ways to obtain credentials in AWSScott Piper catalogues the many routes to obtaining AWS credentials, a strong cloud recon reference for researchers.
Methodology wiz.io
-
Introducing CloudFox GCP: Attack Path Identification for Google CloudBishop Fox releases CloudFox GCP, a tool mapping attack paths across Google Cloud environments.
bishopfox.com
-
The AWS Metadata Attack (IMDS) Deep DiveDeep dive into abusing the AWS instance metadata service to steal cloud credentials during SSRF attacks.
Technique kd-200.medium.com
Keep learning
Where this lesson fits, and what to read next.
The whole class
Related techniques
How this is made: our model read every listed Cloud metadata access report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 54 reports. All Cloud metadata access reports.