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,vuln

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: 4b0a0048304602210082a6a5ee6261408a464b15f586db3ed780901e6c27efde2553e12a344948add7022100c802967cf475f2c16a3134399f7f323a47f6f5184a255aa8ee15738894a2bc5c:922c64590222798bb761d5b6d8e72950