Description
IPFire versions prior to 2.29 (Core Update 198) contain a command injection vulnerability that allows an authenticated attacker to execute arbitrary commands as the 'nobody' user via the BE_NAME parameter when installing a blacklist. When a blacklist is installed the application issues an HTTP POST to /cgi-bin/urlfilter.cgi and interpolates the value of BE_NAME directly into a shell invocation without appropriate sanitation. Crafted input can inject shell metacharacters, leading to arbitrary command execution in the context of the 'nobody' user.
Problem types
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Any version before 2.29 (Core Update 198)
Credits
Alex Williams from Pellera Technologies
References
www.ipfire.org/blog/ipfire-2-29-core-update-198-released
bugzilla.ipfire.org/show_bug.cgi?id=13887
www.vulncheck.com/...mand-injection-via-url-filter-blacklist