Re: Hijacking Apache 2 via mod_perl

From: jon schatz (jon_at_divisionbyzero.com)
Date: 01/23/04

  • Next message: S-Quadra Security Research: "QuadComm Q-Shop ASP Shopping Cart Software multiple security vulnerabilities"
    Date: Thu, 22 Jan 2004 19:55:22 -0800
    To: Steve G <linux_4ever@yahoo.com>
    
    

    Steve G wrote:

    >>Then one just writes a perl extension in C. Who's responsible
    >>then?
    > But don't you need root to add extentions?

    >>Who's responsible if you just write a C module which hijacks the
    >>descriptors?
    > Again, you need an admin to update apache's config.

    you need an admin to update the config file if you're trying to use the
    LoadModule directive. but if mod_perl's already running (and if
    .htaccess files aren't locked down enough), you can use the SetHandler
    to load up any (malicous) modules you might need. afaik, loading a
    module once in mod_perl will make it available to every child process.
    if i've been reading this thread right (and there's a good chance i
    haven't) then this would give EvilModule.pm access to the leaked fd's.

    (i haven't tested this for httpd2/mod_perl2, but i know it holds true
    for httpd1.3.x/mod_perl, and the new docs don't indicate any changes).

    -jon

    -- 
    jon@divisionbyzero.com || www.divisionbyzero.com
    gpg key: www.divisionbyzero.com/pubkey.asc
    think i have a virus? www.divisionbyzero.com/pgp.html
    "You are in a twisty little maze of Sendmail rules, all confusing."
    

  • Next message: S-Quadra Security Research: "QuadComm Q-Shop ASP Shopping Cart Software multiple security vulnerabilities"

    Relevant Pages

    • Re: why use special config formats?
      ... Not if the code is being run on YOUR webserver and the config file is ... You think a competent sys admin can't learn enough Python to hack ... will break your binary format and hack them anyway. ...
      (comp.lang.python)
    • Re: [BUG] linux-next: Tree for May 19/20/21 - BUG at arch/x86/kernel/io_apic_64.c:353!
      ... Can you include the config when you send these, ... from next report will send across the .config file also. ... for the kernel bug discussed. ... # PCI IDE chipsets support ...
      (Linux-Kernel)
    • [PATCH] make miniconfig (take 2)
      ... Add "make miniconfig", plus documentation, plus the script that creates a ... minimal mini.config from a normal .config file. ... A shell script to automatically create mini.config from a normal .config ...
      (Linux-Kernel)
    • Re: log4net mysteriously stops logging
      ... Since the guy who put the logging in did this, the rest of us just carried it through. ... We call XmlConfigurator.Configure and pass it the FileInfo object that represents the config file. ... With the debugging in log4net enabled, ...
      (microsoft.public.dotnet.general)
    • Re: Upgrading to 7.0 - stupid requirements
      ... >> mods-enabled (symlinks for enabled Apache modules) ... the PHP port/package drops a file with the needed config ... all our virtualhosts in a single config file included into the main ... Until you install that one last port that breaks the config file you ...
      (freebsd-stable)