mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
refactor isSanitizerEdge in clear-text-logging
This commit is contained in:
@@ -36,10 +36,8 @@ module CleartextLogging {
|
||||
|
||||
override predicate isSanitizerEdge(DataFlow::Node pred, DataFlow::Node succ, DataFlow::FlowLabel lbl) {
|
||||
// Only unknown property reads on `process.env` propagate taint.
|
||||
not lbl instanceof ProcessEnvLabel and
|
||||
(not lbl instanceof ProcessEnvLabel or exists(succ.(DataFlow::PropRead).getPropertyName())) and
|
||||
succ.(DataFlow::PropRead).getBase() = pred
|
||||
or
|
||||
exists(succ.(DataFlow::PropRead).getPropertyName())
|
||||
}
|
||||
|
||||
override predicate isAdditionalFlowStep(
|
||||
|
||||
Reference in New Issue
Block a user