Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169433 - <www-apache/mod_jk-1.2.21 - DoS and remote code execution (CVE-2007-0774)
Summary: <www-apache/mod_jk-1.2.21 - DoS and remote code execution (CVE-2007-0774)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Gentoo Security
URL: http://tomcat.apache.org/connectors-d...
Whiteboard: B2? [glsa] DerCorny
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-05 11:20 UTC by Stefan Behte (RETIRED)
Modified: 2007-03-17 06:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Behte (RETIRED) gentoo-dev Security 2007-03-05 11:20:54 UTC
http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html
http://www.zerodayinitiative.com/advisories/ZDI-07-008.html

- someone please mask 1.2.19 and 1.2.20!
- add an ebuild for 1.2.21
Comment 1 Stefan Cornelius (RETIRED) gentoo-dev 2007-03-05 11:34:26 UTC
arches, please test and stable mod_jk-1.2.21-r1, thanks.

wltjr: is 1.2.20-r1 security fixed, too?
Comment 2 Stefan Cornelius (RETIRED) gentoo-dev 2007-03-05 12:59:11 UTC
according to ZDI: Tomcat 4.1.34 and Tomcat 5.5.20 are also vulnerable? Does this affect us?
Comment 3 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-05 14:53:52 UTC
(In reply to comment #0)
>
> - add an ebuild for 1.2.21

It was added the day it was released.


(In reply to comment #2)
> according to ZDI: Tomcat 4.1.34 and Tomcat 5.5.20 are also vulnerable? Does
> this affect us?

We are likely effected by Tomcat 5.5.20. Upstream is about to kick out another version, I believe they are tagging 5.5.24 sometime soon, today maybe. I will see if upstream plans to expedite the release at all.
 

Comment 4 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-05 14:58:10 UTC
Ok, never mind, reading it further it's referring to vulnerable mod_jk in Tomcat 5.5.20 sources, I believe. So this only effects mod_jk.
Comment 5 Stefan Behte (RETIRED) gentoo-dev Security 2007-03-05 15:54:48 UTC
>> - add an ebuild for 1.2.21
>It was added the day it was released.
Sorry, I didn't have it in portage, maybe synced against a mirror that wasn't up-to-date.

Wouldn't it be useful to release 1.2.19-r2 and 1.2.20-r2 which - after installing - prints out a message that it's insecure? Or mask mask 1.2.19 and 1.2.20?
In my opinion, people should at least know that they install an insecure version.
Sorry, but I don't know what's the common way of handling this.
Comment 6 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-05 16:28:39 UTC
People do not always see the messages or log files. I will likely p.mask once 1.2.21 is stabilized. I must add a message when I p.mask and that anyone trying to emerge the package will see.
Comment 7 Stefan Behte (RETIRED) gentoo-dev Security 2007-03-05 16:39:20 UTC
>People do not always see the messages or log files.
Sure, but adding messages can't harm anyone.

>I will likely p.mask once 1.2.21 is stabilized. I must add a message when I 
>p.mask and that anyone trying to emerge the package will see.
Ah, fine! Thanks for the info. :)
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-06 07:39:47 UTC
x86 stable
Comment 9 Andre Hinrichs 2007-03-08 13:22:59 UTC
After upgrading mod_jk apache didn't start. Found that mod_jk is responsible because it tries to create a log file in /etc/apache2/log which is a bad location for log files.

Error message from apache is
[Thu Mar 08 14:04:09 2007] [error] (2)No such file or directory: mod_jk: could not open JkLog file /etc/apache2/log/mod_jk.log


In /etc/apache2/modules.d/88_mod_jk.conf I changed the line
JkLogFile /etc/apache2/log/mod_jk.log
to
JkLogFile /var/log/apache2/mod_jk.log

After that everything is fine again. Please consider changing the default location for the log file.
Comment 10 Steve Dibb (RETIRED) gentoo-dev 2007-03-08 14:12:52 UTC
amd64 stable
Comment 11 Stefan Cornelius (RETIRED) gentoo-dev 2007-03-08 16:02:44 UTC
ready for glsa
Comment 12 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-08 16:04:57 UTC
(In reply to comment #9)
>
> In /etc/apache2/modules.d/88_mod_jk.conf I changed the line
> JkLogFile /etc/apache2/log/mod_jk.log
> to
> JkLogFile /var/log/apache2/mod_jk.log
> 
> After that everything is fine again. Please consider changing the default
> location for the log file.
 
Sorry about that, I corrected the path and just committed to tree.
Comment 13 Andre Hinrichs 2007-03-08 18:14:38 UTC
All stable versions gone.
New version 1.2.21-r2 is unstable...
Mistake???
Comment 14 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-08 19:16:57 UTC
Yes another one in a series. :( Copied ebuild for revision before I cvs'd up, and when I did the previous version was updated to stable. But my bumped version was not. OOOPPPS. Got rid of other versions due to security issue. Just committed should hit mirrors in a few hours. Very sorry.
Comment 15 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-11 18:16:12 UTC
This has been stabilized and vulnerable versions removed. Closing bug.
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2007-03-14 19:25:44 UTC
Reopening this since it shouldn't have been closed.
Comment 17 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-03-17 06:51:43 UTC
GLSA 200703-16