Skip to content
Info disclosure Write-up Beginner

How i found massive information disclosure of 1500 famous people

The mobile app hardcoded a token that allowed unauthenticated access to an internal system, exposing personal data of over 1400 famous people. An attacker could read this sensitive information without logging in.

Valeriy Shevchenko Follow

Published on medium.com

{{media:0}}

Valeriy Shevchenko, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

This is a story about a native mobile application for iOS and Android, published on a special web page in the form of beta versions. The researcher describes himself as a fan of the company behind it, which lets a person order sponsorship items anywhere in the world. The app talks to a server side, and behind that server sits an internal system holding data the app needs to display. The number of downloads was small: on Android, near 1000 to 5000. The researcher argues that this is still enough for the seriousness of the problem.

The write-up is about several weaknesses found in the same application: no HTTPS, a login form with no protection against brute-force, a hardcoded token that grants read access to the internal system, a misconfigured push notification service, and no division of roles. The headline finding is the information disclosure: personal data about famous people who interact with the company, first 170 of them, then a complete list of 1454.

Valeriy Shevchenko
Valeriy Shevchenko From the original on medium.com

Setup

No accounts, roles or special tools are described. The researcher did not log in at any point; that is central to the story. He first looked at how the application communicates with the server side and, most importantly, with which server it works. He then picked the server for vulnerabilities. The only precondition for the main finding is installing and launching the app.

Finding it

Two observations started the investigation.

First, the researcher found no HTTPS protocol in the app's communication with the server. That was already strange to him.

Second, while he was busy with his main job and had practically no time to work on this, the application reminded itself: it sent him a push notification. It was not just a notification. It was an information message about a newly published article, carrying the title of that article from the internal system.

Image for post
Image for post From the original on medium.com
Image for post
Image for post

That raised two questions for him. A notification cannot so easily come to an unauthorised user, since he had never logged into the app; he had just opened it and moved it to the background. And he received notification text from the internal system, to which he had no access at all.

His hypothesis was that he might have a token to the system which he could reuse to read something from the internal system. It turned out as he thought, and in fact much worse than he thought.

Image for post
Image for post From the original on medium.com

Exploitation

Step 1: watch the two requests at launch

When the application launches, it sends a request to the internal system to read the data that needs to be displayed. The first request from the application comes back with a 401 error, which the researcher considers reasonable, since the user is unauthorised. The app then quickly sends another request, this time with a token that is hardcoded into the app, and gets a 200 from the server side. The consequence: without any input of login and password, you can read data from the internal system.

In his first approach to analysing the application, the researcher simply did not check the value of the two requests and, most importantly, did not check the size of the response from the server. On the screenshot it is on the right side of the red arrow: several megabytes of data in JSON format.

Step 2: read the JSON

A typical application launch displays a splash screen with the logo. Loading this screen goes in parallel with obtaining a JSON response with information from the internal system. The app then asks the user for some password data. If the user is logged in, he can work with the received data. But the researcher did not need to be an ordinary user: he could open the received JSON and see what was there.

On a cursory examination of the JSON file he found a full disclosure of personal data about 170 famous people who interact with the company: personal phones, e-mail addresses, emergency phone numbers through friends or parents, full names and full personal information about managers of those famous personalities.

Image for post
Image for post From the original on medium.com

Step 3: play with the request parameters

Having played around with the parameters of the request used to receive this JSON file, he managed to get an absolutely complete list of famous people with whom the company interacts: 1454 people.

Image for post
Image for post From the original on medium.com

He also managed to pull out the full list of ads from the internal system, for example announcements of new products from the company, or, as in this case, the presentation of the app itself, which had been safely revealing all the data for 2 to 3 months.

Image for post
Image for post From the original on medium.com

Step 4: report it

To report, the researcher did his best and found a person directly responsible for security in the company. LinkedIn was the only thing that really helped him; through all other ways of communication he either received no answer at all. After a couple of days, both applications were removed from public access. The tokens hardcoded in the app still left the possibility of reading data from the internal system, but all sensitive data had been carried outside the internal system.

He also raised a claim with the security person that the company had no [redacted] mailbox: he had tried to write there and received a mail-daemon. In response he was told that there was a box, and it is called [redacted]

Image for post
Image for post From the original on medium.com

Step 5: understand the push notification

The push notification was the first information disclosure. Its cause is extremely simple: a mistake in configuring the push notifications service. For these notifications the company used a third-party service. To work with it you must have a REST API key for the notification service and your app API key. It is configured according to the instructions from the official website, but no one managed.

What did they do instead? Hardcoded in the application everything necessary to work. When you start the application, it takes a 200-ok from the service that sends these notifications.

Image for post
Image for post From the original on medium.com

Root cause

One mistake is that the application was given a unique token to read data from the internal system, and that token was hardcoded into the iOS and Android app. The researcher notes that the token was encoded over and over again in base64, which does not help: encoding is not protection. Because the token ships inside the binary, every installation carries the key to the internal system, and at launch the app retries with that token after a 401.

On top of that, there is no division of roles in the application: any user can read anything from the internal system. The push notification problem has a separate root cause, a misconfigured third-party notification service whose REST API key and app API key were hardcoded in the application rather than handled properly.

The 401 on the first request is followed by a retry with the embedded token that returns 200.

Impact

An unauthenticated user who installs the app can read data from the internal system. In the first JSON response this meant full personal data about 170 famous people: personal phones, e-mail addresses, emergency phone numbers through friends or parents, full names and full personal information about their managers. By changing request parameters, the researcher obtained the complete list of 1454 people. He could also pull the full list of ads from the internal system. The app presentation had been revealing all the data for 2 to 3 months.

The push notification issue is a separate disclosure: an unauthorised user who never logged in received internal system content, here the title of a newly published article, because the notification service credentials were embedded in the app.

The researcher also lists, without demonstrating them further, that the app did not use HTTPS and that the login form had no protection against brute-force; he estimates the combination of passwords in the application at approximately 10,000 and says it moves fast enough. He deliberately did not carry out a brute-force attack.

Fix

After the report, both applications were removed from public access and all sensitive data was carried outside the internal system. The hardcoded tokens still left the possibility of reading data from the internal system, so that part was not fully resolved at the time of writing. The researcher suspects the missing HTTPS will not be fixed.

What should have been done, in his framing, is testing: these development and design mistakes should have been found before release. In his framing, testing should have found these development and design mistakes before release.

Variants to test

  1. Launch any mobile app with an intercepting proxy and watch the first requests. A positive result is a 401 followed immediately by a retry carrying a token you never supplied, returning 200 with a body far larger than the screen needs.
  2. Check the size of every response, not just its status. A positive result is a multi-megabyte JSON body delivered before any login prompt.
  3. Fuzz the parameters of a data-fetching request that already returns records. A positive result is the record count growing beyond what the UI shows, up to a complete list.
  4. Decode strings in the app binary, including repeated base64 layers. A positive result is a token or API key that the app uses against a backend or a third-party service.
  5. Install the app and never log in, then wait for push notifications. A positive result is content from an internal system arriving to an unauthenticated device.
  6. Try the obvious security contact address and note the bounce, then ask the vendor for the real one. A positive result is a working disclosure channel, or confirmation that none exists.

Chronology as given: 29 June, first report sent; 30 June, all issues confirmed; 7 July, reward offered; 10 July, all issues fixed; 27 July, the researcher chose a trip to Amsterdam for an event as the reward.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 13 min read.

What happened, in plain words

A security researcher installed a mobile app for iOS and Android that a company had published on a special web page as a beta version. The app lets a person order sponsorship items anywhere in the world. He was a fan of the company, so he decided to look at how the app talks to its servers.

What he found was not one bug but several. The most serious one: the app carried a secret key inside itself, and that key let anyone who installed the app read data from the company's internal system without logging in. The data included personal information about famous people who work with the company: first 170 of them, and after a small change to the request, a complete list of 1454.

He also found that the app did not use HTTPS, that its login form had no protection against guessing passwords, that a third-party push notification service was set up incorrectly, and that the app had no division of roles, meaning any user could read anything.

He reported it, the company confirmed the issues, and he chose a trip to Amsterdam as a reward. This article walks through the whole story from zero, explaining every term as it appears.

Valeriy Shevchenko
Valeriy Shevchenko From the original on medium.com

Some background concepts first

Before the story, a few ideas that come up again and again. If you already know them, skip ahead.

  • Server: a computer somewhere on the internet that stores data and answers requests from apps and browsers. Think of it as a shop counter: you ask, it hands something over.
  • Client: the program on your side that asks the server for things. Here, the mobile app is the client.
  • Request and response: the client sends a request (a question), the server sends back a response (the answer). Every time you open a web page, your browser sends a request and gets a response.
  • HTTPS: the secure version of the protocol browsers and apps use to talk to servers. The S stands for secure. With HTTPS, the conversation is encrypted, so someone watching the network cannot read it. Without it, the conversation travels in plain text, like a postcard instead of a sealed letter.
  • API: a defined way for one program to ask another program for data or actions. Think of a restaurant menu: it lists exactly what you can order and how to ask for it. An API is the menu a server offers to apps.
  • Token: a long string of characters that acts like a key or a wristband at an event. If you show the right token, the server lets you in without asking for a username and password again. A token is a secret: anyone who has it can use it.
  • Hardcoded: written directly into the program's code, so it ships inside the app itself. If a secret is hardcoded, everyone who installs the app gets a copy of that secret.
  • JSON: a text format for structured data, easy for programs to read. It looks like lists and labelled values, similar to a very tidy notebook.
  • HTTP status codes: three-digit numbers a server sends back to say how the request went. 200 means OK, everything worked. 401 means unauthorised, you are not allowed in.
  • Information disclosure: a vulnerability class where data that should be private becomes readable by someone who should not see it. The bug is not that the data is stolen by force; it is that the door was left open.
  • Brute-force: guessing a password by trying many combinations quickly, like trying every key on a big ring until one opens the lock.
  • Push notification: the little message that pops up on your phone from an app, even when the app is not open.
  • Base64: a way of turning data into a string of letters and digits. It is encoding, not encryption: anyone can decode it. It is like writing a message in a different alphabet, not locking it in a box.
  • Splash screen: the logo screen an app shows while it is starting up.
  • Binary: the file you install on your phone. It contains the app's code and anything hardcoded into it.

The setup

The app was published on a special web page in the form of beta versions. Beta means an early release, still being tested. The number of downloads was small: on Android, near 1000 to 5000. The researcher argues that this is still enough for the seriousness of the problem.

He did not use any accounts, roles or special tools. He never logged in at any point, and that is central to the story. He first looked at how the application communicates with the server side and, most importantly, with which server it works. He then picked the server for vulnerabilities. The only precondition for the main finding is installing and launching the app.

Image for post
Image for post From the original on medium.com

Finding it

Two observations started the investigation.

First, the researcher found no HTTPS protocol in the app's communication with the server. That was already strange to him.

Second, while he was busy with his main job and had practically no time to work on this, the application reminded itself: it sent him a push notification. It was not just a notification. It was an information message about a newly published article, carrying the title of that article from the internal system.

Image for post
Image for post From the original on medium.com

That raised two questions for him. A notification cannot so easily come to an unauthorised user, since he had never logged into the app; he had just opened it and moved it to the background. And he received notification text from the internal system, to which he had no access at all.

His hypothesis was that he might have a token to the system which he could reuse to read something from the internal system. It turned out as he thought, and in fact much worse than he thought.

Image for post
Image for post From the original on medium.com

Exploitation

Step 1: watch the two requests at launch

When the application launches, it sends a request to the internal system to read the data that needs to be displayed. The first request from the application comes back with a 401 error, which the researcher considers reasonable, since the user is unauthorised. The app then quickly sends another request, this time with a token that is hardcoded into the app, and gets a 200 from the server side. The consequence: without any input of login and password, you can read data from the internal system.

In his first approach to analysing the application, the researcher simply did not check the value of the two requests and, most importantly, did not check the size of the response from the server. On the screenshot it is on the right side of the red arrow: several megabytes of data in JSON format.

Why does this matter? A 401 followed by a 200 is like a bouncer saying no at the door, then the same person walking in through a side entrance with a staff badge. The app was retrying with a hardcoded token that every installation carried.

Step 2: read the JSON

A typical application launch displays a splash screen with the logo. Loading this screen goes in parallel with obtaining a JSON response with information from the internal system. The app then asks the user for some password data. If the user is logged in, he can work with the received data. But the researcher did not need to be an ordinary user: he could open the received JSON and see what was there.

On a cursory examination of the JSON file he found a full disclosure of personal data about 170 famous people who interact with the company: personal phones, e-mail addresses, emergency phone numbers through friends or parents, full names and full personal information about managers of those famous personalities.

Image for post
Image for post From the original on medium.com

Notice the order: the data arrived before the login prompt, so it was already on the phone by the time the app asked for a password.

Step 3: play with the request parameters

Having played around with the parameters of the request used to receive this JSON file, he managed to get an absolutely complete list of famous people with whom the company interacts: 1454 people.

Image for post
Image for post From the original on medium.com

Parameters are the extra pieces of information attached to a request, like the filters on a shopping site (size, colour, page number). By changing them, the researcher obtained the complete list of 1454 people.

He also managed to pull out the full list of ads from the internal system, for example announcements of new products from the company, or, as in this case, the presentation of the app itself, which had been safely revealing all the data for 2 to 3 months.

Image for post
Image for post From the original on medium.com

Step 4: report it

To report, the researcher did his best and found a person directly responsible for security in the company. LinkedIn was the only thing that really helped him; through all other ways of communication he either received no answer at all. After a couple of days, both applications were removed from public access. The tokens hardcoded in the app still left the possibility of reading data from the internal system, but all sensitive data had been carried outside the internal system.

He also raised a claim with the security person that the company had no [redacted] mailbox: he had tried to write there and received a mail-daemon. In response he was told that there was a box, and it is called [redacted]

Image for post
Image for post From the original on medium.com

A mail-daemon is the automatic bounce message you get when an email address does not exist. Finding the right person to tell is often harder than finding the bug, and here LinkedIn was the only channel that worked.

Step 5: understand the push notification

The push notification was the first information disclosure. Its cause is extremely simple: a mistake in configuring the push notifications service. For these notifications the company used a third-party service. To work with it you must have a REST API key for the notification service and your app API key. It is configured according to the instructions from the official website, but no one managed.

What did they do instead? Hardcoded in the application everything necessary to work. When you start the application, it takes a 200-ok from the service that sends these notifications.

Image for post
Image for post From the original on medium.com

Think of the third-party notification service as a courier company. To send parcels you need an account number and a password with the courier. Instead of keeping those in a safe place on the server, the company printed them on every parcel label, so anyone holding a parcel could send messages in the company's name. That is why an unauthorised user received internal content.

Root cause

One mistake is that the application was given a unique token to read data from the internal system, and that token was hardcoded into the iOS and Android app. The researcher notes that the token was encoded over and over again in base64, which does not help: encoding is not protection. Because the token ships inside the binary, every installation carries the key to the internal system, and at launch the app retries with that token after a 401.

On top of that, there is no division of roles in the application: any user can read anything from the internal system. The push notification problem has a separate root cause, a misconfigured third-party notification service whose REST API key and app API key were hardcoded in the application rather than handled properly.

The 401 on the first request is followed by a retry with the embedded token that returns 200.

Impact

An unauthenticated user who installs the app can read data from the internal system. In the first JSON response this meant full personal data about 170 famous people: personal phones, e-mail addresses, emergency phone numbers through friends or parents, full names and full personal information about their managers. By changing request parameters, the researcher obtained the complete list of 1454 people. He could also pull the full list of ads from the internal system. The app presentation had been revealing all the data for 2 to 3 months.

The push notification issue is a separate disclosure: an unauthorised user who never logged in received internal system content, here the title of a newly published article, because the notification service credentials were embedded in the app.

The researcher also lists, without demonstrating them further, that the app did not use HTTPS and that the login form had no protection against brute-force; he estimates the combination of passwords in the application at approximately 10,000 and says it moves fast enough. He deliberately did not carry out a brute-force attack.

Fix

After the report, both applications were removed from public access and all sensitive data was carried outside the internal system. The hardcoded tokens still left the possibility of reading data from the internal system, so that part was not fully resolved at the time of writing. The researcher suspects the missing HTTPS will not be fixed.

What should have been done, in his framing, is testing: these development and design mistakes should have been found before release. In his framing, testing should have found these development and design mistakes before release.

Variants to test

If you want to look for similar problems yourself, here are the same ideas in beginner terms. Each one describes what to do and what a positive result looks like.

  1. Launch any mobile app with an intercepting proxy and watch the first requests. A proxy is a tool that sits between your phone and the internet and lets you read the traffic. A positive result is a 401 followed immediately by a retry carrying a token you never supplied, returning 200 with a body far larger than the screen needs.
  2. Check the size of every response, not just its status. A positive result is a multi-megabyte JSON body delivered before any login prompt.
  3. Fuzz the parameters of a data-fetching request that already returns records. Fuzzing means changing values on purpose to see how the server reacts. A positive result is the record count growing beyond what the UI shows, up to a complete list.
  4. Decode strings in the app binary, including repeated base64 layers. A positive result is a token or API key that the app uses against a backend or a third-party service.
  5. Install the app and never log in, then wait for push notifications. A positive result is content from an internal system arriving to an unauthenticated device.
  6. Try the obvious security contact address and note the bounce, then ask the vendor for the real one. A positive result is a working disclosure channel, or confirmation that none exists.

Chronology

Date What happened
29 June First report was sent
30 June All issues were confirmed
7 July Reward was offered
10 July All issues were fixed
27 July The researcher chose a trip to Amsterdam for an event as the reward

Glossary

  • API: a defined way for one program to ask another for data or actions, like a menu of what you can order.
  • API key: a secret string that identifies an app to a service and proves it is allowed to use it.
  • Base64: an encoding that turns data into letters and digits. Anyone can decode it; it is not encryption.
  • Beta version: an early release of an app, still being tested before a full public launch.
  • Binary: the installable file of an app, containing its code and anything hardcoded into it.
  • Brute-force: guessing a password by trying many combinations quickly.
  • Client: the program on your side that asks a server for things, here the mobile app.
  • Hardcoded: written directly into the program's code so it ships inside the app.
  • HTTPS: the encrypted version of the protocol used to talk to servers, so others on the network cannot read the conversation.
  • Information disclosure: a vulnerability where private data becomes readable by someone who should not see it.
  • Internal system: the company's private backend holding data the app displays but users should not freely access.
  • JSON: a text format for structured data, made of lists and labelled values.
  • Mail-daemon: the automatic bounce message you get when an email address does not exist.
  • Parameters: extra pieces of information attached to a request, like filters on a shopping site.
  • Proxy (intercepting): a tool that sits between your device and the internet and lets you read the traffic.
  • Push notification: a message that pops up on your phone from an app, even when the app is not open.
  • Request and response: the question a client sends and the answer a server sends back.
  • REST API key: a secret string used to authenticate to a web service, here the third-party notification service.
  • Server: a computer on the internet that stores data and answers requests.
  • Splash screen: the logo screen an app shows while starting up.
  • Status code: a three-digit number a server returns to say how a request went, such as 200 (OK) or 401 (unauthorised).
  • Token: a secret string that acts like a key, letting the holder access a system without a username and password.
  • Unauthorised user: someone who has not logged in and has no account access.
  • Vulnerability: a weakness in software that can be used to make it behave in ways its makers did not intend.

More by Valeriy Shevchenko

View all

11 more disclosed reports, best first.

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.