nuclei-templates/cves/2022/CVE-2022-0870.yaml

53 lines
1.2 KiB
YAML
Raw Normal View History

2022-04-02 10:56:03 +00:00
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.
2022-07-26 05:38:35 +00:00
reference:
- https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0870
2022-04-02 10:56:03 +00:00
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
2022-07-26 06:57:16 +00:00
metadata:
shodan-query: http.favicon.hash:-449283196
2022-07-26 05:38:35 +00:00
tags: cve,cve2022,ssrf,gogs
2022-04-02 10:56:03 +00:00
requests:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
name: version
internal: true
group: 1
regex:
- '<div class="ui left">\n\s+© \d{4} Gogs Version: ([\d.]+) Page:'
- type: regex
group: 1
regex:
- '<div class="ui left">\n\s+© \d{4} Gogs Version: ([\d.]+) Page:'
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '<div class="ui left">\n\s+© \d{4} Gogs Version: ([\d.]+) Page:'
- type: dsl
dsl:
2022-07-26 06:57:16 +00:00
- compare_versions(version, '< 0.12.5')
- type: status
status:
- 200