Exposed API Keys and Secrets
A configuration file exposed sensitive API keys and an app secret through a parameter named confweb. An attacker could obtain these credentials and potentially use them to access cloud services or the application.
medium.com
Published on medium.com
Hope my write-ups are beginner understandable. If you find my write-ups helpful in your Bug Hunting journey then you can send:
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
Impact
The exposed keys could allow an attacker to access cloud services or the application, though the report does not demonstrate actual exploitation.
What the attacker needed
Publicly accessible config file; knowledge of parameter names
The fix
The issue was fixed silently by the vendor.
How it was found
- Discover subdomains of the target.
- Collect archived URLs for those subdomains.
- Search the archived URLs for files containing 'config'.
- Manually inspect the config files and find a parameter named os_type.
- Try different values for os_type and other parameters, including confweb.
- Observe that confweb exposes a Cloud API Key and an App Secret.
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.
A configuration file is like a settings file for a website. It accidentally contained secret passwords (API keys) that let programs talk to cloud services. Anyone who found the file could read those secrets and possibly misuse them.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.