Skip to content
Access control Disclosed report Intermediate

Double forward slash breaks server-side restrictions & allows access to prohibited services from a partner account

A partner account without access to the Autorebates facility could reach the restricted API by putting a double forward slash at the start of the request path. The server-side restriction was bypassed and the request was processed as if the account had permission.

ashwarya Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • Fixed in 24 days
  • Paid in 3 days
  • Disclosed after 31 days

Hi Team,

There appears to be a weird bug here. Making an API call to the prohibited endpoint appended with double/multiple slash is breaking some server-side restrictions imposed upon a partner account.

Example - In the present scenario, Autorebates facility is unavailable to the partners from India. When a direct request is made to the autorebates API endpoint, the application throws HTTP/2 403 Forbidden. However, when the similar request is made with double forward slash appended at the beginning, the application successfully processes the request. This effectively gives unrestricted access to the Autorebates facility which otherwise is strictly not available to a partner account from India.

#Steps to Reproduce

The below sample request (appended with double forward slash) attempts to create a client group with set rebate percentage under a partner account which do not have access to the autorebates facility. All requests appended with double forward slash breaks the server-side restriction and easily go through from a partner account with no access to the Autorebates facility.

POST //api/v2/autorebates/groups/ HTTP/2
Host: my.exnesstrade.pro
Content-Type: application/json
Authorization: JWT xyz

{
"group_title":"Test"
}

#Proof of Concept ███

███

███

Impact

Making an API call with double/multiple forward slashes breaks the server-side restrictions imposed upon a partner account and allows a partner to have unrestricted access to the autorebates facility.

The original report as published on HackerOne, by ashwarya. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the access-control check was applied to the normalised path while the backend routed the double-slash path to the same handler without re-checking permissions.

Impact

A partner account could use the Autorebates facility that was meant to be unavailable to it, creating groups and setting rebate percentages.

What the attacker needed

A partner account; account based in a restricted region

How it was found

  1. Send a request to the autorebates endpoint with a single leading slash and observe the 403 Forbidden response.
  2. Send the same request with a double forward slash at the start of the path.
  3. Observe that the request is processed and a client group is 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 report has not been written yet. The Original tab links to the source.

Some web servers treat a path starting with two slashes differently from one starting with a single slash. The site checked permissions on the normal path but not on the double-slash version, so a user who should be blocked got through. This is a broken access control problem, where the server fails to enforce who is allowed to do what.

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 ashwarya

View all

7 more disclosed reports, best first.

More from EXNESS

View all

The newest disclosed reports for this program.

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.