Skip to content
Leaked secrets Disclosed report Beginner

AWS Credentials Disclosure at ███

A publicly reachable configuration file exposed AWS access keys and an OAuth client secret. An attacker could use the leaked AWS credentials to access or modify resources in the AWS account, depending on their permissions.

0r10nh4ck Follow

Originally disclosed on HackerOne

  • Triaged in 10 hours
  • Fixed in 17 days
  • Disclosed after 5 months

Hi team!! I found the config.json file, which contains sensitive information of AWS.

POC: https://███████/config.json

{"aws": {
        "accessKeyID": "███████",
        "secretAccessKey": "██████████",
        "region": "███",
        "bucket": "██████",
        "endpoint": "https://s3.amazonaws.com"
    },
    "serverSettings": {
        "port": 443,
        "timeout": 18000000
    },
    "█████████": {
        "authorizationURL": "https://████/ms_oauth/oauth2/endpoints/oauthservice/authorize",
        "tokenURL": "https://████/ms_oauth/oauth2/endpoints/oauthservice/tokens",
        "clientID": "██████████",
        "clientSecret": "█████",
        "callbackURL": "https://████████/callback",
        "userProfileURL": "https://███/ms_oauth/resources/userprofile/me"
    }
}

Impact

By using leaked AWS credentials or abusing credentials with misconfigured permissions, an attacker could try to gain access to sensitive information on the AWS account or perform arbitrary modification on the AWS resources.

System Host(s)

█████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Use a browser to navigate to: https://██████/config.json

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by 0r10nh4ck. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely a configuration file containing secrets was deployed to a publicly accessible web path without access restrictions.

Impact

An attacker could try to gain access to sensitive information on the AWS account or perform arbitrary modification on the AWS resources, depending on the permissions of the leaked credentials.

What the attacker needed

None

The fix

The report suggests no mitigation; removing the file and rotating credentials would be reasonable.

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 report has not been written yet. The Original tab links to the source.

A configuration file that should have been private was reachable on the website. It contained secret keys used to log in to cloud services. Anyone who found the file could try to use those keys to read or change data in the cloud account.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by 0r10nh4ck

View all

6 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.