Content Spoofing and Local Redirect in Mapbox Studio
The forbidden page on Mapbox Studio wrote the message query parameter straight into the page, and a redirect parameter caused a local redirect within Studio after a click. An attacker could craft a link showing chosen text and then move the victim to another Studio page.
Originally disclosed on HackerOne
- Triaged in 9 days
- Fixed in 12 days
- Paid in 12 days
- Disclosed after 3 months
Summary by the program
@hussain reported a content spoofing and local redirect issue in Mapbox Studio in February 2016. Strings passed to the message query string parameter on requests to https://www.mapbox.com/studio/forbidden/ would write text directly to the page.
@hussain combined the content spoofing issue with a redirect via the redirect query string parameter. We were not able to reproduce an open redirect, though a local redirect to other pages within Studio did exist. We were also not able to replicate the injection of CSS in Internet Explorer and Mozilla Firefox that @hussain reported.
Ordinarily we would not award a bounty for separate individual reports about content spoofing, social engineering, or local redirects, but we awarded the minimum bounty in this case due to the following factors:
- effective proof of concept that combined social engineering, content spoofing, and local redirect in a believable exploit
- relative ease of social engineering via sharing a URL
- change to our codebase and subsequent deployment
The report
Hi
I'm Found Bug It is Possible To Send His message Directly Through URL and Redirect Local .
Details When you go to :- https://www.mapbox.com/studio/admin/ website redirect to
https://www.mapbox.com/studio/forbidden/?message=Sorry,only admins allowed here.&redirect=/studio/&path=/studio/admin/
You can see parameter message and redirect not safe against the manipulation and interference
# Content Spoofing and Redirect
URL POC
https://www.mapbox.com/studio/forbidden/?message=Hi%20You%20Are%20%20Not%20%20in%20Mapbox%20Please%20Go%20%20To%20http://evil.com&redirect=/evil.com/&path=%2Fstudio%2Fadmin%2F
Message Changed and If Click On Okay Redirect on evil.com
Regards Hussain
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 page rendered the message parameter as page content and used the redirect parameter as a navigation target without validating either value.
Impact
An attacker could show misleading text on a trusted Mapbox page and, after a click, send the victim to another site; the program could not reproduce an open redirect to an external domain, only a local redirect within Studio, and could not replicate the reported CSS injection in Internet Explorer or Firefox.
What the attacker needed
Victim clicks a crafted link; victim clicks the confirmation button
The fix
The program changed its codebase and deployed the change, though the report does not describe the fix itself.
How it was found
- Visit the admin URL, which redirects to the forbidden page with message and redirect parameters.
- Change the message parameter text and see it appear on the page.
- Click the confirmation button and get sent to another page within Studio as given in the redirect parameter.
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 pages take text from the address bar and show it on the page. Here the site did that without checking the text, so anyone could make the page say whatever they wanted. A second setting in the address bar decided where a button took you, so a crafted link could show a fake message and then send you to another page within the site.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.