Skip to content
Access control Write-up Intermediate

From Secure to Breached: The Journey from Confidence to Compromise

An old login page on an overlooked server returned a redirect via client-side JavaScript instead of enforcing authentication on the server. By removing that redirect from the response, the attacker reached an administrative dashboard with full access to user PII and account management functions.

armandjasharaj Follow

Published on medium.com

How many times have you heard the phrase “we take security seriously” from companies eager to assure you of their bulletproof defenses? A few times, I’m sure, as it’s a popular mantra in the industry, as if every company possesses a magical cybersecurity wand that fends off every conceivable threat.

Armand Jasharaj, 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

The application relied solely on client-side JavaScript for redirection and access control, with no server-side authentication or authorization check on the administrative page.

Impact

The attacker could view and exfiltrate PII of administrators and users, create admin accounts, take over accounts, change server settings and manipulate the customer service endpoint.

What the attacker needed

Target has an overlooked old login page; attacker can intercept and modify responses

The fix

The server should verify authentication and authorization for every request regardless of client-side scripting.

How it was found

  1. Search the organisation's IP ranges on Shodan and find an active host titled like a production test admin server.
  2. Visit the host and see an administrator login panel that loads a new_login.aspx page.
  3. Fuzz for other login page names and find old_login.aspx, which shows a different panel.
  4. Submit random credentials and observe the response contains a JavaScript redirect back to old_login.aspx.
  5. Replay the request with the redirect script removed and receive the administrative dashboard with PII.

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 website should check on its own server whether you are allowed to see a page. Here, the check was done only by a small script in the browser that sent you back to the login page. Anyone who can stop that script from running, for example with a proxy tool, can see the page anyway.

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.

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.