PT-2019-20001 · Squel · Squel
Published
2019-06-14
·
Updated
2019-06-14
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions
squel versions (affected versions not specified)
Description
The issue concerns sql injection due to improper escaping of user-provided input when using the
setFields method. This could lead to sql injection if the query was then executed. A proof of concept demonstrates the injection of a single quote into a generated sql statement from user-provided input, such as foo: "bar'baz" in the /api endpoint like squel.insert().into('buh').setFields({foo: "bar'baz"}).toString(), resulting in INSERT INTO buh (foo) VALUES ('bar'baz').Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
SQL injection
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Squel