From 5c802b177246e75b4e657f32b33516a9f1877a41 Mon Sep 17 00:00:00 2001 From: Geeknik Labs <466878+geeknik@users.noreply.github.com> Date: Thu, 30 Sep 2021 12:19:17 -0500 Subject: [PATCH 1/2] Create CVE-2021-41826.yaml Add CVE-2021-41826, PlaceOS 1.2109.1 - Open Redirection --- cves/2021/CVE-2021-41826.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cves/2021/CVE-2021-41826.yaml diff --git a/cves/2021/CVE-2021-41826.yaml b/cves/2021/CVE-2021-41826.yaml new file mode 100644 index 0000000000..1002552521 --- /dev/null +++ b/cves/2021/CVE-2021-41826.yaml @@ -0,0 +1,30 @@ +id: CVE-2021-41826 + +info: + name: PlaceOS 1.2109.1 - Open Redirection + author: geeknik + severity: low + description: PlaceOS Authentication Service before 1.29.10.0 allows app/controllers/auth/sessions_controller.rb open redirect + reference: + - https://github.com/PlaceOS/auth/issues/36 + - https://www.exploit-db.com/exploits/50359 + - https://nvd.nist.gov/vuln/detail/CVE-2021-41826 + tags: cve,cve2021,placeos,redirect + +requests: + - method: GET + path: + - "{{BaseURL}}/auth/logout?continue=//example.com" + + matchers-condition: and + matchers: + + - type: status + status: + - 302 + - 301 + + - type: regex + part: header + words: + - '(?mi)(?:Location\s*?:\s*?)((?:https?:\/\/|\/\/?))?(?:[a-zA-Z0-9\-_\.@]*)example\.com.*' From ed07a9924230ecc7a8f9aef4936d8076298c34c4 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Mon, 4 Oct 2021 22:20:00 +0530 Subject: [PATCH 2/2] Update CVE-2021-41826.yaml --- cves/2021/CVE-2021-41826.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cves/2021/CVE-2021-41826.yaml b/cves/2021/CVE-2021-41826.yaml index 1002552521..98cd0f66a4 100644 --- a/cves/2021/CVE-2021-41826.yaml +++ b/cves/2021/CVE-2021-41826.yaml @@ -23,8 +23,9 @@ requests: status: - 302 - 301 + condition: or - type: regex part: header words: - - '(?mi)(?:Location\s*?:\s*?)((?:https?:\/\/|\/\/?))?(?:[a-zA-Z0-9\-_\.@]*)example\.com.*' + - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)example\.com.*$'