SQL Injection Affecting influx package, versions <5.5.3


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    Exploit Maturity Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-INFLUX-559587
  • published 23 Jun 2020
  • disclosed 23 Jun 2020
  • credit Zeruk

Introduced: 23 Jun 2020

CVE NOT AVAILABLE CWE-89 Open this link in a new tab

How to fix?

Upgrade influx to version 5.5.3 or higher.

Overview

influx is an InfluxDB Client for Node.js and Browsers.

Affected versions of this package are vulnerable to SQL Injection due to improperly escaping value input.

###PoC

const influx = require('influx')
const exp = new influx.Expression();
exp.tag('symbol').equals.value("GAZP()\\' or 1=1 --").toString()

References