-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vulnfeeds): be stricter about acceptable commits from URLs (#3202)
This tightens up what `cves.Commit()` considers acceptable by validating the assumed commit hash from GitHub and GitLab URLs as matching a SHA1 regex. This prevents tags and tags with ancestry specification from being erroneously treated as a commit hash. e.g. - curl/curl@curl-7_50_2 - curl/curl@curl-7_50_2~32 as seen in the likes of CVE-2016-7141
- Loading branch information
1 parent
f133747
commit 9d48acd
Showing
2 changed files
with
36 additions
and
2 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
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