nuclei-templates/http/exposures/files/database-credentials.yaml

62 lines
1.5 KiB
YAML

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
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: 4a0a00473045022100dd61e72108c7a630e7d3c08da90d30790bf19a9b060596e9dd093b2a1724f80a02206c8843a6ec2a160adda4180b3515f16a6009ba71cdbc8f941ea3483a6955c6d6:922c64590222798bb761d5b6d8e72950