mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
20 lines
537 B
Plaintext
20 lines
537 B
Plaintext
import java
|
|
import semmle.code.java.security.AndroidWebViewCertificateValidationQuery
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module WebViewTest implements TestSig {
|
|
string getARelevantTag() { result = "hasResult" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
exists(OnReceivedSslErrorMethod m |
|
|
trustsAllCerts(m) and
|
|
location = m.getLocation() and
|
|
element = m.toString() and
|
|
tag = "hasResult" and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<WebViewTest>
|