Rapid7 Vulnerability & Exploit Database

HybridAuth install.php PHP Code Execution

Back to Search

HybridAuth install.php PHP Code Execution

Disclosed
08/04/2014
Created
05/30/2018

Description

This module exploits a PHP code execution vulnerability in HybridAuth versions 2.0.9 to 2.2.2. The install file 'install.php' is not removed after installation allowing unauthenticated users to write PHP code to the application configuration file 'config.php'. Note: This exploit will overwrite the application configuration file rendering the application unusable.

Author(s)

  • Pichaya Morimoto
  • bcoles <bcoles@gmail.com>

Platform

PHP

Architectures

php

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;