Skip to content

Improve "Git Commit Information" reference documentation #24205

@xenoterracide

Description

@xenoterracide

So... I could potentially report this as a security vulnerability, but it's already easily mitigated, and pretty minor. I suspect this will get closed. This issue may also be better remedied in the BuildInfo plugins for maven/gradle.

/actuator/info leaks information that allows an attacker to determine what vulnerabilities may be available. Specifically datetime's. If I know the build/last git time I know what libraries were available, and can even guess at the version of the JVM.

my preferred solution would be for info to make like health and not show all of the data unless you're authenticated.

Another solution is to null out time for both build and git, currently this is possible with build in the gradle plugin using kotlin, but not possible with git as there is no api exposed to set that property.

lastly of course, you can just use these properties to make them require authentication.

management.endpoints.web.exposure.exclude  
management.endpoints.web.exposure.include info, health

and secure them further https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-endpoints-security

just an idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions