2022-12-10 13:40:08 +00:00
|
|
|
id: database-credentials
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Database Credentials File Exposure
|
|
|
|
author: Hardik-Solanki
|
2022-12-12 17:47:18 +00:00
|
|
|
severity: low
|
|
|
|
reference:
|
|
|
|
- https://github.com/maurosoria/dirsearch/blob/master/db/dicc.txt
|
2022-12-10 13:40:08 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
|
|
|
github-query: filename:database_credentials.inc
|
|
|
|
tags: exposure,database,config,files
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/database_credentials.inc"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '$DATABASE_USER'
|
|
|
|
- '$DATABASE_PASS'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|