Google-it is a Node.js package which allows its users to send search queries to Google and receive the results in a JSON format. When using the 'Open in browser' option in versions up to 1.6.2, google-it will unsafely concat the result's link retrieved from google to a shell command, potentially exposing the server to RCE.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Link | Tags |
---|---|
https://advisory.checkmarx.net/advisory/CX-2021-4777 | third party advisory exploit |
https://github.com/PatNeedham/google-it/blob/v1.6.2/lib/googleIt.js#L59 | third party advisory exploit |
https://github.com/PatNeedham/google-it/blob/v1.6.2/src/googleIt.js#L34 | third party advisory exploit |