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>] [day] [month] [year] [list]
Message-Id: <200810272114.m9RLETdn013554@www5.securityfocus.com>
Date: Mon, 27 Oct 2008 15:14:29 -0600
From: krzysztof.kozlowski@...ik.net.pl
To: bugtraq@...urityfocus.com
Subject: Re: MyBB 1.4.2: Multiple Vulnerabilties

And a solution for first bug (XSS):


File: functions.php, function redirect()

FIND:
----------------
function redirect($url, $message="", $title="")
{
global $header, $footer, $mybb, $theme, $headerinclude, $templates, $lang, $plugins;

$redirect_args = array(’url’ => &$url, ‘message’ => &$message, ‘title’ => &$title);

$plugins->run_hooks_by_ref(”redirect”, $redirect_args);

if($mybb->input['ajax'])
----------------
REPLACE WITH:
----------------
function redirect($url, $message="", $title="")
{
global $header, $footer, $mybb, $theme, $headerinclude, $templates, $lang, $plugins;

$redirect_args = array(’url’ => &$url, ‘message’ => &$message, ‘title’ => &$title);

$plugins->run_hooks_by_ref(”redirect”, $redirect_args);

$url = addslashes($url) ;
if($mybb->input['ajax'])
----------------

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ