2022-06-05 21:05:46 +00:00
id : django-secret-key
info :
2022-06-06 11:52:25 +00:00
name : Django Secret Key Exposure
author : geeknik,DhiyaneshDk
2022-06-05 21:05:46 +00:00
severity : high
2023-03-27 08:12:04 +00:00
description : The Django settings.py file containing a secret key was discovered. An attacker may use the secret key to bypass many security mechanisms and potentially obtain other sensitive configuration information (such as database password) from the settings file.
2022-06-05 21:05:46 +00:00
reference : https://docs.gitguardian.com/secrets-detection/detectors/specifics/django_secret_key
metadata :
2023-04-28 08:11:21 +00:00
max-request : 5
2022-06-05 21:05:46 +00:00
verified : true
shodan-query : html:settings.py
2022-10-13 10:12:07 +00:00
tags : django,exposure,files
2022-06-05 21:05:46 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-06-05 21:05:46 +00:00
- method : GET
path :
- "{{BaseURL}}/settings.py"
- "{{BaseURL}}/app/settings.py"
- "{{BaseURL}}/django/settings.py"
- "{{BaseURL}}/settings/settings.py"
- "{{BaseURL}}/web/settings/settings.py"
2022-06-06 11:52:25 +00:00
stop-at-first-match : true
2022-06-05 21:05:46 +00:00
matchers-condition : and
matchers :
2022-06-06 11:52:25 +00:00
2022-06-05 21:05:46 +00:00
- type : word
part : body
words :
- "SECRET_KEY ="
2022-06-06 11:52:25 +00:00
2022-06-05 21:05:46 +00:00
- type : word
part : header
words :
- "text/html"
negative : true
2022-06-06 11:52:25 +00:00
- type : status
status :
- 200
extractors :
- type : regex
part : body
group : 1
regex :
- '"DJANGO_SECRET_KEY", "(.*)"'