Headline
CVE-2018-14632: fix check idx index · evanphx/json-patch@4c9aadc
An out of bound write can occur when patching an Openshift object using the ‘oc patch’ functionality in OpenShift Container Platform before 3.7. An attacker can use this flaw to cause a denial of service attack on the Openshift master api service which provides cluster management.
@@ -227,6 +227,10 @@ var BadCases = []BadCase{
`{ "name":{ "foo": "bat", "qux": "bum"}}`,
`[ { "op": "replace", "path": "/foo/bar", "value":"baz"}]`,
},
{
`{ "foo": [“bar”]}`,
`[ {"op": "add", "path": "/foo/2", "value": "bum"}]`,
},
}
func TestAllCases(t *testing.T) {