mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1828 lines
85 KiB
1828 lines
85 KiB
4 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1321,
|
||
|
"length": 148,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
44,
|
||
|
45,
|
||
|
46
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad4()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
4 years ago
|
"name": "event1_bad(bad_arr)",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1440,
|
||
|
"length": 24,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
45
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 29
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1321,
|
||
|
"length": 148,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
44,
|
||
|
45,
|
||
|
46
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad4()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Function A.bad4() (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#44-46) trigger an abi encoding bug:\n\t- event1_bad(bad_arr) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#45)\n",
|
||
|
"markdown": "Function [A.bad4()](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L44-L46) trigger an abi encoding bug:\n\t- [event1_bad(bad_arr)](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L45)\n",
|
||
|
"id": "41b64698d5678d4095816d22b2d431371ca18801800bcf35b077e2675724a4e6",
|
||
4 years ago
|
"check": "abiencoderv2-array",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "bad0",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 549,
|
||
4 years ago
|
"length": 61,
|
||
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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": {
|
||
4 years ago
|
"start": 578,
|
||
4 years ago
|
"length": 27,
|
||
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
22
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 32
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad0",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 549,
|
||
4 years ago
|
"length": 61,
|
||
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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()"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Function A.bad0() (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#21-23) trigger an abi encoding bug:\n\t- this.bad0_external(bad_arr) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#22)\n",
|
||
|
"markdown": "Function [A.bad0()](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L21-L23) trigger an abi encoding bug:\n\t- [this.bad0_external(bad_arr)](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L22)\n",
|
||
|
"id": "f9335a48cb948e294b54605d1c63d61e863a824f3346be2db07c923896aafac0",
|
||
4 years ago
|
"check": "abiencoderv2-array",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad5",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1536,
|
||
|
"length": 142,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
49,
|
||
|
50,
|
||
|
51
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad5()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
4 years ago
|
"name": "event2_bad(s)",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1655,
|
||
|
"length": 18,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
50
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 23
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad5",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1536,
|
||
|
"length": 142,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
49,
|
||
|
50,
|
||
|
51
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad5()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Function A.bad5() (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#49-51) trigger an abi encoding bug:\n\t- event2_bad(s) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#50)\n",
|
||
|
"markdown": "Function [A.bad5()](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L49-L51) trigger an abi encoding bug:\n\t- [event2_bad(s)](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L50)\n",
|
||
|
"id": "eeb6e1300bf8056da088cb4f3e2703471fee9fdca73774ce3643fb884954d216",
|
||
4 years ago
|
"check": "abiencoderv2-array",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 877,
|
||
|
"length": 160,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
34,
|
||
|
35,
|
||
|
36
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad2()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
4 years ago
|
"name": "b = abi.encode(bad_arr)",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 996,
|
||
|
"length": 36,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
35
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 41
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 877,
|
||
|
"length": 160,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
34,
|
||
|
35,
|
||
|
36
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad2()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Function A.bad2() (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#34-36) trigger an abi encoding bug:\n\t- b = abi.encode(bad_arr) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#35)\n",
|
||
|
"markdown": "Function [A.bad2()](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L34-L36) trigger an abi encoding bug:\n\t- [b = abi.encode(bad_arr)](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L35)\n",
|
||
|
"id": "fb8e8ba854095891e3a490b43b126215858286a4a59902e7c63394a83befab0b",
|
||
4 years ago
|
"check": "abiencoderv2-array",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad3",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1101,
|
||
|
"length": 154,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
39,
|
||
|
40,
|
||
|
41
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad3()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
4 years ago
|
"name": "b = abi.encode(s)",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1220,
|
||
|
"length": 30,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
40
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 35
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad3",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 1101,
|
||
|
"length": 154,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
39,
|
||
|
40,
|
||
|
41
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad3()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Function A.bad3() (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#39-41) trigger an abi encoding bug:\n\t- b = abi.encode(s) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#40)\n",
|
||
|
"markdown": "Function [A.bad3()](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L39-L41) trigger an abi encoding bug:\n\t- [b = abi.encode(s)](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L40)\n",
|
||
|
"id": "3bda232f70109507c2cc575917cb69423e6d045e3b1d084ef881a411f54b2069",
|
||
4 years ago
|
"check": "abiencoderv2-array",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad1",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 744,
|
||
|
"length": 70,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
29,
|
||
|
30,
|
||
|
31
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad1(A.S[3])"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
4 years ago
|
"name": "this.bad1_external(s)",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 788,
|
||
|
"length": 21,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
30
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 26
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "bad1",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 744,
|
||
|
"length": 70,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
29,
|
||
|
30,
|
||
|
31
|
||
4 years ago
|
],
|
||
|
"starting_column": 3,
|
||
|
"ending_column": 4
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "A",
|
||
|
"source_mapping": {
|
||
|
"start": 35,
|
||
4 years ago
|
"length": 3044,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol",
|
||
4 years ago
|
"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
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "bad1(A.S[3])"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Function A.bad1(A.S[3]) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#29-31) trigger an abi encoding bug:\n\t- this.bad1_external(s) (tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#30)\n",
|
||
|
"markdown": "Function [A.bad1(A.S[3])](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L29-L31) trigger an abi encoding bug:\n\t- [this.bad1_external(s)](tests/detectors/abiencoderv2-array/0.5.10/storage_ABIEncoderV2_array.sol#L30)\n",
|
||
|
"id": "e432c7633b89e67459b76c1265a299e59fe6a651edd8888067df47200840451d",
|
||
4 years ago
|
"check": "abiencoderv2-array",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
}
|
||
|
]
|
||
|
]
|