PT-2018-13849 · Gogs · Gogs

Wenxu Wu

·

Published

2018-09-14

·

Updated

2024-08-20

·

CVE-2018-17031

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Gogs version 0.11.53
Description The issue allows an attacker to trigger MIME type sniffing using a crafted .eml file, leading to XSS. This is demonstrated by Internet Explorer and is caused by the lack of an "X-Content-Type-Options: nosniff" header.
Recommendations For Gogs version 0.11.53, consider implementing the "X-Content-Type-Options: nosniff" header to prevent MIME type sniffing and mitigate the risk of XSS. As a temporary workaround, restrict the handling of .eml files until a patch is available.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2018-17031
GHSA-PX5R-FQJ6-R2F8
GO-2023-1972

Affected Products

Gogs