Re: Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy

看板Bugtraq作者時間13年前 (2012/06/27 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
--Apple-Mail=_47D5DA4F-E4BD-46CC-9F98-539B4669AC3A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Look at the code at announcements.php: $aid =3D intval($mybb->input['aid']); [Boring lines=85] [Boring lines=85] $query =3D $db->query(" SELECT u.*, u.username AS userusername, a.*, f.* FROM ".TABLE_PREFIX."announcements a LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=3Da.uid) LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=3Du.uid) WHERE a.startdate<=3D'$time' AND (a.enddate>=3D'$time' OR = a.enddate=3D'0') AND a.aid=3D'$aid' "); $announcementarray =3D $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@irist.ir wrote: >> a bug in Mybb 1.6.8 'announcements.php' that allows to us to occur a = Sql Injection on a Remote machin. >>=20 >>=20 >>=20 >>=20 >> = ##########################################################################= ############### >> # >> # 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=3D1[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 >> # >> = ##########################################################################= ###############=20 >=20 > Could not reproduce. Could you give working PoC? >=20 > - Henri Salo --Apple-Mail=_47D5DA4F-E4BD-46CC-9F98-539B4669AC3A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----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----- --Apple-Mail=_47D5DA4F-E4BD-46CC-9F98-539B4669AC3A--
文章代碼(AID): #1FwVZV02 (Bugtraq)
討論串 (同標題文章)
文章代碼(AID): #1FwVZV02 (Bugtraq)