Skip to content
Path traversal Write-up Intermediate

Motorola - Directory Traversal Investigation

A directory traversal vulnerability in Motorola network-enabled baby monitor cameras allows an attacker on the same network to read arbitrary files because the web service runs as root. This enables viewing the video feed, controlling the camera, updating firmware, and obtaining Wi-Fi credentials and the user's master key without authentication.

blog.sean-wright.com

Published on blog.sean-wright.com

A directory traversal vulnerability exists on what appears to be many Motorola network enabled baby monitor cameras. The issue is made worse since it appears that the web service running is running as root, resulting in the ability to view any file on the device.

The author, on blog.sean-wright.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

Impact

An attacker on the same network could view the video feed, control the camera, update firmware, and obtain Wi-Fi credentials and the master key without authentication; some devices are also exposed to the internet, though the attacker still needs network access.

What the attacker needed

Attacker on same network as camera; no authentication required

The fix

The vulnerability should be fixed by sanitising file paths in the web server and running the service with least privilege, but the vendor did not acknowledge the issue.

How it was found

  1. Use Burp Suite to scan the device and identify the directory traversal vulnerability.
  2. Use curl to download files from the device, starting with /var/log/messages, and build a local copy of the filesystem.
  3. From the logs, identify and download additional binaries and scripts to map the directory structure.
  4. Inspect the ota_upgrade binary with strings to find a firmware download URL, then guess the URL format to obtain the latest firmware.
  5. Analyse the firmware to extract the Wi-Fi SSID and authentication key.
  6. Further analyse the firmware to obtain the user's master key.

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 directory traversal flaw lets someone trick a web server into showing files outside the website's normal folder, like system logs or password files. Here, because the server runs with the highest privileges (root), an attacker on the same Wi-Fi network could read almost any file on the camera, including Wi-Fi passwords and video feeds, without logging in.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.