Java: Refactor FragmentInjection.

This commit is contained in:
Anders Schack-Mulligen
2023-03-15 10:23:21 +01:00
parent 5bd530f570
commit ca8e013618
3 changed files with 25 additions and 11 deletions

View File

@@ -13,10 +13,10 @@
import java
import semmle.code.java.security.FragmentInjectionQuery
import DataFlow::PathGraph
import FragmentInjectionTaintFlow::PathGraph
from DataFlow::PathNode source, DataFlow::PathNode sink
where any(FragmentInjectionTaintConf conf).hasFlowPath(source, sink)
from FragmentInjectionTaintFlow::PathNode source, FragmentInjectionTaintFlow::PathNode sink
where FragmentInjectionTaintFlow::hasFlowPath(source, sink)
select sink.getNode(), source, sink,
"Fragment depends on a $@, which may allow a malicious application to bypass access controls.",
source.getNode(), "user-provided value"