module

PhpTax pfilez Parameter Exec Remote Code Injection

Disclosed
Oct 8, 2012
Created
May 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.

Authors

Jean Pascal Pereira [email protected]
sinn3r [email protected]

Platform

Linux,Unix

Architectures

cmd

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.