Skip to content
Info disclosure Write-up Intermediate

How I Could Get The Instagram Username of Anyone on Tinder

Tinder's share-profile feature generated a unique share identifier that, when accessed from an Android browser, launched the app and triggered an API request returning user details including the Instagram username. An attacker could obtain the Instagram username of any Tinder user who had connected their Instagram account, without any vulnerability in the traditional sense.

Shahar Albeck Follow

Published on medium.com

{{media:0}}

Shahar Albeck, 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. 5 min read.

Context

This case study is about Tinder's integration of third-party accounts, specifically Instagram, into user profiles. When a user connects an Instagram account to Tinder, the Instagram photos are shown on the Tinder profile page. The researcher stresses from the outset that this is not a vulnerability in the classic sense: no XSS, no open redirect, no CSRF, no IDOR. It is a wrong implementation in how Tinder exposed data through its sharing feature and its API.

The author, Shahar Albeck, published the write-up on 16 July 2019, and notes it was first published on FogMarks.com.

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

Setup

The research was done against Tinder's website and its Android app. No special tooling is described beyond going through the responses returned by the regular Android API calls of the application. A precondition for many actions on Tinder is a premium account, and the author points out that repeating those actions as a premium user costs even more, which makes quality research on paid platforms difficult. The author argues that companies who want their platforms researched should allow full access for free, since funding research is not always feasible for small and individual young security researchers.

The starting motivation was a joke with a friend that the only way he would get a match on Tinder was to find a vulnerability for it. The author then read about earlier Tinder security work: AppSecure's account takeover using Facebook's Account Kit, Checkmarx's finding that some information on Tinder was transferred over HTTP, and IncludeSecurity's disclosure of user location through triangulation using a very accurate location parameter returned to any regular request to the server. The last one impressed the author because of its simplicity: no IDOR, no complex CSRF or XSS, the information was simply there for anyone to take and abuse.

After a few hours of research on the website and the Android app without an interesting lead, the author had to stop because of work commitments and told the friend he would have to get himself an auto-swiper from AliExpress in hope for a match.

Image for post
credit: https://odditymall.com/tinda-finger-robot From the original on medium.com

Finding it

The turning point was recalling IncludeSecurity's article and asking: if Tinder's logic in that case was not very privacy-oriented, what other sensitive information do they pass out in the wild while it should have been kept private?

The lead came from third-party integrations. Tinder integrates with Spotify, Facebook and even some universities. While going through all the responses that came back from regular Android API calls, the author noticed that when a user connects an Instagram account with Tinder, the Instagram photos are shown on the profile page.

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

Exploitation

Step 1: Generate a share link

On the profile page, after tapping the 'Share X's Profile' button, a unique share identifier was generated for that profile. The link looked like this:

Text
https://go.tinder.com/~<UNIQUE_SHARE_ID>-<USER_FIRST_NAME>

The link contains a unique share identifier and the user's first name.

Step 2: Open the link from the web

Accessing this URL from the web version of Tinder did nothing: the request was redirected to https://tinder.com. So the web client did not expose the shared profile data.

Step 3: Open the link from an Android browser

Accessing the same URL from an Android phone's browser launched the Tinder app and initiated a GET request to:

The response to that request contained a lot of details about the user, including the Instagram username. The first name in the original share link is not part of the API call shown.

Root cause

The response for a shared profile contained a lot of details about the user, including the Instagram username. The author frames it as a wrong implementation of the Instagram integration rather than a vulnerability, and notes that the issue was patched.

Why the existing checks did not catch it is only implied. The author believes a QA team did go through the returned data of the API calls, but for the wrong purpose: probably just making sure the returned data is exactly what the front-end UI expects.

Impact

Anyone who obtains a share link for a profile, or the unique share identifier inside it, can retrieve the details returned by the share API for that user, including the Instagram username. The author's title states this applies to anyone on Tinder. The practical condition is that the share identifier has to be known; the report does not describe any way of enumerating or guessing identifiers. The web version of the link does not lead to the data, so the Android path is the one shown.

Fix

The issue has been patched. The author's general recommendation is to go through the returned data of all the supported API calls and make sure that non-private information is being handed over. The author also argues that the QA stage before version releases is not enough, however large and comprehensive it may be, and that having a red team is crucial for the safety of the about-to-be-released product and its users.

Variants to test

  1. Share and invite links on other apps: generate a share link for your own profile, open it from both the web and the mobile app, and capture the API call the app makes. A positive result is a response that contains fields the sharing UI never displays, such as linked social accounts, contact details or internal identifiers.
  2. Third-party account integrations: connect a social account (Instagram, Spotify, Facebook) and inspect every API response that mentions the profile. A positive result is the linked account's username or other identifiers appearing in responses beyond the profile owner's own session.
  3. Identifier handling in share endpoints: compare what the web client and the mobile client receive for the same share identifier. A positive result is the mobile path returning a richer object than the web path, as happened here.
  4. Response field review across supported API calls: enumerate the regular API calls of the mobile app and diff the returned fields against what the front-end actually renders. A positive result is any field that is sensitive and unused by the UI.

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.

What happened, in plain words

Tinder is a dating app. You create a profile, add photos and a short description, and swipe on other people's profiles. Tinder also lets you connect other accounts, such as Instagram, so that your Instagram photos appear on your Tinder profile. That connection is convenient, but it means Tinder's servers hold information about your Instagram account, including your Instagram username.

This case study is about a feature that lets you share someone's profile with a link. When you tap a share button, Tinder creates a special link for that profile. The link contains a long, unique code. If you open that link in a normal web browser on a computer, nothing useful happens: you are sent to the Tinder home page. But if you open the same link in a browser on an Android phone, the Tinder app opens and makes a request to Tinder's API. The API is the part of Tinder's servers that the app talks to. The response to that request contained a lot of information about the profile, including the person's Instagram username.

The author, Shahar Albeck, is careful to say that this is not a classic security vulnerability such as cross-site scripting (XSS), an open redirect, cross-site request forgery (CSRF) or insecure direct object reference (IDOR). It is a wrong implementation of the Instagram integration. The issue was patched. The write-up was published on 16 July 2019 and first appeared on FogMarks.com.

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

Background and setup

The research was done against Tinder's website and its Android app. The only technique described is looking through the responses that came back from the app's regular API calls. An API call is simply a request that the app sends to Tinder's servers, and the response is the data the server sends back. Think of it like ordering at a restaurant: you ask for a dish (the request), and the kitchen sends back a plate (the response). Here, the researcher was reading the plates.

A practical obstacle is that many actions on Tinder require a premium account, and repeating those actions as a premium user costs even more. The author argues that this makes quality research on paid platforms difficult, and that companies who want their platforms researched should allow full access for free, because funding research is not always feasible for small and individual young security researchers.

The starting point was a joke with a friend: the only way the friend would get a match on Tinder was to find a vulnerability for it. The author then read about earlier Tinder security work. AppSecure had found a way to take over Tinder accounts using Facebook's Account Kit. Checkmarx had found that some information on Tinder was transferred over HTTP, which is the unencrypted version of the web protocol. IncludeSecurity had disclosed how Tinder users' locations could be worked out through triangulation, using a very accurate location parameter that was returned to any regular request to the server. That last one impressed the author because of its simplicity: no IDOR, no complex CSRF or XSS. The information was simply there for anyone to take and abuse.

After a few hours of research on the website and the Android app without an interesting lead, the author had to stop because of work commitments and told the friend he would have to get himself an auto-swiper from AliExpress in hope for a match.

Image for post
credit: https://odditymall.com/tinda-finger-robot From the original on medium.com

Finding the lead

The turning point was recalling IncludeSecurity's article and asking: if Tinder's logic in that case was not very privacy-oriented, what other sensitive information do they pass out in the wild while it should have been kept private?

The lead came from third-party integrations. Tinder integrates with Spotify, Facebook and even some universities. While going through all the responses that came back from regular Android API calls, the author noticed that when a user connects an Instagram account with Tinder, the Instagram photos are shown on the profile page.

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

Exploitation, step by step

Step 1: Generate a share link

On the profile page, after tapping the 'Share X's Profile' button, a unique share identifier was generated for that profile. The link looked like this:

Text
https://go.tinder.com/~<UNIQUE_SHARE_ID>-<USER_FIRST_NAME>

This is a URL, the address you type into a browser. The part go.tinder.com is Tinder's sharing domain. The part ~<UNIQUE_SHARE_ID> is a placeholder for a long code that is unique to that profile. The part -<USER_FIRST_NAME> is a placeholder for the person's first name. The angle brackets are not literal; they show where the real values go. The link contains a unique share identifier and the user's first name.

Step 2: Open the link from the web

Accessing this URL from the web version of Tinder did nothing: the request was redirected to https://tinder.com. A redirect is when a server tells your browser to go to a different address. So the web client did not expose the shared profile data. This step matters because it shows that the data was not available through the ordinary web page; the researcher had to try another path.

Step 3: Open the link from an Android browser

Accessing the same URL from an Android phone's browser launched the Tinder app and initiated a GET request to:

A GET request is the basic way a browser or app asks a server for something, like asking a shop assistant to show you an item. api.gotinder.com is the address of Tinder's API server. The path /user/share/~<UNIQUE_SHARE_ID> identifies the shared profile. Notice that the first name from the original share link is not part of this API call. The response to that request contained a lot of details about the user, including the Instagram username.

Why it happened

The response for a shared profile contained a lot of details about the user, including the Instagram username. The author frames it as a wrong implementation of the Instagram integration rather than a vulnerability, and notes that the issue was patched.

Why the existing checks did not catch it is only implied. The author believes a QA team did go through the returned data of the API calls, but for the wrong purpose: probably just making sure the returned data is exactly what the front-end UI expects. QA stands for quality assurance, the testing that happens before a release.

Impact

Anyone who obtains a share link for a profile, or the unique share identifier inside it, can retrieve the details returned by the share API for that user, including the Instagram username. The author's title states this applies to anyone on Tinder. The practical condition is that the share identifier has to be known; the report does not describe any way of enumerating or guessing identifiers. The web version of the link does not lead to the data, so the Android path is the one shown.

Fix and lessons

The issue has been patched. The author's general recommendation is to go through the returned data of all the supported API calls and make sure that non-private information is being handed over. The author also argues that the QA stage before version releases is not enough, however large and comprehensive it may be, and that having a red team is crucial for the safety of the about-to-be-released product and its users. A red team is a group whose job is to attack a product on purpose, the way a real attacker would, before it is released.

Variants to test

  1. Share and invite links on other apps: generate a share link for your own profile, open it from both the web and the mobile app, and capture the API call the app makes. A positive result is a response that contains fields the sharing UI never displays, such as linked social accounts, contact details or internal identifiers.
  2. Third-party account integrations: connect a social account (Instagram, Spotify, Facebook) and inspect every API response that mentions the profile. A positive result is the linked account's username or other identifiers appearing in responses beyond the profile owner's own session.
  3. Identifier handling in share endpoints: compare what the web client and the mobile client receive for the same share identifier. A positive result is the mobile path returning a richer object than the web path, as happened here.
  4. Response field review across supported API calls: enumerate the regular API calls of the mobile app and diff the returned fields against what the front-end actually renders. A positive result is any field that is sensitive and unused by the UI.

Glossary

  • API: the part of a service's servers that an app or website talks to, sending requests and receiving responses.
  • API call: a single request sent to an API, and the response that comes back.
  • CSRF (cross-site request forgery): an attack that tricks a logged-in user's browser into sending a request the user did not intend.
  • GET request: the basic HTTP method used to ask a server for a resource, such as a page or a piece of data.
  • HTTP: the protocol used to transfer web pages and API data; the unencrypted version of HTTPS.
  • IDOR (insecure direct object reference): a flaw where changing an identifier in a request lets you access someone else's data.
  • Open redirect: a flaw where a site sends users to an address supplied by an attacker.
  • Premium account: a paid Tinder subscription that unlocks extra features.
  • QA (quality assurance): the testing stage before a product is released, intended to catch defects.
  • Red team: a group that deliberately attacks a product to find weaknesses before real attackers do.
  • Redirect: a server instruction telling a browser to go to a different address.
  • Share identifier: a unique code in a share link that identifies a particular profile.
  • Third-party integration: a feature that connects one service with another company's service, such as Tinder with Instagram.
  • Triangulation: working out a location by combining several measurements or data points.
  • URL: the address of a resource on the web, such as a page or an API endpoint.
  • XSS (cross-site scripting): a flaw that lets an attacker run their own code in another user's browser.

More by Shahar Albeck

View all

2 more disclosed reports, best first.

More from Tinder

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.