Is it possible to use SCS for detecting SQL Injection when using NPoco? #293
Unanswered
GoranSiska
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My project uses NPoco and I wanted to detect sql injection issues when passing tainted strings to NPoco methods. Limiting things to just the Fetch method, I have added a sink configuration:
- Type: NPoco.Database TaintTypes: - SCS0002 Methods: - Name: Fetch Arguments: - sqlThis results is many false positives as Fetch method receives two types of arguments (both named sql), a string and NPoco.Sql. Currently there is no way to specify argument count or type for SinkMethod. Next I've tried to specify NPoco.Sql as sanitizer:
- Type: NPoco.Sql TaintTypes: - SCS0002 Methods: - Name: .ctor CleansInstance: trueThis does not work as isConstructorSanitizing is always set to false in code. I'm guessing the only way to support NPoco is to extend SCS with additional support for some of these:
Are there currently any plans for extending configuration capabilities of SCS?
Beta Was this translation helpful? Give feedback.
All reactions