-
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
Move config.json to config.ts and add some comments #46
Conversation
"!", | ||
";", | ||
"\\+", // This checks for "+" | ||
"\\-", // This checks for "-" |
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.
deze dubbele escape klopt nietm eer dan right?
|
||
// We make use of double backslashes to create a single backslash in the RegEx | ||
const SQL_DANGEROUS_IN_STRING = [ | ||
"\\\\", // Check for backslashes : "\" |
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.
deze dubbele escape klopt nietm eer dan right?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #46 +/- ##
==========================================
+ Coverage 94.25% 94.62% +0.36%
==========================================
Files 20 22 +2
Lines 1585 1694 +109
Branches 195 195
==========================================
+ Hits 1494 1603 +109
Misses 91 91 ☔ View full report in Codecov by Sentry. |
library/src/vulnerabilities/sql-injection/detectSQLInjection.ts
Outdated
Show resolved
Hide resolved
…ts-for-regex-escape * 'main' of github.com:AikidoSec/node-RASP: Move to separate file Remove typedoc Split regex up into different smaller regex strings Add comments to regex Remove some comments
It's easier to reason about this when the escaping happens just before using in a regex. This also allows us to use the config data for any purpose. Not just regexes. How beautiful.
No description provided.