Description
OpenKM 6.3.12 contains an unrestricted SQL execution vulnerability that allows authenticated administrative users to execute arbitrary SQL statements against the application database via the DatabaseQuery interface. Attackers can submit malicious SQL queries through the qs parameter to the /admin/DatabaseQuery endpoint to extract sensitive data including usernames and password hashes from the OKM_USER table, modify permissions, or delete database records.
Problem types
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Product status
Any version
Any version
Credits
Terra System Labs Pvt. Ltd.
References
www.exploit-db.com/exploits/52520 (ExploitDB-52520)
www.openkm.com/ (Official Product Homepage)
hub.docker.com/r/openkm/openkm-ce (Product Reference)
terrasystemlabs.com/...day-vulnerabilities-terra-system-labs (Vulnerability Advisory)
github.com/...asystemlabs/Exploits/tree/main/OpenKM-Exploits (Proof-of-Concept Toolkit)
github.com/...its/nuclei-templates/openkm-sql-database-query (Nuclei Detection Template)
www.vulncheck.com/...tricted-sql-execution-via-databasequery (VulnCheck Advisory: OpenKM 6.3.12 Unrestricted SQL Execution via DatabaseQuery)