Vulnerability & Exploit Database

Back to search

Kimai v0.9.2 'db_restore.php' SQL Injection

This module exploits a SQL injection vulnerability in Kimai version 0.9.2.x. The 'db_restore.php' file allows unauthenticated users to execute arbitrary SQL queries. This module writes a PHP payload to disk if the following conditions are met: The PHP configuration must have 'display_errors' enabled, Kimai must be configured to use a MySQL database running on localhost; and the MySQL user must have write permission to the Kimai 'temporary' directory.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/unix/webapp/kimai_sqli

Authors

  • drone
  • Brendan Coles <bcoles [at] gmail.com>

References

Targets

  • Kimai version 0.9.2.x (PHP Payload)

Platforms

  • php

Architectures

  • php

Reliability

Development

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/unix/webapp/kimai_sqli msf exploit(kimai_sqli) > show targets ...targets... msf exploit(kimai_sqli) > set TARGET <target-id> msf exploit(kimai_sqli) > show options ...show and set options... msf exploit(kimai_sqli) > exploit