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

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