Jumpserver Koko vulnerable to remote code execution on the host system via MongoDB shell
Moderate severity
GitHub Reviewed
Published
Sep 26, 2023
in
jumpserver/jumpserver
•
Updated Nov 11, 2023
Package
Affected versions
>= 2.0.0, < 2.28.20
>= 3.0.0, < 3.7.1
Patched versions
2.28.20
3.7.1
Description
Published by the National Vulnerability Database
Sep 27, 2023
Published to the GitHub Advisory Database
Oct 24, 2023
Reviewed
Oct 24, 2023
Last updated
Nov 11, 2023
Impact
An authenticated user can exploit a vulnerability in MongoDB sessions to execute arbitrary commands, leading to remote code execution. This vulnerability may further be leveraged to gain root privileges on the host system.
Details
Through the WEB CLI interface provided by koko, a user logs into the authorized mongoDB database and exploits the MongoDB session to execute arbitrary commands.
Patches
Safe versions:
Workarounds
It is recommended to upgrade the safe versions.
After upgrade, you can use the same method to check whether the vulnerability is fixed.
References
Thanks for Oskar Zeino-Mahmalat of Sonar found and report this vulnerability
References