Skip to content

Access Control: Xdebug remote code execution via xdebug.remote_connect_back

Identifier: php_xdebug_rce

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner ASM Scanner

Description

The XDebug extension \<= v2.6.0 for PHP with 'xdebug.remote_connect_back' enabled and exposed to the internet could allow an unauthenticated remote attacker to trigger a debugging session, effectively gaining remote code execution capabilities.

How we test: We test for XDebug remote debugging vulnerabilities by attempting to trigger debugging sessions via web requests and analyzing responses to detect if remote debugging is enabled and accessible, which could lead to remote code execution.

Reference:

Configuration

Example

Example configuration:

---
security_tests:
  php_xdebug_rce:
    skip: false

Reference

skip

Type : boolean

Skip the test if true.