Exploit database

Vulnerability

CVE-2015-10141

Xdebug Remote Debugger Unauthenticated OS Command Execution

Vulnerability details

Score
9.3
Severity
critical

CVSS 4.0 · VulnCheck

Vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Description

An unauthenticated OS command injection vulnerability exists within Xdebug versions 2.5.5 and earlier, a PHP debugging extension developed by Derick Rethans. When remote debugging is enabled, Xdebug listens on port 9000 and accepts debugger protocol commands without authentication. An attacker can send a crafted eval command over this interface to execute arbitrary PHP code, which may invoke system-level functions such as system() or passthru(). This results in full compromise of the host under the privileges of the web server user.

CVE Program

Exploit source choices

3 sources
xdebug Unauthenticated OS Command Execution
MSF-unix--http--xdebug_unauth_execMetasploitPHP / remote

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.

2017-09-17xdebug_unauth_exec.rb
d3ext/cve-2015-10141
GH-cc5193967ad1cf56a324501c768bad29GitHubUnofficial GitHub source

POC exploit for CVE-2015-10141

2022-07-041 file · 31 stars