id: codeigniter-errorpage

info:
  name: CodeIgniter - Error Page
  author: j4vaovo
  severity: low
  description: CodeIgniter error debug are enabled.
  classification:
    cpe: cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: codeigniter
    product: codeigniter
    shodan-query: title:"Error" html:"CodeIgniter"
    fofa-query: title="ErrorException"
  tags: codeigniter,misconfig,error

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Error</title>"
          - "<title>ErrorException</title>"
          - "<title>Database Error</title>"
        condition: or

      - type: word
        part: body
        words:
          - "CodeIgniter"
        case-insensitive: true

      - type: status
        status:
          - 200
          - 500
        condition: or
# digest: 4a0a0047304502210097317dc26544de5da793c93b1eba1922761e6901b1c83a39d099b719af1decac02205979413cc77925e568fdd5cf41aaed334371694bdc3ed7def74d9e26e8abdd3b:922c64590222798bb761d5b6d8e72950