Skip to content

Commit

Permalink
Merge pull request #270 from secnigma/master
Browse files Browse the repository at this point in the history
Improved CVE-2021-3560 Check
  • Loading branch information
carlospolop authored Feb 11, 2022
2 parents 48ff8b0 + dc7c9db commit 4206e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linPEAS/builder/linpeas_parts/1_system_information.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi

#-- SY) CVE-2021-3560
polkitVersion=$(systemctl status polkit.service | grep version | cut -d " " -f 9)
if [[ "$(apt list --installed 2>/dev/null | grep polkit | grep -c 0.105-26)" -ge 1 || "$(yum list installed | grep polkit | grep -c 0.117-2)" -ge 1 ]]; then
if [[ "$(apt list --installed 2>/dev/null | grep polkit | grep -c 0.105-26)" -ge 1 || "$(rpm -qa | grep polkit | grep -c '0.117-2\|0.115-6')" -ge 1 ]]; then
echo "Vulnerable to CVE-2021-3560" | sed -${E} "s,.*,${SED_RED_YELLOW},"
echo ""
fi
Expand Down

0 comments on commit 4206e78

Please sign in to comment.