Skip to content
IDOR Disclosed report Beginner

Disclosure of map information

An internal API endpoint allowed anyone to retrieve details of all public maps in a Mapbox user's account by supplying the victim's username. An attacker could learn map names, descriptions, identifiers, geographic centres, layers, and creation/modification dates, but no private maps or account data were exposed.

hussain_0x3c Follow

Originally disclosed on HackerOne

  • Triaged in 13 days
  • Fixed in 14 days
  • Paid in 14 days
  • Disclosed after 9 months

Summary by the program

In July 2015, @hussain submitted a report where a GET request to an internal API endpoint (/core/api/Map) disclosed details of public maps in a Mapbox user's account. The disclosed information included the name, description, map identifier, geographic center, map layers, date created, and date last modified of all of the public maps in a Mapbox user's account.

No private maps were exposed as a result of this report as the private maps feature was not available until February 2016. No Mapbox user account data such as email address or billing information was disclosed. This vulnerability only affected public maps stored on www.mapbox.com. Data dynamically loaded on to a Mapbox map via XHR or other means was not affected.

Hussain reported success with the following requests on www.mapbox.com:

  • GET /core/api/Map?list=1&private=1&_type=composite&account=<username>
  • GET /core/api/Map?account=<username>&_object=tm2style&private=1

To take advantage of this vulnerability, an attacker had to supply a valid Mapbox username. They would then make a request to the /core/api/Map endpoint with the query string &account=<victim username>.

We patched this vulnerability by requiring the value of the account query string parameter to match the account name of the user that authenticated the request to this endpoint.

We have chosen partial disclosure of this report due to the presence of sensitive information in the researcher's original report.

Summary by the researcher

API Bug :- Ability to detect users account information

The original report as published on HackerOne, by hussain_0x3c. 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 endpoint did not verify that the authenticated user matched the account name supplied in the request, so any authenticated user could query another user's public map metadata.

Impact

An attacker could enumerate and view metadata of all public maps belonging to any Mapbox user, but private maps and account data such as email or billing information were not exposed.

What the attacker needed

A valid Mapbox username of the victim; an authenticated request to the endpoint

How it was found

  1. Obtain a valid Mapbox username of the target.
  2. Send a GET request to the internal API endpoint with the account parameter set to the victim's username.
  3. Receive details of all public maps in that user's 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.

A website had a hidden web address that returned information about a user's maps. Anyone who knew a username could ask that address for the list, and it would answer without checking whether the person was allowed to see it. This let strangers see the names and locations of public maps, though not private ones.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by hussain_0x3c

View all

10 more disclosed reports, best first.

More from Mapbox

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.