
CVE-2018-19788 (PolicyKit विशेषाधिकार वृद्धि) के लिए सिस्टम का ऑडिट और परीक्षण करने के लिए Ansible भूमिका, स्वचालित उपयोगकर्ता प्रावधान और शोषण सत्यापन के साथ।
Ansible भूमिका CVE-2018-19788 के रूप में ट्रैक की गई भेद्यता की जाँच करने के लिए, जो PolicyKit संस्करण 0.115 को प्रभावित करती है, जो कई लिनक्स वितरणों जैसे Ubuntu, Red Hat, CentOs, आदि पर पूर्व-स्थापित आता है।
न्यूनतम आवश्यक 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