使用ConCert基于属性的测试框架发现智能合约漏洞
Finding smart contract vulnerabilities with ConCert's property-based testing framework
摘要:
我们提供了三个关于智能合约漏洞的详细案例研究,并展示了基于属性的测试如何发现它们:1. Dexter 1代币交易所; 2. iToken; 3. Brave的BAT代币的ICO最后一个例子实际上是新的,在审计过程中被遗漏了。我们已经在ConCert中实现了这种测试,ConCert是Coq证明助手中智能合约执行的通用可执行模型/规范。ConCert合约可用于在Tezos的LIGO和Concordium的Rust语言中生成经过验证的智能合约。因此,我们展示了智能合约的形式化验证和基于属性的测试相结合的有效性。
英文摘要:
We provide three detailed case studies of vulnerabilities in smart contracts, and show how property-based testing would have found them: 1. the Dexter1 token exchange; 2. the iToken; 3. the ICO of Brave's BAT token. The last example is, in fact, new, and was missed in the auditing process. We have implemented this testing in ConCert, a general executable model/specification of smart contract execution in the Coq proof assistant. ConCert contracts can be used to generate verified smart contracts in Tezos' LIGO and Concordium's rust language. We thus show the effectiveness of combining formal verification and property-based testing of smart contracts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。