Skip to content

Commit 40aac5e

Browse files
committed
[DIFF-INFORMED] C#: HardcodedConnectionString
1 parent 1f5d853 commit 40aac5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

csharp/ql/src/Security Features/CWE-798/HardcodedConnectionString.ql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ module ConnectionStringConfig implements DataFlow::ConfigSig {
3838
}
3939

4040
predicate isBarrier(DataFlow::Node node) { node instanceof StringFormatSanitizer }
41+
42+
predicate observeDiffInformedIncrementalMode() { any() }
43+
44+
Location getASelectedSinkLocation(DataFlow::Node sink) {
45+
any(Call call | call.getAnArgument() = sink.asExpr()).getLocation() = result
46+
}
4147
}
4248

4349
/**

0 commit comments

Comments
 (0)