lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <F92D3D14-75F5-409E-A32F-54C484BB9BB9@gmail.com>
Date: Fri, 22 Jun 2012 22:13:28 +0200
From: Yaniv Shaked <yaniv0a@...il.com>
To: Henri Salo <henri@...v.fi>
Cc: Amir@...st.ir, bugtraq@...urityfocus.com
Subject: Re: Mybb 1.6.8 'announcements.php' Sql Injection Vulnerabilitiy

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@...st.ir 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


Download attachment "signature.asc" of type "application/pgp-signature" (842 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ