
Rechercher les installations python sur macOS et exécuter le script CVE-2015-20107.py pour signaler si un correctif est nécessaire.
Recherche les installations Python sur macOS et exécute le script CVE-2015-20107.py pour signaler si un correctif est nécessaire.
Plusieurs de ces scripts nécessitent l'autorisation d'accès au disque complet et doivent être exécutés en tant que root afin de pouvoir analyser l'ensemble du système de fichiers macOS (à l'exception des zones restreintes par macOS).
Assurez-vous d'exécuter ce script depuis une application disposant de l'autorisation d'accès au disque complet – par exemple, vérifiez que iTerm.app dispose de l'accès au disque complet activé dans les Paramètres système Apple, section Confidentialité et sécurité, Confidentialité et sécurité.
Clonez ce dépôt
Placez-vous dans le répertoire cloné
Exécutez
sudo ./python-patrol.zsh
...
lrwxr-xr-x 1 root wheel 9 Apr 24 13:46 /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3 -> python3.9
=====CVE-2015-20107.py START=====
python_path:/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3 python_version:3.9.6
Warning encountered trying to use unquoted mailcap path: Refusing to use mailcap with filename "'$(xterm);#.txt". Use a safe temporary filename.
CVE-2015-20107 patched OK, exiting without error.
=====CVE-2015-20107.py STOP=====
lrwxrwxr-x 1 root admin 9 Apr 26 13:59 /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -> python3.9
=====CVE-2015-20107.py START=====
python_path:/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 python_version:3.9.11
No warning or error encountered importing unquoted mailcap path...!
CVE-2015-20107 NOT patched, PLEASE UPDATE OR UNINSTALL THIS PYTHON VERSION!
=====CVE-2015-20107.py STOP=====
...
par exemple, désinstallez la version 3.9.11 découverte, obsolète et vulnérable comme suit
sudo ./uninstall_python.org_pkg.zsh 3.9