Skip to content

In-depth lesson · Cloud metadata access

Tips for beginners

Every point the Cloud metadata access reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 13 of 13
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. When you find a fetch, show the actual data returned, such as instance information or temporary credentials. Do not claim full cloud compromise unless you have demonstrated it. The reports that were paid show concrete evidence of what the metadata service returned or what internal resource was reached.

    Seen in 3 reports
  7. Check scope before you test. Some features sit on separate subdomains or consoles that may be out of scope. The evidence includes reports on proxy subdomains, cloud monitoring consoles and Kubernetes integrations, so confirm the asset is in scope before spending time.

    Seen in 3 reports
  8. Avoid reporting a fetch with no impact. A request that reaches an internal address but returns nothing and has no side channel is hard to reward. Use timing differences, error message differences or your own server logs to turn a blind fetch into a demonstrable one.

    Seen in 3 reports
  9. Remember that the metadata service is not the only target. Reports show local file reads, internal port scanning and internal telnet access through the same primitives. If the metadata address is blocked, an internal file read or port scan can still demonstrate impact, but only report what you can actually show.

    Seen in 3 reports
  10. If a direct request is blocked, look for redirects. A controlled server that answers with a redirect to the metadata address can bypass checks applied only to the original URL. Reports show HTTP 303 working against a webhook handler that blocked other codes, and a 302 working against a mirror fetch blocklist.

    Seen in 2 reports
  11. Consider DNS rebinding where the first resolution fails. One report shows rebinding protection not being applied when the initial lookup fails, which allowed the attacker to reach the metadata endpoint later. This is a more advanced technique, so use it when simpler redirects do not work.

    Seen in 2 reports
  12. Use the feature's own error messages as an oracle. Reports show SAML metadata import and help endpoints revealing reachability through differing errors or response times. This lets you map internal services without needing the full response.

    Seen in 2 reports
  13. Be careful with denial of service. One report shows a connection test feature being flooded with repeated requests. Testing for SSRF should not become a DoS test unless the program explicitly allows it, and you should avoid causing load on production systems.

    Seen in 1 report