module

PhpTax pfilez Parameter Exec Remote Code Injection

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

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 pereira@secbiz.de
sinn3r sinn3r@metasploit.com

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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.