The Kunnus Agent's local IPC socket at /var/run/kunnus-agent.sock is created with mode 0666 and no peer-credential check. Any local user can send a collect command with an arbitrary output path, and the agent writes the collected bundle as root. I used this to write into /etc/sudoers.d and get a root shell on a stock install of 4.2.1. It also worked on 4.1.x.
To reproduce: install Kunnus Agent 4.2.1 on Debian 12 from the .deb, then as an unprivileged user run printf '{"cmd":"collect","out":"/etc/sudoers.d/zz"}' | socat - UNIX-CONNECT:/var/run/kunnus-agent.sock, wait ~2 s for the agent to flush the bundle, and sudo -l now shows NOPASSWD: ALL for the calling user. Script and strace attached.
Happy to coordinate — I intend to publish 90 days from today.
{{ closed.detail }}