Skip to content

Commit

Permalink
Change the malicious_xz variable according to the new value meaning
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanssjfrog authored Apr 1, 2024
1 parent 3519085 commit 5ac050e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve-2024-3094-detector/cve-2024-3094-detector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ elif [ -f /etc/arch-release ]; then
# Running on Arch - vulnerable versions are knowns: 5.6.0-1 and 5.6.1-1
xz_version=$(pacman -Q xz | sed 's/^xz //')
if [[ "$xz_version" =~ ^5\.6\.[0-1]-1$ ]]; then
malicious_xz=0
malicious_xz=1
fi

else
Expand Down Expand Up @@ -128,4 +128,4 @@ else
echo -e "Conclusion: ${GREEN}NOT VULNERABLE TO CVE-2024-3094 ${NC}"
fi

echo
echo

0 comments on commit 5ac050e

Please sign in to comment.