2020-05-24 02:44:48 +00:00
|
|
|
id: laravel-env
|
2020-05-23 18:09:25 +00:00
|
|
|
|
|
|
|
info:
|
2022-05-20 21:38:52 +00:00
|
|
|
name: Laravel - Sensitive Information Disclosure
|
2021-08-09 10:39:41 +00:00
|
|
|
author: pxmme1337,dwisiswant0,geeknik,emenalf,adrianmf
|
2022-05-20 21:38:52 +00:00
|
|
|
severity: high
|
|
|
|
description: |
|
|
|
|
A Laravel .env file was discovered, which stores sensitive information like database credentials and tokens. It should not be publicly accessible.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://laravel.com/docs/master/configuration#environment-configuration
|
2022-05-20 21:38:52 +00:00
|
|
|
- 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
|
2021-08-07 19:41:14 +00:00
|
|
|
tags: config,exposure,laravel
|
2020-05-23 18:09:25 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.env"
|
2022-10-10 14:48:25 +00:00
|
|
|
- "{{BaseURL}}/.env.bak"
|
2022-03-10 10:19:55 +00:00
|
|
|
- "{{BaseURL}}/.env.dev"
|
2020-11-21 20:15:29 +00:00
|
|
|
- "{{BaseURL}}/.env.dev.local"
|
|
|
|
- "{{BaseURL}}/.env.development.local"
|
2022-03-10 10:19:55 +00:00
|
|
|
- "{{BaseURL}}/.env.prod"
|
2020-11-21 20:15:29 +00:00
|
|
|
- "{{BaseURL}}/.env.prod.local"
|
2022-03-10 09:55:06 +00:00
|
|
|
- "{{BaseURL}}/.env.production"
|
2020-11-21 20:15:29 +00:00
|
|
|
- "{{BaseURL}}/.env.production.local"
|
2021-02-08 12:48:52 +00:00
|
|
|
- "{{BaseURL}}/.env.local"
|
|
|
|
- "{{BaseURL}}/.env.example"
|
|
|
|
- "{{BaseURL}}/.env.stage"
|
|
|
|
- "{{BaseURL}}/.env.live"
|
2021-08-09 06:43:29 +00:00
|
|
|
- "{{BaseURL}}/.env.backup"
|
|
|
|
- "{{BaseURL}}/.env.save"
|
2021-08-07 19:41:14 +00:00
|
|
|
- "{{BaseURL}}/.env.old"
|
2022-03-10 10:19:55 +00:00
|
|
|
- "{{BaseURL}}/.env.www"
|
2021-08-07 19:41:14 +00:00
|
|
|
- "{{BaseURL}}/.env_1"
|
|
|
|
- "{{BaseURL}}/.env_sample"
|
2022-03-10 09:55:06 +00:00
|
|
|
- "{{BaseURL}}/.env.{{DN}}"
|
2022-03-10 10:19:55 +00:00
|
|
|
- "{{BaseURL}}/.env.{{SD}}"
|
2021-08-10 02:54:37 +00:00
|
|
|
- "{{BaseURL}}/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:
|
2020-07-08 20:54:41 +00:00
|
|
|
- type: regex
|
2022-05-20 21:38:52 +00:00
|
|
|
part: body
|
2020-07-08 20:54:41 +00:00
|
|
|
regex:
|
2021-10-08 16:30:44 +00:00
|
|
|
- "(?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
|
2022-05-20 21:38:52 +00:00
|
|
|
|
|
|
|
# Enhanced by mp on 2022/05/19
|