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.
- 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
- Use a browser to navigate to: https://██████/config.json
Suggested Mitigation/Remediation Actions
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.