Implement local auth query

This commit is contained in:
Joe Farebrother
2024-01-30 16:49:55 +00:00
parent 10343dd822
commit 8bd79908a6
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* @name Insecure local authentication
* @description Local authentication that does not make use of a `CryptoObject` can be bypassed.
* @kind problem
* @problem.severity warning
* @security-severity ...TODO
* @precision high
* @id java/android/insecure-local-authentication
* @tags security
* external/cwe/cwe-287
*/
import java
import semmle.code.java.security.AndroidLocalAuthQuery
from AuthenticationSuccessCallback c
where not exists(c.getAResultUse())
select c, "This authentication callback does not use its result for a cryptographic operation."