Skip to content
Access control Write-up Intermediate

How i bypassed 403 forbidden (private method)

The author bypassed a 403 Forbidden restriction on a game website by obtaining an administrator's IP address through a link tracker sent in emails, then spoofing that IP in the X-Forwarded-For header. This granted access to admin features and subdomains.

reazatih Follow

Published on medium.com

it was really hard to find and i used many tools to figure it out but was not successful

Re@Za, 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 server trusted the client-supplied X-Forwarded-For header for access control instead of authenticating the user.

Impact

The author claims they gained access to admin features and subdomains, and even 302 redirections, though the text gives no further detail on what those features allowed.

What the attacker needed

Email addresses of staff; staff click a tracking link; server trusts X-Forwarded-For

How it was found

  1. Create a link tracker to capture the IP addresses of employees or admins.
  2. Send an email containing the tracking link to all their addresses.
  3. Collect the IP addresses captured when the recipients clicked the link.
  4. Insert the captured admin IP into the X-Forwarded-For header of a request.
  5. Send the request and observe that the 403 restriction was bypassed.

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 403 Forbidden error means the server refuses to show a page. Some servers trust a header called X-Forwarded-For, which is supposed to say which proxy the request came through, and use it to decide if a request is allowed. The author tricked staff into clicking a tracking link to learn an admin's IP address, then pretended to be that IP.

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.