Skip to content
Mobile Write-up Intermediate

HOW I HACKED BILLION ANDROID USERS SOCIAL AND 3rd PARTY ACCOUNT | A STORY ABOUT 5000$ BUG |…

A malicious Android app could register a deep link handler for a custom scheme and, after the user chose 'Always' once, later updates could silently intercept any link of that scheme without a prompt. This allowed the attacker to capture password reset links, tokens and other sensitive data sent via deep links.

Karthikeyan.V Follow

Published on medium.com

Android has a component called app link to say it exactly it’s called deep link which is specifically developed for triggering any mobile application. As mentioned earlier, even if the app is updated it is possible to hijack it. how a researcher exploits it is … when an attacker develops an app he develops it with a…

Karthikeyan.V, 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.

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 Android deep link handling did not re-validate the user's 'always' choice when the app was updated, allowing the app to expand its link handling without a new prompt.

Impact

An attacker could intercept password reset links, two-factor codes, email verification tokens and other sensitive data sent via deep links, potentially taking over accounts.

What the attacker needed

Victim installs malicious app; victim chooses 'Always' for a link; attacker releases an update

The fix

The text states the issue was fixed by the Android security team on 2 February 2021, but does not describe the fix.

How it was found

  1. The researcher builds a malicious app with a deep link handler for his own domain.
  2. When a user clicks a link, Android shows a prompt to choose 'Just once' or 'Always'.
  3. The user selects 'Always', so the malicious app opens automatically for that link.
  4. The researcher modifies the app to also handle any app link, not just his domain.
  5. He releases an update on Google Play, and users install it.
  6. After the update, any link of that type triggers the malware without a prompt.

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.

Deep links are special web addresses that open a specific app instead of a website. Android asks you once whether to always open a certain type of link in a particular app. The bug meant that after you said 'always' for one link, a later update to that app could quietly start handling every link of that type, so the app could steal things like password reset links.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

More by Karthikeyan.V

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.