Skip to content
Path traversal Write-up Advanced

(Virtual) HITBAMS20 Talk

Two smart door gateway devices contained flaws that let an attacker reach root on the device: an unauthenticated path traversal plus a backup-based command injection on the Gira unit, and a passwordless FTP user plus backup-based code execution and a logrotate race on the Siedle unit. With root, an attacker could reconfigure the gateways and open any connected doors.

research.hisolutions.com

Published on research.hisolutions.com

For many attack types physical access to the computer like plugging in a „Rubber Ducky“ or inserting a physical keylogger is required. As access to servers and computers is commonly restricted, those threat vectors are often handled via a „When they are already in the room, we are screwed anyway“ perspective.

The author, on research.hisolutions.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 a mix of missing input validation on file paths and backup contents, default or absent credentials, and unsafe handling of files by privileged scripts.

Impact

An attacker with network access could gain root on the gateway and open any connected doors or lock out legitimate users; the text notes the flaws no longer affect systems that have been updated correctly.

What the attacker needed

Network access to the gateway; Gira: no login needed for first step; Siedle: reachable SSH service

The fix

Both vendors verified the findings and released firmware updates that address the flaws, with Siedle even providing a pre-release image for testing.

How it was found

  1. Download the application database through the path traversal flaw.
  2. Recover the admin password from the database hash or from a plaintext log file.
  3. Log into the web frontend with the recovered credentials.
  4. Modify a backup archive so a database field carries a shell command.
  5. Upload the modified backup through the restore function to change the root password.
  6. Log in over SSH with the new root password.

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.

These are small boxes that connect a doorbell and door lock to your network so you can open the door from an app. The researchers found mistakes in the software on the boxes that let someone on the same network take full control of them. Once in control, that person can open doors or lock the real owners out.

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.