Easy Money from the Most Trivially Easy Broken Access Control
The web application fetched premium anime content from its own server before checking the user's premium status with a third-party service. By blocking the request to that third-party service, an attacker could access premium content without a subscription.
Published on abd11atarek.medium.com
Hello, I am Abda11aTarek. Some of my friends asks me about how I achieved a listing in the Top 10 on Bugcrowd’s leaderboard for P1 and P2 vulnerabilities in November 2023.
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 performed the premium check on the client side or after delivering the content, so the access decision could be skipped by blocking the third-party request.
Impact
An attacker could access premium content without paying, as the third-party check could be bypassed by dropping its request.
What the attacker needed
Ability to intercept and drop HTTP requests
The fix
The premium check should be enforced server-side before any premium content is sent to the client, rather than relying on a separate third-party request that the client can block.
How it was found
- Open the site and notice that all anime content is retrieved from the source code.
- Intercept the requests and observe that content is fetched before a third-party premium check.
- Drop the request sent to the third-party service.
- Use the web application as a premium user.
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 loaded the paid content first and only afterwards asked another service whether the visitor had paid. If that second check never happened, the site still showed the content. An attacker could stop the check from happening and watch premium shows for free.
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.