From 51d9143fb125d0cd572a76a4575eb3b2c198ce19 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Sat, 2 Apr 2022 16:26:03 +0530 Subject: [PATCH] Create CVE-2022-0870.yaml --- cves/2022/CVE-2022-0870.yaml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 cves/2022/CVE-2022-0870.yaml diff --git a/cves/2022/CVE-2022-0870.yaml b/cves/2022/CVE-2022-0870.yaml new file mode 100644 index 0000000000..ccac3eddb5 --- /dev/null +++ b/cves/2022/CVE-2022-0870.yaml @@ -0,0 +1,47 @@ +id: CVE-2022-0870 + +info: + name: Gogs - SSRF + author: Akincibor + severity: medium + description: Server-Side Request Forgery (SSRF) in Gogs prior to 0.12.5. + reference: https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/ + tags: cve,ssrf + classification: + cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N + cvss-score: 5.30 + cve-id: CVE-2022-0870 + cwe-id: CWE-918 + +requests: + - method: GET + path: + - "{{BaseURL}}" + + extractors: + - type: regex + name: version + internal: true + group: 1 + regex: + - '
\n\s+© \d{4} Gogs Version: ([\d.]+) Page:' + + - type: regex + group: 1 + regex: + - '
\n\s+© \d{4} Gogs Version: ([\d.]+) Page:' + + matchers-condition: and + matchers: + - type: status + status: + - 200 + + - type: regex + part: body + regex: + - '
\n\s+© \d{4} Gogs Version: ([\d.]+) Page:' + + - type: dsl + dsl: + - to_string(version) < "0.12.5"