CVE-2018-19788 HUG: How to test your machines

December 17, 2018 - Reading time: ~1 minute

Albeit that chances are small you are impacted by HUG. Just to make sure I tested all my Ansible managed machines to see if none had an UID that is larger than 2147483647.

This is my shell script:

#!/bin/bash
cat /etc/passwd | cut -f3 -d':' | awk '$1>2147483647'

And the Ansible command to run it on all nodes:

ansible all -m script -a hug_test.sh

Reference article

About

Koen Diels




I'm a freelance system and network engineer from Mechelen (BE) and I'm available for ad-hoc and long term projects.

>>my resume<<

Navigation