SQL Injection Affecting influx package, versions <5.5.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-INFLUX-559587
  • published23 Jun 2020
  • disclosed23 Jun 2020
  • creditZeruk

Introduced: 23 Jun 2020

CVE NOT AVAILABLE CWE-89  (opens 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()

CVSS Scores

version 3.1