Summery

Spring Boot is a Java framework used to build applications, especially web applications and REST APIs. It simplifies configuration and application setup.
It’s kinda similar to Apache Tomcat. Apache Tomcat is a web server and Java servlet container that runs Java web applications. They often work together as Spring Boot applications typically include an embedded Tomcat server, so you can run the application without installing Tomcat separately.

Endpoints

Spring Boot includes a set of features that are designed for monitoring, managing, and debugging applications known as actuators.

/actuator - Generally related to debugging. Think of it as an API with different endpoints
/actuator/sessions - List all the active sessions and their session ids. You can take those session ids and set as a cookies in developer console’s Storage tab
/actuator/mappings - Gives a detailed list og the application and it’s endpoints, including not only the actuators, but also other endpoints for the application

/actuator/env - Credentials, secrets, configuration
/actuator/heapdump - Memory contents, potentially secrets
/actuator/configprops - Configuration and sensitive properties
/actuator/mappings - Application routes and hidden functionality
/actuator/beans - Internal components and dependencies
/actuator/threaddump - Runtime information and possible sensitive data
/actuator/logfile - Logs containing credentials or tokens
/actuator/health - Service status and component details
/actuator/jolokia - JMX access and potentially dangerous operations

Exploitation

CVEs
Exploit 1 - CVE-2022-22963 - http://cozyhosting.htb is not vulnerable
Exploit 2 - CVE-2022-22963 - Says Done but nothing happens

Scanners
Spring Boot Hunter is a comprehensive SB scanner

References

Hacktricks - Spring Boot