Exploit database

Vulnerability

CVE-2020-5260

Vulnerability details

Score
7.5
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Description

Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. Git uses external "credential helper" programs to store and retrieve passwords or other credentials from secure storage provided by the operating system. Specially-crafted URLs that contain an encoded newline can inject unintended values into the credential helper protocol stream, causing the credential helper to retrieve the password for one server (e.g., good.example.com) for an HTTP request being made to another server (e.g., evil.example.com), resulting in credentials for the former being sent to the latter. There are no restrictions on the relationship between the two, meaning that an attacker can craft a URL that will present stored credentials for any host to a host of their choosing. The vulnerability can be triggered by feeding a malicious URL to git clone. However, the affected URLs look rather suspicious; the likely vector would be through systems which automatically clone URLs not visible to the user, such as Git submodules, or package systems built around Git. The problem has been patched in the versions published on April 14th, 2020, going back to v2.17.x. Anyone wishing to backport the change further can do so by applying commit 9a6bbee (the full release includes extra checks for git fsck, but that commit is sufficient to protect clients against the vulnerability). The patched versions are: 2.17.4, 2.18.3, 2.19.4, 2.20.3, 2.21.2, 2.22.3, 2.23.2, 2.24.2, 2.25.3, 2.26.1.

NVD

Exploit source choices

5 sources
brompwnie/cve-2020-5260
GH-a18df464fbc1d852a1493a87f0b57117GitHubUnofficial GitHub sourcePreferred

A HTTP PoC Endpoint for cve-2020-5260 which can be deployed to Heroku

2020-04-156 files · 37 stars
cnhack3r/penetration_poc
GH-fdd34977de44cc5d80df5c3881fca455GitHubUnofficial GitHub source

FROM:@Mr-xn 渗透测试有关的POC、EXP、脚本、提权、小工具等---About penetration-testing python-script poc getshell csrf xss cms php-getshell domainmod-xss penetration-testing-poc csrf-webshell cobub-razor cve rce sql sql-poc poc-exp bypass oa-getshell cve-cms

2022-01-11319 files · 23 stars
sv3nbeast/cve-2020-5260
GH-0b6efddab2a2bf7b40404289c945b5d8GitHubUnofficial GitHub source

CVE-2020-5260演示记录

2020-04-163 files · 11 stars
bahrainmobilityinternational/bmi-02
GH-77eb81065b26b56b85288df8342d736aGitHubUnofficial GitHub source

bahrainmobilityinternational/bmi-02 source repository

2025-08-102 files · 0 stars
botaktrade/exnessid.com
GH-f1203520a6c70dbc84fa16a104f95301GitHubUnofficial GitHub source

botaktrade/exnessid.com source repository

2025-05-192 files · 0 stars