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.
380 lines
18 KiB
380 lines
18 KiB
4 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "indirect",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 316,
|
||
|
"length": 82,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
19,
|
||
|
20,
|
||
|
21
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test",
|
||
|
"source_mapping": {
|
||
|
"start": 0,
|
||
|
"length": 884,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
1,
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13,
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29,
|
||
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39,
|
||
|
40,
|
||
|
41
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "indirect()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "destination.send(address(this).balance)",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 352,
|
||
|
"length": 39,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
20
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 48
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "indirect",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 316,
|
||
|
"length": 82,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
19,
|
||
|
20,
|
||
|
21
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test",
|
||
|
"source_mapping": {
|
||
|
"start": 0,
|
||
|
"length": 884,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
1,
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13,
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29,
|
||
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39,
|
||
|
40,
|
||
|
41
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "indirect()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test.indirect() (tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#19-21) sends eth to arbitrary user\n\tDangerous calls:\n\t- destination.send(address(this).balance) (tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#20)\n",
|
||
|
"markdown": "[Test.indirect()](tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#L19-L21) sends eth to arbitrary user\n\tDangerous calls:\n\t- [destination.send(address(this).balance)](tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#L20)\n",
|
||
|
"first_markdown_element": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#L19-L21",
|
||
|
"id": "2e1bd6d1260cf35450734eb2027a2d964f61858a3aabd0cb459c22cb4da9956b",
|
||
3 years ago
|
"check": "arbitrary-send-eth",
|
||
4 years ago
|
"impact": "High",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "direct",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 162,
|
||
|
"length": 79,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
11,
|
||
|
12,
|
||
|
13
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test",
|
||
|
"source_mapping": {
|
||
|
"start": 0,
|
||
|
"length": 884,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
1,
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13,
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29,
|
||
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39,
|
||
|
40,
|
||
|
41
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "direct()"
|
||
4 years ago
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
2 years ago
|
"name": "msg.sender.send(address(this).balance)",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 196,
|
||
|
"length": 38,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
12
|
||
4 years ago
|
],
|
||
|
"starting_column": 9,
|
||
2 years ago
|
"ending_column": 47
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
2 years ago
|
"name": "direct",
|
||
4 years ago
|
"source_mapping": {
|
||
2 years ago
|
"start": 162,
|
||
|
"length": 79,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
2 years ago
|
11,
|
||
|
12,
|
||
|
13
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test",
|
||
|
"source_mapping": {
|
||
|
"start": 0,
|
||
|
"length": 884,
|
||
3 years ago
|
"filename_relative": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
3 years ago
|
"filename_short": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
1,
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13,
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29,
|
||
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33,
|
||
|
34,
|
||
|
35,
|
||
|
36,
|
||
|
37,
|
||
|
38,
|
||
|
39,
|
||
|
40,
|
||
|
41
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
2 years ago
|
"signature": "direct()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test.direct() (tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#11-13) sends eth to arbitrary user\n\tDangerous calls:\n\t- msg.sender.send(address(this).balance) (tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#12)\n",
|
||
|
"markdown": "[Test.direct()](tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#L11-L13) sends eth to arbitrary user\n\tDangerous calls:\n\t- [msg.sender.send(address(this).balance)](tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#L12)\n",
|
||
|
"first_markdown_element": "tests/detectors/arbitrary-send-eth/0.7.6/arbitrary_send_eth.sol#L11-L13",
|
||
|
"id": "76af03df5e6d33df8978a2cc00dfe944236aca69ad1b7f107580da1b76121082",
|
||
3 years ago
|
"check": "arbitrary-send-eth",
|
||
4 years ago
|
"impact": "High",
|
||
|
"confidence": "Medium"
|
||
|
}
|
||
|
]
|
||
|
]
|