Rapid7 Vulnerability & Exploit Database

PhpTax pfilez Parameter Exec Remote Code Injection

Back to Search

PhpTax pfilez Parameter Exec Remote Code Injection

Disclosed
10/08/2012
Created
05/30/2018

Description

This module exploits a vulnerability found in PhpTax, an income tax report generator. When generating a PDF, the icondrawpng() function in drawimage.php does not properly handle the pfilez parameter, which will be used in an exec() statement, and then results in arbitrary remote code execution under the context of the web server. Please note: authentication is not required to exploit this vulnerability.

Author(s)

  • Jean Pascal Pereira <pereira@secbiz.de>
  • sinn3r <sinn3r@metasploit.com>

Platform

Linux,Unix

Architectures

cmd

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

;