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,discovery

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