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

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