CVE-2016-10551 SQL Injection in waterline-sequel
Attackers can inject SQL via user input in waterline-sequel, gaining full database access. Developers using this Node.js module should upgrade.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-10551?
CVE-2016-10551 is a critical SQL injection vulnerability in HackerOne waterline-sequel node module, published on 29 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
waterline-sequel is a module that helps generate SQL statements for Waterline apps Any user input that goes into Waterline's `like`, `contains`, `startsWith`, or `endsWith` will end up in waterline-sequel with the potential for malicious code. A malicious user can input their own SQL statements in waterline-sequel 0.50 that will get executed and have full access to the database.
Weakness: CWE-89
Which versions are affected by CVE-2016-10551?
2 open source packages ship an affected version, including waterline-sequel. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
waterline-sequel npm | All versions | 0.5.1 |
waterline-sequel npm | All versions | 0.5.1 |
Products include Balderdash Waterline-Sequel.
How do I fix CVE-2016-10551?
Upgrade waterline-sequel to 0.5.1 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2016-10551 being exploited?
There is no known exploitation of CVE-2016-10551 in the wild and no public exploit code.
Sources
Also known as GHSA-cgpp-wm2h-6hqx.