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

Used strong comparison and prevented remote selection of hash algorithm #4

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

AndrewCarterUK
Copy link
Contributor

The comparison of strings should be strict to prevent this bug: https://3v4l.org/0KPn4

Also, at the moment GitHub only use SHA-1 for signing payloads. Allowing the sender of the payload to pick the hashing algorithm free format creates an opportunity to use a weaker algorithm when carrying out a brute force attack (such as one exploiting the weak string comparison).

dintel added a commit that referenced this pull request Nov 12, 2015
Used strong comparison and prevented remote selection of hash algorithm
@dintel dintel merged commit ee38a76 into dintel:master Nov 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants