Skip to content
Access control Write-up Advanced

Inside a PBX - Discovering a Firmware Backdoor

The firmware of Auerswald PBX devices contained a hidden backdoor user 'Schandelah' and a fallback password for 'admin', both generated from the device serial number and current date. An attacker could retrieve the serial number without authentication and compute the password to gain full administrative access.

blog.redteam-pentesting.de

Published on blog.redteam-pentesting.de

This blog post illustrates how RedTeam Pentesting discovered a real-world backdoor in a widely used Auerswald phone system (see also the advisory and CVE-2021-40859). We will describe the methodology used to find the backdoor by examining the firmware, highlight the practical implications of the vulnerability and…

RedTeam Pentesting GmbH, on blog.redteam-pentesting.de

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 firmware included a hard-coded backdoor user and a password generation routine based on predictable values (serial number, date, and a fixed string) that were not meant to be discovered.

Impact

An attacker could gain full administrative access to the PBX, potentially leading to toll fraud or wiretapping, and some devices may be internet-facing.

What the attacker needed

Access to the device's web interface; knowledge of the serial number (publicly available)

The fix

The manufacturer released updated firmware to remove the backdoor.

How it was found

  1. Download the firmware image from the vendor's support website.
  2. Unpack the firmware to obtain the root filesystem and locate the web server binary.
  3. Reverse engineer the binary to find the hard-coded username 'Schandelah' and the password generation logic.
  4. Retrieve the PBX serial number from the unauthenticated /about_state endpoint.
  5. Calculate the backdoor password using the serial number, date, and fixed string 'r2d2'.
  6. Log in with the 'Schandelah' user and reset the administrator 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.

A backdoor is a secret way to log in that bypasses normal authentication. Here, the manufacturer left a hidden username and a password that could be calculated from public information (the device's serial number and the date). Anyone who knew the trick could log in as an administrator and control the phone system.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.