Skip to content
SSRF Disclosed report Intermediate

SSRF on local storage of iOS mobile

The tester found that an iOS mobile app allowed uploaded files to be manipulated into HTML and then used to read local files via file:// URLs, demonstrating SSRF. An attacker could potentially access sensitive local files on the device.

l0l1ch3ng Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 48 days
  • Disclosed after 3 months
  1. The tester uploaded the text file, containing "test ssrf" message, in order to proof SSRF attack.
  2. Next, the tester uploaded the common file and then manipulate the content and extension file to html format in order to find the application path: <svg/onload=document.write(document.location)>
  3. The tester access that file and found the application path to use for SSRF local file disclosure.
  4. Then, the tester uploaded the common file and then manipulate the content and extension file to html format in order to view the local file via SSRF attack: <iframe src="file://.../ssrfpoc.txt" width="400" height="400"></iframe>
  5. The tester access that file and found that this application allow you to access and read the local file successfully.

Impact

This allow anyone to use other URLs such as that can access documents on the system/application (using file://) a.k.a Sensitive Data Exposure.

Attachments

Step_1.PNG
Step_1.PNG From the original on HackerOne
Step_2.png
Step_2.png
Step_3.PNG
Step_3.PNG
Step_4.png
Step_4.png
Step_5.PNG
Step_5.PNG

The original report as published on HackerOne, by l0l1ch3ng. 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 allowed uploaded files to be rendered as HTML and did not restrict file:// URLs, enabling local file access.

Impact

This could allow an attacker to read sensitive local files on the device, leading to sensitive data exposure.

What the attacker needed

Ability to upload files; iOS mobile app

How it was found

  1. Upload a text file containing a test message to prove SSRF.
  2. Upload a common file and manipulate its content and extension to HTML to find the application path.
  3. Access that file to discover the application path for SSRF local file disclosure.
  4. Upload another common file and manipulate it to HTML with an iframe pointing to a local file.
  5. Access that file and confirm the local file can be read.

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.

This report is about a mobile app that lets you upload files. The tester changed an uploaded file into a web page that could ask the app to open local files on the phone. That means someone might be able to read private files stored on the device.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.