Skip to content
Info disclosure Disclosed report Beginner

Phone Number Enumeration

An API endpoint used during sign-up to check whether a mobile number already belongs to an account returned different responses for used and unused numbers, allowing an attacker to enumerate all customer phone numbers. The attacker could then use the list for phishing or harassment.

megocode3 Follow

Originally disclosed on HackerOne

  • Disclosed after 54 days

I discovered it is possible to retrieve all Uber's customer's cell phone numbers using an API endpoint.

While going through a sign up form, I noticed that the page was making an ajax call to an API to validate the email address being entered and to make sure it doesn't already belong to an account. I began experimenting with the API and discovered that it will do the same type of validation for mobile numbers.

Response With Unused Mobile Number

curl_unused_number.png
curl_unused_number.png From the original on HackerOne

Response With Used Mobile Number (my cell number)

curl_used_number.png
curl_used_number.png From the original on HackerOne

Using this information, it is very easy to loop through numbers and generate a list of Uber's customer's mobile numbers. I created a simple proof-of-concept in Python showing how this can be done and attached it to this report. (Attachment on the original report: uber_number.py)

This screenshot shows the results of my PoC script after running through a small range of numbers above and below my wife's cell phone number. The 8054528808 number is hers. I have no relationship to the other numbers. Other than checking around my wife's and my cell phone numbers, I did not attempt to extract any other numbers or information.

number_805.png
number_805.png From the original on HackerOne

Here is another screenshot after running the PoC script for numbers just above and below my number (4155083235).

number_415.png
number_415.png From the original on HackerOne

Using this information, an attacker could launch a massive phishing campaign or just harass Uber customers. It would probably also be bad PR if someone were to dump all Uber's customer's cell phone numbers out on to the Internet.

Requiring a CSRF token in the API request would slow the process down considerably, but wouldn't completely eliminate it. Maybe requiring a CSRF token and adding some rate limiting might do it.

Thanks!

  • Seth

The original report as published on HackerOne, by megocode3. 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 API returned distinguishable responses for registered versus unregistered phone numbers, enabling enumeration.

Impact

An attacker could enumerate all customer phone numbers and use them for phishing or harassment; the report suggests a CSRF token and rate limiting would slow but not completely eliminate the attack.

What the attacker needed

Access to the sign-up API endpoint

The fix

The reporter suggests requiring a CSRF token and rate limiting, though this would only slow the process.

How it was found

  1. Notice the sign-up form makes an AJAX call to validate an email address.
  2. Experiment with the API and find it also validates mobile numbers.
  3. Observe different responses for an unused number and a used number.
  4. Write a script to loop through numbers and collect those that are in use.

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 sign up, the site checks if your email or phone number is already registered. The check gave a different answer for numbers that were already in use versus numbers that were not. Because the answers differed, someone could write a script to try many numbers and learn which ones belong to real customers.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Uber

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.