id: springboot-caches

info:
  name: Springboot Actuator Caches
  author: ELSFA7110
  severity: low
  description: The caches endpoint provides access to the application's caches.
  reference:
    - https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#caches
  metadata:
    verified: true
    max-request: 2
  tags: misconfig,springboot,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/caches"
      - "{{BaseURL}}/actuator/caches"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "cacheManagers"

      - type: word
        part: header
        words:
          - "application/json"
          - "application/vnd.spring-boot.actuator"
          - "application/vnd.spring-boot.actuator.v1+json"
          - "application/vnd.spring-boot.actuator.v2+json"
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100fd94564ccaefbfd90b0b23c0582a29b95bd9e8e0f74e52e11db876c1eec05d1f02206ccd1ce6668646be50b6815e730caf0f102ebf3fd636081d603cebcc6af5a385:922c64590222798bb761d5b6d8e72950