漏洞描述
Internal file exposed containing database credentials.
id: database-credentials
info:
name: Database Credentials File Exposure
author: Hardik-Solanki,geeknik
severity: low
description: Internal file exposed containing database credentials.
reference:
- https://github.com/maurosoria/dirsearch/blob/master/db/dicc.txt
metadata:
verified: true
max-request: 1
github-query: filename:database_credentials.inc
tags: exposure,database,config,files,vuln
http:
- method: GET
path:
- "{{BaseURL}}/database_credentials.inc"
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'DATABASE_USER'
- 'DB_USER'
- 'USERNAME'
- 'USER'
condition: or
- type: word
part: body
words:
- 'DATABASE_PASS'
- 'DB_PASS'
- 'PASSWORD'
- 'PASS'
condition: or
- type: status
status:
- 200
- 401
- 403
condition: or
- type: word
part: body
words:
- 'Access denied'
- 'Unauthorized'
condition: or
negative: true
- type: word
part: header
words:
- 'Content-Type: text/plain'
- 'Content-Type: application/json'
condition: or
# digest: 490a0046304402203d64cf8cb6f33c70838febe4f395b0c28c1f0d11f2b54b5022b1d528d129a1e2022063d11c7f2bca249f73f37904ab8c43f9f156760931f471cf3bce140b2e5620ce:922c64590222798bb761d5b6d8e72950