A php programmer who use xdebug’s remote debugging feature may affects RCE when he just access to attacker’s website in modern browsers.
Xdebug is an extension for PHP to assist with debugging and development. PHP programmers or web security researchers always setup a local PHP debugging environments for convenience. If the debugging server can be directly accessed by an attacker, there is a Remote Code Execution vulnerability.
But usually, these servers are in Intranet and some even bind on
127.0.0.1, which makes it hard to be accessed. What if attacking Xdebug using CSRF?
Let’s read the Xdebug’s document first. As in the doc, if
xdebug.remote_connect_back is enabled, the
xdebug.remote_host setting is ignored and Xdebug will try to connect to the client that made the HTTP request. It checks the
$_SERVER['REMOTE_ADDR'] variables to find out which IP address to use.
Continue reading “Pwning PHP developers”