From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 15 Oct 2006 09:23:19 +0200
Subject: [UNIX] Apache HTTP Server mod_tcl set_var Format String
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20061015081007.8999B57B7@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru
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
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Apache HTTP Server mod_tcl set_var Format String
------------------------------------------------------------------------
SUMMARY
The <http://tcl.apache.org/> mod_tcl module for the Apache httpd v2.x is
a scripting module that allows a TCL developer to create server side
script pages in TCL. It is available as a contrib package for several
distributions. Remote exploitation of a format string vulnerability in the
mod_tcl module for the Apache httpd v2.x could allow attackers to execute
arbitrary code in the context of the httpd.
DETAILS
Vulnerable Systems:
* mod_tcl version 1.0 for Apache 2.x
Immune Systems:
* mod_tcl version 1.0.1 for Apache 2.x
Due to programmer error, user supplied data is passed as the format string
specifier to several calls to an internally defined variable argument
function. The function 'set_var' is declared as follows:
mod_tcl.h:117:void set_var(Tcl_Interp *interp, char *var1,
char *var2, const char *fmt, ...);
Several insecure calls to this function are made through out the code, as
seen below:
tcl_cmds.c:437: set_var(interp, nm_var, (char*) key,
(char*) val);
tcl_cmds.c:2231: set_var(interp, nm_env, env[i],
sptr + 1);
tcl_core.c:650: set_var(interp, namespc,
vl[i].var2,
vl[i].var3);
Vendor response:
The Apache mod_tcl team have addressed this vulnerability with mod_tcl
version 1.0.1. It is available from <http://tcl.apache.org/mod_tcl/>
http://tcl.apache.org/mod_tcl/
CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4154>
CVE-2006-4154
Disclosure Timeline:
08/16/2006 - Initial vendor notification
10/11/2006 - Initial vendor response
10/13/2006 - Coordinated public disclosure
ADDITIONAL INFORMATION
The information has been provided by
<mailto:idlabs-advisories@idefense.com.> iDefense Labs Security Advisories.
The original article can be found at:
<http://www.idefense.com/intelligence/vulnerabilities/>
http://www.idefense.com/intelligence/vulnerabilities/
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: [email protected]
In order to subscribe to the mailing list, simply forward this email to: [email protected]
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.