mirror of https://github.com/ConsenSys/mythril
parent
5976110c08
commit
8e46c9be42
@ -1 +1,123 @@ |
|||||||
{"error": null, "issues": [{"address": 661, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The contract executes an external message call.\nAn external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully.", "function": "thisisfine()", "max_gas_used": 1254, "min_gas_used": 643, "severity": "Low", "sourceMap": null, "swc-id": "107", "title": "External Call To Fixed Address"}, {"address": 661, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", "function": "thisisfine()", "max_gas_used": 35972, "min_gas_used": 1361, "severity": "Low", "sourceMap": null, "swc-id": "104", "title": "Unchecked Call Return Value"}, {"address": 779, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The contract executes an external message call.\nAn external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully.", "function": "callstoredaddress()", "max_gas_used": 1298, "min_gas_used": 687, "severity": "Low", "sourceMap": null, "swc-id": "107", "title": "External Call To Fixed Address"}, {"address": 779, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", "function": "callstoredaddress()", "max_gas_used": 36016, "min_gas_used": 1405, "severity": "Low", "sourceMap": null, "swc-id": "104", "title": "Unchecked Call Return Value"}, {"address": 858, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The contract executes an external message call.\nAn external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully.", "function": "reentrancy()", "max_gas_used": 1320, "min_gas_used": 709, "severity": "Low", "sourceMap": null, "swc-id": "107", "title": "External Call To Fixed Address"}, {"address": 858, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", "function": "reentrancy()", "max_gas_used": 61052, "min_gas_used": 6441, "severity": "Low", "sourceMap": null, "swc-id": "104", "title": "Unchecked Call Return Value"}, {"address": 912, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "A call to a user-supplied address is executed.\nThe callee address of an external message call can be set by the caller. Note that the callee can contain arbitrary code and may re-enter any function in this contract. Review the business logic carefully to prevent averse effects on thecontract state.", "function": "calluseraddress(address)", "max_gas_used": 616, "min_gas_used": 335, "severity": "Medium", "sourceMap": null, "swc-id": "107", "title": "External Call To User-Supplied Address"}, {"address": 912, "contract": "Unknown", "debug": "<DEBUG-DATA>", "description": "The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", "function": "calluseraddress(address)", "max_gas_used": 35336, "min_gas_used": 1055, "severity": "Low", "sourceMap": null, "swc-id": "104", "title": "Unchecked Call Return Value"}], "success": true} |
{ |
||||||
|
"error":null, |
||||||
|
"issues":[ |
||||||
|
{ |
||||||
|
"address":661, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The contract executes an external message call.\nAn external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully.", |
||||||
|
"function":"thisisfine()", |
||||||
|
"max_gas_used":1254, |
||||||
|
"min_gas_used":643, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"107", |
||||||
|
"title":"External Call To Fixed Address" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":661, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", |
||||||
|
"function":"thisisfine()", |
||||||
|
"max_gas_used":35972, |
||||||
|
"min_gas_used":1361, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"104", |
||||||
|
"title":"Unchecked Call Return Value" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":779, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The contract executes an external message call.\nAn external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully.", |
||||||
|
"function":"callstoredaddress()", |
||||||
|
"max_gas_used":1298, |
||||||
|
"min_gas_used":687, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"107", |
||||||
|
"title":"External Call To Fixed Address" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":779, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", |
||||||
|
"function":"callstoredaddress()", |
||||||
|
"max_gas_used":36016, |
||||||
|
"min_gas_used":1405, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"104", |
||||||
|
"title":"Unchecked Call Return Value" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":858, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The contract executes an external message call.\nAn external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully.", |
||||||
|
"function":"reentrancy()", |
||||||
|
"max_gas_used":1320, |
||||||
|
"min_gas_used":709, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"107", |
||||||
|
"title":"External Call To Fixed Address" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":858, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", |
||||||
|
"function":"reentrancy()", |
||||||
|
"max_gas_used":61052, |
||||||
|
"min_gas_used":6441, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"104", |
||||||
|
"title":"Unchecked Call Return Value" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":869, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The contract account state is changed after an external call. \nConsider that the called contract could re-enter the function before this state change takes place. This can lead to business logic vulnerabilities.", |
||||||
|
"function":"reentrancy()", |
||||||
|
"max_gas_used":null, |
||||||
|
"min_gas_used":null, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"107", |
||||||
|
"title":"State change after external call" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":912, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"A call to a user-supplied address is executed.\nThe callee address of an external message call can be set by the caller. Note that the callee can contain arbitrary code and may re-enter any function in this contract. Review the business logic carefully to prevent averse effects on thecontract state.", |
||||||
|
"function":"calluseraddress(address)", |
||||||
|
"max_gas_used":616, |
||||||
|
"min_gas_used":335, |
||||||
|
"severity":"Medium", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"107", |
||||||
|
"title":"External Call To User-Supplied Address" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"address":912, |
||||||
|
"contract":"Unknown", |
||||||
|
"debug":"<DEBUG-DATA>", |
||||||
|
"description":"The return value of a message call is not checked.\nExternal calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states.", |
||||||
|
"function":"calluseraddress(address)", |
||||||
|
"max_gas_used":35336, |
||||||
|
"min_gas_used":1055, |
||||||
|
"severity":"Low", |
||||||
|
"sourceMap":null, |
||||||
|
"swc-id":"104", |
||||||
|
"title":"Unchecked Call Return Value" |
||||||
|
} |
||||||
|
], |
||||||
|
"success":true |
||||||
|
} |
||||||
|
@ -1,132 +1,167 @@ |
|||||||
[ |
[ |
||||||
{ |
{ |
||||||
"issues": [ |
"issues":[ |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The contract executes an external message call.", |
"head":"The contract executes an external message call.", |
||||||
"tail": "An external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully." |
"tail":"An external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully." |
||||||
}, |
}, |
||||||
"extra": {}, |
"extra":{ |
||||||
"locations": [ |
|
||||||
|
}, |
||||||
|
"locations":[ |
||||||
|
{ |
||||||
|
"sourceMap":"661:1:0" |
||||||
|
} |
||||||
|
], |
||||||
|
"severity":"Low", |
||||||
|
"swcID":"SWC-107", |
||||||
|
"swcTitle":"Reentrancy" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"description":{ |
||||||
|
"head":"The contract executes an external message call.", |
||||||
|
"tail":"An external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully." |
||||||
|
}, |
||||||
|
"extra":{ |
||||||
|
|
||||||
|
}, |
||||||
|
"locations":[ |
||||||
{ |
{ |
||||||
"sourceMap": "661:1:0" |
"sourceMap":"779:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-107", |
"swcID":"SWC-107", |
||||||
"swcTitle": "Reentrancy" |
"swcTitle":"Reentrancy" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The contract executes an external message call.", |
"head":"The contract executes an external message call.", |
||||||
"tail": "An external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully." |
"tail":"An external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully." |
||||||
}, |
}, |
||||||
"extra": {}, |
"extra":{ |
||||||
"locations": [ |
|
||||||
|
}, |
||||||
|
"locations":[ |
||||||
{ |
{ |
||||||
"sourceMap": "779:1:0" |
"sourceMap":"858:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-107", |
"swcID":"SWC-107", |
||||||
"swcTitle": "Reentrancy" |
"swcTitle":"Reentrancy" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The contract executes an external message call.", |
"head":"The contract account state is changed after an external call. ", |
||||||
"tail": "An external function call to a fixed contract address is executed. Make sure that the callee contract has been reviewed carefully." |
"tail":"Consider that the called contract could re-enter the function before this state change takes place. This can lead to business logic vulnerabilities." |
||||||
|
}, |
||||||
|
"extra":{ |
||||||
|
|
||||||
}, |
}, |
||||||
"extra": {}, |
"locations":[ |
||||||
"locations": [ |
|
||||||
{ |
{ |
||||||
"sourceMap": "858:1:0" |
"sourceMap":"869:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-107", |
"swcID":"SWC-107", |
||||||
"swcTitle": "Reentrancy" |
"swcTitle":"Reentrancy" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "A call to a user-supplied address is executed.", |
"head":"A call to a user-supplied address is executed.", |
||||||
"tail": "The callee address of an external message call can be set by the caller. Note that the callee can contain arbitrary code and may re-enter any function in this contract. Review the business logic carefully to prevent averse effects on thecontract state." |
"tail":"The callee address of an external message call can be set by the caller. Note that the callee can contain arbitrary code and may re-enter any function in this contract. Review the business logic carefully to prevent averse effects on thecontract state." |
||||||
}, |
}, |
||||||
"extra": {}, |
"extra":{ |
||||||
"locations": [ |
|
||||||
|
}, |
||||||
|
"locations":[ |
||||||
{ |
{ |
||||||
"sourceMap": "912:1:0" |
"sourceMap":"912:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Medium", |
"severity":"Medium", |
||||||
"swcID": "SWC-107", |
"swcID":"SWC-107", |
||||||
"swcTitle": "Reentrancy" |
"swcTitle":"Reentrancy" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The return value of a message call is not checked.", |
"head":"The return value of a message call is not checked.", |
||||||
"tail": "External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
"tail":"External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
||||||
|
}, |
||||||
|
"extra":{ |
||||||
|
|
||||||
}, |
}, |
||||||
"extra": {}, |
"locations":[ |
||||||
"locations": [ |
|
||||||
{ |
{ |
||||||
"sourceMap": "661:1:0" |
"sourceMap":"661:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-104", |
"swcID":"SWC-104", |
||||||
"swcTitle": "Unchecked Call Return Value" |
"swcTitle":"Unchecked Call Return Value" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The return value of a message call is not checked.", |
"head":"The return value of a message call is not checked.", |
||||||
"tail": "External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
"tail":"External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
||||||
}, |
}, |
||||||
"extra": {}, |
"extra":{ |
||||||
"locations": [ |
|
||||||
|
}, |
||||||
|
"locations":[ |
||||||
{ |
{ |
||||||
"sourceMap": "779:1:0" |
"sourceMap":"779:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-104", |
"swcID":"SWC-104", |
||||||
"swcTitle": "Unchecked Call Return Value" |
"swcTitle":"Unchecked Call Return Value" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The return value of a message call is not checked.", |
"head":"The return value of a message call is not checked.", |
||||||
"tail": "External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
"tail":"External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
||||||
|
}, |
||||||
|
"extra":{ |
||||||
|
|
||||||
}, |
}, |
||||||
"extra": {}, |
"locations":[ |
||||||
"locations": [ |
|
||||||
{ |
{ |
||||||
"sourceMap": "858:1:0" |
"sourceMap":"858:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-104", |
"swcID":"SWC-104", |
||||||
"swcTitle": "Unchecked Call Return Value" |
"swcTitle":"Unchecked Call Return Value" |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"description": { |
"description":{ |
||||||
"head": "The return value of a message call is not checked.", |
"head":"The return value of a message call is not checked.", |
||||||
"tail": "External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
"tail":"External calls return a boolean value. If the callee contract halts with an exception, 'false' is returned and execution continues in the caller. It is usually recommended to wrap external calls into a require statement to prevent unexpected states." |
||||||
}, |
}, |
||||||
"extra": {}, |
"extra":{ |
||||||
"locations": [ |
|
||||||
|
}, |
||||||
|
"locations":[ |
||||||
{ |
{ |
||||||
"sourceMap": "912:1:0" |
"sourceMap":"912:1:0" |
||||||
} |
} |
||||||
], |
], |
||||||
"severity": "Low", |
"severity":"Low", |
||||||
"swcID": "SWC-104", |
"swcID":"SWC-104", |
||||||
"swcTitle": "Unchecked Call Return Value" |
"swcTitle":"Unchecked Call Return Value" |
||||||
} |
} |
||||||
], |
], |
||||||
"meta": {}, |
"meta":{ |
||||||
"sourceFormat": "evm-byzantium-bytecode", |
|
||||||
"sourceList": [ |
}, |
||||||
|
"sourceFormat":"evm-byzantium-bytecode", |
||||||
|
"sourceList":[ |
||||||
"0x7cbb77986c6b1bf6e945cd3fba06d3ea3d28cfc49cdfdc9571ec30703ac5862f" |
"0x7cbb77986c6b1bf6e945cd3fba06d3ea3d28cfc49cdfdc9571ec30703ac5862f" |
||||||
], |
], |
||||||
"sourceType": "raw-bytecode" |
"sourceType":"raw-bytecode" |
||||||
} |
} |
||||||
] |
] |
Loading…
Reference in new issue