Skip to content

Commit 51d2b52

Browse files
committed
Remove cached property from SensitiveSource::flowsTo
1 parent 563e8a2 commit 51d2b52

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

java/ql/lib/semmle/code/java/security/CleartextStorageClassQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private class Serializable extends ClassStore {
3535
not this instanceof Properties and
3636
// restrict attention to tainted instances
3737
exists(SensitiveSource data |
38-
data.flowsToCached(getInstanceInput(_, this.getConstructor().getDeclaringType()))
38+
data.flowsTo(getInstanceInput(_, this.getConstructor().getDeclaringType()))
3939
)
4040
}
4141

java/ql/lib/semmle/code/java/security/CleartextStorageQuery.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class SensitiveSource extends Expr {
2525
}
2626

2727
/** Holds if this source flows to the `sink`. */
28-
cached
29-
predicate flowsToCached(Expr sink) {
28+
predicate flowsTo(Expr sink) {
3029
exists(SensitiveSourceFlowConfig conf |
3130
conf.hasFlow(DataFlow::exprNode(this), DataFlow::exprNode(sink))
3231
)

java/ql/src/Security/CWE/CWE-312/CleartextStorageClass.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ from SensitiveSource data, ClassStore s, Expr input, Expr store
1818
where
1919
input = s.getAnInput() and
2020
store = s.getAStore() and
21-
data.flowsToCached(input)
21+
data.flowsTo(input)
2222
select store, "Storable class $@ containing $@ is stored here. Data was added $@.", s, s.toString(),
2323
data, "sensitive data", input, "here"

java/ql/src/Security/CWE/CWE-312/CleartextStorageCookie.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ from SensitiveSource data, Cookie s, Expr input, Expr store
1717
where
1818
input = s.getAnInput() and
1919
store = s.getAStore() and
20-
data.flowsToCached(input)
20+
data.flowsTo(input)
2121
select store, "Cookie $@ containing $@ is stored here. Data was added $@.", s, s.toString(), data,
2222
"sensitive data", input, "here"

java/ql/src/Security/CWE/CWE-312/CleartextStorageProperties.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ from SensitiveSource data, Properties s, Expr input, Expr store
1717
where
1818
input = s.getAnInput() and
1919
store = s.getAStore() and
20-
data.flowsToCached(input)
20+
data.flowsTo(input)
2121
select store, "'Properties' class $@ containing $@ is stored here. Data was added $@.", s,
2222
s.toString(), data, "sensitive data", input, "here"

0 commit comments

Comments
 (0)