[
[
{
"elements" : [
{
"type" : "function" ,
"name" : "bad1" ,
"source_mapping" : {
"start" : 744 ,
"length" : 70 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
29 ,
30 ,
31
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad1(A.S[3])"
}
} ,
{
"type" : "node" ,
"name" : "this.bad1_external(s)" ,
"source_mapping" : {
"start" : 788 ,
"length" : 21 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
30
] ,
"starting_column" : 5 ,
"ending_column" : 26
} ,
"type_specific_fields" : {
"parent" : {
"type" : "function" ,
"name" : "bad1" ,
"source_mapping" : {
"start" : 744 ,
"length" : 70 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
29 ,
30 ,
31
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad1(A.S[3])"
}
}
}
}
] ,
"description" : "Function A.bad1(A.S[3]) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#29-31) trigger an abi encoding bug:\n\t- this.bad1_external(s) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#30)\n" ,
"markdown" : "Function [A.bad1(A.S[3])](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L29-L31) trigger an abi encoding bug:\n\t- [this.bad1_external(s)](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L30)\n" ,
"first_markdown_element" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L29-L31" ,
"id" : "04f20a6b780d160f34e95fca8f1dc426e8d05eaf7a452340a809bdeafcb84efb" ,
"check" : "abiencoderv2-array" ,
"impact" : "High" ,
"confidence" : "High"
} ,
{
"elements" : [
{
"type" : "function" ,
"name" : "bad3" ,
"source_mapping" : {
"start" : 1101 ,
"length" : 154 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
39 ,
40 ,
41
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad3()"
}
} ,
{
"type" : "node" ,
"name" : "b = abi.encode(s)" ,
"source_mapping" : {
"start" : 1220 ,
"length" : 30 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
40
] ,
"starting_column" : 5 ,
"ending_column" : 35
} ,
"type_specific_fields" : {
"parent" : {
"type" : "function" ,
"name" : "bad3" ,
"source_mapping" : {
"start" : 1101 ,
"length" : 154 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
39 ,
40 ,
41
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad3()"
}
}
}
}
] ,
"description" : "Function A.bad3() (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#39-41) trigger an abi encoding bug:\n\t- b = abi.encode(s) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#40)\n" ,
"markdown" : "Function [A.bad3()](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L39-L41) trigger an abi encoding bug:\n\t- [b = abi.encode(s)](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L40)\n" ,
"first_markdown_element" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L39-L41" ,
"id" : "37e980d8d34fcffe10d2533052de986dd57c1d45700f02234332b275b532c71d" ,
"check" : "abiencoderv2-array" ,
"impact" : "High" ,
"confidence" : "High"
} ,
{
"elements" : [
{
"type" : "function" ,
"name" : "bad0" ,
"source_mapping" : {
"start" : 549 ,
"length" : 61 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
21 ,
22 ,
23
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad0()"
}
} ,
{
"type" : "node" ,
"name" : "this.bad0_external(bad_arr)" ,
"source_mapping" : {
"start" : 578 ,
"length" : 27 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
22
] ,
"starting_column" : 5 ,
"ending_column" : 32
} ,
"type_specific_fields" : {
"parent" : {
"type" : "function" ,
"name" : "bad0" ,
"source_mapping" : {
"start" : 549 ,
"length" : 61 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
21 ,
22 ,
23
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad0()"
}
}
}
}
] ,
"description" : "Function A.bad0() (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#21-23) trigger an abi encoding bug:\n\t- this.bad0_external(bad_arr) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#22)\n" ,
"markdown" : "Function [A.bad0()](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L21-L23) trigger an abi encoding bug:\n\t- [this.bad0_external(bad_arr)](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L22)\n" ,
"first_markdown_element" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L21-L23" ,
"id" : "4755c0ac779753117c13ea710352c179c82da332c5be5f08ea5da28efa4c63b6" ,
"check" : "abiencoderv2-array" ,
"impact" : "High" ,
"confidence" : "High"
} ,
{
"elements" : [
{
"type" : "function" ,
"name" : "bad4" ,
"source_mapping" : {
"start" : 1321 ,
"length" : 148 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
44 ,
45 ,
46
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad4()"
}
} ,
{
"type" : "node" ,
"name" : "event1_bad(bad_arr)" ,
"source_mapping" : {
"start" : 1440 ,
"length" : 24 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
45
] ,
"starting_column" : 5 ,
"ending_column" : 29
} ,
"type_specific_fields" : {
"parent" : {
"type" : "function" ,
"name" : "bad4" ,
"source_mapping" : {
"start" : 1321 ,
"length" : 148 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
44 ,
45 ,
46
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad4()"
}
}
}
}
] ,
"description" : "Function A.bad4() (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#44-46) trigger an abi encoding bug:\n\t- event1_bad(bad_arr) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#45)\n" ,
"markdown" : "Function [A.bad4()](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L44-L46) trigger an abi encoding bug:\n\t- [event1_bad(bad_arr)](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L45)\n" ,
"first_markdown_element" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L44-L46" ,
"id" : "6e9dfeb7f6ea7c989276fa8c5e27d71ab0f6b63ee878fb3f761dab9d07942246" ,
"check" : "abiencoderv2-array" ,
"impact" : "High" ,
"confidence" : "High"
} ,
{
"elements" : [
{
"type" : "function" ,
"name" : "bad5" ,
"source_mapping" : {
"start" : 1536 ,
"length" : 142 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
49 ,
50 ,
51
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad5()"
}
} ,
{
"type" : "node" ,
"name" : "event2_bad(s)" ,
"source_mapping" : {
"start" : 1655 ,
"length" : 18 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
50
] ,
"starting_column" : 5 ,
"ending_column" : 23
} ,
"type_specific_fields" : {
"parent" : {
"type" : "function" ,
"name" : "bad5" ,
"source_mapping" : {
"start" : 1536 ,
"length" : 142 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
49 ,
50 ,
51
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad5()"
}
}
}
}
] ,
"description" : "Function A.bad5() (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#49-51) trigger an abi encoding bug:\n\t- event2_bad(s) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#50)\n" ,
"markdown" : "Function [A.bad5()](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L49-L51) trigger an abi encoding bug:\n\t- [event2_bad(s)](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L50)\n" ,
"first_markdown_element" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L49-L51" ,
"id" : "9c6da636be98419174c8e81e73efc09e7b942f9cf477cf0de793fb92c88fc976" ,
"check" : "abiencoderv2-array" ,
"impact" : "High" ,
"confidence" : "High"
} ,
{
"elements" : [
{
"type" : "function" ,
"name" : "bad2" ,
"source_mapping" : {
"start" : 877 ,
"length" : 160 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
34 ,
35 ,
36
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad2()"
}
} ,
{
"type" : "node" ,
"name" : "b = abi.encode(bad_arr)" ,
"source_mapping" : {
"start" : 996 ,
"length" : 36 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
35
] ,
"starting_column" : 5 ,
"ending_column" : 41
} ,
"type_specific_fields" : {
"parent" : {
"type" : "function" ,
"name" : "bad2" ,
"source_mapping" : {
"start" : 877 ,
"length" : 160 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
34 ,
35 ,
36
] ,
"starting_column" : 3 ,
"ending_column" : 4
} ,
"type_specific_fields" : {
"parent" : {
"type" : "contract" ,
"name" : "A" ,
"source_mapping" : {
"start" : 35 ,
"length" : 3044 ,
"filename_relative" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"filename_absolute" : "/GENERIC_PATH" ,
"filename_short" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol" ,
"is_dependency" : false ,
"lines" : [
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
] ,
"starting_column" : 1 ,
"ending_column" : 2
}
} ,
"signature" : "bad2()"
}
}
}
}
] ,
"description" : "Function A.bad2() (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#34-36) trigger an abi encoding bug:\n\t- b = abi.encode(bad_arr) (tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#35)\n" ,
"markdown" : "Function [A.bad2()](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L34-L36) trigger an abi encoding bug:\n\t- [b = abi.encode(bad_arr)](tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L35)\n" ,
"first_markdown_element" : "tests/detectors/abiencoderv2-array/0.5.9/storage_ABIEncoderV2_array.sol#L34-L36" ,
"id" : "e976cd11118a9f5aaacfe5715cef990140fd67c7a35682446aedc878b63b3b24" ,
"check" : "abiencoderv2-array" ,
"impact" : "High" ,
"confidence" : "High"
}
]
]