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

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: 490a0046304402204dc177fe3af4f2e4406de69f378f47f2f12aeb01f2ffff6a0cc4918ceb438ab8022061bc70b1134ff5a0373fd21ace41d3d46ce56576a113340ceff60b71ef14125c:922c64590222798bb761d5b6d8e72950