mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Add the domain used to the alert message
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
import java
|
||||
import semmle.code.java.security.AndroidCertificatePinningQuery
|
||||
|
||||
from DataFlow::Node node, string msg
|
||||
from DataFlow::Node node, string domain, string msg
|
||||
where
|
||||
missingPinning(node) and
|
||||
if exists(string x | trustedDomain(x))
|
||||
then msg = "(untrusted domain)"
|
||||
else msg = "(no trusted domains)"
|
||||
missingPinning(node, domain) and
|
||||
if domain = ""
|
||||
then msg = "(no explicitly trusted domains)"
|
||||
else msg = "(" + domain + " is not trusted by a pin)"
|
||||
select node, "This network call does not implement certificate pinning. " + msg
|
||||
|
||||
Reference in New Issue
Block a user