id: springboot-beans

info:
  name: Detect Springboot Beans Actuator
  author: ajaysenr
  severity: low
  description: Displays a complete list of all the Spring beans in the application
  metadata:
    max-request: 2
  tags: springboot,exposure,misconfig

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"type"'
          - '"beans"'
          - '"dependencies"'
          - '"scope"'
        condition: and

      - type: status
        status:
          - 200

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

# digest: 4a0a00473045022100fac9b0b7015245840ac3145f5e326431d2164b4d20482577751c0d491962508e0220573e05e18ac0323359adac68b0e22dd89cf0ebf8a8267c491950d06fe47ce8e0:922c64590222798bb761d5b6d8e72950
