Parsing vulnerabilities

This commit is contained in:
2023-06-05 21:26:39 +02:00
parent 6cb4cacaf9
commit 9a4c845f6d
2 changed files with 33 additions and 50 deletions
+8 -2
View File
@@ -1,15 +1,19 @@
#!/usr/bin/env python3
# Define the entry
def sysctl() -> list:
sysctl = list()
# https://access.redhat.com/security/sysctl/sysctl-2023-0179
sysctl.append({
"cve": "cve-2023-0179",
"from": "cve",
"id": "cve-2023-0179",
"description": "",
"flag": "kernel.unprivileged_userns_clone",
"value": 0,
"level": "medium",
"recommendation": "You should disable this flag for resolving the issue",
"affectedSystem": ({
'linux': "Debian",
'release': 'buster',
@@ -19,9 +23,11 @@ def sysctl() -> list:
# Best practice from CIS
sysctl.append({
"cve": "",
"from": "cis",
"id": "",
"description": "Disable IPv4 forwarding",
"flag": "net.ipv4.conf.all.forwarding",
"recommendation": "You should disable this flag for resolving the issue",
"value": 0,
"level": "medium"
})