Java: Refactor SensitiveCommunication.ql.

This commit is contained in:
Anders Schack-Mulligen
2023-03-15 10:32:35 +01:00
parent ca8e013618
commit 4b814ec71c
3 changed files with 34 additions and 12 deletions

View File

@@ -13,9 +13,9 @@
import java
import semmle.code.java.security.AndroidSensitiveCommunicationQuery
import DataFlow::PathGraph
import SensitiveCommunicationFlow::PathGraph
from SensitiveCommunicationConfig cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
from SensitiveCommunicationFlow::PathNode source, SensitiveCommunicationFlow::PathNode sink
where SensitiveCommunicationFlow::hasFlowPath(source, sink)
select sink.getNode(), source, sink, "This call may leak $@.", source.getNode(),
"sensitive information"