Hidden Reflected XSS via Android Application in VDP
An endpoint in an Android application accepted a file location parameter that caused the app to redirect to an attacker-controlled site. By supplying a javascript: URL in that parameter, an attacker could execute script in the context of the application page.
Initially, I selected one vdp and began examining its scope. It had a very limited scope, covering only one domain and its Android and iOS applications.
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 file location parameter was passed to a redirect without validating that the destination was a safe, allowed URL.
Impact
An attacker could craft a link that runs script in the application page, which could be used to act as the victim, though the text does not demonstrate any specific data theft.
What the attacker needed
Victim clicks a crafted link; a free account
The fix
The issue was fixed within 24 hours according to the author.
How it was found
- Create an account and crawl the web application.
- Analyse the Android application in Android Studio and find the endpoint with a file location parameter.
- Copy the request path from Burp Suite and open it in a browser console.
- Replace the file location value with an external domain and observe the redirect.
- Replace the value with a javascript: URL and observe the script execute.
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 redirect is when a website sends your browser to a different address. Here the app trusted a value from the URL and sent users anywhere, including to a special javascript: address that runs code in the page. That let an attacker run their own script when a victim opened a crafted link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.