UART Debug Isn’t Harmless: Serial Port Privilege Escalation in
The serial port on some Hikvision DVR models did not properly authenticate users, allowing an attacker with physical access to obtain an unrestricted shell or execute arbitrary commands. This could let them extract firmware, modify system binaries, install persistence, or pivot into the internal network.
Published on medium.com
Embedded devices are everywhere — from factories and shops to smart buildings and homes. But their debug and maintenance interfaces, especially physical ones like UART/serial ports, often get overlooked in threat modeling.
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 port authentication was not enforced, so the debug shell was reachable without proper credentials.
Impact
An attacker with physical access could gain a privileged shell, extract firmware, modify binaries, install persistence, or pivot into the internal network.
What the attacker needed
Physical access to the DVR's UART pins; a USB-TTL serial adapter
The fix
Hikvision released fixed firmware versions after validating the findings.
How it was found
- Connect a USB-TTL serial adapter to the DVR's UART pins.
- Interrupt or glitch boot to drop into an unintended shell context.
- Escalate privileges or bypass authentication to access a privileged system shell.
- Once in, extract firmware, modify system binaries, install persistence, or use the compromised DVR as a pivot into the internal network.
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 serial port is a physical connector on a device's circuit board that engineers use for debugging. If it is left open in production and does not check who is connecting, anyone who can attach a cable can get a command prompt on the device. From there they can read or change the device's software.
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.