Test for CVE-2021-3864.
- create a user
echo <username> ALL= path/to/gen-core >> /etc/sudoers
sysctl kernel.core_pattern=core
- ./cve-2021-3864
- It should generate a core file in /etc/logrotate.d
Test for CVE-2021-3864.
echo <username> ALL= path/to/gen-core >> /etc/sudoers
sysctl kernel.core_pattern=core