-
Hello, I was reading the docs on codeQL and stumbled upon this page: https://codeql.github.com/docs/codeql-language-guides/specifying-additional-remote-flow-sources-for-javascript/ I am currently trying to make the "default" codeql javascript pack work with a custom web framework. I already have queries that return sources containing user-supplied input, but I'm having some trouble understanding how I could modify the codebase to allow for the rules to work properly (by including a new RemoteFlowSource definition?). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I have kind of figured this out. In case anyone has this question in the future, you need to create a new class that extends
Then just add a line that imports it to the |
Beta Was this translation helpful? Give feedback.
I have kind of figured this out.
In case anyone has this question in the future, you need to create a new class that extends
RemoteFlowSource
. In my case, I created a new file underjavascript/ql/lib/semmle/javascript/frameworks/
, you can start with a simple module like this and then adapt it to be similar to the other framework implementations in that folder: