google / vulncode-db

Vulncode-DB project
https://www.vulncode-db.com
Apache License 2.0
575 stars 71 forks source link

Add guard against proposing changes for non-GitHub repository URL entries #95

Closed evonide closed 3 years ago

evonide commented 3 years ago

Describe the bug Currently, when trying to propose changes for entries like https://www.vulncode-db.com/CVE-2014-0160 a corrupted proposal entry will be created. This is due to a lack of support for custom (non-GitHub) repository URLs like http://git.openssl.org/gitweb/[...].

Attempting to delete a corrupted proposal will return the following errors:

As there is only one such entry and it's impossible to create new entries with a non-GitHub repository URL the quickest fix is to add the guard as described above.