springboot-x-application-context: Spring Boot `X-Application-Context` Header Exposure

2026-01-24 springboot x application context PoC Public

Description

Detected the presence of the X-Application-Context header in HTTP responses, which can expose sensitive application context information.

Details

Severity
低危
Affected
springboot x application context
Published
PoC
Public

PoC

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.

References

Related Vulnerabilities

微信搜一搜 biu.life