-
Notifications
You must be signed in to change notification settings - Fork 46
/
lootdb.json
49 lines (49 loc) · 1.61 KB
/
lootdb.json
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
{
"Django": {
"issue": "Django Debug Mode Enabled Exposing Internal File Paths",
"severity": "high",
"detectors": [
"(?:powered by <a[^>]+>Django ?([\\d.]+)?<\\/a>|<input[^>]*name=[\"']csrfmiddlewaretoken[\"'][^>]*>)",
"(?s)You're seeing this error because you have <.{1,6}>DEBUG\\s=\\sTrue<\\/.{1,6}> in\\s*your Django settings file\\.",
"(?s)Django\\s*will display a standard 404 page\\."
],
"validators": {
"status": [
404
],
"regex": [
"(?:Django tried these URL patterns|your Django settings file|empty path didn't match any of these)"
]
},
"extractors": [
{
"regex": "(?s)<li>\\s*([^\\s<]+)\\s*</li>",
"cgroups": "Django Internal Paths"
}
]
},
"Laravel": {
"issue": "Laravel Debug Mode Enabled Exposing Secrets On Error Page",
"severity": "critical",
"detectors": [
"(?i)set-cookie: .*;?\\s?laravel_session="
],
"validators": {
"status": [
500,
501,
502,
503
],
"regex": [
"(?:Environment &[a-z]{3}. details:|DB_DATABASE|DB_PASSWORD)"
]
},
"extractors": [
{
"regex": "(?s)<tr>[\\s]+<td>([^>]+?)</td>.*?<span class=\"?sf-dump-str\"? title=\"?\\d{1,3} characters\"?>(.*?)</span>",
"cgroups": "Laravel Environment Variables"
}
]
}
}