id: springboot-liquidbase

info:
  name: Springboot Liquidbase API
  author: ELSFA7110
  severity: low
  description: This liquibase endpoint provides information about database changes
  reference:
    - https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#liquibase
  metadata:
    verified: true
    max-request: 2
  tags: misconfig,springboot,exposure,liquibase,vuln

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'liquibase'
          - '"FILENAME":"'
        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: 4a0a00473045022100f61ea9174dbba4e36a688df382e0e411357bb3291218ec2f54819379cfced0f8022017cdf3d41a189374f45fb1931322d4225cb4cc8bf0357545cdb3b95fdf9eb90e:922c64590222798bb761d5b6d8e72950