This is how i was able to Permanently Crash all Mapillary users within minutes
Hello everyone! Myself Abhishek Pathak from Gorakhpur, Uttar Pradesh, I’m 17 years old. This is my first Bug Bounty from Facebook Social Media Platform (Meta, Inc)
Mapillary is a street level imagery platform acquired by Facebook (Meta, Inc) in June 2020, It combines street images from any camera into a visualisation to improve maps.
This bug could allow an attacker to remotely permanent crash Mapillary Android app users by supplying their account’s UID (Unique ID).
An attacker can crash it’s main feature called “Capture” and “Organization” options of a particular user without doing any interaction. Which can permanently stop an user to capture and upload images.
Story and Repro Steps
One day i was talking to my friend Mayur Fartade, He told me about Facebook’s new acquisition “Mapillary” that got listed in their Bug Bounty page. So, i instantly took my laptop and started digging it.
After some time i saw a feature called “Organization” which allows users to create their own private organization and add members to contribute.
After sometime, clicked “Edit Name” and typed random lengthy stuffs (as i was bored) and submitted it. But unfortunately i was not able to change it’s name due to max length limit set in input box.
PS: This bug applies to both input box (Name and Description) so screenshots may vary.
As it was client side error so i thought let’s try if it throws the same error by server side too.
Entered a short text in the input box, submitted by clicking “Change” and intercepted the request.
While intercepting i got this POST request with JSON body, So sent it to repeater for testing.
Where [ORG_ID] is the Organization ID, [REDACTED] is query, [D_TEXT] is description text value and [N_TEXT] is name text value.
As max length for description was 160 characters and 15 characters for name, So i entered lengthy characters for description and name, pressed send request and got this response.
So i immediately checked my Organization page and Guess what? The max length limitation was not implemented on the server.
But wait, What’s the impact of doing this? First question came in my mind before submitting the report, “Triager might mark this bug as Informative or N/A, as there is no Impact. So i have to find a good impact first, Then i’m ready to go!”
After searching for sometime, I found that Json Parsing Exception can crash Android apps.
So, downloaded Mapillary android application and logged in my secondary Mapillary test account.
Added that secondary test account into my Organization to check whether it shows or not.
A new organization account was added into “Organization” section on my secondary account. Also got to know that, organization is connected with it’s main feature Called “Capture” because it is required to upload images.
I was pretty sure that this app can be crashed easily by triggering Json Parser Exception. So, Now let’s begin!
Coded a Python script which creates 30 dummy organization accounts, renames description and name with a large Json Payload or Malformed big/lengthy text.
Created another Python script which adds a targeted user by UID to those all 30 dummy organization. Later added my secondary test account using it.
Now when i opened my Mapillary app and clicked “Capture” button, Boom! This happened.
It got remotely crashed, Now this affected user can’t access this main feature via an Android smartphone anymore.
It was a permanent crash, As there was no feature to remove yourself from someone’s organization.
After few days i got a way to scrape UID of almost all Mapillary users by intercepting requests of street images and checking responses for uploader/owner UID.
02 Oct 2021 — Initial Report
03 Oct 2021 — Triaged
06 Oct 2021 — Fixed
06 Oct 2021 — Confirmation of Fix
11 Oct 2021 — Bounty Awarded $$$
20 Oct 2021 — Updated Hall of Fame
Thank you for reading this write-up!
You can follow me on Twitter @pathleax