Smart contracts vulnerabilities: a call for blockchain software engineering?
Open accessThe DOI matches its Crossref record; 12 of the 12 references it cites were found in a registry or an index.
Abstract
Smart Contracts have gained tremendous popularity in the past few years, to the point that billions of US Dollars are currently exchanged every day through such technology. However, since the release of the Frontier network of Ethereum in 2015, there have been many cases in which the execution of Smart Contracts managing Ether coins has led to problems or conflicts. Compared to traditional Software Engineering, a discipline of Smart Contract and Blockchain programming, with standardized best practices that can help solve the mentioned problems and conflicts, is not yet sufficiently developed. Furthermore, Smart Contracts rely on a non-standard software life-cycle, according to which, for instance, delivered applications can hardly be updated or bugs resolved by releasing a new version of the software. In this paper we advocate the need for a discipline of Blockchain Software Engineering, addressing the issues posed by smart contract programming and other applications running on blockchains.We analyse a case of study where a bug discovered in a Smart Contract library, and perhaps "unsafe" programming, allowed an attack on Parity, a wallet application, causing the freezing of about 500K Ethers (about 150M USD, in November 2017). In this study we analyze the source code of Parity and the library, and discuss how recognised best practices could mitigate, if adopted and adapted, such detrimental software misbehavior. We also reflect on the specificity of Smart Contract software development, which makes some of the existing approaches insufficient, and call for the definition of a specific Blockchain Software Engineering.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Bitcoin: A Peer-to-Peer Electronic Cash System
Wright, C. S. (2008) · SSRN Electronic Journal · doi:10.2139/ssrn.3440802 · Cited by 13,922 · cited 3×
“The first Blockchain to go live was the Bitcoin’s Blockchain [1] in 2009.”
InfluentialMaking Smart Contracts Smarter
Luu, L., Chu, D.-H., Olickel, H., Saxena, P., & Hobor, A. (2016) · Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2976749.2978309 · Cited by 2,249 · cited 2×
“Smart Contracts security is an open research field [5].”
A Survey of Attacks on Ethereum Smart Contracts (SoK)
Atzei, N., Bartoletti, M., & Cimoli, T. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-54455-6_8 · Cited by 1,553 · cited 1×
“It is worth remarking here that vulnerabilities like the one leading to the Parity attack had been highlighted in literature, e.g. [8], a fact that strengthens even more our call for the adoption of standard and best practices in Blockchain Software Engineering.”
Symbolic execution for software testing: three decades later
Cadar, C., & Sen, K. (2013) · Communications of the ACM · doi:10.1145/2408776.2408795 · Cited by 776 · cited 1×
“A number of these use formal approaches, such as those based on symbolic execution (e.g. [9]), or search-based methods (e.g. [10]) to produce test cases that provide code coverage.”
A Theoretical and Empirical Study of Search-Based Testing: Local, Global, and Hybrid Search
Harman, M., & McMinn, P. (2010) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2009.71 · Cited by 400 · cited 1×
“A number of these use formal approaches, such as those based on symbolic execution (e.g. [9]), or search-based methods (e.g. [10]) to produce test cases that provide code coverage.”
Using formal specifications to support testing
Hierons, R. M., Bogdanov, K., Bowen, J. P., Cleaveland, R., Derrick, J., Dick, J., Gheorghe, M., Harman, M., Kapoor, K., Krause, P., et al. (2009) · ACM Computing Surveys · doi:10.1145/1459352.1459354 · Cited by 356 · cited 1×
“An alternative, and complementary, approach is to base test automation on a model; an approach that is typically called model-based testing (MBT) (see [11] for a survey).”
BackgroundSelf-citationBlockchain-Oriented Software Engineering: Challenges and New Directions
Porru, S., Pinna, A., Marchesi, M., & Tonelli, R. (2017) · 2017 IEEE/ACM 39th International Conference on Software Engineering Companion (ICSE-C) · doi:10.1109/icse-c.2017.142 · Cited by 333
Self-citationDemystifying Incentives in the Consensus Computer
Luu, L., Teutsch, J., Kulkarni, R., & Saxena, P. (2015) · Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2810103.2813659 · Cited by 225 · cited 1×
“In this case the user pays all the gasLimit to the miner as a counter-measure against resource-exhausting attacks [6].”
BackgroundA Petri Nets Model for Blockchain Analysis
Pinna, A., Tonelli, R., Orrù, M., & Marchesi, M. (2018) · The Computer Journal · doi:10.1093/comjnl/bxy001 · Cited by 69
Self-citationSmart contracts software metrics: A first study
Tonelli, R., Pierro, G. A., Ortu, M., & Destefanis, G. (2023) · PLoS ONE · doi:10.1371/journal.pone.0281043 · Cited by 38
Self-citation
Cited by
Blockchain for AI: review and open research challenges
Salah, K., Rehman, M. H. U., Nizamuddin, N., & Al-Fuqaha, A. (2019) · IEEE Access · doi:10.1109/access.2018.2890507 · Cited by 1,001
“this issue posed by smart contract programming and other applications running on blockchain [133].”
BackgroundSmart Contract Development: Challenges and Opportunities
Zou, W., Lo, D., Kochhar, P. S., Le, X.-B. D., Xia, X., Feng, Y., Chen, Z., & Xu, B. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2942301 · Cited by 727
A Survey on Blockchain Technology: Evolution, Architecture and Security
Bhutta, M. N. M., Khwaja, A. A., Nadeem, A., Ahmad, H. F., Khan, M. K., Hanif, M. A., Song, H., Alshamari, M., & Cao, Y. (2021) · IEEE Access · doi:10.1109/access.2021.3072849 · Cited by 522
Survey on blockchain based smart contracts: Applications, opportunities and challenges
Hewa, T., Ylianttila, M., & Liyanage, M. (2021) · Journal of Network and Computer Applications · doi:10.1016/j.jnca.2020.102857 · Cited by 437
Smart Contracts in Blockchain Technology: A Critical Review
Taherdoost, H. (2023) · Information · doi:10.3390/info14020117 · Cited by 355
Blockchain Security Attacks, Challenges, and Solutions for the Future Distributed IoT Network
Singh, S., Hosen, A. S. M. S., & Yoon, B. (2021) · IEEE Access · doi:10.1109/access.2021.3051602 · Cited by 354
Systematic Review of Security Vulnerabilities in Ethereum Blockchain Smart Contract
Kushwaha, S. S., Joshi, S., Singh, D., Kaur, M., & Lee, H.-N. (2022) · IEEE Access · doi:10.1109/access.2021.3140091 · Cited by 350
Blockchain smart contracts formalization: Approaches and challenges to address vulnerabilities
Singh, A., Parizi, R. M., Zhang, Q., Choo, K.-K. R., & Dehghantanha, A. (2020) · Computers & Security · doi:10.1016/j.cose.2019.101654 · Cited by 285
Decentralized document version control using ethereum blockchain and IPFS
Nizamuddin, N., Salah, K., Ajmal Azad, M., Arshad, J., & Rehman, M. H. (2019) · Computers & Electrical Engineering · doi:10.1016/j.compeleceng.2019.03.014 · Cited by 268
Smart contracts on the blockchain – A bibliometric analysis and review
Ante, L. (2021) · Telematics and Informatics · doi:10.1016/j.tele.2020.101519 · Cited by 267
A Survey on Security Verification of Blockchain Smart Contracts
Liu, J., & Liu, Z. (2019) · IEEE Access · doi:10.1109/access.2019.2921624 · Cited by 261
Gupta, R., Tanwar, S., Al-Turjman, F., Italiya, P., Nauman, A., & Kim, S. W. (2020) · IEEE Access · doi:10.1109/access.2020.2970576 · Cited by 256
Survey on Blockchain-Based Smart Contracts: Technical Aspects and Future Research
Hewa, T. M., Hu, Y., Liyanage, M., Kanhare, S. S., & Ylianttila, M. (2021) · IEEE Access · doi:10.1109/access.2021.3068178 · Cited by 189
“[108] presented a case-study regarding a smart contract library named as Parity.”
BackgroundHylock, R. H., & Zeng, X. (2019) · Journal of Medical Internet Research · doi:10.2196/13592 · Cited by 178
“Smart contracts are autonomous transactions executed when stipulated terms of an agreement are met [3,22,51,52,56-59].”
BackgroundPotential Risks of Hyperledger Fabric Smart Contracts
Yamashita, K., Nomura, Y., Zhou, E., Pi, B., & Jun, S. (2019) · 2019 IEEE International Workshop on Blockchain Oriented Software Engineering (IWBOSE) · doi:10.1109/iwbose.2019.8666486 · Cited by 131
Metadata
- Authors
- Destefanis, G., Marchesi, M., Ortu, M., Tonelli, R., Bracciali, A., & Hierons, R.
- Venue
- 2018 International Workshop on Blockchain Oriented Software Engineering (IWBOSE)
- Publisher
- IEEE
- Published
- 2018-03-20
- Pages
- 19-25
- OpenAlex
- W2794481009
- Cited by
- 244
- References
- 12
- FWCI
- 21.92
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.