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

Transform SQL queries to parameterized queries [BE-833] #192

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

sigma67
Copy link
Contributor

@sigma67 sigma67 commented Oct 5, 2020

As described in BE-833. This fixes all SQL injection attack vectors I could find. Let me know if I missed any queries.

It makes the code a bit more readable as well (in my opinion).

Signed-off-by: sigma67 benedikt.putz@wiwi.uni-regensburg.de

…[BE-833]

Signed-off-by: sigma67 <benedikt.putz@wiwi.uni-regensburg.de>
@sonarcloud
Copy link

sonarcloud bot commented Oct 5, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@nekia nekia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your great contribution. Looks good to me.

@nekia
Copy link
Contributor

nekia commented Oct 6, 2020

P.S. Currently unit test suite for API server side doesn't work. So we need to reconstruct it asap.
https://jira.hyperledger.org/browse/BE-837

@nekia nekia merged commit 34ab649 into hyperledger-labs:master Oct 6, 2020
@sigma67 sigma67 deleted the sqlinject-fix branch October 6, 2020 08:45
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

Successfully merging this pull request may close these issues.

2 participants