Threat level definition
Search:
Home
Bugtraq
Vulnerabilities
Mailing Lists
Jobs
Tools
Beta Programs
News
Infocus
Foundations
Microsoft
Unix
IDS
Incidents
Virus
Pen-Test
Firewalls
Columnists
Mailing Lists
Newsletters
Bugtraq
Focus on IDS
Focus on Linux
Focus on Microsoft
Forensics
Pen-test
Security Basics
Vuln Dev
Vulnerabilities
Jobs
Job Opportunities
Resumes
Job Seekers
Employers
Tools
RSS
News
Vulns
Security Research
BugTraq
Back to list
|
Post reply
Re: MyBB 1.4.2: Multiple Vulnerabilties
Oct 27 2008 09:14PM
krzysztof kozlowski kozik net pl
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'])
----------------
[ reply ]
Privacy Statement
Copyright 2009, SecurityFocus
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'])
----------------
[ reply ]