Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Java: remove version debugging from alert message
  • Loading branch information
Jami Cogswell authored and Jami Cogswell committed Jul 19, 2025
commit 0dd33b273437cfa85904760e6f4b9366fca12a81
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ private class SpringBootParent extends Parent {
SpringBootParent() { this.getGroup().getValue() = "org.springframework.boot" }
}

// TODO: private once done with version string debugging in alert msg.
/** A `Pom` with a Spring Boot parent node. */
class SpringBootPom extends Pom {
private class SpringBootPom extends Pom {
SpringBootPom() { this.getParentElement() instanceof SpringBootParent }

/** Holds if the Spring Boot Security module is used in the project. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ import java
import semmle.code.xml.MavenPom
import semmle.code.java.security.SpringBootActuatorsConfigQuery

from SpringBootStarterActuatorDependency d, JavaPropertyOption jpOption, SpringBootPom pom
where
exposesSensitiveEndpoint(d, jpOption) and
// TODO: remove pom; for debugging versions
d = pom.getADependency()
select d,
"Insecure Spring Boot actuator $@ exposes sensitive endpoints (" +
pom.getParentElement().getVersionString() + ").", jpOption, "configuration"
from SpringBootStarterActuatorDependency d, JavaPropertyOption jpOption
where exposesSensitiveEndpoint(d, jpOption)
select d, "Insecure Spring Boot actuator $@ exposes sensitive endpoints.", jpOption, "configuration"
Comment thread
jcogs33 marked this conversation as resolved.