BugTraq
Hijacking Apache 2 via mod_perl Jan 21 2004 10:53PM
Steve Grubb (linux_4ever yahoo com) (2 replies)
Re: Hijacking Apache 2 via mod_perl Jan 22 2004 03:53PM
Ben Laurie (ben algroup co uk) (1 replies)
Re[2]: Hijacking Apache 2 via mod_perl Jan 22 2004 05:37PM
3APA3A (3APA3A SECURITY NNOV RU) (3 replies)
Re: Hijacking Apache 2 via mod_perl Jan 22 2004 06:39PM
Ben Laurie (ben algroup co uk)
Re: Re[2]: Hijacking Apache 2 via mod_perl Jan 22 2004 05:51PM
Steve G (linux_4ever yahoo com)
Re: Hijacking Apache 2 via mod_perl Jan 22 2004 05:42PM
André Malo (nd perlig de) (1 replies)
Re: Hijacking Apache 2 via mod_perl Jan 22 2004 06:04PM
Steve G (linux_4ever yahoo com) (2 replies)
Re: Hijacking Apache 2 via mod_perl Jan 23 2004 09:39PM
Matthew Wakeling (mnw21-bugtraq jumpleads com)
Re: Hijacking Apache 2 via mod_perl Jan 23 2004 03:55AM
jon schatz (jon divisionbyzero com)
Re: Hijacking Apache 2 via mod_perl Jan 22 2004 10:20AM
lupe lupe-christoph de (Lupe Christoph)
On Wednesday, 2004-01-21 at 22:53:33 -0000, Steve Grubb wrote:

> Product: mod_perl
> Versions: 1.99_09 / apache 2.0.47
> URL: http://perl.apache.org
> Impact: Daemon Hijacking
> Bug class: Leaked Descriptor
> Vendor notified: Yes
> Fix available: No
> Date: 01/21/04

> Issue:
> ======
> Mod_perl under apache 2.0.x leaks critical file descriptors that can be used to takeover (hijack) the http and https services.

It does not leak them. Your code reopens them.

Installing your code requires superuser permissions. Or the willingness
of the admin of the machine to trust people with the right to install
code that runs inside Apache.

Much the same can be done with anything that runs inside Apache. For
example, mod_php. So in essence you are complaining that an Apache
extensions has the right to do anything inside Apache it can be
programmed to do.

For example, to receive POST data, the extension code has to be able to
access the FD that connects to the browser. It also has to be able to
write to that FD to send a reply.

To write to a log, it needs write access (mostly through the Apache ABI)
to the log filedescriptors.

Can you suggest a way to avoid this?

I have forwarded your mail to the mod_perl mailing list, which I'm also
Ccing on this mail. Had you taken your problem there first, this
silliness could have been avoided.

The thread starts at
http://marc.theaimsgroup.com/?l=apache-modperl&m=107475920405755&w=2

Lupe Christoph
--
| lupe (at) lupe-christoph (dot) de [email concealed] | http://www.lupe-christoph.de/ |
| "Violence is the resort of the violent" Lu Tze |
| "Thief of Time", Terry Pratchett |

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus