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.
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.
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
- Craft a malicious website that contains a deeplink to the shopping app with an arbitrary URL in the message_target_url parameter.
- Victim visits the malicious website, which triggers the deeplink and opens the shopping app.
- 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.