id: qmail-admin-login

info:
  name: QmailAdmin Login Panel - Detect
  author: ritikchaddha
  severity: info
  description: QmailAdmin 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:qmail_project:qmail:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 5
    vendor: qmail_project
    product: qmail
    shodan-query:
      - title:"QmailAdmin"
      - http.title:"qmailadmin"
    fofa-query: title="qmailadmin"
    google-query: intitle:"qmailadmin"
  tags: qmail,panel,qmail_project,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/qmailadmin/qmailadmin.cgi"
      - "{{BaseURL}}/cgi-bin/qmailadmin/qmailadmin"
      - "{{BaseURL}}/cgi-bin/qmailadmin"
      - "{{BaseURL}}/cgi-ssl/qmailadmin/qmailadmin"

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "QmailAdmin"

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