Skip to content
RCE Advisory Advanced CVE-2022-42433

TP-Link TL-WR841N ated_tp Command Injection Remote Code Execution Vulnerability

The ated_tp service on TP-Link TL-WR841N routers fails to validate a user-supplied string before passing it to a system call, allowing command injection. A network-adjacent attacker who bypasses the existing authentication could execute arbitrary code as root.

Cyrille Chatras Follow

Originally disclosed on Zero Day Initiative

Medium 6.4 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link TL-WR841N routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

Cyrille Chatras, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the ated_tp service passes a user-supplied string into a system call without validating or sanitising it, so shell metacharacters in the input are interpreted as commands.

Impact

A network-adjacent attacker who bypasses authentication could execute arbitrary code with root privileges on the router.

What the attacker needed

Network-adjacent access to the router; authentication bypass (per report)

The fix

It was fixed in firmware 220914.

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 report has not been written yet. The Original tab links to the source.

A router runs a small background program that takes text from a user and hands it to the operating system to run as a command. Because the program does not check that text carefully, an attacker can sneak in extra commands of their own. The attacker must be on the same network and get past the login, but the report says that login can be bypassed, and the commands then run with the highest privileges on the device.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Cyrille Chatras

View all

3 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.