[UNIX] Add2it Mailman Command Execution (File Writing)

From: support@securiteam.com
Date: 02/16/02


From: support@securiteam.com
To: list@securiteam.com
Date: Sat, 16 Feb 2002 13:55:54 +0100 (CET)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Add2it Mailman Command Execution (File Writing)
------------------------------------------------------------------------

SUMMARY

 <http://www.add2it.com/scripts/mailman-free.shtml> Add2it Mailman Free is
a multilingual mailing list management script with full personalization
options and no size limitations that allows visitors to your website to
subscribe and unsubscribe to your mailing list without any work from you.
A security vulnerability in the product allows attackers to execute
arbitrary command or overwrite files by issuing a specially formed HTTP
request.

DETAILS

Vulnerable systems:
Add2it Mailman Free version 1.73

The problem is that the script does not filter input well:

$command = $ENV{'QUERY_STRING'};
($list, $email) = split(/=/,$command);

And then the script makes an open() call based on input from the user:

open(LIST, "${path}data/lists/$list");

There are also open() calls with > and >> which use $list.

The way to exploit this to write to a file would be:
./../../../file=data@to.write

Or for command execution:
./../../../bin/command|=blah@bleh.com

This exploit is for the free version of Add2it Mailman, but the same
vulnerability probably exists in the Pro version as well.

Fix:
Filter meta characters and use < << > >> with open()

Vendor status:
Author was contacted on 1/30/02 and replied the same day stating the
problem would be fixed in the next release.

ADDITIONAL INFORMATION

The information has been provided by <mailto:b0iler@hotmail.com> b0iler
_.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #91
    ... SecurityFocus Microsoft Newsletter #91 ... Multiple Bugzilla Security Vulnerabilities ... Geeklog pid CGI Variable SQL Injection Vulnerability ... Geeklog Calendar Event Form Script Injection Vulnerability ...
    (Focus-Microsoft)
  • [NT] Vulnerability in ASP.NET 2.0 Allows Information Disclosure (MS06-056)
    ... Get your security news from a reliable source. ... Vulnerability in ASP.NET 2.0 Allows Information Disclosure ... side script in the user's browser. ... Microsoft Windows Server 2003 for Itanium-based Systems or Windows ...
    (Securiteam)
  • Re: [Full-disclosure] SecNiche : Microsoft Internet Explorer Pop up Blocker Bypassing and Dos Vu
    ... I wonder why we can't find Aditya K Sood in any of the security list even though he has made so many public disclosures. ... Subject: SecNiche: Microsoft Internet Explorer Pop up Blocker Bypassing and Dos Vulnerability ... I don't see anything in the script that can bypass zone security and run ... drawn conclusion that the script can execute from internet zone. ...
    (Full-Disclosure)
  • [NT] Multiple Vulnerabilities in ASPapp Products
    ... Get your security news from a reliable source. ... This vulnerability allows a malicious user set himself any user level he ... "msg" with a value of any script you would like to be run. ... An injection vulnerability exists in forums.asp. ...
    (Securiteam)
  • [NEWS] Scripting Vulnerabilities in Indian Email Providers
    ... Get your security news from a reliable source. ... these services because of certain flaws in their anti-scripting filters. ... Second vulnerability: ... This service is also susceptible to a script insertion method previously ...
    (Securiteam)