-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
108 lines (108 loc) · 3.06 KB
/
composer.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
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
101
102
103
104
105
106
107
108
{
"name": "wdmg/yii2-guard",
"description": "Security System",
"keywords": ["yii2", "yii2-guard", "guard", "security", "wdmg"],
"type": "yii2-extension",
"license": "MIT",
"version": "1.3.0",
"homepage": "https://github.com/wdmg/yii2-guard",
"support": {
"source": "https://github.com/wdmg/yii2-guard",
"issues": "https://github.com/wdmg/yii2-guard/issues"
},
"authors": [
{
"name": "Alexsander Vyshnyvetskyy",
"email": "[email protected]"
},
{
"name": "W.D.M.Group, Ukraine",
"email": "[email protected]"
}
],
"require": {
"yiisoft/yii2": "^2.0.40",
"wdmg/yii2-base": "^1.3.0",
"wdmg/yii2-helpers": "^1.4.0",
"wdmg/yii2-validators": "^1.0.6"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"wdmg\\guard\\": ""
}
},
"extra": {
"options": {
"routePrefix": "admin",
"useFilters": true,
"filters": {
"xss": true,
"lfi": true,
"php": true,
"sql": true
},
"patterns": {
"xss": "/(<.*?(script|body|object|iframe|applet|meta|style|form|frameset|frame|svg).*?>)|(base64|data\\:|fromCharCode|expression|onmouse|onload|alert|getcookie|document\\.)/uim",
"lfi": "/((\\.|%2e){2,}(\\/|%5c|\\\\)|php:\\/\\/|file:\\/\\/|expect:\\/\\/|zip:\\/\\/|yii\\.php|init\\.php|web\\.php|params\\.php|db\\.php|console\\.php|test\\.php|test_db\\.php|phpinfo|passwd|htaccess)/uism",
"php": "/(php:\\/\\/|(eval|preg_replace|require|include|call_user|create_func|array_filter|array_reduce|array_walk|array_map|reflection)\\()/uism",
"sql": "/(UNION|SELECT|OUTFILE|ALTER|INSERT|DROP|TRUNCATE|({%tables}))\\s/uism"
},
"useRateLimit": true,
"rateLimit": 60,
"rateLimitIgnoringIP": [
"::1",
"127.0.0.1"
],
"rateLimitIgnoringRoutes": [
"/admin"
],
"rateLimitExceptionRoutes": [
"/admin/login",
"/admin/restore"
],
"rateLimitIgnoringRequests": {
"post": false,
"get": false,
"ajax": true
},
"rateLimitErrorMessage": "Your request limit has been exceeded! Try later.",
"useOverdriveLimit": true,
"overdriveLimit": {
"post": 200,
"get": 100
},
"maxAttempts": 5,
"attemptsDuration": 3600,
"releaseTime": 3600,
"useIpRange": true,
"forbiddenLayout": "@wdmg/guard/views/layouts/default",
"useFileSystemScan": true,
"fileSystemScan": {
"scanInterval": null,
"autoClear": true,
"onlyTypes": [
"*.php",
"*.js"
],
"exceptTypes": [],
"excludesPath": [
"@runtime",
"@tests",
"@runtime/cache",
"@webroot/assets",
"@webroot/uploads",
"/node_modules",
"/.git"
]
},
"scanReport": {
"emailViewPath": {
"html": "@wdmg/guard/mail/report-html",
"text": "@wdmg/guard/mail/report-text"
},
"reportEmail": "[email protected]"
}
}
}
}