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

Adv-20040303.txt

Adv-20040303.txt
Posted Mar 3, 2004
Authored by Nick Gudov | Site s-quadra.com

S-Quadra Advisory #2004-03-03 - Spider Sales shopping cart suffers from incorrect use of cryptography and SQL injection attacks.

tags | advisory, sql injection
SHA-256 | a0cda1fa27a49663003e77c116f1091e641af6fe9647acb9f89889f7983dc432

Adv-20040303.txt

Change Mirror Download
        S-Quadra Advisory #2004-03-03

Topic: Spider Sales shopping cart software multiple security vulnerabilities
Severity: High
Vendor URL: http://www.spidersales.com
Advisory URL: http://www.s-quadra.com/advisories/Adv-20040303.txt
Release date: 03 Mar 2004

1. DESCRIPTION

"Spider Sales is a powerful shopping cart solution designed for small,
medium or large enterprises who want to sale their products on the
Internet market. You can use it to build any kind of Internet shop and
virtually sell anything." spidersales.com site says. It's written on
ASP, works on most Windows platforms and uses MS Access, MS SQL Server
or MySQL Server as a backend. Please visit http://www.spidersales.com
for more information about this shopping cart.

2. DETAILS

-- Vulnerability 1: Incorrect use of cryptography

Spider Sales shopping cart software uses RSA cryptosystem to encrypt
sensitive data before storing it in a database. The RSA cryptosystem is
a public-key cryptosystem that offers both encryption and digital
signatures (authentication). Please read
http://www.rsasecurity.com/rsalabs/faq/3-1-1.html for more information
about RSA cryptosystem. In the Spider Sales shopping cart software the
maximum length of the modulus n is equal to 20 bits and don't have
minimum lenght limit, so it is easy for attacker to factor n into p and
q and obtain the private key d. Moreover, the private key is stored in
the same database and in the same table where a public key is. So an
attacker can decrypt any protected information if he gains access to
store's database.

-- Vulnerability 2: SQL Injection vulnerability

Substantial number of scripts in Spider Sales software don't filter
'userId' parameter, which can be used by attacker for modifying SQL
query and perform some of SQL injection attacks.

Successfull exploitation of this vulnerability could allow an attacker
to gain access to Spider Sales administrator interface and read any
information from store's database (i.e. customers private data). Also an
attacker could execute commands using xp_cmdshell function.

--PoC code

--Vulnerability 2:

Platform: MS SQL Server as a backend

The following request executes dir c: command and saves result in
c:\inetpub\wwwroot\dirc.txt file

http://[target]/Carts/Computers/viewCart.asp?userID=2893225125722634';exec%20master..xp_cmdshell%20'dir%20c:%20>%20c:\inetpub\wwwroot\dirc.txt'--&viewID=48

3. FIX INFORMATION

S-Quadra alerted Spider Sales development team to these issues on 25
Feb 2004. No response has been received. No fix information has been
provided.

4. CREDITS

Nick Gudov <cipher@s-quadra.com> has detected above mentioned
vulnerabilities.

5. ABOUT

S-Quadra dedicates its substantial knowledge and resources to managing
clients' IT security risks. S-Quadra audits and protection for software
and networks implent pioneering methods and ground-breaking
technologies.

S-Quadra Advisory #2004-03-03
Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close