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: 4b0a00483046022100e213e43fac158589f1e944ba553a26e71b8317fca8fbdaf9508b6db014ed03550221008dd1ef4a68b032ea080c6df6d7d5c37613158feb32f6b7459a994b6ca129bb7a:922c64590222798bb761d5b6d8e72950