Rapid7 VulnDB

xdebug Unauthenticated OS Command Execution

Back to Search

xdebug Unauthenticated OS Command Execution

Disclosed
09/17/2017
Created
06/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.

Author(s)

  • Ricter Zheng
  • Shaksham Jaiswal
  • Mumbai

Platform

PHP

Architectures

php

Development

References

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

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

;