SQL Injection Affecting influx Open this link in a new tab package, versions <5.5.3


0.0
high
  • Exploit Maturity

    Proof of concept

  • Attack Complexity

    Low

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

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