Rooting A Common-criteria Certified Printer To Improve Opsec
The printer's serial port provided a root shell without authentication, and print job metadata (including file names and usernames) was stored in files that were not securely deleted. An attacker with physical access could extract sensitive document names from the printer's storage.
Published on blog.redteam-pentesting.de
Besides conducting penetration tests, we also attend to maintenance tasks of our internal infrastructure in order to have all systems being involved in our everyday work meet our specified requirements. One of these systems is the printer that we use to print our penetration test reports.
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 serial console was left enabled with a default login that provided a root shell, and print job metadata was stored in files that were not securely erased after printing.
Impact
An attacker with physical access could extract print job metadata, including file names and usernames, from the printer's storage, potentially revealing sensitive client information.
What the attacker needed
Physical access to the printer; ability to open the back panel; serial adapter and cables
The fix
The researchers deleted the metadata files and configured the printer to automatically clean them up, but the underlying issue of insecure serial access and metadata retention was not fixed by the vendor.
How it was found
- Open the printer's back panel to access the mainboard.
- Locate the serial port connector J32 on the mainboard.
- Connect a USB-to-serial adapter to J32 and establish a serial connection at 115200 baud.
- Power on the printer and observe the boot messages.
- At the login prompt, enter 'console' to access a menu.
- Select option 3 ('sh mode') to obtain a root shell.
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 printer is essentially a small computer. The researchers found a hidden serial port on the printer's circuit board that gave them full control over the printer's operating system without needing a password. They also discovered that the printer kept a record of printed file names and usernames in its memory, which could be read by anyone with physical access to the device.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.