sift 17.1.3 Prototype Pollution Remote Code Execution via $where
48Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 9.2epss 0.5%
from disclosure to weapon4 days
Published on NVDSep 4
1st PoC+4d
exploitation probability
0.5%top 55% of all CVEs
observed exploitation
nono source reports it
1 public exploit(s)
sift (sift.js) 17.1.3 enumerates query keys with for...in, which walks the object prototype chain, and dispatches any matched operator key including $where. The $where operation compiles a string value into a function using new Function unless CSP_ENABLED is set (not set by default). As a result, if a prototype-pollution primitive elsewhere in the process sets Object.prototype.$where to a malicious string, even benign filter calls such as sift({}) execute arbitrary JavaScript. Additionally, passing an untrusted query object containing a string $where directly to sift results in code execution under the default configuration.
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected products
crcn · sift.jspublic PoCs found — 1
githubgithub.com/lgranadoi/sift-hardened★ 0⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.