Skip to content
Info disclosure Write-up Intermediate

Using an Undocumented Amplify API to Leak AWS Account IDs

An undocumented internal AWS Amplify API accepted a CloudFront domain and returned the associated AWS account ID, allowing cross-tenant lookup of account IDs for any Amplify app. An attacker could use this to gather account IDs for phishing or reconnaissance.

Nick Frichette Follow

Published on frichetten.com

In a previous blog post I mentioned that I was getting back into AWS vulnerability research in my free time. I’ve been taking a closer look at undocumented AWS APIs, trying to find hidden functionality that may be useful for an attacker or cross tenant boundaries.

Nick Frichette, on frichetten.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an internal-only API was exposed to customers without proper access controls, and it returned sensitive account identifiers based on public input.

Impact

An attacker could leak AWS account IDs for any Amplify app, which could be used for phishing or reconnaissance, though AWS did not consider account IDs sensitive and the API was later disabled.

What the attacker needed

Knowledge of an Amplify app ID; ability to call AWS APIs

The fix

The API was disabled by AWS, preventing future abuse.

How it was found

  1. Create a CloudFront distribution in a target account and try the API with its domain.
  2. Create an Amplify app and host it on CloudFront, then try the API with its domain.
  3. Guess that Amplify app IDs match the prefix of CloudFront domains and try `<Amplify app ID>.cloudfront.net`.
  4. Find Amplify app IDs via Google search `site:amplifyapp.com`.
  5. Run the API against multiple regions to get consistent results.
  6. For custom domains, use CNAME records to find the CloudFront domain and query the API.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

AWS account IDs are unique numbers that identify an organisation's cloud account. This API was meant for internal use but was reachable by customers, and it revealed which account owned a given Amplify app. That information could help an attacker craft convincing phishing emails or map out a target's cloud setup.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Nick Frichette

View all

8 more disclosed reports, best first.

More from AWS

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.