PoC command injection example for cve-2018-1002105 based off https://github.com/gravitational/cve-2018-1002105
# This was modified from https://gravitational.com/blog/kubernetes-websocket-upgrade-security-vulnerability/. All credit goes to the kind folks at Gravitational.
The original PoC code was modified to go a bit beyond checking for vulnerability and to actually run a command inside the first container in the first namespace. In this case, `curl -s google.com` inside the first pod/container in the default namespace on most clusters. From here, it's easy to make an actual tool to extract secrets, code, exfil data, etc.
# CVE-2018-1002105
Log in to view the POC file snapshot cached by Shenlong Bot
Log in to view