Skip to content
RCE Write-up Advanced

Hunting for Unauthenticated n-days in Asus Routers

A format string vulnerability in the notify_rc function of Asus routers allowed an attacker to write to the SystemCmd global variable and then trigger command execution via a web endpoint. However, the researchers found that on real devices the exploit required authentication, contradicting the CVE's claim of being unauthenticated remote.

TheZero Follow

Published on shielder.com

After reading online the details of a few published critical CVEs affecting ASUS routers, we decided to analyze the vulnerable firmware and possibly write an n-day exploit. While we identified the vulnerable piece of code and successfully wrote an exploit to gain RCE, we also discovered that in real-world devices, the…

TheZero (@Th3Zer0), suidpit (@suidpit), on shielder.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

Impact

An attacker could achieve remote code execution, but on real devices the unauthenticated remote claim did not always hold, depending on configuration.

What the attacker needed

Authentication may be required on real devices depending on…

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 format string bug happens when a program passes user input directly to a function like syslog that expects a format string. Attackers can use special characters like %n to write to memory. Here, the researchers used this to overwrite a global variable that later gets executed as a system command, but they discovered that on real devices you need to be logged in first.

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 TheZero

View all

2 more disclosed reports, best first.

More from Asus

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.