Closed
Description
I'm modifying how tainted label propagate for javascript.
However, running codeql database analyze
with -search-path
flag couldn't instruct that codeql engine to pick up my version of code.
I have a file structure like the following
- codeql-runner
- run_codeql_queries.py
- queries
- FlowState
- NewTaintedTrack.ql
- OldTaintedTracking.ql
- codeql-pack.lock.yml
- qlpack.yml
- queries.xml
- FlowState
- modified-codeql
The modified-codeql is a fork of this github repo https://github.com/yuske/codeql
The run_codeql_queries.py
invokes following commands
system(f"cd ./queries && codeql pack install && cd -")
system(f"codeql database analyze {db} {./queries/OldTaintedTrack.ql} --search-path={absolute-path-to-modified-codeql} --output={path-to-sarif})
How does i know the codeql engine didn't use modified-codeql
?
CodeQL starts deprecating old version of tainted tracking API. NewTaintedTrack.ql
uses the DataFlow::StateConfigSig
which is not defined in the repo. The repo is from 2 years ago. Ideally, commands in my python script should fail as a result.
Activity