BugTraq
Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy Jun 21 2012 02:44PM
Amir irist ir (1 replies)
Re: Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy Jun 22 2012 06:58AM
Henri Salo (henri nerv fi) (2 replies)
Re: Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy Jun 23 2012 02:47AM
coptang (coptang gmail com)
Re: Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy Jun 22 2012 08:13PM
Yaniv Shaked (yaniv0a gmail com) (1 replies)
Look at the code at announcements.php:

$aid = intval($mybb->input['aid']);

[Boring lines?]

[Boring lines?]

$query = $db->query("
SELECT u.*, u.username AS userusername, a.*, f.*
FROM ".TABLE_PREFIX."announcements a
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=a.uid)
LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
WHERE a.startdate<='$time' AND (a.enddate>='$time' OR a.enddate='0') AND a.aid='$aid'
");

$announcementarray = $db->fetch_array($query);

Complete the missing part :)

--
Thanks,
Yaniv

On Jun 22, 2012, at 8:58 AM, Henri Salo wrote:

> On Thu, Jun 21, 2012 at 02:44:59PM +0000, Amir (at) irist (dot) ir [email concealed] wrote:
>> a bug in Mybb 1.6.8 'announcements.php' that allows to us to occur a Sql Injection on a Remote machin.
>>
>>
>>
>>
>> ########################################################################
#################
>> #
>> # Exploit Title : Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy
>> #
>> # Author : IrIsT.Ir
>> #
>> # Discovered By : Am!r
>> #
>> # Home : http://IrIsT.Ir/forum
>> #
>> # Software Link : http://www.mybb.com/
>> #
>> # Security Risk : High
>> #
>> # Version : All Version
>> #
>> # Tested on : GNU/Linux Ubuntu - Windows Server - win7
>> #
>> # Dork : "Powered By Mybb"
>> #
>> ########################################################################
#################
>> #
>> # Expl0iTs :
>> #
>> # [TarGeT]/Patch/announcements.php?aid=1[Sql]
>> #
>> #
>> ########################################################################
#################
>> #
>> # Greats : B3HZ4D - Crim3R - nimaarek - Net.Edit0r - A.Cr0x - G3n3rall - R3ZA BLACK HAT -
>> #
>> # TaK.FaNaR - m3hdi - F@rid - joker_s - H4x0r - dr.tofan - skote_vahshat - d3c0d3r -
>> #
>> # Dr.Security - Mr.Xpr - Bl4ck_king - hellboy - Shekaf & All Members In IrIsT.Ir
>> #
>> ########################################################################
#################
>
> Could not reproduce. Could you give working PoC?
>
> - Henri Salo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)

iQIcBAEBAgAGBQJP5NIKAAoJEH3BlEfJcHqXJUMQAJQ6xL+1/yi+1KvnGpfvjz5l
bVj4gnQXGd2N1u37GmxwGHEK0J9KpqWf1ilWNe2UHgYkSbtc92XnAFphQ3mALC4Y
bC2YhwaEXRn+GAWY3DHKuq84Y3waIUH+Og+W7eWlyvkg9dO+U3zJZUZpmu1OtVpS
nIYxOkp6HHIpVsH75k4NS5KQv8m4h3YJ75eTAKxzy0ngLF5X7W9Xk7K6ZkGPcPnJ
rzIBaGIdyAUYszmepyu7rP9vNZ/XISxMInaThex6bco5HT1VI2Eds4pSZjsxD+tX
C8Dd/Qa2dEvklFpIb7kgPgNfE6/oS0oy0BQXQdkLTlqeKJHRLPK8dnPwMVI/Eu/e
A3t2Ou6aJJXO9BDSqpYW5os81MW3tHFj3xb+VbhtOJwjvwsNkyjtbI4th6Q11ehn
DMlCfdgIlVDhGNrLVGrGBAFQtcy7lyZB8DkKv9Ncb410JJTKgTZymeglQbP908C5
WXnDGVxJajwr3anaCCXGTeGZx6rDigeviZ8BXcveCOEUiL4x4Bgp9TPE2aN1ulyZ
hTfBMNHTUwdiViWgDb7n0zDXeCeyljloFBtheyisgDlEFBEam65A0y65J3t//cQa
/2qIuBqjobiCar4RGtAg/AwIelLwPWWTu2hqa+P5tKwrMfZFZ4ONrUfBo/EMUZUS
aPn4cReQnvJIF7k/Md2U
=Wed1
-----END PGP SIGNATURE-----

[ reply ]
Re: Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy Jun 26 2012 04:46PM
Gianluca Brindisi (g brindi si)


 

Privacy Statement
Copyright 2010, SecurityFocus