id: concrete5-panel

info:
  name: Concrete5 Login Panel - Detect
  author: dhiyaneshDk
  severity: info
  description: Concrete5 login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:concrete5:concrete5:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: concrete5
    product: concrete5
    shodan-query:
      - http.title:"concrete5"
      - cpe:"cpe:2.3:a:concrete5:concrete5"
      - http.title:"install concrete5"
    fofa-query:
      - title="install concrete5"
      - title="concrete5"
    google-query:
      - intitle:"concrete5"
      - intitle:"install concrete5"
  tags: panel,concrete5,cms

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php/login'

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: regex
        part: body
        regex:
          - '(?mi)<title>(.*)concrete5(.*)<\/title>'
          - '(?mi)content="concrete5 - (.*)'
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'content="concrete5 \- ([0-9.]+)"\/>'
          - 'Version ([0-9.]+)'
# digest: 490a0046304402200849766d2f509512c244af8b052a6ca23f0260994b3dd1dd70ccacc6efe34cff02207dd204178a51227e97565cae7ec83852d98b4cfffed3604d83cb99df82f83f83:922c64590222798bb761d5b6d8e72950