mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
21 lines
693 B
Plaintext
21 lines
693 B
Plaintext
import java
|
|
import semmle.code.java.security.UnsafeAndroidAccessQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class UnsafeAndroidAccessTest extends InlineExpectationsTest {
|
|
UnsafeAndroidAccessTest() { this = "HasUnsafeAndroidAccess" }
|
|
|
|
override string getARelevantTag() { result = "hasUnsafeAndroidAccess" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasUnsafeAndroidAccess" and
|
|
exists(DataFlow::Node src, DataFlow::Node sink, FetchUntrustedResourceConfiguration conf |
|
|
conf.hasFlow(src, sink)
|
|
|
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|