You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can make a query of kind @kind problem that has a select clause with two columns, first the sink and the second a string message (e.g. "a sink").
It should not be too difficult to write such a query from scratch, alternatively, I think you can simply copy an existing @kind path-problem query, change its kind to problem, replace the first 3 columns in the select statement with just the sink and remove the import .....PathGraph line.
You can make a query of kind @kind problem that has a select clause with two columns, first the sink and the second a string message (e.g. "a sink").
It should not be too difficult to write such a query from scratch, alternatively, I think you can simply copy an existing @kind path-problem query, change its kind to problem, replace the first 3 columns in the select statement with just the sink and remove the import .....PathGraph line.
Thank you for your reply. Can you give me a demo? as follows
import python
import semmle.python.dataflow.new.DataFlow
import semmle.python.dataflow.new.TaintTracking
import semmle.python.ApiGraphs
import semmle.python.dataflow.new.RemoteFlowSources
private import semmle.python.Concepts
class SinkCall extends DataFlow::CallCfgNode {
SinkCall() {
this = API::moduleImport("js2py").getMember(["eval_js", "eval_js6", "EvalJs"]).getACall()
}
}
# How to query and ensure that the results support sarif format
I want to know how to use CodeQL to scan the sink in the code and output it as a sarif file.
The text was updated successfully, but these errors were encountered: