Lune

USENIX Security2026顶会

The Perils of Flexibility: Uncovering Application-Layer Vulnerabilities in Cosmos SDK Customization Points

Pengxiang Ma, Ningyu He, Zhongchun Cao, Zihao Li, Xiapu Luo

问 Lune

摘要

The Cosmos SDK is a premier blockchain development framework that facilitates the construction of application-layer logic through reusable modules and extensible customization interfaces. Currently, the Cosmos ecosystem encompasses over one hundred production blockchains, reaching a peak total market capitalization exceeding 32billion.Whilethismodulararchitecturesignificantlylowersdevelopmentbarriers,itsimultaneouslyexpandstheapplication−layerattacksurface,asdeveloper−accessiblecustomizationpointsaresusceptibletomisuseorincorrectcomposition.Inthiswork,wepresentasecurityanalysisofapplication−layerpitfallswithinCosmos−basedblockchains.Byanalyzingthetransactionexecutionlifecycleanddeveloper−accessiblecustomizationpoints,weformalizefourexecutioninvariantsessentialforcorrecttransactionprocessing.Guidedbytheseinvariants,weidentifyeightrecurringclassesoferror−pronedevelopmentpatternsinwhichviolationscompromisetransactionsafety,resultinginsevereconsequencesrangingfromassetthefttochain−haltingfailures.Toassesstheprevalenceandimpactofthesepitfalls,weconductedanecosystem−wideempiricalanalysis,uncovering65vulnerabilitiesacrossvariousCosmos−basedblockchains.Followingresponsibledisclosure,26ofthesevulnerabilitieswereacknowledgedbytheaffectedprojectteams,with19subsequentlyreceivingpublicfixesandtworesultinginassignedCVEidentifiers.Thesedisclosuresyielded32 billion. While this modular architecture significantly lowers development barriers, it simultaneously expands the application-layer attack surface, as developer-accessible customization points are susceptible to misuse or incorrect composition. In this work, we present a security analysis of application-layer pitfalls within Cosmos-based blockchains. By analyzing the transaction execution lifecycle and developer-accessible customization points, we formalize four execution invariants essential for correct transaction processing. Guided by these invariants, we identify eight recurring classes of error-prone development patterns in which violations compromise transaction safety, resulting in severe consequences ranging from asset theft to chain-halting failures. To assess the prevalence and impact of these pitfalls, we conducted an ecosystem-wide empirical analysis, uncovering 65 vulnerabilities across various Cosmos-based blockchains. Following responsible disclosure, 26 of these vulnerabilities were acknowledged by the affected project teams, with 19 subsequently receiving public fixes and two resulting in assigned CVE identifiers. These disclosures yielded 51,000 in bug bounty rewards and prevented potential asset theft affecting assets valued in the tens of millions of dollars. Our findings demonstrate that application-layer vulnerabilities are widespread in the Cosmos ecosystem and underscore the critical need for increased rigor in application-layer design, development, and auditing.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Demystifying Exploitable Bugs in Smart Contracts 引用了 Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
  • WASAI: uncovering vulnerabilities in Wasm smart contracts 引用了 EOSAFE: Security Analysis of EOSIO Smart Contracts
  • WASAI: uncovering vulnerabilities in Wasm smart contracts 引用了 Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper13

  1. Empirical review of automated analysis tools on 47, 587 Ethereum smart contractsThomas Durieux, João F. Ferreira, Rui Abreu, Pedro CruzICSE 2020 · 373 次引用
  2. Demystifying Exploitable Bugs in Smart ContractsZhuo Zhang, Brian Zhang, Wen Xu, Zhiqiang LinICSE 2023 · 80 次引用
  3. EOSAFE: Security Analysis of EOSIO Smart ContractsNingyu He, Ruiyi Zhang, Haoyu Wang, Lei Wu 等USENIX Security 2021 · 69 次引用
  4. Finding Consensus Bugs in Ethereum via Multi-transaction Differential FuzzingYoungseok Yang, Taesoo Kim, Byung-Gon ChunOSDI 2021 · 57 次引用
  5. WASAI: uncovering vulnerabilities in Wasm smart contractsWeimin Chen, Zihan Sun, Haoyu Wang, Xiapu Luo 等ISSTA 2022 · 43 次引用

相关 Paper

  1. Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?Stefanos Chaliasos, Marcos Antonios Charalambous, Liyi Zhou, Rafaila Galanopoulou 等ICSE 2024 · 49 次引用
  2. Defying the Odds: Solana's Unexpected Resilience in Spite of the Security Challenges Faced by DevelopersSébastien Andreina, Tobias Cloosters, Lucas Davi, Jens-Rene Giesen 等CCS 2024 · 4 次引用
  3. HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi ProtocolsDongyu Meng, Fabio Gritti, Robert McLaughlin, Nicola Ruaro 等NDSS 2026 · 2 次引用
  4. ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 次引用
  5. Smart Contract Security: a Practitioners' PerspectiveZhiyuan Wan, Xin Xia, David Lo, Jiachi Chen 等ICSE 2021 · 58 次引用
黄昏的海面,两侧是细线勾勒的悬崖