Deep Dive into Arista NG Firewall Vulnerabilities
Six vulnerabilities were found in Arista NG Firewall 17.4, including multiple OS command injection flaws and a reflected XSS. An attacker could chain the XSS with an overly permissive RPC interface to achieve remote code execution as root by tricking a logged-in administrator into visiting a malicious URL.
bishopfox.com
Published on bishopfox.com
The following document describes identified vulnerabilities in the Arista NG Firewall product, version 17.4.
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 multiple root causes: insufficient input sanitisation in Java handlers that build shell commands, missing validation of uploaded backup files, an overly permissive RPC interface exposing dangerous managers, and missing JSTL taglib declarations in JSP templates leading to reflected XSS.
Impact
The most severe issues allowed execution of arbitrary commands as root; chaining the reflected XSS with the permissive RPC interface enabled one-click remote code execution when an administrator visited a malicious URL, and one vulnerability could be exploited without credentials under specific configurations.
What the attacker needed
Admin access for most issues; victim clicks a malicious link; Captive Portal with basic auth and Local Directory; valid username for unauthenticated case
The fix
The vulnerabilities were fixed in version 17.4.1 through proper input validation, use of ProcessBuilder, removal of the vulnerable feature, a sanitised RPC interface, and adding the missing taglib declaration.
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.
This report describes several security holes in a firewall product. Some of them let someone who is already logged in as an administrator run commands on the device with the highest privileges. One flaw also allowed an attacker to run code by getting an admin to click a link, without the admin realising.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.