Description
Detected the presence of the X-Application-Context header in HTTP responses, which can expose sensitive application context information.
Detected the presence of the X-Application-Context header in HTTP responses, which can expose sensitive application context information.
id: springboot-x-application-context
info:
name: Spring Boot `X-Application-Context` Header Exposure
author: DhiyaneshDK
severity: low
description: |
Detected the presence of the X-Application-Context header in HTTP responses, which can expose sensitive application context information.
reference:
- https://github.com/spring-projects/spring-boot/issues/1308
metadata:
verified: true
max-request: 1
shodan-query: "X-Application-Context"
tags: springboot,misconfig,exposure,vuln
http:
- method: GET
path:
- "{{BaseURL}}"
host-redirects: true
max-redirects: 2
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'regex("(?m)^X-Application-Context:\\s*\\S.+$", header)'
condition: and
extractors:
- type: regex
part: header
group: 1
regex:
- '(?m)^X-Application-Context:\s*(\S.+)$'
# digest: 4b0a004830460221008164dc17d8c507629512af605cc10f1b800084e8b6e4e81c3c76dba02b55fe01022100e111de9b6f76e51305f0d27c1392449cac2e0eab4c5745c5af1632f3befb9082:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.