Title: AMaViS Arbitrary Command Execution Vulnerability
Severity: HIGH
Description:
AMaViS is a script-based email virus scanner that runs on Linux machines. The latest versions, (AMaViS 0.2.0Pre-4) allows for malicious users to insert arbitrary commands that AMaViS will unknowingly run as root in the subject header of messages with virus-infected attached files. The problem is in the scanmails script, detailed below:
cat <<EOF| ${mail} -s "VIRUS IN YOUR MAIL TO $7" $2
V I R U S A L E R T
Our viruschecker found a VIRUS in your email to "$7".
We stopped delivery of this email!
Now it is on you to check your system for viruses
For further information about this viruschecker see:
http://aachalon.de/AMaViS/
AMaViS - A Mail Virus Scanner, licenced GPL
EOF
$2 (which could be 'rm -rf /') will expand to a shell command, executed as root. The possible consequence of this being exploited is a remote root compromise.
Affected Products:
- AMaViS AMaViS 0.2.0pre-4
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.