Uh oh!
There was an error while loading. Please reload this page.
Handle vulnerabilities which don't have any vulnerability ids - #259
Conversation
sbs2001
commented
Sep 26, 2020
For the models the requirements as we decided upon at #232 are (this is a partial repaste of @pombredanne 's comment)
From a usage standpoint, this means that we should be able to search a vulnerability not only based on its identifier (that may change over time) but also based on its references. Alternatively to c. above we could have a dedicated field to store the previous The model could look like this
|
The current models gives me this |
43bb7a7 to
3538474Comparesbs2001
commented
Sep 26, 2020
I'm using https://github.com/sbs2001/vulcodes as the repo for dev purpose. |
705b859 to
020788cComparepombredanne
commented
Sep 28, 2020
I am wondering ..."VULCODE-XXX" feels a little bit too generic, and I am kinda warming up to a the explicit albeit longer "VULNERABLECODE-XXX" prefix even if a tad long... it is explicit and meant to be replaced eventually by a CVE (and it is also very clear where it is coming from)? |
pombredanne
left a comment
There was a problem hiding this comment.
Thanks!
Looking good except for the "vulcode/VULCODE" name that I would like to discuss more.
Uh oh!
There was an error while loading. Please reload this page.
pombredanne
commented
Sep 28, 2020
I wonder if we should not instead just treat the "past" vc_identifier as just an external reference? |
pombredanne
commented
Nov 18, 2020
I revisited https://cve.mitre.org/data/refs/index.html and I suggest this instead prefix |
sbs2001
commented
Nov 27, 2020
@pombredanne |
pombredanne
commented
Nov 27, 2020
incremental id works too but requires more coordination than a context free timestamp. I am not sure a sequential number is easier to remember than a time stamp though it can be shorter. |
sbs2001
commented
Nov 29, 2020
How so ? The timestamp is dependent on when the instance encountered the vulnerability. coordination is needed in that case too if we want 2 instances to "have a common language" . IMHO coordination is unavoidable. |
pombredanne
commented
Dec 11, 2020
IMHO |
@pombredanne It made sense to me about using timestamps instead of incremental ids after the chat. Main reason being, when using |
5e1547a to
be26c53Comparebe26c53 to
38eee2bComparesbs2001
commented
Feb 5, 2021
@pombredanne I am stashing the code to extract vulcoids to some other branch. This PR won't add that, that feature seems pre-mature to me. |
pombredanne
left a comment
There was a problem hiding this comment.
Thanks! See my comments inline. IMHO the main issue we have is the name "identifier"
Either we use that everywhere, of may be we use vulnerability_id instead which would be more explicit and work in all the contexts.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
4b1fc9f to
48750caCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| all_package_versions = self.versions.get(package_name) | ||
| if len(all_package_versions) == 0: | ||
| if not len(all_package_versions): |
There was a problem hiding this comment.
| ifnotlen(all_package_versions): | |
| ifnotall_package_versions: |
There was a problem hiding this comment.
Doing the safetydb changes in other pr
| # meaning if cve_ids is not [''] but either ['CVE-123'] or ['CVE-123, CVE-124'] | ||
| if len(cve_ids[0]): | ||
| cve_ids = [s.strip() for s in cve_ids.split(",")] | ||
| if advisory["cve"]: |
There was a problem hiding this comment.
Doing the safetydb changes in other pr
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pombredanne
left a comment
There was a problem hiding this comment.
All good ... I have a few minor nit pickings but this is good to merge!
Thanks!
This reduces the dependence on CVE ID. Cases where vulnerability don't have CVE can be handled Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
This command takes as input a remote repo's url. Upon invoking the command all the vulnerabilities which were id'd by vulnerablecode will be pushed to this repo. Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
* Added incremental time id in import_runner.py to prevent vulnerability id conflicts Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
* In model Vulnerability "identifier" -> "vulnerability_id" * In Advisory dataclass "identifier" -> "vulnerability_id" Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
c43a81c to
e48fa44Compare
Fixes#232
Vulnerabilitymodel and it's methods right. Use a timestamp as a custom id for now.Vulnerabilitymodel.VulnerableCodeto either assign these ids or sync the ids from the repo.Signed-off-by: Shivam Sandbhor shivam.sandbhor@gmail.com