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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Openkm OpenKM Community Edition
Default version status: unknown
0 to ≤ 6.3.12affected
Openkm OpenKM Professional Edition
Default version status: unknown
0 to ≤ 7.1.47affected
References
- https://www.exploit-db.com/exploits/52520 ↗
- https://www.openkm.com/ ↗
- https://hub.docker.com/r/openkm/openkm-ce ↗
- https://terrasystemlabs.com/post?slug=openkm-zero-day-vulnerabilities-terra-system-labs ↗
- https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits ↗
- https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-sql-database-query ↗
- https://www.vulncheck.com/advisories/openkm-unrestricted-sql-execution-via-databasequery ↗