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.
79 lines
3.8 KiB
79 lines
3.8 KiB
4 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "contract",
|
||
|
"name": "OnlyLocked",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 401,
|
||
4 years ago
|
"length": 32,
|
||
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/locked-ether/0.6.11/locked_ether.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/locked-ether/0.6.11/locked_ether.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
26
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 33
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "receive_eth",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 49,
|
||
|
"length": 76,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/locked-ether/0.6.11/locked_ether.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/locked-ether/0.6.11/locked_ether.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
4,
|
||
|
5,
|
||
|
6
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Locked",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 27,
|
||
|
"length": 101,
|
||
4 years ago
|
"filename_used": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_relative": "tests/detectors/locked-ether/0.6.11/locked_ether.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
4 years ago
|
"filename_short": "tests/detectors/locked-ether/0.6.11/locked_ether.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "receive_eth()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
4 years ago
|
"description": "Contract locking ether found in :\n\tContract OnlyLocked (tests/detectors/locked-ether/0.6.11/locked_ether.sol#26) has payable functions:\n\t - Locked.receive_eth() (tests/detectors/locked-ether/0.6.11/locked_ether.sol#4-6)\n\tBut does not have a function to withdraw the ether\n",
|
||
|
"markdown": "Contract locking ether found in :\n\tContract [OnlyLocked](tests/detectors/locked-ether/0.6.11/locked_ether.sol#L26) has payable functions:\n\t - [Locked.receive_eth()](tests/detectors/locked-ether/0.6.11/locked_ether.sol#L4-L6)\n\tBut does not have a function to withdraw the ether\n",
|
||
|
"id": "1eb31cab3df894265d213a6a2e85c7fe840a4021a598ab09f1052a86c897d886",
|
||
4 years ago
|
"check": "locked-ether",
|
||
|
"impact": "Medium",
|
||
|
"confidence": "High"
|
||
|
}
|
||
|
]
|
||
|
]
|