nuclei-templates/http/exposures/configs/laravel-env.yaml

61 lines
1.7 KiB
YAML
Raw Normal View History

2020-05-24 02:44:48 +00:00
id: laravel-env
2020-05-23 18:09:25 +00:00
info:
name: Laravel - Sensitive Information Disclosure
2021-08-09 10:39:41 +00:00
author: pxmme1337,dwisiswant0,geeknik,emenalf,adrianmf
severity: high
description: |
A Laravel .env file was discovered, which stores sensitive information like database credentials and tokens. It should not be publicly accessible.
reference:
- https://laravel.com/docs/master/configuration#environment-configuration
- https://stackoverflow.com/questions/38331397/how-to-protect-env-file-in-laravel
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
cvss-score: 8.3
cwe-id: CWE-522
metadata:
max-request: 22
2023-10-14 11:27:55 +00:00
tags: config,exposure,laravel
2020-05-23 18:09:25 +00:00
http:
2020-05-23 18:09:25 +00:00
- method: GET
path:
- "{{BaseURL}}{{paths}}"
payloads:
paths:
- "/.env"
- "/.env.bak"
- "/.env.dev"
- "/.env.dev.local"
- "/.env.development.local"
- "/.env.prod"
- "/.env.prod.local"
- "/.env.production"
- "/.env.production.local"
- "/.env.local"
- "/.env.example"
- "/.env.stage"
- "/.env.live"
- "/.env.backup"
- "/.env.save"
- "/.env.old"
- "/.env.www"
- "/.env_1"
- "/.env_sample"
- "/.env.{{DN}}"
- "/.env.{{SD}}"
- "/api/.env"
2021-08-07 19:41:14 +00:00
2020-05-24 02:44:48 +00:00
matchers-condition: and
2020-05-23 18:09:25 +00:00
matchers:
- type: regex
part: body
regex:
- "(?mi)^APP_(NAME|ENV|KEY|DEBUG|URL|PASSWORD)="
- "(?mi)^DB_(HOST|PASSWORD|DATABASE)="
2021-08-07 19:41:14 +00:00
condition: or
2020-05-24 02:44:48 +00:00
- type: status
status:
2021-08-10 02:54:37 +00:00
- 200
# digest: 4a0a00473045022100e16dc10025f79ad519dd8956a24e168275c0689afe40b450aad9311796eb8e9e02206f79dd07e6c15ead8c766f481cc8670d7d7d24760a9867764d4d625a3f95894a:922c64590222798bb761d5b6d8e72950