Users login

Create an account »


Users login

Home » Hacking News » ppp-design found the following cross-site-scripting bug in CaupoShop

ppp-design found the following cross-site-scripting bug in CaupoShop

by Nikola Strahija on March 12th, 2002 Product: CaupoShop (and probably CaupoShopPro) Version: 1.30a (CaupoShop) and maybe all versions before OS affected: all OS with php and mysql Vendor-URL:,,, Vendor-Status: informed Security-Risk: high - very high Remote-Exploit: Yes

- ------------
CaupoShop is a php/mysql based shopping system for the web. CaupoShopPro
is the same shop with some enhanced features. Allthough the software is
really widespreaded, it suffers from a cross-site-scripting bug, which
leads to disclosure of shipping information of other users (which can
include creditcard details). It is also possible to add/change/delete
articles in the shop (eg. changing prices).

More details
- ------------
When registering as a new customer, none of the inputs is checked for
malicious code. So a possible blackhat is able to insert some javascript
stuff here, which is executed everytime the admin takes a look at the
customer listing in the admin area, which is protected by http
authentication. Together with some document.location.href stuff the
blackhat is now able to redirect the admin to any page in the admin
area. Because the admin is allready authenticated, the blackhat does not
need to have the admin's password. The redirection makes it possible to
do everything the admin can do, eg. changing user passwords or articles.

- ----------------
We will give two proof-of-concepts here:
The first will change an existing user record to a new emailaddress
(which is used as the login name) and a new password, so it is possible
for the blackhat to log in as this user and see the shipping details the
user has entered before, which can include valid creditcard numbers.

When registering as a new user, enter the following in the message
field, wich is the largest field (indeed you can use any of the fields)
(one line):

&saField[password]=newpass&saField[email][email protected]&

You have to substitute the X with a valid id of an user. This is really
easy to guess, because this id is a normal integer counting up from 1,
so you can just choose any number between 1 and the number of guessed
customers the shop has.

The second proof of concept is deleting an existing article and works
really the same way. You can easy get the article id out of the shop's
html code, in this example we will use the article id 1.

Again registering a new user and this times using the follwing in the
message field (one line):


This will delete the article with id 1 next time the admin takes a look
at his customer listing.

Of course these two examples are easy to get aware of by an admin,
because when taking a look at his customer listing, he ends up in an
infinite loop (proof-of-concept 1), or he gets a listing of his articles
instead of his customers. So he will realize really fast something
strange is happening. But together with some more scripting, you can
hide from his eyes for a longer time.

- -------------
Admins could disable Javascript but because there are still other
possiblilities to enter malicious code, this will only stop these
proof-of-concepts from working.

- ---
Use at least CaupoShop v1.30 rc4 (2002-03-09).

- -------------
Because a possible blackhat could nearly control the whole shop and
because of the disclosure of creditcard numbers and addresses of shop
users we rate the security risk high - very high.

Vendor status
- -------------
Vendor has released a new version, which filters htmltags using

- ----------
All information that can be found in this advisory is believed to be
true, but maybe it isn't. ppp-design can not be held responsible for the
use or missuse of this information. Redistribution of this text is only
permitted if the text has not been altered and the original author
ppp-design ( ist mentioned.

This advisory can be found online at:

- --
Fingerprint: 5B02 0AD7 A176 3A4F CE22 745D 0D78 7B60 B3B5 451A
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Weitere Infos: siehe


Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »