Possible exploit variant for CVE-2024-9042 (Kubernetes OS Command Injection), (Wed, Dec 10th)
isc.sans.edu·1d
📦Container Security
Preview
Report Post

Last year, Kubernetes fixed a command injection vulnerability in the Kubernetes NodeLogQuery feature (CVE-2024-9042) [1]. To exploit the vulnerability, several conditions had to be met:

  • The vulnerable node had to run Windows
  • The attacker had to have permissions to read logs
  • The NogeLogQuery feature had to be enabled (at least at the time, it was in "Beta" and not enabled by default)

The sample exploits posted at the time passed the OS command as a GET parameter. For example [2]

curl "<Kubernetes API Proxy server IP>/api/v1/nodes/<NODE name>/proxy/logs/?query=nssm&pattern=’$(Start-process cmd)’"

The exploit uses ‘$(oscommand)’ as a "pattern", and sends a query to the "/logs/" endpoint. Overall, a classic…

Similar Posts

Loading similar posts...