mirror of
https://github.com/github/codeql.git
synced 2026-02-26 03:43:41 +01:00
Java: fix test case for version 1.4
Need the existence of an ApplicationProperties File, not an ApplicationProperties ConfigPair
This commit is contained in:
@@ -15,9 +15,9 @@ import java
|
||||
import semmle.code.xml.MavenPom
|
||||
import semmle.code.java.security.SpringBootActuatorsConfigQuery
|
||||
|
||||
from SpringBootPom pom, ApplicationProperties ap, Dependency d
|
||||
from SpringBootPom pom, Dependency d
|
||||
where
|
||||
hasConfidentialEndPointExposed(pom, ap) and
|
||||
hasConfidentialEndPointExposed(pom) and
|
||||
d = pom.getADependency() and
|
||||
d.getArtifact().getValue() = "spring-boot-starter-actuator"
|
||||
select d, "Insecure configuration of Spring Boot Actuator exposes sensitive endpoints."
|
||||
|
||||
Reference in New Issue
Block a user