module
Klog Server authenticate.php user Unauthenticated Command Injection
Disclosed | Created |
---|---|
2020-12-27 | 2021-02-13 |
Disclosed
2020-12-27
Created
2021-02-13
Description
This module exploits an unauthenticated command injection vulnerability
in Klog Server versions 2.4.1 and prior.
The `authenticate.php` file uses the `user` HTTP POST parameter in a call
to the `shell_exec()` PHP function without appropriate input validation,
allowing arbitrary command execution as the apache user.
The sudo configuration permits the apache user to execute any command
as root without providing a password, resulting in privileged command
execution as root.
This module has been successfully tested on Klog Server version 2.4.1
virtual appliance.
in Klog Server versions 2.4.1 and prior.
The `authenticate.php` file uses the `user` HTTP POST parameter in a call
to the `shell_exec()` PHP function without appropriate input validation,
allowing arbitrary command execution as the apache user.
The sudo configuration permits the apache user to execute any command
as root without providing a password, resulting in privileged command
execution as root.
This module has been successfully tested on Klog Server version 2.4.1
virtual appliance.
Authors
b3kc4t
Metin Yunus Kandemir
bcoles bcoles@gmail.com
Metin Yunus Kandemir
bcoles bcoles@gmail.com
Platform
Linux,Unix
References
Module Options
To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:

NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.