forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Git 2.47.2 Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information
Showing
18 changed files
with
170 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Git v2.40.4 Release Notes | ||
========================= | ||
|
||
This release lets Git refuse to accept URLs that contain control | ||
sequences. This addresses CVE-2024-50349 and CVE-2024-52006. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Git v2.41.3 Release Notes | ||
========================= | ||
|
||
This release merges up the fix that appears in v2.40.4 to address | ||
the security issues CVE-2024-50349 and CVE-2024-52006; see the | ||
release notes for that version for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Git v2.42.4 Release Notes | ||
========================= | ||
|
||
This release merges up the fix that appears in v2.40.4 and v2.41.3 | ||
to address the security issues CVE-2024-50349 and CVE-2024-52006; | ||
see the release notes for these versions for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Git v2.43.6 Release Notes | ||
========================= | ||
|
||
This release merges up the fix that appears in v2.40.4, v2.41.3 | ||
and v2.42.4 to address the security issues CVE-2024-50349 and | ||
CVE-2024-52006; see the release notes for these versions for | ||
details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Git v2.44.3 Release Notes | ||
========================= | ||
|
||
This release merges up the fix that appears in v2.40.4, v2.41.3, | ||
v2.42.4 and v2.43.6 to address the security issues CVE-2024-50349 | ||
and CVE-2024-52006; see the release notes for these versions | ||
for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Git v2.46.3 Release Notes | ||
========================= | ||
|
||
This release merges up the fix that appears in v2.40.4, v2.41.3, v2.42.4, | ||
v2.43.6, v2.44.3 and v2.45.3 to address the security issues CVE-2024-50349 and | ||
CVE-2024-52006; see the release notes for these versions for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Git v2.47.2 Release Notes | ||
========================= | ||
|
||
This release merges up the fix that appears in v2.40.4, v2.41.3, | ||
v2.42.4, v2.43.6, v2.44.3, v2.45.3 and v2.46.3 to address the | ||
security issues CVE-2024-50349 and CVE-2024-52006; see the release | ||
notes for these versions for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,10 @@ test_expect_success 'setup helper scripts' ' | |
test -z "$pexpiry" || echo password_expiry_utc=$pexpiry | ||
EOF | ||
write_script git-credential-cntrl-in-username <<-\EOF && | ||
printf "username=\\007latrix Lestrange\\n" | ||
EOF | ||
PATH="$PWD$PATH_SEP$PATH" | ||
' | ||
|
||
|
@@ -697,6 +701,19 @@ test_expect_success 'match percent-encoded values in username' ' | |
EOF | ||
' | ||
|
||
test_expect_success 'match percent-encoded values in hostname' ' | ||
test_config "credential.https://a%20b%20c/.helper" "$HELPER" && | ||
check fill <<-\EOF | ||
url=https://a b c/ | ||
-- | ||
protocol=https | ||
host=a b c | ||
username=foo | ||
password=bar | ||
-- | ||
EOF | ||
' | ||
|
||
test_expect_success 'fetch with multiple path components' ' | ||
test_unconfig credential.helper && | ||
test_config credential.https://example.com/foo/repo.git.helper "verbatim foo bar" && | ||
|
@@ -886,6 +903,22 @@ test_expect_success 'url parser rejects embedded newlines' ' | |
test_cmp expect stderr | ||
' | ||
|
||
test_expect_success 'url parser rejects embedded carriage returns' ' | ||
test_config credential.helper "!true" && | ||
test_must_fail git credential fill 2>stderr <<-\EOF && | ||
url=https://example%0d.com/ | ||
EOF | ||
cat >expect <<-\EOF && | ||
fatal: credential value for host contains carriage return | ||
If this is intended, set `credential.protectProtocol=false` | ||
EOF | ||
test_cmp expect stderr && | ||
GIT_ASKPASS=true \ | ||
git -c credential.protectProtocol=false credential fill <<-\EOF | ||
url=https://example%0d.com/ | ||
EOF | ||
' | ||
|
||
test_expect_success 'host-less URLs are parsed as empty host' ' | ||
check fill "verbatim foo bar" <<-\EOF | ||
url=cert:///path/to/cert.pem | ||
|
@@ -995,4 +1028,20 @@ test_expect_success 'credential config with partial URLs' ' | |
test_grep "skipping credential lookup for key" stderr | ||
' | ||
|
||
BEL="$(printf '\007')" | ||
|
||
test_expect_success 'interactive prompt is sanitized' ' | ||
check fill cntrl-in-username <<-EOF | ||
protocol=https | ||
host=example.org | ||
-- | ||
protocol=https | ||
host=example.org | ||
username=${BEL}latrix Lestrange | ||
password=askpass-password | ||
-- | ||
askpass: Password for ${SQ}https://%07latrix%[email protected]${SQ}: | ||
EOF | ||
' | ||
|
||
test_done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.