Vulnerabilities > CVE-2010-3906 - Cross-Site Scripting vulnerability in multiple products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
NONE Integrity impact
PARTIAL Availability impact
NONE Summary
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.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Embedding Scripts in Non-Script Elements This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
- Embedding Scripts within Scripts An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
- Cross-Site Scripting in Error Pages An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
- Cross-Site Scripting Using Alternate Syntax The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.
Exploit-Db
description | Gitweb <= 1.7.3.3 - Cross-Site Scripting. CVE-2010-3906. Webapps exploit for cgi platform |
file | exploits/cgi/webapps/15744.txt |
id | EDB-ID:15744 |
last seen | 2016-02-01 |
modified | 2010-12-15 |
platform | cgi |
port | 80 |
published | 2010-12-15 |
reporter | emgent |
source | https://www.exploit-db.com/download/15744/ |
title | Gitweb <= 1.7.3.3 - Cross-Site Scripting |
type | webapps |
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2010-18981.NASL description Update to 1.7.3.4 release which fixes various issues, notably : - 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. (CVE-2010-3906) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 51373 published 2010-12-26 reporter This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/51373 title Fedora 14 : git-1.7.3.4-1.fc14 (2010-18981) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Fedora Security Advisory 2010-18981. # include("compat.inc"); if (description) { script_id(51373); script_version("1.11"); script_cvs_date("Date: 2019/08/02 13:32:32"); script_cve_id("CVE-2010-3906"); script_bugtraq_id(45439); script_xref(name:"FEDORA", value:"2010-18981"); script_name(english:"Fedora 14 : git-1.7.3.4-1.fc14 (2010-18981)"); script_summary(english:"Checks rpm output for the updated package."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing a security update." ); script_set_attribute( attribute:"description", value: "Update to 1.7.3.4 release which fixes various issues, notably : - 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. (CVE-2010-3906) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues." ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=663609" ); # https://lists.fedoraproject.org/pipermail/package-announce/2010-December/052518.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?fbe4ab00" ); script_set_attribute(attribute:"solution", value:"Update the affected git package."); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N"); script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:git"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:14"); script_set_attribute(attribute:"patch_publication_date", value:"2010/12/17"); script_set_attribute(attribute:"plugin_publication_date", value:"2010/12/26"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"Fedora Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/RedHat/release"); if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora"); os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora"); os_ver = os_ver[1]; if (! ereg(pattern:"^14([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 14.x", "Fedora " + os_ver); if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu); flag = 0; if (rpm_check(release:"FC14", reference:"git-1.7.3.4-1.fc14")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "git"); }
NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2010-256.NASL description A vulnerability was discovered and corrected in git (gitweb) : A cross-site scripting (XSS) vulnerability in Gitweb 1.7.3.3 and previous versions allows remote attackers to inject arbitrary web script or HTML code via f and fp variables (CVE-2010-3906). The updated packages have been patched to correct this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 51336 published 2010-12-17 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/51336 title Mandriva Linux Security Advisory : git (MDVSA-2010:256) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Mandriva Linux Security Advisory MDVSA-2010:256. # The text itself is copyright (C) Mandriva S.A. # include("compat.inc"); if (description) { script_id(51336); script_version("1.10"); script_cvs_date("Date: 2019/08/02 13:32:53"); script_cve_id("CVE-2010-3906"); script_xref(name:"MDVSA", value:"2010:256"); script_name(english:"Mandriva Linux Security Advisory : git (MDVSA-2010:256)"); script_summary(english:"Checks rpm output for the updated packages"); script_set_attribute( attribute:"synopsis", value: "The remote Mandriva Linux host is missing one or more security updates." ); script_set_attribute( attribute:"description", value: "A vulnerability was discovered and corrected in git (gitweb) : A cross-site scripting (XSS) vulnerability in Gitweb 1.7.3.3 and previous versions allows remote attackers to inject arbitrary web script or HTML code via f and fp variables (CVE-2010-3906). The updated packages have been patched to correct this issue." ); script_set_attribute(attribute:"solution", value:"Update the affected packages."); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-arch"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-core"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-core-oldies"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-cvs"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-email"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-prompt"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:git-svn"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gitk"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gitview"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:gitweb"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64git-devel"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgit-devel"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:perl-Git"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:python-git"); script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2010.0"); script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2010.1"); script_set_attribute(attribute:"patch_publication_date", value:"2010/12/16"); script_set_attribute(attribute:"plugin_publication_date", value:"2010/12/17"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2010-2019 Tenable Network Security, Inc."); script_family(english:"Mandriva Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux"); if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu); flag = 0; if (rpm_check(release:"MDK2010.0", reference:"git-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-arch-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-core-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-core-oldies-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-cvs-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-email-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-prompt-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"git-svn-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"gitk-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"gitview-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"gitweb-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", cpu:"x86_64", reference:"lib64git-devel-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", cpu:"i386", reference:"libgit-devel-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.0", reference:"perl-Git-1.6.4.4-6.2mdv2010.0", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-arch-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-core-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-core-oldies-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-cvs-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-email-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-prompt-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"git-svn-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"gitk-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"gitview-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"gitweb-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", cpu:"x86_64", reference:"lib64git-devel-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", cpu:"i386", reference:"libgit-devel-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"perl-Git-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (rpm_check(release:"MDK2010.1", reference:"python-git-1.7.1-1.2mdv2010.1", yank:"mdv")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else audit(AUDIT_HOST_NOT, "affected");
NASL family SuSE Local Security Checks NASL id SUSE_11_3_GIT-110117.NASL description This update fixes two vulnerabilities : XSS vulnerability in gitweb; a remote attacker could craft an URL such that arbitrary content would be inserted to the generated web page. Stack overflow vulnerability that can lead to arbitrary code execution if user runs any git command on a specially crafted git working copy. Security Issue references : - [CVE-2010-3906](http://cve.mitre.org/cgi-bin/cvename.cgi?nam e=CVE-2010-3906) - [CVE-2010-2542](http://cve.mitre.org/cgi-bin/cvename.cgi?nam e=CVE-2010-2542) last seen 2020-06-01 modified 2020-06-02 plugin id 75516 published 2014-06-13 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75516 title openSUSE Security Update : git (openSUSE-SU-2011:0115-1) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from openSUSE Security Update git-3832. # # The text description of this plugin is (C) SUSE LLC. # include("compat.inc"); if (description) { script_id(75516); script_version("1.4"); script_cvs_date("Date: 2019/10/25 13:36:41"); script_cve_id("CVE-2010-2542", "CVE-2010-3906"); script_name(english:"openSUSE Security Update : git (openSUSE-SU-2011:0115-1)"); script_summary(english:"Check for the git-3832 patch"); script_set_attribute( attribute:"synopsis", value:"The remote openSUSE host is missing a security update." ); script_set_attribute( attribute:"description", value: "This update fixes two vulnerabilities : XSS vulnerability in gitweb; a remote attacker could craft an URL such that arbitrary content would be inserted to the generated web page. Stack overflow vulnerability that can lead to arbitrary code execution if user runs any git command on a specially crafted git working copy. Security Issue references : - [CVE-2010-3906](http://cve.mitre.org/cgi-bin/cvename.cgi?nam e=CVE-2010-3906) - [CVE-2010-2542](http://cve.mitre.org/cgi-bin/cvename.cgi?nam e=CVE-2010-2542)" ); script_set_attribute( attribute:"see_also", value:"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2542" ); script_set_attribute( attribute:"see_also", value:"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3906" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.novell.com/show_bug.cgi?id=624586" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.novell.com/show_bug.cgi?id=659281" ); script_set_attribute( attribute:"see_also", value:"https://lists.opensuse.org/opensuse-updates/2011-02/msg00010.html" ); script_set_attribute(attribute:"solution", value:"Update the affected git packages."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-arch"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-core"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-cvs"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-daemon"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-email"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-gui"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-remote-helpers"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-svn"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:git-web"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:gitk"); script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:11.3"); script_set_attribute(attribute:"patch_publication_date", value:"2011/01/17"); script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/13"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"SuSE Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/SuSE/release"); if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE"); if (release !~ "^(SUSE11\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "11.3", release); if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); ourarch = get_kb_item("Host/cpu"); if (!ourarch) audit(AUDIT_UNKNOWN_ARCH); if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch); flag = 0; if ( rpm_check(release:"SUSE11.3", reference:"git-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-arch-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-core-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-cvs-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-daemon-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-email-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-gui-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-remote-helpers-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-svn-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"git-web-1.7.1-2.3.1") ) flag++; if ( rpm_check(release:"SUSE11.3", reference:"gitk-1.7.1-2.3.1") ) flag++; if (flag) { if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get()); else security_hole(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "git / git-arch / git-core / git-cvs / git-daemon / git-email / etc"); }
NASL family CGI abuses : XSS NASL id GITWEB_F_XSS.NASL description The version of gitweb, a web-enabled interface to the open source distributed version control system Git, hosted on the remote web server fails to sanitize user-supplied input to the last seen 2020-06-01 modified 2020-06-02 plugin id 51370 published 2010-12-23 reporter This script is Copyright (C) 2010-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/51370 title Git gitweb Multiple Parameter XSS code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(51370); script_version("1.10"); script_cvs_date("Date: 2018/11/15 20:50:19"); script_cve_id("CVE-2010-3906"); script_bugtraq_id(45439); script_xref(name:"EDB-ID", value:"15744"); script_name(english:"Git gitweb Multiple Parameter XSS"); script_summary(english:"Tries to inject script code"); script_set_attribute( attribute:"synopsis", value: "The remote web server hosts a CGI script that is prone to a cross- site scripting attack." ); script_set_attribute( attribute:"description", value: "The version of gitweb, a web-enabled interface to the open source distributed version control system Git, hosted on the remote web server fails to sanitize user-supplied input to the 'f' and 'fp' parameters before using it to generate dynamic HTML. An attacker may be able to leverage this issue to inject arbitrary HTML or script code into a user's browser to be executed within the security context of the affected site." ); script_set_attribute(attribute:"see_also", value:"https://lists.q42.co.uk/pipermail/git-announce/2011-August/000450.html"); script_set_attribute(attribute:"solution", value:"Upgrade to Git 1.7.3.4 or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N"); script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required"); script_set_attribute(attribute:"exploit_available", value:"false"); script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990); script_set_attribute(attribute:"vuln_publication_date", value:"2010/12/15"); script_set_attribute(attribute:"patch_publication_date", value:"2010/12/15"); script_set_attribute(attribute:"plugin_publication_date", value:"2010/12/23"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe", value:"cpe:/a:git:git"); script_end_attributes(); script_category(ACT_ATTACK); script_family(english:"CGI abuses : XSS"); script_copyright(english:"This script is Copyright (C) 2010-2018 Tenable Network Security, Inc."); script_dependencies("http_version.nasl"); script_exclude_keys("Settings/disable_cgi_scanning"); script_require_ports("Services/www", 80); exit(0); } include("global_settings.inc"); include("misc_func.inc"); include("http.inc"); include("url_func.inc"); port = get_http_port(default:80, embedded:FALSE); payload = '"><body onload="alert(\'' + SCRIPT_NAME + '\')"><a'; # Loop through directories. if (thorough_tests) dirs = list_uniq(make_list("/gitweb", "/cgi-bin/gitweb", "/git", "/code", cgi_dirs())); else dirs = make_list(cgi_dirs()); err_msg = ""; gitweb_found = FALSE; foreach dir (dirs) { proj = ""; foreach ext (make_list("cgi", "pl", "perl")) { # Check for gitweb. url = dir + "/gitweb." + ext; res = http_send_recv3(port:port, method:"GET", item:url, exit_on_fail:TRUE); if ( '<!-- git web interface version' >< res[2] || 'meta name="generator" content="gitweb' >< res[2] ) { gitweb_found = TRUE; # Identify an existing project. pat = 'gitweb\\.' + ext + '\\?p=([^;"]+);a='; matches = egrep(pattern:pat, string:res[2]); if (matches) { foreach match (split(matches, keep:FALSE)) { item = eregmatch(pattern:pat, string:match); if (!isnull(item)) { proj = item[1]; break; } } } if (!proj) { res = http_send_recv3(port:port, method:"GET", item:url+'?a=project_index', exit_on_fail:TRUE); if ('inline; filename="index.aux"' >< res[1]) { pat = '^([^ ]+)\\.git'; matches = egrep(pattern:pat, string:res[2]); if (matches) { foreach match (split(matches, keep:FALSE)) { item = eregmatch(pattern:pat, string:match); if (!isnull(item)) { proj = item[1]; break; } } } } } if (!proj) { err_msg += "Couldn't find a project to use to test the gitweb install at " + build_url(port:port, qs:url) + '.\n'; continue; } # Try to exploit the issue. vuln = test_cgi_xss( port : port, cgi : "/gitweb." + ext, dirs : make_list(dir), qs : 'p=' + proj + '.git;' + 'a=blobdiff;' + 'f=' + urlencode(str:payload) + ';' + 'fp=' + urlencode(str:payload), pass_str : proj+'.git - history of ' + payload, pass2_re : 'git/blobdiff - ' ); if (vuln && !thorough_tests) exit(0); } # If we found a project, we don't need to test other extensions in this directory. if (proj) break; } } if (gitweb_found == FALSE) exit(0, "The web server on port "+port+" does not appear to host gitweb."); else if (err_msg) exit(1, err_msg); else exit(0, "The web server on port "+port+" does not appear to host any vulnerable installs of gitweb.");
NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2010-1003.NASL description From Red Hat Security Advisory 2010:1003 : Updated git packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Git is a fast, scalable, distributed revision control system. A cross-site scripting (XSS) flaw was found in gitweb, a simple web interface for Git repositories. A remote attacker could perform an XSS attack against victims by tricking them into visiting a specially crafted gitweb URL. (CVE-2010-3906) All gitweb users should upgrade to these updated packages, which contain a backported patch to correct this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 68171 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/68171 title Oracle Linux 6 : git (ELSA-2010-1003) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Red Hat Security Advisory RHSA-2010:1003 and # Oracle Linux Security Advisory ELSA-2010-1003 respectively. # include("compat.inc"); if (description) { script_id(68171); script_version("1.7"); script_cvs_date("Date: 2019/10/25 13:36:09"); script_cve_id("CVE-2010-3906"); script_bugtraq_id(45439); script_xref(name:"RHSA", value:"2010:1003"); script_name(english:"Oracle Linux 6 : git (ELSA-2010-1003)"); script_summary(english:"Checks rpm output for the updated packages"); script_set_attribute( attribute:"synopsis", value:"The remote Oracle Linux host is missing one or more security updates." ); script_set_attribute( attribute:"description", value: "From Red Hat Security Advisory 2010:1003 : Updated git packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Git is a fast, scalable, distributed revision control system. A cross-site scripting (XSS) flaw was found in gitweb, a simple web interface for Git repositories. A remote attacker could perform an XSS attack against victims by tricking them into visiting a specially crafted gitweb URL. (CVE-2010-3906) All gitweb users should upgrade to these updated packages, which contain a backported patch to correct this issue." ); script_set_attribute( attribute:"see_also", value:"https://oss.oracle.com/pipermail/el-errata/2011-February/001886.html" ); script_set_attribute(attribute:"solution", value:"Update the affected git packages."); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:emacs-git"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:emacs-git-el"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git-all"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git-cvs"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git-daemon"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git-email"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git-gui"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:git-svn"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gitk"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:gitweb"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:perl-Git"); script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:6"); script_set_attribute(attribute:"vuln_publication_date", value:"2010/12/17"); script_set_attribute(attribute:"patch_publication_date", value:"2011/02/16"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"Oracle Linux Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/OracleLinux", "Host/RedHat/release", "Host/RedHat/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/OracleLinux")) audit(AUDIT_OS_NOT, "Oracle Linux"); release = get_kb_item("Host/RedHat/release"); if (isnull(release) || !pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, "Oracle Linux"); os_ver = pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Oracle Linux"); os_ver = os_ver[1]; if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 6", "Oracle Linux " + os_ver); if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Oracle Linux", cpu); flag = 0; if (rpm_check(release:"EL6", reference:"emacs-git-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"emacs-git-el-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-all-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-cvs-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-daemon-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-email-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-gui-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"git-svn-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"gitk-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"gitweb-1.7.1-2.el6_0.1")) flag++; if (rpm_check(release:"EL6", reference:"perl-Git-1.7.1-2.el6_0.1")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "emacs-git / emacs-git-el / git / git-all / git-cvs / git-daemon / etc"); }
NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2010-1003.NASL description Updated git packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Git is a fast, scalable, distributed revision control system. A cross-site scripting (XSS) flaw was found in gitweb, a simple web interface for Git repositories. A remote attacker could perform an XSS attack against victims by tricking them into visiting a specially crafted gitweb URL. (CVE-2010-3906) All gitweb users should upgrade to these updated packages, which contain a backported patch to correct this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 51358 published 2010-12-22 reporter This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/51358 title RHEL 6 : git (RHSA-2010:1003) NASL family SuSE Local Security Checks NASL id SUSE_11_2_GIT-110117.NASL description This update fixes two vulnerabilities : XSS vulnerability in gitweb; a remote attacker could craft an URL such that arbitrary content would be inserted to the generated web page. Stack overflow vulnerability that can lead to arbitrary code execution if user runs any git command on a specially crafted git working copy. Security Issue references : - [CVE-2010-3906](http://cve.mitre.org/cgi-bin/cvename.cgi?nam e=CVE-2010-3906) - [CVE-2010-2542](http://cve.mitre.org/cgi-bin/cvename.cgi?nam e=CVE-2010-2542) last seen 2020-06-01 modified 2020-06-02 plugin id 53727 published 2011-05-05 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/53727 title openSUSE Security Update : git (openSUSE-SU-2011:0115-1) NASL family Scientific Linux Local Security Checks NASL id SL_20101221_GIT_ON_SL6_X.NASL description A cross-site scripting (XSS) flaw was found in gitweb, a simple web interface for Git repositories. A remote attacker could perform an XSS attack against victims by tricking them into visiting a specially crafted gitweb URL. (CVE-2010-3906) last seen 2020-06-01 modified 2020-06-02 plugin id 60927 published 2012-08-01 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/60927 title Scientific Linux Security Update : git on SL6.x i386/x86_64 NASL family Fedora Local Security Checks NASL id FEDORA_2010-18973.NASL description Update to 1.7.3.4 release which fixes various issues, notably : - 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. (CVE-2010-3906) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 51406 published 2011-01-04 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/51406 title Fedora 13 : git-1.7.3.4-1.fc13 (2010-18973)
Packetstorm
data source | https://packetstormsecurity.com/files/download/96750/gitweb-xss.txt |
id | PACKETSTORM:96750 |
last seen | 2016-12-05 |
published | 2010-12-16 |
reporter | Emanuele Gentili |
source | https://packetstormsecurity.com/files/96750/Gitweb-1.7.3.3-Cross-Site-Scripting.html |
title | Gitweb 1.7.3.3 Cross Site Scripting |
Redhat
advisories |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rpms |
|
Seebug
bulletinFamily | exploit |
description | No description provided by source. |
id | SSV:70397 |
last seen | 2017-11-19 |
modified | 2014-07-01 |
published | 2014-07-01 |
reporter | Root |
source | https://www.seebug.org/vuldb/ssvid-70397 |
title | Gitweb <= 1.7.3.3 - Cross Site Scripting |
References
- http://lists.fedoraproject.org/pipermail/package-announce/2010-December/052518.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052782.html
- http://lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.html
- http://secunia.com/advisories/42645
- http://secunia.com/advisories/42731
- http://secunia.com/advisories/42743
- http://secunia.com/advisories/43457
- http://www.exploit-db.com/exploits/15744
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:256
- http://www.redhat.com/support/errata/RHSA-2010-1003.html
- http://www.securityfocus.com/bid/45439
- http://www.securitytracker.com/id?1024905
- http://www.vupen.com/english/advisories/2010/3323
- http://www.vupen.com/english/advisories/2011/0010
- http://www.vupen.com/english/advisories/2011/0464