From 47f97458af0bf017ca44aee9edc0033cdcf0f14f Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:14:04 +0530 Subject: [PATCH] Create CVE-2023-42442.yaml --- http/cves/2023/CVE-2023-42442.yaml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 http/cves/2023/CVE-2023-42442.yaml diff --git a/http/cves/2023/CVE-2023-42442.yaml b/http/cves/2023/CVE-2023-42442.yaml new file mode 100644 index 0000000000..6ab536c1cd --- /dev/null +++ b/http/cves/2023/CVE-2023-42442.yaml @@ -0,0 +1,40 @@ +id: CVE-2023-42442 + +info: + name: JumpServer > 3.6.4 - Information Disclosure + author: xianke + severity: high + description: | + JumpServer is an open source bastion host and a professional operation and maintenance security audit system. Starting in version 3.0.0 and prior to versions 3.5.5 and 3.6.4, session replays can download without authentication. Session replays stored in S3, OSS, or other cloud storage are not affected. The api `/api/v1/terminal/sessions/` permission control is broken and can be accessed anonymously. SessionViewSet permission classes set to `[RBACPermission | IsSessionAssignee]`, relation is or, so any permission matched will be allowed. Versions 3.5.5 and 3.6.4 have a fix. After upgrading, visit the api `$HOST/api/v1/terminal/sessions/?limit=1`. The expected http response code is 401 (`not_authenticated`). + reference: + - https://github.com/jumpserver/jumpserver/blob/v3.6.1/apps/terminal/api/session/session.py#L91 + - https://nvd.nist.gov/vuln/detail/CVE-2023-42442 + metadata: + max-request: 1 + verified: true + fofa-query: title="JumpServer" + tags: cve,cve2023,jumpserver,exposure + +http: + - method: GET + path: + - "{{BaseURL}}/api/v1/terminal/sessions/" + + matchers-condition: and + matchers: + - type: word + part: body + words: + - '"terminal":' + - '"user_id":"' + - '"account_id":' + condition: and + + - type: word + part: header + words: + - application/json + + - type: status + status: + - 200