SQL Injection

Module: sequelize

Published: January 19th, 2015

Reported by: Levan Basharuli

CVE-2015-1369

CWE-89

Vulnerable: <=2.0.0-rc7
Patched: >=2.0.0-rc8

Overview

Versions 2.0.0-rc-7 and earlier of sequelize are affected by a SQL injection vulnerability when user input is passed into the order parameter.

Proof of Concept

Test.findAndCountAll({
where: { id :1 },
order : [['id', 'UNTRUSTED USER INPUT']]
})

Remediation

Update to version 2.0.0-rc8 or later

References

Issue #2906