SQL Injection Affecting sails-mysql package, versions <0.10.8
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-SAILSMYSQL-174916
- published 5 Jun 2019
- disclosed 11 Sep 2014
- credit Jamy Timmermans
How to fix?
Upgrade sails-mysql
to version 0.10.8 or higher.
Overview
sails-mysql is a MySQL connection adapter for the Sails framework.
Affected versions of this package are vulnerable to SQL Injection. sort
keyword allows possible query injection, for example: http://localhost:1337/user?sort=name ASC
References
CVSS Scores
version 3.1