add django variables exposure template
parent
9fe15160ab
commit
de04e9197e
|
@ -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"
|
Loading…
Reference in New Issue