[UNIX] Apache HTTP Server mod_tcl set_var Format String



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@xxxxxxxxxxxx> 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: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


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

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

  • [EXPL] Apache mod_rewrite Off-By-One (Exploit)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... found in mod_rewrite apache module to the bugtraq mailing list. ... raised when mod_rewrite is dealing with an LDAP URL, ... # Vulnerability discovered by Mark Dowd. ...
    (Securiteam)
  • [NEWS] Apache Multiple Injection Vulnerabilities
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Multiple Injection Vulnerabilities ... Apache is the most widely deployed web server in the Internet. ...
    (Securiteam)
  • [UNIX] Apache HTTPd Arbitrary Long HTTP Headers DoS
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The <http://httpd.apache.org/> Apache Software Foundation's HTTP Server ... * Apache web server version 2.0.49, ... It is possible to consume arbitrary amount of memory using a specially ...
    (Securiteam)
  • [UNIX] Apache Local User to Root Escalation
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Local User to Root Escalation ... invoke the TIOCSTI ioctl on the fd corresponding to its ctty, ... a user created CGI script can inject and have executed any input ...
    (Securiteam)
  • [NEWS] Apache "mod_rewrite" LDAP URI Handling Remote Off-By-One Buffer Overflow
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A vulnerability has been identified in Apache, ... which could be exploited by remote attackers to execute arbitrary ... Off-by-one error in the the LDAP scheme handling in the Rewrite module ...
    (Securiteam)