61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
id: database-credentials
|
|
|
|
info:
|
|
name: Database Credentials File Exposure
|
|
author: Hardik-Solanki,geeknik
|
|
severity: low
|
|
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: 4b0a00483046022100a253e5136462519121c7ec94fb42ce86422588d6ca3ba7245d54449703fadc03022100bbd9f09f26e8a34c4eac79998c6fc7baa2d99da13c382c7e59e94215e74e0419:922c64590222798bb761d5b6d8e72950 |