-
Notifications
You must be signed in to change notification settings - Fork 557
fix possible RCE in jsonpath-plus #900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Welcome @rluvaton! |
Thanks for the PR. fwiw, I wouldn't classify this as an RCE, since this requires a user to explicitly load a configuration either from disk or from some other input. In such circumstances, users should be expected to sanity check their input before handing it over to the library. Obviously from a defense in depth perspective it is worth fixing this and no one should expect that embedding Javascript into their JSONPath should work in a kubeconfig, so I'm onboard with merging this PR. But it's definitely not an RCE since there is nothing 'remote' about this particular library call. (I'm not even sure that it is a vulnerability, since it requires the user of the library to knowingly supply malicious input) |
to be honest after I found that issue I looked at the top most packages that use that and fixed that in them to have better security in our ecosystem The RCE was meant to be in the package itself (even though it's a feature)... |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, rluvaton The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
JSONPath-Plus/JSONPath#182