Skip to content

How to use my own modified version of codeql core library #18890

Closed
@lllssskkk

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
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions