News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

suspected vulnerabilities in 2.0.2

Started by Takfly, July 25, 2012, 10:55:47 AM

Previous topic - Next topic

Takfly

Hi,

has anybody been made aware of the XSS vulnerabilities in SMF 2.0.2?


Link removed for security reasons...

If so, is there an eta on a fix?

if not can somebody move this to the correct forum?


Regards,


Takfly

Takfly

Here is the info from the publisher:


Title:
======
SMF Board v2.0.2 - Multiple Web Vulnerabilities


Date:
=====
2012-06-25


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=596


VL-ID:
=====
624


Common Vulnerability Scoring System:
====================================
4.1


Introduction:
=============
Simple Machines Forum — SMF in short — is a free, professional grade software package that allows you to set up
your own online community within minutes. Its powerful custom made template engine puts you in full control of
the layout of your message board and with our unique SSI - or Server Side Includes - function you can let your
forum and your website interact with each other. SMF is written in the popular language PHP and uses a MySQL database.
It is designed to provide you with all the features you need from a bulletin board while having an absolute minimal
impact on the resources of the server. SMF is the next generation of forum software - and best of all it is and
will always remain completely free!

(Copy of the Vendor Homepage: http://www.simplemachines.org/ )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the official SMF v2.0.2 (Forum Application).


Report-Timeline:
================
2012-06-23:  Public or Non-Public Disclosure


Status:
========
Published


Affected Products:
==================
SMF
Product: Simple Machines Forum v2.0.2


Exploitation-Technique:
=======================
Remote


Severity:
=========
Medium


Details:
========
Multiple persistent input validation vulnerabilities are detected in the official SMF v2.0.2 (Board|Forum Application) CMS.
The bugs allow remote attackers to implement/inject malicious script code on the application side (persistent). The persistent
vulnerabilities are located in the package manager, smiley sets, newsletter and edit members or groups with the vulnerable bound
post parameters local path url, username, url, emails & title. Exploitation requires low user inter action & privileged application
user account. Successful exploitation of the vulnerability can lead to session hijacking (admin/mod/user) or stable (persistent)
manipulation of the web application context.

Vulnerable Section(s):
                          [+] Package Manager > Download New Packages > FTP Information Required
                          [+] Smiley Sets > Add
                          [+] Newsletter > Add
                          [+] My Community > Administration Center > Membergroups > Edit Membergroups


Vulnerable Module(s):
                          [+] Local path to SMF & Username [Packages]
                          [+] URL
                          [+] Name of emails
                          [+] Name & Group Title


Proof of Concept:
=================
The persistent input validation vulnerability can be exploited by remote attacker with local low privileged user account & low required
user inter action. For demonstration or reproduce ...

Review: Package Manager > Download New Packages > FTP Information Required (Listing)

<dd>
<input size="30" name="ftp_server" id="ftp_server" type="text"><[PERSISTENT SCRIPT CODE]' <"="" class="input_text">
<label for="ftp_port">Port:&nbsp;</label>
<input type="text" size="3" name="ftp_port" id="ftp_port" value="21"
class="input_text" />

... or


<dd>
<input size="50" name="ftp_path" id="ftp_path" value="public_html/demo/smf "
type="text"><[PERSISTENT SCRIPT CODE])' <"="" style="width: 99%;" class="input_text">
</dd>
</dl>
<div class="righttext">


URL: http://127.0.0.1:1339/smf/index.php?action=admin;area=packages;sa=packageget;get;f5073d7837d8=5a2bdd540a245be265f26c102fff9626



Review: Smiley Sets > Add

<tr class="windowbg" id="list_smiley_set_list_0">
<td style="text-align: center;"></td>
<td class="windowbg">Akyhne's Set</td>
<td class="windowbg">"><[PERSISTENT SCRIPT CODE]' <="" <strong="">
akyhne</strong>/...</td>


URL: http://127.0.0.1:1339/smf/index.php?action=admin;area=smileys;sa=modifyset;set=2


Review: Newsletter > Add

<input name="email_force" value="0" type="hidden">
<input name="total_emails" value="1" type="hidden">
<input name="max_id_member" value="13" type="hidden">
<input name="groups" value="0,1,2,3" type="hidden">
<input name="exclude_groups" value="0,1,2,3" type="hidden">
<input name="members" value="" type="hidden">
<input name="exclude_members" value="" type="hidden">
<input name="emails" value="" type="hidden"><[PERSISTENT SCRIPT CODE])' <"="">
    </form>
  </div>
  <br class="clear" />
</div>

URL: http://127.0.0.1:1339/smf/index.php?action=admin;area=news;sa=mailingmembers;b74f235ec=2b30f2b9aad6e26815e1c18594922b37


Review: Edit Membergroups & User/Groups Listing

<h3 class="catbg">Edit Membergroup - "><[PERSISTENT SCRIPT CODE])' <"=""><[PERSISTENT SCRIPT CODE]) <"
><ifram
</h3>
</div>
<div class="windowbg2">
<span class="topslice"><span></span></span>

URL: http://127.0.0.1:1339/smf/index.php?action=admin;area=membergroups;sa=index;b74f235ec=2b30f2b9aad6e26815e1c18594922b37
URL: http://127.0.0.1:1339/smf/index.php?action=admin;area=membergroups;sa=add;b74f235ec=2b30f2b9aad6e26815e1c18594922b37



Risk:
=====
The security risk of the persistent input validation vulnerabilities are estimated as medium(+).


Credits:
========
Vulnerability Laboratory [Research Team]  -    Benjamin Kunz Mejri ([email protected])


Disclaimer:
===========
The information provided in this advisory is provided as it is without any warranty. Vulnerability-Lab disclaims all warranties,
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-
Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business
profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some
states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation
may not apply.

Domains:  www.vulnerability-lab.com     - www.vuln-lab.com
Contact:  [email protected]   - [email protected]   - [email protected]
Section:  video.vulnerability-lab.com   - forum.vulnerability-lab.com     - news.vulnerability-lab.com
Social:    twitter.com/#!/vuln_lab   - facebook.com/VulnerabilityLab   - youtube.com/user/vulnerability0lab

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory.
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, sourcecode, videos and
other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed),
modify, use or edit our material contact ([email protected] or [email protected]) to get a permission.

                Copyright © 2012 Vulnerability-Lab



--
VULNERABILITY RESEARCH LABORATORY TEAM
Website: www.vulnerability-lab.com
Mail: [email protected]



Takfly

Kindred

this is, essentially, BS...

not because it's not true... but because in order to take advantage of it, the person needs to already have access to the admin section...  and if you have full access to the admin section, you already have access to ALL of the users' data and the ability to upload packages - so this "injection" complaint is really kinda silly.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Takfly

Cheers for the reply,

Is that confirmed BS or just speculated BS?


Takfly

Kindred

well, it confirmed that - in order to do the things indicated in this report, you must already have access to the admin section.
the report does NOT indicate any way to bypass the admin check or to break into the admin account.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Oh, not this again.

It is not exactly a vulnerability in that the people producing such reports didn't actually do anything much to produce it, they just hammered the same script through every page in SMF in the hopes of finding something.

It is a vulnerability of sorts in that there is content that is not thoroughly vetted - and whether it should be is another entirely.

(I would note this is the second time this has been posted here. The first time was a couple of weeks ago and moved to the developers' board.)

If this is such a reputable firm conducting tests, why did they not apprise the team of the vulnerability ahead of time, as would be the correct, reputable thing to do?

Quote from: Kindred on July 25, 2012, 11:26:09 AM
well, it confirmed that - in order to do the things indicated in this report, you must already have access to the admin section.
the report does NOT indicate any way to bypass the admin check or to break into the admin account.

The real point is that the report author believes there is an issue that could be escalated to admin account compromise through XSS or similar but since you already have to be an admin anyway it sort of renders it a bit mute - it's a vulnerability that requires a compromised system in order to exploit it
Holder of controversial views, all of which my own.


Takfly

Quote from: Kindred on July 25, 2012, 11:06:48 AM
not because it's not true... but because in order to take advantage of it, the person needs to already have access to the admin section...  and if you have full access to the admin section, you already have access to ALL of the users' data and the ability to upload packages - so this "injection" complaint is really kinda silly.

I guess what I'm asking is, what are the chances of this causing me a massive headache further down the line, but I can see where you are right.

All of the modules described in the vulnerability PoC are only accessible with sufficient privileges to negate the effort required to perform a successful exploit..

I suppose the only way it could be a threat if non-standard privileges were assigned to a "demi-admin" group.

Thanks Again

Takfly

Kindred

Well, come on... I mean, if you give someone access to the admin features, you had darned well better trust them - same as giving someone access to your server.  :)

This is like saying "I gave someone FTP access and they uploaded a backdoor and compromised my entire server, but it's an exploit because they weren't supposed to do that"
lol!
Seriously...   if someone has access to your package manager, then they can literally upload ANYTHING to your forum install...  as long as it is parsed correctly. (same thing goes for any software which allows the upload of modules or other packages)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: