-
Notifications
You must be signed in to change notification settings - Fork 6
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
Prevent false positives for SQL keywords #164
Conversation
This reverts commit ae9ab6f.
SELECT * FROM users WHERE id = 1; if "SELECT" occurs somewhere in the body, query parameters, ... the query will be flagged as SQL injection If the user input is exactly an SQL keyword, we can ignore it. It's only when keywords are combined with other things...
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
SQL_STRING_CHARS, | ||
} from "./config"; | ||
|
||
t.test("SQL_KEYWORDS are valid", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is meant by valid here?
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the test names 👍
No description provided.