Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

OpenX banner-edit.php File Upload PHP Code Execution

Disclosed
Nov 24, 2009
Created
May 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

Platform

PHP

Architectures

php

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

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.