qpscanner icon indicating copy to clipboard operation
qpscanner copied to clipboard

DB Schema Param

Open clint317 opened this issue 12 years ago • 2 comments

It appears that the scanner reports false positives triggered by schema and/or table names when parameterized (scoped or not):

SELECT blah FROM #schema#.#tablename# WHERE col1 = AND col2 =

Is this not optimally acceptable^?

clint317 avatar Jan 03 '13 14:01 clint317

Same also goes for parameterized column names: select #tablename# from...

clint317 avatar Jan 03 '13 14:01 clint317

This is correct behaviour - the scanner searches for any hash expressions - it doesn't (cannot) know whether schema/etc is a client-supplied variable that might contain an injection attack.

Possibly the best way to solve this would be to allow a comma-delimited list of known safe variables, but then again a variable that's safe in one file might not be safe in another, so will have to think a bit on a good way to resolve this.

boughtonp avatar Jan 05 '13 16:01 boughtonp