id: wamp-xdebug-detect

info:
  name: WAMP Xdebug - Detect
  author: e_schultze_
  severity: info
  description: WAMP Xdebug was detected.
  reference:
    - https://github.com/random-robbie/My-Shodan-Scripts/blob/1b01bceecc9be0b74b202f445874920eee48bba5/wamp-xdebug/wamp-xdebug.py
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: debug,config,wamp,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/?phpinfo=-1"

    matchers:
      - type: word
        words:
          - 'xdebug.remote_connect_back</td><td class="v">On</td><td class="v">On</td>'
        part: body

# digest: 490a0046304402202fd3e9daa0910b6e85ff4e8f4c0390ff720a2b9e76a611ca001a710e847a1ceb022024e41677c8d971632e36456e587d3f7b23bd6cb15938f22be2cec8b9edc150e5:922c64590222798bb761d5b6d8e72950
