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: 490a00463044022100b3612a48f8654ad02d30dfe3067d74dbe445bebe09e6c954be206aadf729da0f021f7b66a53cd48c3d41ef4f9835e0756190877f21f968b6b2f914d7d3c736a92d:922c64590222798bb761d5b6d8e72950