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.
4855 lines
241 KiB
4855 lines
241 KiB
4 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad0",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 335,
|
||
|
"length": 155,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad0()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "success = msg.sender.call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 368,
|
||
|
"length": 37,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
17
|
||
4 years ago
|
],
|
||
4 years ago
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 46
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad0",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 335,
|
||
|
"length": 155,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad0()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "success = msg.sender.call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 368,
|
||
|
"length": 37,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
17
|
||
4 years ago
|
],
|
||
4 years ago
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 46
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad0",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 335,
|
||
|
"length": 155,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad0()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls_sending_eth"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "counter += 1",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 471,
|
||
|
"length": 12,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
21
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 21
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad0",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 335,
|
||
|
"length": 155,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad0()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "counter"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"description": "Reentrancy in ReentrancyBenign.bad0() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#16-22):\n\tExternal calls:\n\t- success = msg.sender.call() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#17)\n\tState variables written after the call(s):\n\t- counter += 1 (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#21)\n",
|
||
|
"markdown": "Reentrancy in [ReentrancyBenign.bad0()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L16-L22):\n\tExternal calls:\n\t- [success = msg.sender.call()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L17)\n\tState variables written after the call(s):\n\t- [counter += 1](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L21)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L16-L22",
|
||
|
"id": "01bde163c3436f90414f580ead28b7b0d652f74fdc84312f64c4fdf9f425628f",
|
||
|
"check": "reentrancy-benign",
|
||
|
"impact": "Low",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "bad3",
|
||
|
"source_mapping": {
|
||
|
"start": 886,
|
||
|
"length": 125,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
41,
|
||
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
|
"start": 28,
|
||
|
"length": 1569,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad3(address)"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "externalCaller(target)",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 933,
|
||
|
"length": 22,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
42
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 31
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad3",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 886,
|
||
|
"length": 125,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
41,
|
||
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad3(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "address(target).call()",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1387,
|
||
|
"length": 24,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
61
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 33
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
3 years ago
|
"name": "externalCaller",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1329,
|
||
|
"length": 89,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
60,
|
||
|
61,
|
||
|
62
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "externalCaller(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
3 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "externalCaller(target)",
|
||
3 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 933,
|
||
|
"length": 22,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
42
|
||
3 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 31
|
||
3 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad3",
|
||
3 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 886,
|
||
|
"length": 125,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
41,
|
||
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
3 years ago
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 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,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
3 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad3(address)"
|
||
3 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "address(target).call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1387,
|
||
|
"length": 24,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
61
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 33
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "externalCaller",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1329,
|
||
|
"length": 89,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
60,
|
||
|
61,
|
||
|
62
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "externalCaller(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "varChanger()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 965,
|
||
3 years ago
|
"length": 12,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
43
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 21
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad3",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 886,
|
||
|
"length": 125,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
41,
|
||
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad3(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "anotherVariableToChange"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "anotherVariableToChange ++",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1563,
|
||
|
"length": 25,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
69
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 34
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
3 years ago
|
"name": "varChanger",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1523,
|
||
|
"length": 72,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
68,
|
||
|
69,
|
||
|
70
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "varChanger()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "anotherVariableToChange"
|
||
4 years ago
|
}
|
||
3 years ago
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Reentrancy in ReentrancyBenign.bad3(address) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#41-45):\n\tExternal calls:\n\t- externalCaller(target) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#42)\n\t\t- address(target).call() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#61)\n\tState variables written after the call(s):\n\t- varChanger() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#43)\n\t\t- anotherVariableToChange ++ (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#69)\n",
|
||
|
"markdown": "Reentrancy in [ReentrancyBenign.bad3(address)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L41-L45):\n\tExternal calls:\n\t- [externalCaller(target)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L42)\n\t\t- [address(target).call()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L61)\n\tState variables written after the call(s):\n\t- [varChanger()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L43)\n\t\t- [anotherVariableToChange ++](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L69)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L41-L45",
|
||
|
"id": "154bd4fe54b895374ec9300b7d7423b290821b97d48ce594f13efb080ccc070a",
|
||
3 years ago
|
"check": "reentrancy-benign",
|
||
|
"impact": "Low",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
4 years ago
|
{
|
||
3 years ago
|
"type": "function",
|
||
|
"name": "bad1",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 496,
|
||
|
"length": 135,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28
|
||
4 years ago
|
],
|
||
3 years ago
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
3 years ago
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 28,
|
||
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13,
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
4 years ago
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
4 years ago
|
29,
|
||
3 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
3 years ago
|
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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad1(address)"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "success = target.call()",
|
||
3 years ago
|
"source_mapping": {
|
||
|
"start": 543,
|
||
|
"length": 33,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
25
|
||
|
],
|
||
|
"starting_column": 9,
|
||
|
"ending_column": 42
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad1",
|
||
|
"source_mapping": {
|
||
|
"start": 496,
|
||
|
"length": 135,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "bad1(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "external_calls"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "success = target.call()",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 543,
|
||
|
"length": 33,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
25
|
||
4 years ago
|
],
|
||
3 years ago
|
"starting_column": 9,
|
||
|
"ending_column": 42
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
3 years ago
|
"name": "bad1",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 496,
|
||
|
"length": 135,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
3 years ago
|
28
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "bad1(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "counter += 1",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 612,
|
||
|
"length": 12,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
27
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 21
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
3 years ago
|
"name": "bad1",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 496,
|
||
|
"length": 135,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "bad1(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "counter"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Reentrancy in ReentrancyBenign.bad1(address) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#24-28):\n\tExternal calls:\n\t- success = target.call() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#25)\n\tState variables written after the call(s):\n\t- counter += 1 (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#27)\n",
|
||
|
"markdown": "Reentrancy in [ReentrancyBenign.bad1(address)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L24-L28):\n\tExternal calls:\n\t- [success = target.call()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L25)\n\tState variables written after the call(s):\n\t- [counter += 1](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L27)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L24-L28",
|
||
|
"id": "5bc9d24aecf09e047b2ce2b3f7702daec3f28194eeb19cf372aebd60e4b83cb9",
|
||
3 years ago
|
"check": "reentrancy-benign",
|
||
|
"impact": "Low",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad5",
|
||
3 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1195,
|
||
|
"length": 128,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
3 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
|
"start": 28,
|
||
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad5(address)"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "ethSender(address(0))",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1242,
|
||
|
"length": 21,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
55
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 30
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad5",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1195,
|
||
|
"length": 128,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad5(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "external_calls"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "address(target).call.value(1)()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1477,
|
||
|
"length": 33,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
65
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 9,
|
||
|
"ending_column": 42
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "ethSender",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1424,
|
||
|
"length": 93,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
64,
|
||
|
65,
|
||
|
66
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "ethSender(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "varChanger()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1273,
|
||
|
"length": 12,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
56
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 21
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad5",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1195,
|
||
|
"length": 128,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad5(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "anotherVariableToChange"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "anotherVariableToChange ++",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1563,
|
||
|
"length": 25,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
69
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 9,
|
||
|
"ending_column": 34
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "varChanger",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1523,
|
||
|
"length": 72,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
68,
|
||
|
69,
|
||
|
70
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "varChanger()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "anotherVariableToChange"
|
||
4 years ago
|
}
|
||
2 years ago
|
}
|
||
|
],
|
||
|
"description": "Reentrancy in ReentrancyBenign.bad5(address) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#54-58):\n\tExternal calls:\n\t- ethSender(address(0)) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#55)\n\t\t- address(target).call.value(1)() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#65)\n\tState variables written after the call(s):\n\t- varChanger() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#56)\n\t\t- anotherVariableToChange ++ (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#69)\n",
|
||
|
"markdown": "Reentrancy in [ReentrancyBenign.bad5(address)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L54-L58):\n\tExternal calls:\n\t- [ethSender(address(0))](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L55)\n\t\t- [address(target).call.value(1)()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L65)\n\tState variables written after the call(s):\n\t- [varChanger()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L56)\n\t\t- [anotherVariableToChange ++](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L69)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L54-L58",
|
||
|
"id": "949d5134548c079237abef52d623106e7e3e777d1eb4d89f47f64ae5025ec29a",
|
||
|
"check": "reentrancy-benign",
|
||
|
"impact": "Low",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
4 years ago
|
{
|
||
2 years ago
|
"type": "function",
|
||
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1017,
|
||
|
"length": 172,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
2 years ago
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 28,
|
||
|
"length": 1569,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
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,
|
||
3 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
2 years ago
|
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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad4(address)"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"name": "externalCaller(target)",
|
||
|
"source_mapping": {
|
||
|
"start": 1064,
|
||
|
"length": 22,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
48
|
||
|
],
|
||
|
"starting_column": 9,
|
||
|
"ending_column": 31
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad4",
|
||
|
"source_mapping": {
|
||
|
"start": 1017,
|
||
|
"length": 172,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad4(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls"
|
||
4 years ago
|
}
|
||
2 years ago
|
},
|
||
4 years ago
|
{
|
||
2 years ago
|
"type": "node",
|
||
|
"name": "address(target).call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1387,
|
||
|
"length": 24,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
61
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 9,
|
||
|
"ending_column": 33
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
2 years ago
|
"type": "function",
|
||
|
"name": "externalCaller",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1329,
|
||
|
"length": 89,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
60,
|
||
|
61,
|
||
2 years ago
|
62
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
|
"start": 28,
|
||
|
"length": 1569,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
|
"signature": "externalCaller(address)"
|
||
4 years ago
|
}
|
||
2 years ago
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "ethSender(address(0))",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1096,
|
||
|
"length": 21,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
49
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 30
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1017,
|
||
|
"length": 172,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad4(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "address(target).call.value(1)()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1477,
|
||
|
"length": 33,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
65
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 42
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "ethSender",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1424,
|
||
|
"length": 93,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
64,
|
||
|
65,
|
||
|
66
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "ethSender(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls_sending_eth"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "externalCaller(target)",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1064,
|
||
|
"length": 22,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
48
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 31
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1017,
|
||
|
"length": 172,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad4(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
2 years ago
|
},
|
||
4 years ago
|
{
|
||
2 years ago
|
"type": "node",
|
||
|
"name": "address(target).call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1387,
|
||
|
"length": 24,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
61
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 9,
|
||
|
"ending_column": 33
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
2 years ago
|
"type": "function",
|
||
|
"name": "externalCaller",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1329,
|
||
|
"length": 89,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
60,
|
||
|
61,
|
||
2 years ago
|
62
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
|
"start": 28,
|
||
|
"length": 1569,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
|
"signature": "externalCaller(address)"
|
||
4 years ago
|
}
|
||
2 years ago
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "ethSender(address(0))",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1096,
|
||
3 years ago
|
"length": 21,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
49
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 30
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1017,
|
||
|
"length": 172,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad4(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "address(target).call.value(1)()",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1477,
|
||
|
"length": 33,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
65
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 42
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
3 years ago
|
"name": "ethSender",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1424,
|
||
|
"length": 93,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
64,
|
||
|
65,
|
||
|
66
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "ethSender(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls_sending_eth"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "varChanger()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1127,
|
||
3 years ago
|
"length": 12,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
50
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 21
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad4",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 1017,
|
||
|
"length": 172,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad4(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "anotherVariableToChange"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
3 years ago
|
"name": "anotherVariableToChange ++",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1563,
|
||
|
"length": 25,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
69
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
3 years ago
|
"ending_column": 34
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
3 years ago
|
"name": "varChanger",
|
||
4 years ago
|
"source_mapping": {
|
||
3 years ago
|
"start": 1523,
|
||
|
"length": 72,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
3 years ago
|
68,
|
||
|
69,
|
||
|
70
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
3 years ago
|
"signature": "varChanger()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
3 years ago
|
"underlying_type": "variables_written",
|
||
|
"variable_name": "anotherVariableToChange"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Reentrancy in ReentrancyBenign.bad4(address) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#47-52):\n\tExternal calls:\n\t- externalCaller(target) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#48)\n\t\t- address(target).call() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#61)\n\t- ethSender(address(0)) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#49)\n\t\t- address(target).call.value(1)() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#65)\n\tExternal calls sending eth:\n\t- ethSender(address(0)) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#49)\n\t\t- address(target).call.value(1)() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#65)\n\tState variables written after the call(s):\n\t- varChanger() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#50)\n\t\t- anotherVariableToChange ++ (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#69)\n",
|
||
|
"markdown": "Reentrancy in [ReentrancyBenign.bad4(address)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L47-L52):\n\tExternal calls:\n\t- [externalCaller(target)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L48)\n\t\t- [address(target).call()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L61)\n\t- [ethSender(address(0))](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L49)\n\t\t- [address(target).call.value(1)()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L65)\n\tExternal calls sending eth:\n\t- [ethSender(address(0))](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L49)\n\t\t- [address(target).call.value(1)()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L65)\n\tState variables written after the call(s):\n\t- [varChanger()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L50)\n\t\t- [anotherVariableToChange ++](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L69)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L47-L52",
|
||
|
"id": "a2ff3f26be25c48b10b66f8121b35b0674cfb38309a1f6ba3788852f13e7d166",
|
||
3 years ago
|
"check": "reentrancy-benign",
|
||
|
"impact": "Low",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad2",
|
||
3 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 637,
|
||
|
"length": 243,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
3 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39
|
||
3 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
2 years ago
|
"start": 28,
|
||
|
"length": 1569,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
4 years ago
|
}
|
||
2 years ago
|
},
|
||
|
"signature": "bad2(address)"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "success = target.call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 684,
|
||
|
"length": 33,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
31
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 42
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 637,
|
||
|
"length": 243,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad2(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "address(target).call.value(1000)()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 754,
|
||
|
"length": 36,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
33
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 13,
|
||
|
"ending_column": 49
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 637,
|
||
|
"length": 243,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad2(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "success = target.call()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 684,
|
||
|
"length": 33,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
31
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 42
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 637,
|
||
|
"length": 243,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad2(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "external_calls_sending_eth"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "address(target).call.value(1000)()",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 754,
|
||
|
"length": 36,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
33
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 13,
|
||
|
"ending_column": 49
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 637,
|
||
|
"length": 243,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad2(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
2 years ago
|
"underlying_type": "external_calls_sending_eth"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "counter += 1",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 804,
|
||
|
"length": 12,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
34
|
||
4 years ago
|
],
|
||
2 years ago
|
"starting_column": 13,
|
||
|
"ending_column": 25
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "bad2",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 637,
|
||
|
"length": 243,
|
||
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "ReentrancyBenign",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 28,
|
||
3 years ago
|
"length": 1569,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.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,
|
||
4 years ago
|
62,
|
||
3 years ago
|
63,
|
||
|
64,
|
||
|
65,
|
||
|
66,
|
||
|
67,
|
||
|
68,
|
||
|
69,
|
||
|
70,
|
||
|
71,
|
||
|
72
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "bad2(address)"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additional_fields": {
|
||
|
"underlying_type": "variables_written",
|
||
2 years ago
|
"variable_name": "counter"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Reentrancy in ReentrancyBenign.bad2(address) (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#30-39):\n\tExternal calls:\n\t- success = target.call() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#31)\n\t- address(target).call.value(1000)() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#33)\n\tExternal calls sending eth:\n\t- address(target).call.value(1000)() (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#33)\n\tState variables written after the call(s):\n\t- counter += 1 (tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#34)\n",
|
||
|
"markdown": "Reentrancy in [ReentrancyBenign.bad2(address)](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L30-L39):\n\tExternal calls:\n\t- [success = target.call()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L31)\n\t- [address(target).call.value(1000)()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L33)\n\tExternal calls sending eth:\n\t- [address(target).call.value(1000)()](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L33)\n\tState variables written after the call(s):\n\t- [counter += 1](tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L34)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/reentrancy-benign/0.5.16/reentrancy-benign.sol#L30-L39",
|
||
|
"id": "f8646c83125ca7b793d7373531a89a1a2729354823bef56e778fd17c328440ff",
|
||
4 years ago
|
"check": "reentrancy-benign",
|
||
|
"impact": "Low",
|
||
|
"confidence": "Medium"
|
||
|
}
|
||
|
]
|
||
|
]
|