Skip to content

Commit dfca45c

Browse files
geeknikdwisiswant0
authored andcommitted
Update php-debugbar-exposure.yaml
Obliterating false negatives.
1 parent 882efc2 commit dfca45c

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

http/misconfiguration/php-debugbar-exposure.yaml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ id: php-debugbar-exposure
22

33
info:
44
name: Php Debug Bar - Exposure
5-
author: ritikchaddha,pdteam,dhiyaneshDk
5+
author: ritikchaddha, pdteam, dhiyaneshDk, geeknik
66
severity: high
77
description: |
8-
The DebugBar integrates easily in any projects and can display profiling data from any part of your application. It comes built-in with data collectors for standard PHP features and popular projects.
8+
The DebugBar integrates easily into projects and can display profiling data from any part of your application. This template detects exposed PHP Debug Bars by looking for known response bodies and the `phpdebugbar-id` in headers.
99
reference:
1010
- https://hackerone.com/reports/1883806
1111
- http://phpdebugbar.com/
@@ -14,20 +14,34 @@ info:
1414
verified: true
1515
max-request: 2
1616
shodan-query: html:"phpdebugbar"
17-
tags: hackerone,misconfig,php,phpdebug,exposure
17+
tags: hackerone, misconfig, php, phpdebug, exposure
1818

1919
http:
2020
- method: GET
2121
path:
2222
- "{{BaseURL}}"
2323
- "{{BaseURL}}/_debugbar/open"
24-
2524
host-redirects: true
2625
max-redirects: 2
2726
matchers:
2827
- type: dsl
2928
dsl:
30-
- 'contains(body_1, "phpdebugbar") && contains(body, "widget")'
31-
- 'contains_all(body_2, "\"utime\"","\"datetime\"","{\"id") && contains(content_type_2, "application/json")'
32-
condition: or
33-
# digest: 4a0a00473045022100ae074f15355d3a5c73ee1e144067e2bc82cc11539e6793bcfbf8471f8853945c02201a4ad22c14f9c2d87bf7dcedc9cd70d261f383010b55d4c3098677e7c6090f06:922c64590222798bb761d5b6d8e72950
29+
- 'contains(body, "phpdebugbar")'
30+
- 'contains(body, "widget")'
31+
condition: and
32+
- type: dsl
33+
dsl:
34+
- 'contains(header, "phpdebugbar-id")'
35+
36+
- method: HEAD
37+
path:
38+
- "{{BaseURL}}/_debugbar/open"
39+
host-redirects: true
40+
max-redirects: 1
41+
matchers:
42+
- type: status
43+
status:
44+
- 200
45+
- type: dsl
46+
dsl:
47+
- 'contains(header, "phpdebugbar-id")'

0 commit comments

Comments
 (0)