The Microsoft Store Uber App Does Not Implement Server-side Token Revocation
The Microsoft Store Uber App does not revoke the x-uber-token on logout, so the token remains valid. An attacker with a previously captured token can still access and modify rider account data.
Originally disclosed on HackerOne
- Disclosed after 27 days
Summary
The Microsoft Store Uber App (Windows Phone Architecture) does not properly revoke or expire a rider's x-uber-token upon app signout.
Security Impact
When a user logs out/signs off of the app, the logout process is handled only locally on the application side, and without any type of x-uber-token revocation or expiration at the Uber customer endpoint. This results in the x-uber-token still being active even after a user has logged out, giving an attacker the ability to access and/or modify all aspects of an Uber Rider's (and potentially Driver's) customer information.
Reproduction Steps
- Login using the Microsoft Store Uber App with an interception proxy to capture the session data. Make a note of the issued x-uber-token.
- Logout of the Microsoft Store Uber App.
- Using the Python POC code below, gain access to the Rider Dispatch View using the x-uber-token issued from Step 1 above:
import requests
response = requests.get( 'https://cn-sjc1.uber.com/rt/riders/1ad0f5c1-1ac0-4c2c-a34a-36f267d7ae6f/dispatch-view', headers={ 'accept-encoding': 'gzip, ' 'deflate', 'accept-language': 'en; ' 'q=1.0, ' 'fr; ' 'q=0.9, ' 'de; ' 'q=0.8, ' 'zh-Hans; ' 'q=0.7, ' 'zh-Hant; ' 'q=0.6, ' 'ja; ' 'q=0.5', 'charset': 'utf-8', 'user-agent': 'client/windows-phone/0.0.0.', 'x-uber-client-name': 'client', 'x-uber-client-version': '6.2.8', 'x-uber-device': 'windows-phone', 'x-uber-device-epoch': '1511637222701', 'x-uber-device-language': 'en', 'x-uber-device-location-altitude': '100', 'x-uber-device-location-latitude': '37.4291076516301', 'x-uber-device-location-longitude': '-77.5513191759734', 'x-uber-device-model': 'LENOVO ' '80TJ', 'x-uber-device-os': '10.0.16299', 'x-uber-token': '5ead9f1ab28780d48f8caa9d41a22973'} )
print(response.text)
Specifics
- [email protected] was the account used for this attack.
- All Uber customer endpoints used by the Microsoft Store Uber App will still accept a x-uber-token as valid, after the user has signed off/logged out of their Microsoft Store Uber App session.
Impact
An attacker with access to a previously used x-uber-token, even after the user has logged out of the Microsoft Store Uber App, can still modify a rider's profile, access previous trip histories, schedule and/or cancel Uber driver dispatches, and access and/or modify stored payment information.
Driver functionality was not tested. If the Uber Driver role is also implemented within the Microsoft Phone Architecture Uber App, then all functionality encapsulated within the app as relates to driver functionality could be observed and/or modified as well.
Given the lack of certificate pinning in the Microsoft Store Uber App, this vulnerability is not theoretical and with x-uber-tokens easily harvested at public WiFi hotspots where the app is being used.
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
Impact
An attacker with a previously used x-uber-token can still modify a rider's profile, access trip histories, schedule or cancel dispatches, and access or modify stored payment information; driver functionality was not tested.
What the attacker needed
Access to a previously used x-uber-token; victim has logged out of the app
The fix
The server should revoke or expire the x-uber-token upon logout.
How it was found
- Log in to the Microsoft Store Uber App while using an interception proxy to capture the session data, and note the issued x-uber-token.
- Log out of the Microsoft Store Uber App.
- Use the captured x-uber-token with a script to access the Rider Dispatch View endpoint.
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 you log out of an app, you expect your session to end. Here, the app only forgets the token on your device, but the server still accepts it. So anyone who copied that token earlier can keep using your account.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.