SQL Injection Affecting sails-mysql package, versions <0.10.8


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

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

Introduced: 11 Sep 2014

CVE NOT AVAILABLE CWE-89 Open this link in a new tab

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
Expand this section

Snyk

Recommended
7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None