Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions http/misconfiguration/php-debugbar-exposure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ id: php-debugbar-exposure

info:
name: Php Debug Bar - Exposure
author: ritikchaddha,pdteam,dhiyaneshDk
author: ritikchaddha,pdteam,DhiyaneshDk,geeknik
severity: high
description: |
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.
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.
reference:
- https://hackerone.com/reports/1883806
- http://phpdebugbar.com/
Expand All @@ -14,20 +14,19 @@ info:
verified: true
max-request: 2
shodan-query: html:"phpdebugbar"
tags: hackerone,misconfig,php,phpdebug,exposure
tags: misconfig,php,phpdebug,exposure,debug

http:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/_debugbar/open"

host-redirects: true
max-redirects: 2
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- 'contains(body_1, "phpdebugbar") && contains(body, "widget")'
- 'contains_all(body_2, "\"utime\"","\"datetime\"","{\"id") && contains(content_type_2, "application/json")'
condition: or
# digest: 4a0a004730450221008385070408864bc4f89c67be56c1e85cfede9dc779054df19a1342c2cc0d36a6022052d35aec22f6d087a7bb570fd0f0e28e75652dc9efbbd0d37942721917f0eb4e:922c64590222798bb761d5b6d8e72950
- 'contains_all(body, "phpdebugbar", "widget") && status_code == 200'
- 'contains(header, "phpdebugbar-id")'
- 'contains_all(body, "\"utime\"","\"datetime\"","{\"id") && contains(content_type, "application/json")'
condition: or
Loading