laravel-debug-infoleak: Laravel Debug Info Leak
- Template: laravel-debug-infoleak
- Name: Laravel Debug Info Leak
- Description: This template can be used to detect a Laravel debug information leak by making a POST-based request.
- Severity: medium
- Authors: pwnhxl
- Tags: misconfig, laravel, debug, infoleak, vuln
- References: https://github.com/dem0ns/improper/blob/master/laravel/5_debug/1.png
- Verified: yes
- Max requests: 1
- Directory: http/misconfiguration
- Path: http/misconfiguration/laravel-debug-infoleak.yaml
- Digest: 490a0046304402202fb76b17102dfcaa5af85d514766aad419ea7df4cf704971ec7fefa98885a7e00220440c11d425166764622170a8a32ecea673430bb8966e27f72322fa7e68a27f17
- Created at: 2023-03-17T12:11:07Z
- Updated at: 2025-10-26T16:17:37Z
- Age in days: 1348
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/misconfiguration/laravel-debug-infoleak.yaml
- Checked, none or zero: cves
- Not known: impact, remediation
Classification
- Cwe: CWE-215
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Cpe: cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*
- Not known: epss score, epss percentile
Metadata
- Fofa-query: app="Laravel-Framework"
- Max-request: 1
- Product: framework
- Shodan-query: Laravel-Framework
- Vendor: laravel
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| laravel:framework | yes | /v1/products/laravel/framework |
Labels
- Name: Laravel - Debug Information Leak
- Impact: Attackers can retrieve sensitive debug information, potentially exposing environment details and aiding further attacks.
- Remediation: Disable debug mode in production or update to the latest version.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: securitycontext
- Not known: requirements, from cve
```yaml
id: laravel-debug-infoleak
info:
name: Laravel Debug Info Leak
author: pwnhxl
severity: medium
description: |
This template can be used to detect a Laravel debug information leak by making a POST-based request.
reference:
- https://github.com/dem0ns/improper/blob/master/laravel/5_debug/1.png
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
cvss-score: 6.5
cwe-id: CWE-215
cpe: cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
shodan-query: Laravel-Framework
fofa-query: app="Laravel-Framework"
product: framework
vendor: laravel
tags: misconfig,laravel,debug,infoleak,vuln
http:
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'vendor/laravel/framework/src/Illuminate/'
- 'MethodNotAllowedHttpException'
condition: and
- type: word
part: body
words:
- 'DB_PASSWORD'
- 'REDIS_PASSWORD'
- 'MAIL_PASSWORD'
- 'ALIYUN_ACCESSKEYSECRET'
- 'ALIYUN_ACCESSKEYID'
- 'SMS_AUTH_TOKEN'
- 'APP_KEY'
condition: or
- type: status
status:
- 405
digest: 490a0046304402202fb76b17102dfcaa5af85d514766aad419ea7df4cf704971ec7fefa98885a7e00220440c11d425166764622170a8a32ecea673430bb8966e27f72322fa7e68a27f17:922c64590222798bb761d5b6d8e72950
```