Skip to content

Commit

Permalink
Add direct links to NVD/NIST and Mitre #104
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKyOtOx committed Dec 6, 2021
1 parent 8aa7c18 commit 160ca34
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend_app/vulns/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,10 @@ def alerts_vulnerability_save(sender, **kwargs):
changes = kwargs['instance'].get_changes()

if len(changes) > 0:
print(kwargs['instance'].__original_is_exploitable, "->", kwargs['instance'].is_exploitable)
# print(kwargs['instance'].__original_is_exploitable, "->", kwargs['instance'].is_exploitable)
if 'is_exploitable' in changes and kwargs['instance'].is_exploitable is True:
email_instant_report_exploitable_task.apply_async(args=[kwargs['instance'].id], queue='alerts', retry=False)
print('cvss changes', kwargs['instance'].__original_cvss, "->", kwargs['instance'].cvss)
# print('cvss changes', kwargs['instance'].__original_cvss, "->", kwargs['instance'].cvss)
if 'cvss' in changes and kwargs['instance'].cvss not in [None, 0.0]:
email_instant_report_cvss_change_task.apply_async(args=[kwargs['instance'].id], queue='alerts', retry=False)
if 'cvss3' in changes and kwargs['instance'].cvss3 not in [None, 0.0]:
Expand Down
12 changes: 11 additions & 1 deletion frontend/src/components/pages/VulnDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,19 @@
<v-list subheader color="grey lighten-5">
<v-list-item>
<v-list-item-content>
<v-list-item-subtitle>CVE</v-list-item-subtitle>
<v-list-item-subtitle>
CVE
<v-chip
class="mx-2"
label link x-small
:href="'https://nvd.nist.gov/vuln/detail/'+this.vuln.cveid" target="_blank">NVD</v-chip>
<v-chip
label link x-small
:href="'https://cve.mitre.org/cgi-bin/cvename.cgi?name='+this.vuln.cveid" target="_blank">MITRE</v-chip>
</v-list-item-subtitle>
{{this.vuln.cveid}}
</v-list-item-content>

</v-list-item>

<v-list-item>
Expand Down

0 comments on commit 160ca34

Please sign in to comment.