Skip to content
Mobile Write-up Intermediate

Shopping App Deeplink Arbitrary URLs

The shopping app's MainTabActivity did not sanitise URLs passed through a deeplink, allowing an attacker to launch arbitrary URLs in the app's internal web view. A crafted website or malware app could exploit this to load malicious content within the trusted app context.

Neil Mark Ochea Follow

Published on nmochea.medium.com

In this write-up, I’ll tell you how I was able to launch Arbitrary URLs to the internal web of the shopping application.

Neil Mark Ochea / mhl_0xnmo, on nmochea.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 app did not validate or sanitise the URL parameter (message_target_url) before loading it in the internal web view.

Impact

An attacker could launch arbitrary URLs in the app's internal web view, potentially leading to phishing or other attacks, though UXSS was blocked by an additional host filter.

What the attacker needed

Victim clicks a link or has a malicious app installed

The fix

The vulnerability was patched according to the disclosure timeline.

How it was found

  1. Craft a malicious website that contains a deeplink to the shopping app with an arbitrary URL in the message_target_url parameter.
  2. Victim visits the malicious website, which triggers the deeplink and opens the shopping app.
  3. The shopping app loads the arbitrary URL in its internal web view.

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.

A deeplink is a special link that opens a specific screen inside a mobile app. The app failed to check what web address was being opened, so an attacker could make the app show any website they wanted, even a malicious one. This could trick users or steal data because the app trusts its own internal browser.

What is Mobile?

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

More by Neil Mark Ochea

View all

7 more disclosed reports, 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.