-
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathTaintTrackingImpl.ql
More file actions
24 lines (20 loc) · 719 Bytes
/
TaintTrackingImpl.ql
File metadata and controls
24 lines (20 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
*@name TaintTrackingImpl
*@kind path-problem
*@derscription TaintTracking::Configuration 模板
*/
import java
import semmle.code.java.dataflow.TaintTracking
import DataFlow::PathGraph
class MyTaintTrackingConfig extends TaintTracking::Configuration {
MyTaintTrackingConfig() { this = "MyTaintTrackingConfig" }
override predicate isSource(DataFlow::Node source) {
// TODO
}
override predicate isSink(DataFlow::Node sink) {
// TODO
}
}
from MyTaintTrackingConfig cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
select sink, source, sink, "Custom constraint error message contains unsanitized user data"