以太坊安全性:以太坊的安全性问题在摩卡测试中得到了证明。 该修复程序也得到了证明-源码

上传者: 42109639 | 上传时间: 2021-02-05 11:05:41 | 文件大小: 152KB | 文件类型: ZIP
以太坊安全 :red_exclamation_mark: :warning: 请勿在此存储库中使用合同。 它们很容易造成安全隐患。 :warning: :red_exclamation_mark: 带有一些以太坊安全漏洞的存储库。 使用Mocha测试演示了错误和修复。 到目前为止添加的错误: 溢出 下溢 重入(DAO hack) Delegatecall(奇偶校验黑客风格) DOS(例如,永远担任拍卖负责人) DOS(无界数组循环) 强制以太(依靠不变this.balance == 0) Tx起源 未经检查的send()输出 存储覆盖(通常在蜜罐中使用-或真正的错误) 阵列存储覆盖(长度下溢-存储覆盖) extcodesize在用于检查调用方是否为合同时被绕过 跑: tru

文件下载

资源详情

[{"title":"( 73 个子文件 152KB ) 以太坊安全性:以太坊的安全性问题在摩卡测试中得到了证明。 该修复程序也得到了证明-源码","children":[{"title":"ethereum-security-master","children":[{"title":".gitignore <span style='color:#111;'> 38B </span>","children":null,"spread":false},{"title":"truffle-config.js <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 773B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 8.18KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 34.32KB </span>","children":null,"spread":false},{"title":"node_modules","children":[{"title":"bignumber.js","children":[{"title":"package.json <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"bignumber.mjs <span style='color:#111;'> 89.99KB </span>","children":null,"spread":false},{"title":"bignumber.d.ts <span style='color:#111;'> 61.29KB </span>","children":null,"spread":false},{"title":"doc","children":[{"title":"API.html <span style='color:#111;'> 79.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENCE <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 4.87KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 7.73KB </span>","children":null,"spread":false},{"title":"bignumber.js.map <span style='color:#111;'> 32.42KB </span>","children":null,"spread":false},{"title":"bignumber.min.js <span style='color:#111;'> 16.69KB </span>","children":null,"spread":false},{"title":"bower.json <span style='color:#111;'> 666B </span>","children":null,"spread":false},{"title":"bignumber.js <span style='color:#111;'> 98.79KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"migrations","children":[{"title":"2_migration.js <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"1_initial_migration.js <span style='color:#111;'> 129B </span>","children":null,"spread":false}],"spread":true},{"title":"contracts","children":[{"title":"reentrancy","children":[{"title":"ReentrancyVulnerableFixed.sol <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"ReentrancyVulnerable.sol <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"Reentrancy.sol <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"ReentrancyAttacker.sol <span style='color:#111;'> 660B </span>","children":null,"spread":false}],"spread":true},{"title":"forcether","children":[{"title":"ForceEtherVictim.sol <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"ForceEtherAttacker.sol <span style='color:#111;'> 239B </span>","children":null,"spread":false}],"spread":true},{"title":"dos","children":[{"title":"AuctionFixed.sol <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"AuctionAttacker.sol <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"Auction.sol <span style='color:#111;'> 486B </span>","children":null,"spread":false}],"spread":true},{"title":"overunderflow","children":[{"title":"OverUnderFlowFixed.sol <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"SafeMath.sol <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"OverUnderFlow.sol <span style='color:#111;'> 388B </span>","children":null,"spread":false}],"spread":true},{"title":"Migrations.sol <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"arraystorageoverride","children":[{"title":"ArrayStorageOverrideFixed.sol <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"ArrayStorageOverride.sol <span style='color:#111;'> 459B </span>","children":null,"spread":false}],"spread":false},{"title":"txorigin","children":[{"title":"TxOriginAttacker.sol <span style='color:#111;'> 463B </span>","children":null,"spread":false},{"title":"TxOriginVictimFixed.sol <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"TxOriginVictim.sol <span style='color:#111;'> 477B </span>","children":null,"spread":false}],"spread":false},{"title":"storageoverride","children":[{"title":"StorageVictim.sol <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"StorageVictimFixed.sol <span style='color:#111;'> 698B </span>","children":null,"spread":false}],"spread":false},{"title":"send","children":[{"title":"WalletSendBugFixed.sol <span style='color:#111;'> 1017B </span>","children":null,"spread":false},{"title":"WalletSendBug.sol <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"WalletSendAttacker.sol <span style='color:#111;'> 526B </span>","children":null,"spread":false}],"spread":false},{"title":"dos_unbound_array","children":[{"title":"UnboundArrayFixed.sol <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"UnboundArray.sol <span style='color:#111;'> 370B </span>","children":null,"spread":false}],"spread":false},{"title":"extcodesize","children":[{"title":"ExtCodeSize.sol <span style='color:#111;'> 511B </span>","children":null,"spread":false},{"title":"ExtCodeSizeAttacker.sol <span style='color:#111;'> 375B </span>","children":null,"spread":false},{"title":"ExtCodeSizeFixed.sol <span style='color:#111;'> 421B </span>","children":null,"spread":false}],"spread":false},{"title":"delegatecall","children":[{"title":"WalletLibraryFixed.sol <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"Wallet.sol <span style='color:#111;'> 737B </span>","children":null,"spread":false},{"title":"WalletLibrary.sol <span style='color:#111;'> 492B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"truffle.js <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 33B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"reentrancy","children":[{"title":"reentrancyTest.js <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"reentrancyTestFixed.js <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"forcether","children":[{"title":"forceEtherTest.js <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"dos","children":[{"title":"dosTestFixed.js <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"dosTest.js <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false}],"spread":false},{"title":"overunderflow","children":[{"title":"overUnderFlowTest.js <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"overUnderFlowFixedTest.js <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"arraystorageoverride","children":[{"title":"arrayStorageOverride.js <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"arrayStorageOverrideFixed.js <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"txorigin","children":[{"title":"txOriginTestFixed.js <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"txOriginTest.js <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"storageoverride","children":[{"title":"testStorageOverrideFixed.js <span style='color:#111;'> 869B </span>","children":null,"spread":false},{"title":"testStorageOverride.js <span style='color:#111;'> 901B </span>","children":null,"spread":false}],"spread":false},{"title":"send","children":[{"title":"sendTestFixed.js <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"sendTest.js <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"dos_unbound_array","children":[{"title":"dosUnboundArrayTestFixed.js <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"dosUnboundArrayTest.js <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"extcodesize","children":[{"title":"extCodeSizeTest.js <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"extCodeSizeTestFixed.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":false},{"title":"delegatecall","children":[{"title":"delegateCallTest.js <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"delegateCallTestFixed.js <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明