|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
krzysztof.kozlowski
kozik.net.pl
Date: Mon Oct 27 2008 - 16:14:29 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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'])
----------------
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]