Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonatype SQL injection with ChangeToSqlValue #549

Closed
tskong opened this issue Jan 28, 2022 · 1 comment
Closed

Sonatype SQL injection with ChangeToSqlValue #549

tskong opened this issue Jan 28, 2022 · 1 comment

Comments

@tskong
Copy link
Contributor

tskong commented Jan 28, 2022

We scanned our code base and this issue came up

sonatype-2019-0547

The SqlKata package is vulnerable to SQL Injection. The ChangeToSqlValue function in QueryBuilder.dll does not escape single quotes (') in user-supplied input, which is used to construct and execute SQL queries. A remote attacker can exploit this behavior by supplying specially-crafted input, allowing them to alter the SQL query in order to exfiltrate or modify data in an affected database.

Has this been fixed? I can't see anything in the issues log, and I can attempt a fix if not.

@tskong
Copy link
Contributor Author

tskong commented Feb 14, 2022

Done with #554

@tskong tskong closed this as completed Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant