Insecure redirect rule results in bypassing ban redirect on certain pages
A redirect rule meant to enforce account bans was not anchored correctly, so appending a path segment after certain file extensions bypassed the ban redirect. A banned user could then reach pages and APIs ending in .aspx or .ashx, and the report also notes that banned sessions were not checked on the api.roblox.com host.
b62ba6bd20eb778df2a0691 Follow
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 26 days
- Paid in 26 days
- Disclosed after 7 months
Summary by the researcher
An insecure redirect rule allowed an attacker to bypass the ban redirect on pages ending in .aspx/.ashx.
Additionally, I have also mentioned in my report that api.roblox.com did not have a check for banned authenticated sessions.
The report
##Description Account bans on Roblox work via redirect rules. If an user attempts go to a page that's outside a whitelisted set of rules, they'll be redirected back to the ban page.
After researching, I've found that the following rules are whitelisted and bypass this redirect:
- Any URLs ending in a file extension (except for .aspx, .ashx)
- https://www.roblox.com/request-error/*
- https://www.roblox.com/login/*
- https://www.roblox.com/info/*
- https://www.roblox.com/support/ *
- https://www.roblox.com/*/membership/*
All of these seem okay, except for https://www.roblox.com/*/membership/*. The /membership/ part is not anchored to the start of the URL.
In ASP.NET, we can actually insert paths after the extensions .aspx and .ashx, which will just be ignored by the server.
This allows us to access any pages ending in .aspx/.ashx without a ban-redirect, just by appending /membership/ after the extension. Ex.: https://www.roblox.com/my/money.aspx/membership/
Impact
An attacker would be able to access the following pages/apis with a banned account:
- Create/update assets - https://data.roblox.com/Data/Upload.ashx
- Post comments on assets - https://www.roblox.com/API/Comments.ashx
- Trade Items (Unverified) - https://www.roblox.com/Trade/tradehandler.ashx
- Use any other page or API ending in .ashx/.aspx
A moderator couldn't do anything to stop the attacker from performing these actions. Bans would be ineffective.
Another thing I would like to mention is that banned accounts can access ANY web apis at api.roblox.com, without a need for a bypass or anything.
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 ban redirect rule matched a path segment without anchoring it to the start of the URL, and the server ignored extra path segments after .aspx/.ashx extensions.
Impact
A banned user could create or update assets, post comments, and trade items, and could also use any web API on api.roblox.com, making bans ineffective.
What the attacker needed
A banned account
How it was found
- Note that banned users are redirected unless the URL matches a whitelisted rule.
- Identify that the membership rule is not anchored to the start of the URL.
- Append the membership path segment after an .aspx or .ashx extension to avoid the ban redirect.
- Access pages and APIs ending in .aspx or .ashx with a banned account.
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.
When an account is banned, the site is supposed to send the person to a ban page instead of letting them use the site. The check that does this was written in a way that could be fooled by adding extra text to the address, so a banned person could still open some pages. The report also says one part of the site did not check for bans at all.
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.