id: spring-detect

info:
  name: Java Spring Detection
  author: Adam Crosser
  severity: info
  reference:
    - https://mkyong.com/spring-boot/spring-rest-error-handling-example/
  metadata:
    max-request: 1
  tags: tech,java,spring,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/error"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"status":999'
        case-insensitive: true

      - type: status
        status:
          - 500
# digest: 490a00463044022047e542cc40fe75dfe4755fdd7851d982d9a0317dbd620f8b0cc642dbda25b12502207dd81dd43eac5b0d4e0b305e96a218e24fb0ad83a71492e7c60f9178216dc3d2:922c64590222798bb761d5b6d8e72950