patneedham/google-it · Security
Command injection in google-it
- GHSA ID
- GHSA-7xhv-mpjw-422f
- CVE ID
- CVE-2021-34083
- Severity
- high
- Published
- Updated
- CVSS
- 8.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-34083 ↗
- https://advisory.checkmarx.net/advisory/CX-2021-4777 ↗
- https://github.com/PatNeedham/google-it/blob/v1.6.2/lib/googleIt.js#L59 ↗
- https://github.com/PatNeedham/google-it/blob/v1.6.2/src/googleIt.js#L34 ↗
- https://github.com/advisories/GHSA-7xhv-mpjw-422f ↗