Skip to content
Access control Write-up Beginner

How I hacked the reports database of a Mid‑Cap Industrial Stock

A reports page on a company's website was protected only by a password check performed in client-side JavaScript, with the password hardcoded in a JavaScript chunk. Anyone who found the password could access an export panel and download all contact-form and job-application data, including résumé links.

Issan Follow

Published on medium.com

My flatmate was screaming about a missed headshot while I was staring at a password form on a multi‑hundred‑crore company’s website. Two hours later, I was inside their reports database, every job application, every contact‑form inquiry, every résumé link, dating back to day one.

Issan, 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 password check was implemented only in client-side JavaScript, with the password embedded as a hardcoded string in the page's JavaScript bundle, and the export functionality had no server-side authentication.

Impact

An attacker could access and export all contact-form and career-form submissions, including personal information and résumé links, dating back to the first submissions; the author did not download any data.

What the attacker needed

None

The fix

The password check should be moved to the server, and the export functionality should require server-side authentication and authorization.

How it was found

  1. Open the /reports page and notice it is a client-side password form.
  2. View the page source and find the script tag for the reports page's JavaScript chunk.
  3. Download that JavaScript file and search it for the word 'password'.
  4. Find the hardcoded password string used in the comparison.
  5. Enter that password into the form and submit it.
  6. The page reveals an Export Data panel with form selector, date range picker, and an Export to Excel 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 write-up has not been written yet. The Original tab links to the source.

The website had a page that asked for a password, but the check happened entirely in the visitor's browser rather than on the server. The password was written directly into the JavaScript file that the browser downloads, so anyone could read it. Once the password was known, the page showed an export tool that let the person download personal data submitted through contact and job-application forms.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Issan

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.