mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Add webview cert validation query
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @name Android `WebVeiw` that accepts all certificates
|
||||
* @description Trusting all certificates allows an attacker to perform a machine-in-the-middle attack.
|
||||
* @kind problem
|
||||
* @problem.severity error
|
||||
* @security-severity 7.5
|
||||
* @precision high
|
||||
* @id java/improper-webview-certificate-validation
|
||||
* @tags security
|
||||
* external/cwe/cwe-295
|
||||
*/
|
||||
|
||||
import java
|
||||
import semmle.code.java.security.AndroidWebViewCertificateValidationQuery
|
||||
|
||||
from OnReceivedSslErrorMethod m
|
||||
where trustsAllCerts(m)
|
||||
select m, "This handler accepts all SSL certificates."
|
||||
Reference in New Issue
Block a user