Skip to content
Info disclosure Write-up Intermediate

Exposing Local Web Servers in Popular Mac & Windows Software

Some mobile apps run a local web server to share files via Cast or AirPlay, but misconfigure it to expose sensitive files. An attacker on the same network or over the Internet could list and exfiltrate user-downloaded files, internal configuration, and logs, and bypass app passcode protection.

alesandroortiz.com

Published on alesandroortiz.com

December 7, 2021 about Vulnerabilities, Android, Sensitive Data Leaks

The author, on alesandroortiz.com

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 web server was configured with the app's main data directory as its top-level directory, directory listings enabled, and no access controls, and it started before passcode entry.

Impact

An attacker could exfiltrate all user-downloaded files, internal configuration, and logs, and bypass the app's passcode protection, with no user interaction on the local network or over the Internet if the server is directly accessible.

What the attacker needed

App runs a web server with sensitive top-level directory; attacker knows the app's web server port; attacker on same local network or device (scenario 1); web server serves user-downloaded files (scenario 2)

The fix

The vendor fixed the vulnerability, but the article recommends disabling directory listings, using a dedicated directory, not starting the server before authentication, and serving HTML with a safe Content-Type.

How it was found

  1. Scan the local network for devices with the web server's port open.
  2. Make an HTTP request to the identified device on the web server port to list the top-level directory.
  3. Identify and exfiltrate files of interest from the directory listing.

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 mobile app runs a small web server on your phone to let other devices access files. If that server is not locked down, anyone on the same Wi-Fi or even the internet can browse and download your private files. The app's password protection can also be bypassed because the server starts before you log in.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.