Root exploit in AMaViS virus scanner for Linux | Linux Today

Root exploit in AMaViS virus scanner for Linux

Written By
Web Webster
Web Webster
Jul 18, 1999

Chris McDonough posted
to the SecurityFocus
mailing list:

The AMaViS incoming-mail virus scanning utility (available at
http://satan.oih.rwth-aachen.de/AMaViS/)
for Linux has problems.

I tried to contact the maintainer of the package (Christian
Bricart) on June 26, again several times over the course of the
last month, but I have not received anything from him and the
AMaViS website does not yet acknowledge the problem or provide a
fix. However, on Jun 30, co-contributors to the package (Juergen
Quade and Mogens Kjaer) responded quickly with an acknowledgement
of the problem and a few fixes. Because the co-authors do not
maintain the downloadable package, however, the latest downloadable
version of AMaViS (0.2.0-pre4 and possibly earlier) still has a bug
which allows remote users to send arbitrary commands as root to a
Linux machine running the AMaViS scripts.

Exploit:

Send a message with a virus-infected file attachment. Use
something like “`/sbin/reboot`@dummy.com” as your reply-to address
in your MUA when sending the message. When the AMaViS box receives
the message, it will go through its scripts, find the virus,
construct an email message to send back to the sender of the
virus-infected file… line 601+ in the “scanmails” script:

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

… the $2 expands to a shell command (e.g. “/sbin/reboot”)
which runs as root.

AMaViS Home
Page

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.