Arista NG Firewall runTroubleshooting Command Injection Remote Code Execution Vulnerability
The runTroubleshooting method in Arista NG Firewall fails to validate a user-supplied string before using it in a system call, allowing an authenticated attacker to execute arbitrary commands as root. Authentication can be bypassed, so remote attackers may exploit this without valid credentials.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Arista NG Firewall. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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 runTroubleshooting method passes user-controlled input directly to a system shell without sanitisation or validation.
Impact
An attacker could execute arbitrary code with root privileges on the firewall, potentially taking full control of the device; authentication is required but can be bypassed.
What the attacker needed
Authentication (bypassable); network access to the firewall
The fix
Arista has issued an update to correct this vulnerability.
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.
This is a command injection bug: a part of the firewall's web interface takes text from a user and passes it to the operating system without checking it. An attacker can sneak in extra system commands, and because the program runs with high privileges, those commands run as the all-powerful root user. The report also says the login check can be bypassed, so even outsiders might reach the vulnerable function.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.