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

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