Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid possible shredding of passed credential on reject #28448

Merged
merged 1 commit into from
Aug 5, 2018

Conversation

omus
Copy link
Member

@omus omus commented Aug 4, 2018

I introduced a very minor issue with #28436. In the event the credentials should be rejected the CachedCredential could shred the passed in credential if it happened to be identical to the one stored within the cache. Probably no one would have noticed this in practise but at worst it would have resulted in us sending invalid credentials to servers.

I also added more comments as this code is complicated and subtle.

@omus omus added libgit2 The libgit2 library or the LibGit2 stdlib module bugfix This change fixes an existing bug security System security concerns and vulnerabilities backport pending 0.7 labels Aug 4, 2018
Copy link
Member

@mbauman mbauman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subtle indeed! Makes sense, though, especially with the comments.

@ararslan ararslan merged commit 696700f into master Aug 5, 2018
@ararslan ararslan deleted the cv/reject-shred-fix branch August 5, 2018 10:50
ararslan pushed a commit that referenced this pull request Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug libgit2 The libgit2 library or the LibGit2 stdlib module security System security concerns and vulnerabilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants