Passenger Information Disclosure Vulnerability Over the MQTT Protocol
The Snapp Taxi driver app received passenger phone numbers over MQTT before the driver accepted a ride, and an attacker could send arbitrary location coordinates to the broker to receive full ride information for all rides in the country.
Published on medium.com
The Snapp super app offers various services, ranging from online food delivery to taxi booking, making the Snapp bug bounty program’s scope quite extensive and attractive. One of the most appealing sections of this program is the online taxi service, which has numerous features and scenarios that can be tested.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the MQTT broker allowed clients to subscribe to ride topics for any location without restricting access to only the driver's current area, and the ride payload included the passenger's phone number before acceptance.
Impact
An attacker could access data from all rides in the country and store the information in a database, creating big data of all Snapp rides.
What the attacker needed
Driver account; ability to intercept MQTT traffic
The fix
The vulnerability was fixed shortly after being reported in 2021.
How it was found
- Open the driver app in an emulator and capture traffic.
- Notice that ride requests do not appear in Burp Suite, then inspect traffic with Wireshark to find MQTT is used.
- Use a tool to proxy and intercept MQTT traffic.
- Observe that the passenger's phone number is included in the ride data sent to the driver.
- Send different location coordinates to the broker to receive ride information for other areas.
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 write-up has not been written yet. The Original tab links to the source.
The taxi app used a messaging system called MQTT to send ride requests to drivers. The app included the passenger's phone number in those messages even before a driver accepted the ride, and anyone could ask the system for rides at any location, not just their own. This meant a person could collect personal data from many rides.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.