Gogs XSS Vulnerability
Date: 2022-05
Affected: go/gogs.io/gogs
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2018-17031
CWE: CWE-79
CVSS: 6.1 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):