boughtonp / qpscanner Goto Github PK
View Code? Open in Web Editor NEWMOVED TO https://codeberg.org/boughtonp/qpscanner
Home Page: https://www.sorcerersisle.com/software/qpscanner
License: GNU General Public License v3.0
MOVED TO https://codeberg.org/boughtonp/qpscanner
Home Page: https://www.sorcerersisle.com/software/qpscanner
License: GNU General Public License v3.0
It would probably speed up the scanning process if qpscanner kept a note of last modified dates of files (and any relevant results), and on subsequent scans it only scans the files which have been modified, appending the cached details of any unmodified files.
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^?
When I try to scan a directory on a UNC path, e.g. //server/share/path, QueryParam Scanner drops the first slash and throws an error:
Specified path [/server/share/path] cannot be accessed or does not exist.
I traced the issue to the following line in cfcs/settings.cfc, in the normalizePath method:
<cfset var Result = Arguments.Path.replaceAll('[\/]+','/') />
(I removed the plus sign in the regex to get this to work in my scenario, but that may or may not allow other problematic paths.)
A query such as
SELECT column
FROM #application.tablename#
WHERE id = cfqueryparam cf_sql_type="cf_sql_integer" value="4"
is flagged as invalid. I've been trying to figure out a workaround (aside from excluding from the query output), but I haven't figured out a good solution yet.
(Sorry not quite sure how to format my cfqueryparam code style.)
For database like Sybase, temp table started with hash:
delete ##my_temp_table
For some reason qpscanner thinks it needs cfqueryparam
v0.8 (RC)
https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin
Defining a new parser using the user interface
Since release 3.8 you can define new parsers dynamically in the system configuration section of Jenkins. Just navigate to http://[jenkins-url]/configure and create a new parser in section Compiler Warnings. The UI should be self explanatory, if there is something missing, please let me know on the mailing lists.
Writing a new parser that should be included in the warnings plug-in
Extending the existing set of supported warning formats is quite easy. If the format of the warnings messages could be parsed by an regular expression, then you only need to provide a new parser class and a corresponding test case:
When a scan error is thrown it should render this in the output format requested. For example, in the case of an invalid directory, requesting:
/?action=scan.go&OutputFormat=JSON&StartingDir=invalid
...should return something similar to:
{"error":"Specified path [invalid] cannot be accessed or does not exist."}
...and so on.
The code is incorrectly doing an exact match check instead of a partial check.
It is also checking the entire query code instead of just the opening tag.
When I try running qpscanner against a directory, I get the following error:
'/qpscanner-rc0.8/views/scan/go.cfm' does not exist.
(The scans directory indeed does not exist within the views directory in the repo or the downloadable .zip file, unless I'm misunderstanding.)
Any ideas? I'm using CF10 on Windows Server 2008R2, IIS7.
Additionally, if I do not supply a URL startingdir parameter I get the following error:
"Element STARTINGDIR is undefined in RC."
Any chance of including scans for scripted queries?:
q = new Query(datasource=mydatasource);
q.setSQL(
"select col1, col2, #col3#
from #schema#.tblname
where fee = :qpFa
and foo = :qpLa
and fum = '#so#'"
);
q.addParam(name="qpFa", value="#val1#", cfsqltype="cf_sql_varchar");
q.addParam(name="qpLa", value="#val2#", cfsqltype="cf_sql_varchar");
I have tried several different regexes to try to exclude a directory called admin. but nothing seems to work. Do you have an example of a regex to use to exclude the admin directory?
Thank You
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.