Apache Tomcat JK Web Server Connector Long URL Stack Overflow Vulnerability

ID ZDI-07-008
Type zdi
Reporter Anonymous
Modified 2007-11-09T00:00:00


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.