Cross-site scripting in gogs - CVE-2018-17031

 

Cross-site scripting in gogs - CVE-2018-17031

Published: September 14, 2018 / Updated: August 8, 2020


Vulnerability identifier: #VU36698
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2018-17031
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
gogs

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

In Gogs 0.11.53, an attacker can use a crafted .eml file to trigger MIME type sniffing, which leads to XSS, as demonstrated by Internet Explorer, because an "X-Content-Type-Options: nosniff" header is not sent.


How to mitigate CVE-2018-17031

Install update from vendor's website.

Sources