Skip to content

Commit f488f23

Browse files
committed
Add LocalFlowSource back to UncontrolledFormatString
1 parent 89bdb7f commit f488f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

csharp/ql/src/Security Features/CWE-134/UncontrolledFormatString.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import semmle.code.csharp.frameworks.Format
1717
import FormatString::PathGraph
1818

1919
module FormatStringConfig implements DataFlow::ConfigSig {
20-
predicate isSource(DataFlow::Node source) { source instanceof ThreatModelFlowSource }
20+
predicate isSource(DataFlow::Node source) {
21+
source instanceof ThreatModelFlowSource or source instanceof LocalFlowSource
22+
}
2123

2224
predicate isSink(DataFlow::Node sink) {
2325
sink.asExpr() = any(FormatCall call | call.hasInsertions()).getFormatExpr()

0 commit comments

Comments
 (0)