Skip to content
Access control Write-up Beginner

Click, Intercept, Hack: Checkmate on Access Control Vulnerability

A new account was blocked from creating blog posts by a server-side restriction, but the restriction was not enforced on the request itself. By swapping in the new account's cookies on a request captured from an older account, the attacker could create a blog post under the new account.

anasbetis023 Follow

Published on anasbetis023.medium.com

I hope you are doing well. Today, I am going to share a Broken Access Control (BAC) bug that I found a while ago in one of the HackerOne private programs.

Anas H Hmaidy, on anasbetis023.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 blog creation endpoint checked the account's eligibility only in the user interface, not on the server when processing the request.

Impact

A new account could create blog posts before the platform's waiting period, bypassing the intended restriction; the report does not claim any wider impact.

What the attacker needed

A new account; an older account that can post blogs; ability to intercept and edit requests

How it was found

  1. Create a new account and try to post a blog to see the restriction message.
  2. From an older account that can post, create a blog and intercept the post request.
  3. Replace the cookies in that request with the new account's cookies and send it.
  4. Copy the redirect path and open it in the new account's session to confirm the blog was created.

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 can show a message saying you are not allowed to do something, but still accept the action if the request is sent directly. Here, a new account was told to wait before posting blogs, yet the server did not check that rule when the request arrived. The tester reused a request from an older account and changed only the login cookies, so the new account could post.

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.