
Script de shell para detectar CVE-2024-3094 (backdoor do xz-utils) em sistemas Linux e macOS, com instruções automatizadas de verificação e correção.
Esta vulnerabilidade permite que um atacante faça login no servidor e execute código arbitrário sem passar pela autenticação SSH. Para mais detalhes, consulte: https://www.openwall.com/lists/oss-security/2024/03/29/4
Use
curl -fsSL https://raw.githubusercontent.com/wgetnz/CVE-2024-3094-check/main/CVE-2024-3094-check.sh| bash
OU
curl -fsSL https://github.freedns.uk/https://raw.githubusercontent.com/wgetnz/CVE-2024-3094-check/main/CVE-2024-3094-check.sh| bash
Se o seu host estiver offline, use o seguinte comando
Para Debian/Ubuntu:
apt list --installed 2>&1 | grep xz | grep -E '5.6.0|5.6.1' && echo "Check your system now" || echo "Everything is ok"
Para macOS:
brew info xz | grep xz | grep -E '5.6.0|5.6.1' && echo 'Check your system now' || echo 'Everything is ok'
Como corrigir: Basta fazer downgrade do xz-utils
Correção no macOS: brew install xz
Se você tiver alguma dúvida, abra uma issue. Se este projeto te ajudar, por favor, dê uma estrela