Lune

USENIX Security2026Top-tier venue

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

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Demystifying Exploitable Bugs in Smart Contracts cites Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
  • WASAI: uncovering vulnerabilities in Wasm smart contracts cites EOSAFE: Security Analysis of EOSIO Smart Contracts
  • WASAI: uncovering vulnerabilities in Wasm smart contracts cites Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on13

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

Related papers

  1. Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?Stefanos Chaliasos, Marcos Antonios Charalambous, Liyi Zhou, Rafaila Galanopoulou et al.ICSE 2024 · 49 citations
  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 et al.CCS 2024 · 4 citations
  3. HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi ProtocolsDongyu Meng, Fabio Gritti, Robert McLaughlin, Nicola Ruaro et al.NDSS 2026 · 2 citations
  4. ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 citations
  5. Smart Contract Security: a Practitioners' PerspectiveZhiyuan Wan, Xin Xia, David Lo, Jiachi Chen et al.ICSE 2021 · 58 citations
Dusk over the sea between two cliffs drawn in fine vertical lines