id: yii-debugger

info:
  name: View Yii Debugger Information
  author: geeknik,rumble773
  severity: low
  description: Detects potential exposure to Yii Debugger information.
  reference:
    - https://yii2-framework.readthedocs.io/en/stable/guide/tool-debugger/
  classification:
    cpe: cpe:2.3:a:yii_software:yii:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 6
    vendor: yii_software
    product: yii
    shodan-query: title:"Yii Debugger"
  tags: yii,debug,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/debug/default/view.html"
      - "{{BaseURL}}/debug/default/view"
      - "{{BaseURL}}/frontend/web/debug/default/view"
      - "{{BaseURL}}/web/debug/default/view"
      - "{{BaseURL}}/sapi/debug/default/view"
      - "{{BaseURL}}/debug/default"

    host-redirects: true
    max-redirects: 2
    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>Yii Debugger</title>"
          - "Status"
          - "Route"
          - "Log"
          - "Time"
          - "Memory"
          - "DB"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100c082ac0ad508525aa3bf08a3af2e618f6709a7c566191670620a02805d4a79310220730e0942a92f740ddfac448682adcc5b743621649d6fd190b28b7067b985f6ca:922c64590222798bb761d5b6d8e72950