add php-xdebug-rce

patch-1
pwnhxl 2023-03-13 20:40:41 +08:00
parent 4729ba8496
commit ee8ee0bf4b
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
id: php-xdebug-rce
info:
name: PHP-Xdebug-RCE
author: pwnhxl
severity: high
description: PHP Xdebug Remote Code Exec.
reference:
- https://github.com/vulhub/vulhub/tree/master/php/xdebug-rce
- https://redshark1802.com/blog/2015/11/13/xpwn-exploiting-xdebug-enabled-servers/
- https://paper.seebug.org/397/
tags: php,debug,xdebug,oast,rce
requests:
- raw:
- |
GET /?XDEBUG_SESSION_START={{randstr}} HTTP/1.1
Host: {{Hostname}}
X-Forwarded-For: {{interactsh-url}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "dns"
- type: word
part: header
words:
- 'Set-Cookie: XDEBUG_SESSION={{randstr}}'
- type: status
status:
- 200