id: springboot-mappings

info:
  name: Detect Springboot Mappings Actuator
  author: that_juan_,dwisiswant0,wdahlenb
  severity: low
  description: Additional routes may be displayed
  metadata:
    max-request: 2
  tags: springboot,exposure,misconfig

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "mappings"
          - "method"
          - "produces"
        condition: and

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

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