FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

mod_jk -- long URL stack overflow vulnerability

Affected packages
1.2.19 <= mod_jk < 1.2.21
1.2.19 <= mod_jk-ap2 < 1.2.21

Details

VuXML ID cf86c644-cb6c-11db-8e9d-000c6ec775d9
Discovery 2007-03-02
Entry 2007-03-05
Modified 2007-03-06

TippingPoint and The Zero Day Initiative reports:

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Apache Tomcat JK Web Server Connector. Authentication is not required to exploit this vulnerability.

The specific flaw exists in the URI handler for the mod_jk.so library, map_uri_to_worker(), defined in native/common/jk_uri_worker_map.c. When parsing a long URL request, the URI worker map routine performs an unsafe memory copy. This results in a stack overflow condition which can be leveraged to execute arbitrary code.

References

CVE Name CVE-2007-0774
URL http://tomcat.apache.org/security-jk.html
URL http://www.zerodayinitiative.com/advisories/ZDI-07-008.html