42 lines
989 B
YAML
42 lines
989 B
YAML
|
id: scheduledtasks-spring-boot
|
||
|
|
||
|
info:
|
||
|
name: Detect Springboot Scheduledtasks
|
||
|
author: ELSFA7110
|
||
|
severity: info
|
||
|
description: This endpoint to retrieve the scheduled tasks
|
||
|
reference:
|
||
|
- https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#scheduled-tasks
|
||
|
metadata:
|
||
|
verified: true
|
||
|
tags: springboot,exposure
|
||
|
|
||
|
requests:
|
||
|
- 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
|