id: springboot-scheduledtasks

info:
  name: Spring Boot Scheduledtasks Actuator Panel - Detect
  author: ELSFA7110
  severity: info
  description: Spring Boot Scheduledtasks Actuator panel was detected.
  reference:
    - https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#scheduled-tasks
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
  tags: misconfig,springboot,exposure

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "cron"
          - "fixedDelay"
        condition: and

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