Skip to content
XSS Disclosed report Intermediate CVE-2019-15614

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.

n00bsec Follow

Originally disclosed on HackerOne

Bounty$100 Low 2.8 View original
  • 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:

  1. Upload malicious HTML, share to victim
  2. Waiting victim to open it
nextcloud_blindxss.jpg
nextcloud_blindxss.jpg From the original on HackerOne
nextcloud_blindxss.png
nextcloud_blindxss.png

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.

The original report as published on HackerOne, by n00bsec. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Upload a malicious HTML file and share it with the victim
  2. 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.

More by n00bsec

View all

3 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.