If the Document provided to gitlab cannot be found, Exploit.OffensiveSecurity will be nil.
If you try to search for such an exploit, you will get an error that it cannot be found.
For example, like CVE-2018-11237(https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-11237), EXPLOIT-DB is referenced but the link is actually broken.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
rdb
before
$ go-exploitdb fetch exploitdb
$ go-exploitdb search --type CVE --param CVE-2018-11237
Failed to get OffensiveSecurity. DB relationship may be broken, use `$ go-exploitdb fetch exploitdb` to recreate DB. err: record not found
What did you implement:
If the Document provided to gitlab cannot be found,
Exploit.OffensiveSecurity
will be nil. If you try to search for such an exploit, you will get an error that it cannot be found. For example, like CVE-2018-11237(https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-11237), EXPLOIT-DB is referenced but the link is actually broken.Type of change
How Has This Been Tested?
rdb
before
after
redis
before
after
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference