id: squirrelmail-login

info:
  name: SquirrelMail Login Panel - Detect
  author: dhiyaneshDk,ritikchaddha
  severity: info
  description: SquirrelMail login panel was detected.
  reference:
    - https://www.exploit-db.com/ghdb/7407
  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:squirrelmail:squirrelmail:*:*:*:*:*:*:*:*
  metadata:
    max-request: 4
    vendor: squirrelmail
    product: squirrelmail
    shodan-query:
      - title:"SquirrelMail"
      - http.title:"squirrelmail"
      - cpe:"cpe:2.3:a:squirrelmail:squirrelmail"
    fofa-query: title="squirrelmail"
    google-query: intitle:"squirrelmail"
  tags: squirrelmail,edb,panel

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/src/login.php"
      - "{{BaseURL}}/webmail/src/login.php"
      - "{{BaseURL}}/squirrelmail/src/login.php"

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "SquirrelMail"

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