Skip to content

Commit 9b17913

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: remove deprecation
1 parent 3b61dea commit 9b17913

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

java/ql/src/Security/CWE/CWE-200/InsecureSpringActuatorConfig/InsecureSpringActuatorConfig.ql

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,9 @@ predicate hasConfidentialEndPointExposed(SpringBootPom pom, ApplicationPropertie
111111
)
112112
}
113113

114-
deprecated query predicate problems(Dependency d, string message) {
115-
exists(SpringBootPom pom |
116-
hasConfidentialEndPointExposed(pom, _) and
117-
d = pom.getADependency() and
118-
d.getArtifact().getValue() = "spring-boot-starter-actuator"
119-
) and
120-
message = "Insecure configuration of Spring Boot Actuator exposes sensitive endpoints."
121-
}
114+
from SpringBootPom pom, ApplicationProperties ap, Dependency d
115+
where
116+
hasConfidentialEndPointExposed(pom, ap) and
117+
d = pom.getADependency() and
118+
d.getArtifact().getValue() = "spring-boot-starter-actuator"
119+
select d, "Insecure configuration of Spring Boot Actuator exposes sensitive endpoints."

0 commit comments

Comments
 (0)