Description
OpenKM 6.3.12 contains a remote code execution vulnerability that allows authenticated administrators to execute arbitrary Java/BeanShell code through the /admin/Scripting endpoint. Attackers can submit malicious script content with an action=Evaluate parameter to execute operating system commands in the context of the OpenKM application server.
Problem types
Improper Control of Generation of Code ('Code 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/.../nuclei-templates/openkm-remote-code-execution (Nuclei Detection Template)
www.vulncheck.com/...-execution-via-administrative-scripting (VulnCheck Advisory: OpenKM 6.3.12 Remote Code Execution via Administrative Scripting)