Insecure Cache-Control Leading to API key Retrieval
The API settings page lacked proper cache-control headers, so after a user logged out, pressing the back button displayed the page with the API key still visible. An attacker with access to the device could retrieve the API key and take full control of the victim's app.
- Fixed in 27 days
- Disclosed after 54 days
Description: https://thisdata.com/customers/[user]/install/apis/[number]/reauthorize Does not have good browser cache management, allowing another user with access to the device to retrieve the API key. All of the thisdata.com pages do not have the cache management correctly configured, allowing the attacker to gain access to all of the information of the victim, but with the API key it is enough to take full control of the victim's app.
Steps To Reproduce:
- Go to the API Settings.
- Logout
- Click on the back button.
The page will show the API key.
Danger: In a PC scenario in an office or in a library or in a coffee shop or such places allow for an attacker to exploit this vulnerability (since the amount of pages visited after visiting the API settings doesn't matter). Also it is very easy to get access to a laptop, so this is a likable scenario, and once it happens the attacker has full control over the victim's app data since he/she can use the API key to add users ...
Solution: Add the header:("Cache-Control: no-store, no-cache, must-revalidate"); You currently don't have the no-store or the no-cache, which is enough to be able to exploit this vulnerability.
Tested in Chrome latest version.
Hope it helps. Sincerely, Pablo
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 the application did not send cache-control headers (such as no-store or no-cache) on pages containing sensitive data, allowing the browser to cache and later display them.
Impact
An attacker with access to the device could retrieve the API key and gain full control over the victim's app data, though this requires physical access to the device.
What the attacker needed
Attacker has access to the victim's device; victim previously visited API settings page
The fix
The application should add cache-control headers such as no-store and no-cache to prevent sensitive pages from being cached.
How it was found
- Go to the API Settings.
- Logout.
- Click on the back button.
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.
When you visit a web page, your browser often saves a copy so it can load faster next time. If that page contains sensitive information like an API key, and the site doesn't tell the browser not to save it, someone else using your computer can press the back button after you log out and still see the key. This report shows that the API settings page didn't prevent this, so the key remained visible.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.