Rapid7 Vulnerability & Exploit Database

OpenX banner-edit.php File Upload PHP Code Execution

Back to Search

OpenX banner-edit.php File Upload PHP Code Execution

Disclosed
11/24/2009
Created
05/30/2018

Description

This module exploits a vulnerability in the OpenX advertising software. In versions prior to version 2.8.2, authenticated users can upload files with arbitrary extensions to be used as banner creative content. By uploading a file with a PHP extension, an attacker can execute arbitrary PHP code. NOTE: The file must also return either "png", "gif", or "jpeg" as its image type as returned from the PHP getimagesize() function.

Author(s)

  • jduck <jduck@metasploit.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/openx_banner_edit
msf exploit(openx_banner_edit) > show targets
    ...targets...
msf exploit(openx_banner_edit) > set TARGET < target-id >
msf exploit(openx_banner_edit) > show options
    ...show and set options...
msf exploit(openx_banner_edit) > 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

;