Skip to content
Access control Write-up Beginner

From oos — getting bounty Improper Access Control to create an commentor account on the application.

An unauthenticated API endpoint for user signup was exposed in a JavaScript file, allowing the creation of accounts with a commentator role. The attacker could register such an account and log in, bypassing intended access controls.

swaroopvenkat828 Follow

Published on medium.com

Hello hackers! I hope you’re enjoying your good old days of bug hunting.

swaroop 04|16, 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 signup endpoint lacked authentication and authorisation checks, and its existence was exposed in a publicly accessible JavaScript file.

Impact

An attacker could create a commentator account without authorisation, potentially gaining access to functionality not intended for public users.

What the attacker needed

None

How it was found

  1. Search the application for API endpoints using browser search.
  2. Identify a JavaScript file containing the signup endpoint.
  3. Inspect the JavaScript file to find the endpoint path.
  4. Send a POST request to the signup endpoint to create an account.
  5. Log in with the created account and observe the assigned role.

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 had a hidden sign-up page that anyone could use without logging in first. The author found it by searching the site's code, then used it to make an account with extra permissions.

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 swaroopvenkat828

View all

2 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.