module

xdebug Unauthenticated OS Command Execution

Disclosed
Sep 17, 2017
Created
Jun 14, 2018

Description

Module exploits a vulnerability in the eval command present in Xdebug versions 2.5.5 and below.
This allows the attacker to execute arbitrary php code as the context of the web user.

Authors

Ricter Zheng
Shaksham Jaiswal
Mumbai

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