Skip to content
Info disclosure Write-up Beginner

Information Disclosure di LocalStorage

AWS temporary credentials, including an access key, secret key and session token, were stored in the browser's LocalStorage where any JavaScript on the page could read them. The credentials were valid but had very limited permissions, so the practical impact was small.

medium.com

Published on medium.com

Halo semua gw ozi bug hunter berusia 14 tahun disini gw akan membahas kerentanan information disclosure yang case nya cukup unik so mari kita bahas:)

zixsec, on medium.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 the application placed sensitive AWS temporary credentials in client-side LocalStorage instead of keeping them on the server or behind a backend proxy.

Impact

Anyone able to run script on the page could read the AWS credentials, but because the permissions were minimal they could not create or delete resources or reach sensitive data.

What the attacker needed

Access to the web application; ability to run script on the page (e.g. XSS)

The fix

Sensitive credentials should not be stored client-side; they should be kept on the server or replaced with a backend proxy or narrowly scoped tokens.

How it was found

  1. Open the browser Developer Tools on the target web application.
  2. Go to the Application tab and inspect LocalStorage.
  3. Find suspicious values and identify them as AWS access key, secret key and session token.
  4. Use the credentials with the AWS CLI to run a read-only identity check.
  5. Observe that the credentials are valid but the permissions are very limited.

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.

LocalStorage is a small storage area inside your browser that websites use to keep data, and any script running on that page can read it. Here the site kept cloud login keys there, so anyone who could run script on the page, for example through a cross-site scripting flaw, could copy those keys. The keys turned out to allow only a few harmless actions, which is why the reward was small.

What is Info disclosure?

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

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.