Blind Stored XSS on iOS App due to Unsanitized Webview
An iOS app rendered attacker-supplied HTML in a WebView with JavaScript enabled, so a stored payload executed when the victim opened the shared file. The attacker could then extract information from the victim such as IP address, location and operating system.
- Triaged in 7 days
- Fixed in 7 months
- Paid in 7 months
- Disclosed after 10 months
Summary by the researcher
I found this bug while try to learn from awesome Blind XSS writeup from omespino. As a newbie, all I have to do is following his writeup. Every payload material that I used is credited to him.
The report
Hi Team!
I found a Blind XSS can executed on iOS App due to unsanitized webview. Using this issue, attacker can extract information from victim.
##Steps To Reproduce:
- Upload malicious HTML, share to victim
- Waiting victim to open it


HTML payload attached, don't forget to change IP Address to yours.
Recomendation: Disabling Javascript on Webview Reference: https://developer.apple.com/documentation/webkit/wkpreferences#//apple_ref/occ/instp/WKPreferences/javaScriptEnabled
Impact
In this PoC, attacker can extract information from victim such as IP Address, Location, OS.
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
Root cause
Likely the app loaded user-supplied HTML in a WebView without sanitising it and with JavaScript enabled.
Impact
In the proof of concept the attacker could extract victim information such as IP address, location and OS; the report does not show whether any defence limited this.
What the attacker needed
Victim opens the shared HTML file; attacker can upload and share HTML
The fix
JavaScript should be disabled in the WebView, as the reporter recommends.
How it was found
- Upload a malicious HTML file and share it with the victim
- Wait for the victim to open the file
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.
A WebView is a small browser built into a mobile app. This app showed HTML files that other people uploaded without stripping out scripts, so a script hidden in the file ran inside the app when the victim opened it. That let the attacker collect details about the victim's device and connection.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.