XSS on IOS app via HTML rendering
An HTML file uploaded to the service was rendered in the iOS app, allowing stored cross-site scripting. An attacker could execute script in the app's context or create a fake login form to capture credentials.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 8 months
- Disclosed after 8 months
Summary by the program
@bugdiscloseguys reported an issue to us leading to a stored XSS attack on the iOS app. To be exploitable the victim would have to open a malicious file shared by an adversary with the user.
On request of the reporter, this issue is only disclosed limitedly. While we usually don't agree to disclose limited in this case the report was submitted prior to our policy change about disclosure.
Original report
Hey there After a long time i finally was able to find a bug. So When Someone upload html file it does not render it neither on web nor on android app. What happens is when someone opens html file on IOS app the file actually renders . Though i have not tested it fully i was able to execute xss due to sickness :( So When Someone uploads a malicious file and click on HACK xss popups. And The other thing i wanted to mention is that due to rendering of HTML an attacker can even create a FAKE LOGIN FORM and shared it with victim and can capture credentials. Though i am not good at programming i haven't done much sorry about that. POC File attached with POC of xss. Thanks :)
Proof of concept
<a href="data:text/html;base64,PHNjcmlwdD5hbGVydCgiWFNTIik8L3NjcmlwdD4=">hack</a>
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could run script in the iOS app and could create a fake login form to capture credentials, though the victim must open a shared malicious file.
What the attacker needed
Victim uses the iOS app; victim opens a shared malicious HTML file
How it was found
- Upload an HTML file containing a link with a data URI that holds a script.
- Open the uploaded file in the iOS app.
- Tap the link to trigger the script.
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 report has not been written yet. The Original tab links to the source.
When you upload a file, the app should show it as plain text or download it, not run it as a web page. Here, the iOS app opened HTML files as live web pages, so any script inside them ran. That let an attacker run code in the app or show a fake login screen to steal passwords.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.