SpamAssassin Milter Plugin expand (-x) flag command execution

spamassassin-expand-command-execution (56732) The risk level is classified as HighHigh Risk

Description:

The SpamAssassin Milter Plugin could allow a remote attacker to execute arbitrary commands on the system, caused by the improper validation of input by the mlfi_envrcpt function prior to being used in a popen() function call. If invoked with the expand (-x) flag, a remote attacker could send a specially crafted RCPT TO value to inject and execute arbitrary shell commands on the system with elevated privileges.

*CVSS:

Base Score: 7.5
  Access Vector: Network
  Access Complexity: Low
  Authentication: None
  Confidentiality Impact: Partial
  Integrity Impact: Partial
  Availability Impact: Partial
 
Temporal Score: 6.5
  Exploitability: High
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Gain Access

Remedy:

Apply the appropriate patch for your system. See References.

References:

  • Full-Disclosure Mailing List, Sun Mar 07 2010: Spamassassin Milter Plugin Remote Root.
  • Offensive Security Exploit Database [03-09-2010]: Apache Spamassassin Milter Plugin Remote Root Command Execution .
  • SpamAssassin Web site: SpamAssassin: Welcome to SpamAssassin.
  • BID-38578: SpamAssassin Milter Plugin 'mlfi_envrcpt()' Remote Arbitrary Command Injection Vulnerability
  • CVE-2010-1132: The mlfi_envrcpt function in spamass-milter.cpp in SpamAssassin Milter Plugin 0.3.1, when using the expand option, allows remote attackers to execute arbitrary system commands via shell metacharacters in the RCPT TO field of an email message.
  • DSA-2021: spamass-milter -- missing input sanitization
  • OSVDB ID: 62809: SpamAssassin Milter Plugin spamass-milter.cpp mlfi_envrcpt Function Arbitrary Shell Command Execution
  • SA38840: SpamAssassin Milter Plugin Shell Command Injection
  • SECTRACK ID: 1023691: SpamAssassin Milter Plugin Input Validation Flaw Lets Remote Users Execute Arbitrary Code

Platforms Affected:

  • Apache SpamAssassin Milter Plugin 0.3.1
  • Debian Debian Linux 5.0

Reported:

Mar 07, 2010

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Security Systems

IBM Security Systems include an extensive portfolio of hardware, software solutions, professional and managed services offerings covering the spectrum of IT and business security risks: people and identity, data and information, application and process, network, server and endpoint and physical infrastructure, empowering clients to innovate and operate their businesses on the most secure infrastructure platforms. Through world-class solutions that address risk across the enterprise, IBM helps organizations build a strong security posture that helps reduce costs, improve service, and manage risk. IBM X-Force(R) Research and Development is one of the most renowned commercial security research and development groups in the world. For more information on how to address today's biggest risks, please visit us at ibm.com/security.