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

checking security in 3rd party library - Jwt lib #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bkrockx
Copy link
Owner

@bkrockx bkrockx commented Sep 9, 2022

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -55,7 +55,8 @@
// the query, you should be using a parameterized query.
func AuthorQuery(r string) ([]Book, error) {
// Fix: rows, err := DB.Query("SELECT * FROM books WHERE author = ?", r)
rows, err := DB.Query(fmt.Sprintf("SELECT * FROM books WHERE author = '%s'", r))
query := fmt.Sprintf("SELECT * FROM books WHERE author = '%s'", r)
rows, err := DB.Query(query)

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query depends on [a user-provided value](1).
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.

1 participant