fix template

patch-1
Dhiyaneshwaran 2023-07-18 21:51:00 +05:30 committed by GitHub
parent 28b1b52f90
commit 9fa26f2fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 27 deletions

View File

@ -1,27 +0,0 @@
id: springboot-detect
info:
name: Java Spring Boot Detection
author: Matt Miller
severity: info
reference:
- https://codingnconcepts.com/spring-boot/disable-whitelabel-error-page-spring-boot/
tags: tech,java,spring,springboot
metadata:
max-request: 1
http:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "Whitelabel Error Page"
- type: status
status:
- 404

View File

@ -0,0 +1,34 @@
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:
max-request: 1
shodan:query: html:"Whitelabel Error Page"
verified: true
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"