1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-12-15 06:15:53 +01:00

CVE-2021-3560

This commit is contained in:
Carlos Polop 2024-10-07 15:08:07 +02:00
parent eebe7974a9
commit 08746a3dff
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Title: System Information - CVE-2021-3560
# ID: SY_CVE-2021-3560
# Author: Carlos Polop
# Last Update: 07-10-2024
# Description: CVE-2021-3560 - paper box from HTB
# License: GNU GPL
# Version: 1.0
# Functions Used:
# Global Variables: $SED_RED_YELLOW, $E
# Initial Functions:
# Generated Global Variables:
# Fat linpeas: 0
# Small linpeas: 0
if apt list --installed 2>/dev/null | grep -q 'polkit.*0\.105-26' || \
yum list installed 2>/dev/null | grep -q 'polkit.*\(0\.117-2\|0\.115-6\)' || \
rpm -qa 2>/dev/null | grep -q 'polkit.*\(0\.117-2\|0\.115-6\)'; then
echo "Vulnerable to CVE-2021-3560" | sed -${E} "s,.*,${SED_RED_YELLOW},"
echo ""
fi