nuclei-templates/exposures/configs/codeigniter-env.yaml

39 lines
938 B
YAML

id: codeigniter-env
info:
name: Codeigniter - .env File Discovery
author: emenalf
severity: high
description: Codeigniter .env file was discovered.
tags: config,exposure,codeigniter
requests:
- method: GET
path:
- "{{BaseURL}}/.env"
- "{{BaseURL}}/.env.dev.local"
- "{{BaseURL}}/.env.development.local"
- "{{BaseURL}}/.env.prod.local"
- "{{BaseURL}}/.env.production.local"
- "{{BaseURL}}/.env.local"
- "{{BaseURL}}/.env.example"
- "{{BaseURL}}/.env.stage"
- "{{BaseURL}}/.env.live"
- "{{BaseURL}}/.env_1"
- "{{BaseURL}}/.env.old"
- "{{BaseURL}}/.env_sample"
matchers-condition: and
matchers:
- type: regex
regex:
- "(?m)^APP_(NAME|ENV|KEY|DEBUG|URL|PASSWORD)"
- "(?m)^DB_(HOST|PASSWORD|DATABASE)"
condition: or
- type: status
status:
- 200
# Enhanced by mp on 2022/07/15