DoS issues in JSON parsing – CVE-2019-1002100
Patching is a commonly used technique used to update API objects at runtime. Developers use kubectl patch
to update API objects at runtime. A simple example of this can be adding a container to a pod:
spec: template: spec: containers: - name: db image: redis
The preceding patch file allows a pod to be updated to have a new Redis container. kubectl patch
allows patches to be in JSON format. The issue was in the JSON parsing code of kube-apiserver
, which allowed an attacker to send a malformed json-patch
instance to cause a DoS attack in the API server. In Chapter 10, Real-Time Monitoring and Resource Management of a Kubernetes Cluster, we discussed the importance of the availability of services within Kubernetes clusters. The root cause of this issue was unchecked error conditions...