(0Day) Arista NG Firewall custom_handler Directory Traversal Remote Code Execution Vulnerability
The custom_handler method in Arista NG Firewall fails to validate a user-supplied path before using it in file operations, allowing an unauthenticated remote attacker to execute arbitrary code as the www-data user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Arista NG Firewall. Authentication is not required to exploit this vulnerability.
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 custom_handler method concatenates a user-supplied path into a file operation without sanitising traversal sequences, enabling path traversal that leads to code execution.
Impact
An unauthenticated remote attacker could execute arbitrary code on the firewall as the www-data user.
What the attacker needed
Network access to the firewall; no authentication required
The fix
The vendor did not release a patch before the advisory; the only mitigation is to restrict interaction with the application.
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 directory traversal flaw lets an attacker use a file path like '../../etc/passwd' to reach files outside the intended folder. Here, the firewall's custom_handler method takes a path from the user without checking it, so an attacker can make the system run their own code. No login is needed, which makes it serious.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.