id: springboot-whitelabel

info:
  name: SpringBoot WhiteLabel Error Page - Detect
  author: Matt Miller
  severity: info
  reference:
    - https://codingnconcepts.com/spring-boot/disable-whitelabel-error-page-spring-boot/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Whitelabel Error Page"
  tags: tech,spring,springboot,errorpage

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7

    host-redirects: true
    max-redirects: 3

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<h1>Whitelabel Error Page</h1>"

      - type: word
        part: header
        words:
          - "text/html"
# digest: 490a0046304402207a1e47db63f2b5575eb4d879f93ce5a022fc78e8d587c05531fa31a324fa904c02205405e99a17557027966fa5647da822545a1286873f4f7b693b8f8812b59f0e56:922c64590222798bb761d5b6d8e72950