Cross-site scripting in cgit - CVE-2016-1900
Published: January 20, 2016 / Updated: July 28, 2020
cgit
Detailed vulnerability description
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data. The vulnerability allows remote attackers with permission to write to a repository to inject arbitrary HTTP headers and conduct HTTP response splitting attacks or cross-site scripting (XSS) attacks via newline characters in a filename.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
How to mitigate CVE-2016-1900
Sources
- http://git.zx2c4.com/cgit/commit/?id=513b3863d999f91b47d7e9f26710390db55f9463
- http://lists.fedoraproject.org/pipermail/package-announce/2016-January/176167.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-January/176198.html
- http://lists.opensuse.org/opensuse-updates/2016-01/msg00067.html
- http://lists.opensuse.org/opensuse-updates/2016-01/msg00084.html
- http://lists.zx2c4.com/pipermail/cgit/2016-January/002790.html
- http://lists.zx2c4.com/pipermail/cgit/2016-January/002817.html
- http://www.debian.org/security/2016/dsa-3545
- http://www.openwall.com/lists/oss-security/2016/01/14/3
- http://www.openwall.com/lists/oss-security/2016/01/14/6