-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdjango-debugmode.yaml
43 lines (36 loc) · 936 Bytes
/
django-debugmode.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
id: Django Debug Mode
info:
name: Django Debug Mode Information leakage
description: This template can be used to capture sensitive information from Django debug page.
author: rahulkadavil
severity: info
tags: exposure
requests:
- raw:
- |
POST /admin/login/?next=/admin/ HTTP/1.1
Host: {{Hostname}}
Accept: */*
Content-Type: application/json;charset=UTF-8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
{"test::"data"}
matchers-condition: or
matchers:
- type: word
words:
- "DEBUG = True"
- "DEBUG=True."
- "DB_NAME"
- "DB_USER"
- "DB_PASSWORD"
- "ADMIN_PASSWORD"
condition: or
part: body
- type: status
- type: status
status:
- 200
- 500
- 403
- 404
condition: or