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.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/klog/server_authenticate_user_unauth_command_injectionmsf undefined(server_authenticate_user_unauth_command_injection) > show actions ...actions...msf undefined(server_authenticate_user_unauth_command_injection) > set ACTION < action-name >msf undefined(server_authenticate_user_unauth_command_injection) > show options ...show and set options...msf undefined(server_authenticate_user_unauth_command_injection) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub