CVE-2010-3906: XSS
Cross-site scripting (XSS) flaw was found in the web interface of Git distributed revision control system. A remote attacker could use this flaw to execute arbitrary HTML or scripting code by providing a certain URL with specially-crafted values of f and fp variables.
References: [1] http://www.bugsearch.net/en/11075/gitweb-1733-cross-site-scripting-cve-2010-3906.html?ref=3 [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607248
Upstream changeset: [3] http://repo.or.cz/w/git.git/commit/3017ed62f47ce14a959e2d315c434d4980cf4243
Public PoC (from [1]): http://localhost/?p=foo/bar/ph33r.git;a=blobdiff;f=[XSS];fp=[XSS] [XSS] => "><body onload="alert('xss')"> <a
Credit: Emanuele 'emgent' Gentili
Other sources
Cross-site scripting (XSS) vulnerability in Gitweb 1.7.3.3 and earlier allows remote attackers to inject arbitrary web script or HTML via the (1) f and (2) fp parameters.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2010-3906?
CVE-2010-3906 is classified as a medium severity vulnerability due to its potential for exploitation through cross-site scripting.
How do I fix CVE-2010-3906?
To fix CVE-2010-3906, upgrade to Git version 1.7.3.4 or later, which has patched the XSS vulnerability.
What versions of Git are affected by CVE-2010-3906?
CVE-2010-3906 affects Git versions 1.7.3.3 and earlier, including several earlier releases.
What type of vulnerability is CVE-2010-3906?
CVE-2010-3906 is a cross-site scripting (XSS) vulnerability that allows attackers to inject scripts into web pages.
Can CVE-2010-3906 be exploited remotely?
Yes, attackers can exploit CVE-2010-3906 remotely to execute arbitrary web scripts in the context of a user's session.