Apache ActiveMQ Jolokia远程代码执行不依赖JDK打法
2023-11-30 20:20:15 Author: y4tacker.github.io(查看原文) 阅读量:1 收藏

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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
"org.apache.logging.log4j2": {
"component=StatusLogger,type=63a65a25": {
"attr": {
"StatusDataHistory": {
"rw": false,
"type": "[Ljava.lang.String;",
"desc": "Attribute exposed for management"
},
"Level": {
"rw": true,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"StatusData": {
"rw": false,
"type": "java.util.List",
"desc": "Attribute exposed for management"
},
"ObjectName": {
"rw": false,
"type": "javax.management.ObjectName",
"desc": "Attribute exposed for management"
},
"ContextName": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
}
},
"class": "org.apache.logging.log4j.core.jmx.StatusLoggerAdmin",
"desc": "Information on the management interface of the MBean"
},
"component=Loggers,name=,type=63a65a25": {
"attr": {
"Additive": {
"rw": true,
"type": "boolean",
"desc": "Attribute exposed for management"
},
"Filter": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"AppenderRefs": {
"rw": false,
"type": "[Ljava.lang.String;",
"desc": "Attribute exposed for management"
},
"IncludeLocation": {
"rw": false,
"type": "boolean",
"desc": "Attribute exposed for management"
},
"Level": {
"rw": true,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"Name": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
}
},
"class": "org.apache.logging.log4j.core.jmx.LoggerConfigAdmin",
"desc": "Information on the management interface of the MBean"
},
"type=63a65a25": {
"op": {
"setConfigText": {
"args": [{
"name": "p1",
"type": "java.lang.String",
"desc": ""
}, {
"name": "p2",
"type": "java.lang.String",
"desc": ""
}],
"ret": "void",
"desc": "Operation exposed for management"
},
"getConfigText": {
"args": [{
"name": "p1",
"type": "java.lang.String",
"desc": ""
}],
"ret": "java.lang.String",
"desc": "Operation exposed for management"
}
},
"attr": {
"Status": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"ConfigClassName": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"ConfigLocationUri": {
"rw": true,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"ConfigName": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"ConfigProperties": {
"rw": false,
"type": "java.util.Map",
"desc": "Attribute exposed for management"
},
"ConfigText": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"Name": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
},
"ObjectName": {
"rw": false,
"type": "javax.management.ObjectName",
"desc": "Attribute exposed for management"
},
"ConfigFilter": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
}
},
"class": "org.apache.logging.log4j.core.jmx.LoggerContextAdmin",
"desc": "Information on the management interface of the MBean"
},
"component=ContextSelector,type=63a65a25": {
"attr": {
"ImplementationClassName": {
"rw": false,
"type": "java.lang.String",
"desc": "Attribute exposed for management"
}
},
"class": "org.apache.logging.log4j.core.jmx.ContextSelectorAdmin",
"desc": "Information on the management interface of the MBean"
},

虽然不知道绝对路径,但是根据系统的原配置文件的写法appender.logfile.fileName=${sys:activemq.data}/activemq.log再结合日志路径可以猜到使用${sys:activemq.data}/../webapps/admin/


文章来源: https://y4tacker.github.io/2023/11/30/year/2023/11/%E6%9F%90%E7%B3%BB%E7%BB%9F%E6%9C%80%E6%96%B0%E5%89%8D%E5%8F%B0RCE%E5%88%86%E6%9E%90/Apache-ActiveMQ-Jolokia%E8%BF%9C%E7%A8%8B%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E4%B8%8D%E4%BE%9D%E8%B5%96JDK%E6%89%93%E6%B3%95/
如有侵权请联系:admin#unsafe.sh