nuclei-templates/http/misconfiguration/laravel-debug-infoleak.yaml

54 lines
1.4 KiB
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
metadata:
verified: true
max-request: 1
shodan-query: Laravel-Framework
fofa-query: app="Laravel-Framework"
tags: misconfig,laravel,debug,infoleak
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: 4a0a00473045022100efe35d703b8ce007284a549152d7642cbaa469dc719432098c9e359f0cdc9e5c02206f93a03a347968aef317624daa120c7827f1bdef918edeb7c5a7d9d50a968827:922c64590222798bb761d5b6d8e72950