
자동화된 사용자 프로비저닝 및 익스플로잇 검증과 함께 CVE-2018-19788(PolicyKit 권한 상승)에 대한 시스템 감사 및 테스트를 위한 Ansible 역할입니다.
Ansible 역할을 통해 CVE-2018-19788 취약점을 점검합니다. 이 취약점은 PolicyKit 버전 0.115에 영향을 미치며, 이 버전은 Ubuntu, Red Hat, CentOs 등 다양한 Linux 배포판에 기본 설치되어 있습니다.
최소 Ansible 버전 2.4.0 필요
# The user name to be provisioned to execute the exploit
CVE_2018_19788_test_user: cve_test
# The UID assigned to CVE_2018_19788_test_user (must be equal or greater than 2147483647)
CVE_2018_19788_test_user_uid: 2147483669
# Set the proper privileged group for your distro. Please check the compatibilty matrix for the supported systems
CVE_2018_19788_privileged_group: wheel
# Flag to No to avoid checking and rendering the list of users able to leverage the CVE-2018-19788 vunerability
CVE_2018_19788_list_explotable_users: Yes
# Flag to No if you need to run further testing with the test account;
# Beaware that if your system is vulnerable, this account could become a problem
CVE_2018_19788_remove_test_user: Yes
사용자에게도 도움이 되도록 역할 사용 예시(예: 매개변수로 전달된 변수 사용)를 포함하는 것이 좋습니다:
- hosts: all
roles:
- { role: d4gh0s7.cve_2018_19788 }
CC0 1.0