Skip to content
Leaked secrets Write-up Beginner

How a Simple Login Gave Me $4,000 After I Found Their Entire 760 GB+ PII Exposed!

The dashboard page served hardcoded AWS IAM credentials in client-side JavaScript to unauthenticated visitors. An attacker could use these keys to read, write, and delete objects in a production S3 bucket containing over 760 GB of personal data.

infosecwriteups.com

Published on infosecwriteups.com

Hey there! I’m Anukar, a cybersecurity researcher who loves finding vulnerabilities.

Anukar, on infosecwriteups.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 developers embedded long-lived AWS IAM credentials directly in frontend JavaScript instead of using a secure backend service or temporary tokens.

Impact

An attacker could read, write, and delete objects in a production S3 bucket containing over 760 GB of personal data, including employee and learner PII and KYC documents.

What the attacker needed

None

The fix

The exposed IAM keys were revoked and rotated, hardcoded credentials were removed from frontend code, and an audit was performed.

How it was found

  1. Open the browser's Network tab before logging in.
  2. Log in and observe the request to /dashboard.php.
  3. Send the /dashboard.php request to Burp Suite Repeater.
  4. Remove the Cookie header and send the request.
  5. Inspect the response and find AWS credentials in the JavaScript.

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 web page's code can accidentally include secret passwords for cloud services. Here, the dashboard page gave out AWS keys to anyone who visited it, even without logging in. Those keys allowed full access to a storage bucket holding sensitive personal information.

What is Leaked secrets?

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

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.