laravel-sessions-exposure: Laravel Sessions Folder Exposure

2026-01-24 Laravel PoC Public

Description

Detected unauthenticated access to the Laravel session storage directory, allowing attackers to browse and download session files that may contain active authentication tokens, CSRF tokens, and serialized user data.

PoC

id: laravel-sessions-exposure

info:
  name: Laravel Sessions Folder Exposure
  author: DhiyaneshDk
  severity: high
  description: |
    Detected unauthenticated access to the Laravel session storage directory, allowing attackers to browse and download session files that may contain active authentication tokens, CSRF tokens, and serialized user data.
  metadata:
    max-request: 2
    verified: true
    shodan-query: http.html:"Index of" http.html:"sessions"
    fofa-query: body="Index of" && body="sessions"
  tags: laravel,exposure,misconfig,storage,session,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/storage/framework/sessions/"
      - "{{BaseURL}}/storage/sessions/"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Index of"
          - "Parent Directory"
          - "<title>Index of"
          - "Directory listing for"
        condition: or

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008f1e78212f9e8c530c25c96f4602838cc9a5ec269e10c9e0a844f37626d70b42022100a1e3d26cb75210dfd69b619c5dfa49aa41a50d46f11464e85afc7171135756b2:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities