3 ms·
>If you know the hash of some data, then you either already have the data yourself, or you learned the hash from someone who had the data. From the article, yo
by qual 2y ago
>If you know the hash of some data, then you either already have the data yourself, or you learned the hash from someone who had the data.
From the article, you do not need to have the data nor learn the hash from someone who had the data.
>Commit hashes can be brute forced through GitHub’s UI, particularly because the git protocol permits the use of short SHA-1 values when referencing a commit. A short SHA-1 value is the minimum number of characters required to avoid a collision with another commit hash, with an absolute minimum of 4. The keyspace of all 4 character SHA-1 values is 65,536
- londons_explore 2y agoIn which case, yeah, thats a vulnerability. They shouldn't allow a short hash to match up against anything but public data.
- gus_massa 2y agoIt's common to use short hash in pull request, and then modify or rebase the commits. The solutions are: * Force people to use the full hash. * Get use to a lot of dead links. * Claim that it's a feature, not a bug.
- guipsp 2y ago* Force people to use the full hash for commits pushed now on?
- Dylan16807 2y ago* Check visibility at the time of posting.