add django variables exposure template

patch-1
commiter 2022-08-12 12:47:07 +08:00
parent 9fe15160ab
commit de04e9197e
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
id: django-vars
info:
name: Exposed django variables
author: nobody
severity: low
reference:
- https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
tags: config,exposure
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: word
words:
- 'seeing this error because you have <code>DEBUG = True</code>'
- 'SuspiciousOperation'
- 'DisallowedHost'
- 'DisallowedModelAdminLookup'
- 'DisallowedModelAdminToField'
- 'DisallowedRedirect'
- 'InvalidSessionKey'
- 'RequestDataTooBig'
- 'SuspiciousFileOperation'
- 'SuspiciousMultipartForm'
- 'SuspiciousSession'
- 'TooManyFieldsSent'
- 'PermissionDenied'
condition: or
- type: status
status:
- 400
- type: word
part: header
words:
- "text/html"