Bug 1298851 - (CVE-2016-1899) CVE-2016-1899 cgit: Reflected XSS and header injection in mimetype query string
CVE-2016-1899 cgit: Reflected XSS and header injection in mimetype query string
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160104,repor...
: Security
Depends On: 1298852 1298853
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-15 04:30 EST by Adam Mariš
Modified: 2016-02-01 18:24 EST (History)
4 users (show)

See Also:
Fixed In Version: cgit 0.12
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2016-01-15 04:30:16 EST
It was found that ui-blob handler accepted a mimetype as a query string and then echoed this string verbatim back. A malicious user could provide a string like:

http://git.zx2c4.com/cgit/blob/cgit.c?mimetype=text/html%0d%0a%0d%0a<script>xss</script>

Upstream patch:

http://git.zx2c4.com/cgit/commit/?id=1c581a072651524f3b0d91f33e22a42c4166dd96

CVE assignment:

http://openwall.com/lists/oss-security/2016/01/14/6
Comment 1 Adam Mariš 2016-01-15 04:30:50 EST
Created cgit tracking bugs for this issue:

Affects: fedora-all [bug 1298852]
Affects: epel-all [bug 1298853]
Comment 2 Fedora Update System 2016-01-25 22:18:53 EST
cgit-0.12-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 3 Fedora Update System 2016-01-26 13:26:10 EST
cgit-0.12-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 4 Fedora Update System 2016-02-01 17:54:31 EST
cgit-0.12-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
Comment 5 Fedora Update System 2016-02-01 18:24:37 EST
cgit-0.12-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.