forked from Sifchain/sifnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslither.db.json
1 lines (1 loc) · 16.3 KB
/
slither.db.json
1
[{"elements": [{"type": "variable", "name": "____gap", "source_mapping": {"start": 715, "length": 28, "filename_relative": "contracts/BridgeBank/BankStorage.sol", "filename_short": "BridgeBank/BankStorage.sol", "is_dependency": false, "lines": [35], "starting_column": 5, "ending_column": 33}, "type_specific_fields": {"parent": {"type": "contract", "name": "BankStorage", "source_mapping": {"start": 135, "length": 611, "filename_relative": "contracts/BridgeBank/BankStorage.sol", "filename_short": "BridgeBank/BankStorage.sol", "is_dependency": false, "lines": [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], "starting_column": 1, "ending_column": null}}}}, {"type": "variable", "name": "____gap", "source_mapping": {"start": 263, "length": 28, "filename_relative": "contracts/BridgeBank/CosmosWhiteListStorage.sol", "filename_short": "BridgeBank/CosmosWhiteListStorage.sol", "is_dependency": false, "lines": [13], "starting_column": 5, "ending_column": 33}, "type_specific_fields": {"parent": {"type": "contract", "name": "CosmosWhiteListStorage", "source_mapping": {"start": 25, "length": 269, "filename_relative": "contracts/BridgeBank/CosmosWhiteListStorage.sol", "filename_short": "BridgeBank/CosmosWhiteListStorage.sol", "is_dependency": false, "lines": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "starting_column": 1, "ending_column": null}}}}, {"type": "variable", "name": "____gap", "source_mapping": {"start": 478, "length": 28, "filename_relative": "contracts/BridgeBank/EthereumBankStorage.sol", "filename_short": "BridgeBank/EthereumBankStorage.sol", "is_dependency": false, "lines": [23], "starting_column": 5, "ending_column": 33}, "type_specific_fields": {"parent": {"type": "contract", "name": "EthereumBankStorage", "source_mapping": {"start": 25, "length": 484, "filename_relative": "contracts/BridgeBank/EthereumBankStorage.sol", "filename_short": "BridgeBank/EthereumBankStorage.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], "starting_column": 1, "ending_column": null}}}}, {"type": "variable", "name": "____gap", "source_mapping": {"start": 803, "length": 28, "filename_relative": "contracts/BridgeBank/CosmosBankStorage.sol", "filename_short": "BridgeBank/CosmosBankStorage.sol", "is_dependency": false, "lines": [39], "starting_column": 5, "ending_column": 33}, "type_specific_fields": {"parent": {"type": "contract", "name": "CosmosBankStorage", "source_mapping": {"start": 25, "length": 809, "filename_relative": "contracts/BridgeBank/CosmosBankStorage.sol", "filename_short": "BridgeBank/CosmosBankStorage.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], "starting_column": 1, "ending_column": null}}}}], "description": "BankStorage.____gap (BridgeBank/BankStorage.sol#35) shadows:\n\t- CosmosWhiteListStorage.____gap (BridgeBank/CosmosWhiteListStorage.sol#13)\n\t- EthereumBankStorage.____gap (BridgeBank/EthereumBankStorage.sol#23)\n\t- CosmosBankStorage.____gap (BridgeBank/CosmosBankStorage.sol#39)\n", "markdown": "[BankStorage.____gap](contracts/BridgeBank/BankStorage.sol#L35) shadows:\n\t- [CosmosWhiteListStorage.____gap](contracts/BridgeBank/CosmosWhiteListStorage.sol#L13)\n\t- [EthereumBankStorage.____gap](contracts/BridgeBank/EthereumBankStorage.sol#L23)\n\t- [CosmosBankStorage.____gap](contracts/BridgeBank/CosmosBankStorage.sol#L39)\n", "id": "918e2cfd606427d25643a4cabf9ea907eeafb9263c2fc8d9a4fb6760ab5c4cab", "check": "shadowing-abstract", "impact": "Medium", "confidence": "High"}, {"elements": [{"type": "variable", "name": "_initialized", "source_mapping": {"start": 755, "length": 25, "filename_relative": "contracts/BridgeBank/BridgeBank.sol", "filename_short": "BridgeBank/BridgeBank.sol", "is_dependency": false, "lines": [27], "starting_column": 5, "ending_column": 30}, "type_specific_fields": {"parent": {"type": "contract", "name": "BridgeBank", "source_mapping": {"start": 635, "length": 9555, "filename_relative": "contracts/BridgeBank/BridgeBank.sol", "filename_short": "BridgeBank/BridgeBank.sol", "is_dependency": false, "lines": [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332], "starting_column": 1, "ending_column": 2}}}}, {"type": "variable", "name": "_initialized", "source_mapping": {"start": 237, "length": 25, "filename_relative": "contracts/BridgeBank/CosmosWhiteList.sol", "filename_short": "BridgeBank/CosmosWhiteList.sol", "is_dependency": false, "lines": [11], "starting_column": 5, "ending_column": 30}, "type_specific_fields": {"parent": {"type": "contract", "name": "CosmosWhiteList", "source_mapping": {"start": 180, "length": 1384, "filename_relative": "contracts/BridgeBank/CosmosWhiteList.sol", "filename_short": "BridgeBank/CosmosWhiteList.sol", "is_dependency": false, "lines": [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], "starting_column": 1, "ending_column": null}}}}, {"type": "variable", "name": "_initialized", "source_mapping": {"start": 173, "length": 25, "filename_relative": "contracts/BridgeBank/EthereumWhitelist.sol", "filename_short": "BridgeBank/EthereumWhitelist.sol", "is_dependency": false, "lines": [9], "starting_column": 5, "ending_column": 30}, "type_specific_fields": {"parent": {"type": "contract", "name": "EthereumWhiteList", "source_mapping": {"start": 140, "length": 1588, "filename_relative": "contracts/BridgeBank/EthereumWhitelist.sol", "filename_short": "BridgeBank/EthereumWhitelist.sol", "is_dependency": false, "lines": [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], "starting_column": 1, "ending_column": null}}}}], "description": "BridgeBank._initialized (BridgeBank/BridgeBank.sol#27) shadows:\n\t- CosmosWhiteList._initialized (BridgeBank/CosmosWhiteList.sol#11)\n\t- EthereumWhiteList._initialized (BridgeBank/EthereumWhitelist.sol#9)\n", "markdown": "[BridgeBank._initialized](contracts/BridgeBank/BridgeBank.sol#L27) shadows:\n\t- [CosmosWhiteList._initialized](contracts/BridgeBank/CosmosWhiteList.sol#L11)\n\t- [EthereumWhiteList._initialized](contracts/BridgeBank/EthereumWhitelist.sol#L9)\n", "id": "b3190f8042c86b5d3093510eb98f4903d2e84adc6a209c37a2b9597d462afedb", "check": "shadowing-state", "impact": "High", "confidence": "High"}, {"elements": [{"type": "function", "name": "newProphecyClaim", "source_mapping": {"start": 3326, "length": 2887, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199], "starting_column": 5, "ending_column": 6}, "type_specific_fields": {"parent": {"type": "contract", "name": "CosmosBridge", "source_mapping": {"start": 223, "length": 8809, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294], "starting_column": 1, "ending_column": 2}}, "signature": "newProphecyClaim(CosmosBridgeStorage.ClaimType,bytes,uint256,address,string,uint256)"}}, {"type": "node", "name": "tokenAddress = BridgeBank(bridgeBank).createNewBridgeToken(symbol)", "source_mapping": {"start": 4776, "length": 66, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [156], "starting_column": 21, "ending_column": 87}, "type_specific_fields": {"parent": {"type": "function", "name": "newProphecyClaim", "source_mapping": {"start": 3326, "length": 2887, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199], "starting_column": 5, "ending_column": 6}, "type_specific_fields": {"parent": {"type": "contract", "name": "CosmosBridge", "source_mapping": {"start": 223, "length": 8809, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294], "starting_column": 1, "ending_column": 2}}, "signature": "newProphecyClaim(CosmosBridgeStorage.ClaimType,bytes,uint256,address,string,uint256)"}}}, "additional_fields": {"underlying_type": "external_calls"}}, {"type": "node", "name": "usedNonce[_prophecyID] = true", "source_mapping": {"start": 5995, "length": 29, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [192], "starting_column": 13, "ending_column": 42}, "type_specific_fields": {"parent": {"type": "function", "name": "newProphecyClaim", "source_mapping": {"start": 3326, "length": 2887, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199], "starting_column": 5, "ending_column": 6}, "type_specific_fields": {"parent": {"type": "contract", "name": "CosmosBridge", "source_mapping": {"start": 223, "length": 8809, "filename_relative": "contracts/CosmosBridge.sol", "is_dependency": false, "lines": [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294], "starting_column": 1, "ending_column": 2}}, "signature": "newProphecyClaim(CosmosBridgeStorage.ClaimType,bytes,uint256,address,string,uint256)"}}}, "additional_fields": {"underlying_type": "variables_written", "variable_name": "usedNonce"}}], "description": "Reentrancy in CosmosBridge.newProphecyClaim(CosmosBridgeStorage.ClaimType,bytes,uint256,address,string,uint256) (CosmosBridge.sol#129-199):\n\tExternal calls:\n\t- tokenAddress = BridgeBank(bridgeBank).createNewBridgeToken(symbol) (CosmosBridge.sol#156)\n\tState variables written after the call(s):\n\t- usedNonce[_prophecyID] = true (CosmosBridge.sol#192)\n", "markdown": "Reentrancy in [CosmosBridge.newProphecyClaim(CosmosBridgeStorage.ClaimType,bytes,uint256,address,string,uint256)](contracts/CosmosBridge.sol#L129-L199):\n\tExternal calls:\n\t- [tokenAddress = BridgeBank(bridgeBank).createNewBridgeToken(symbol)](contracts/CosmosBridge.sol#L156)\n\tState variables written after the call(s):\n\t- [usedNonce[_prophecyID] = true](contracts/CosmosBridge.sol#L192)\n", "id": "33c55e5c1cc291dc026c98eb1ac35d289902b1c75dddd09e36b239e009896209", "check": "reentrancy-no-eth", "impact": "Medium", "confidence": "Medium"}]