---
title: "State divergence enables unauthorized access"
description: "Provenance Blockchain's marker module let any account grant itself ACCESS_ADMIN, mint and withdraw rights on non-fixed-supply markers."
url: "https://swe.quest/articles/state-divergence-enables-unauthorized-access-436a19d8a315c057"
canonical: "https://blog.trailofbits.com/2026/08/25/state-divergence-enables-unauthorized-access/"
source: "Trail of Bits"
published: "2026-08-25"
difficulty: "medium"
kind: "Incident"
reading_minutes: 6
tags: ["vulnerability-research","identity-auth","security","go"]
---

# State divergence enables unauthorized access

A post on [Trail of Bits](https://swe.quest/sources/trail-of-bits.md), published 2026-08-25, 6 min read, Incident. Original: [https://blog.trailofbits.com/2026/08/25/state-divergence-enables-unauthorized-access/](https://blog.trailofbits.com/2026/08/25/state-divergence-enables-unauthorized-access/)

## Summary

Provenance Blockchain's marker module let any account grant itself ACCESS\_ADMIN, mint and withdraw rights on non-fixed-supply markers. The authorization check compared the caller's bank balance to a stale supply field on the marker struct that stays zero, so a caller holding nothing passed via 0 == 0. Two transactions were enough to mint arbitrary tokens or drain escrow, putting 82 mainnet markers and about $500,000 in escrowed nhash at risk. The fix reads live supply from the bank module and adds an explicit zero-supply guard, illustrating that an authorization predicate must never be satisfiable from an attacker's default state.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Go](https://swe.quest/tags/go.md) (Languages)

## Prerequisites

- Cosmos SDK modules ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- blockchain token accounts
- access control lists

## Keywords

Provenance Blockchain, Cosmos SDK, marker module, accountControlsAllSupply, MsgAddAccessRequest, Trail of Bits

## Related posts

- [Building secure Uniswap v4 hooks](https://swe.quest/articles/building-secure-uniswap-v4-hooks-7105ffcb5aa554ad.md): Trail of Bits · 2026-07-30 · Hard · 11 min read · Application security, Security, Vulnerability research
  Uniswap v4 hooks shift security responsibility onto application code: the PoolManager enforces swap math, callback sequencing and end-of-session settlement, but not a hook's authorization or internal accounting.
- [After Binance, check what your signing systems can approve](https://swe.quest/articles/after-binance-check-what-your-signing-systems-can-approve-8695852207e4a776.md): Trail of Bits · 2026-11-06 · Hard · 4 min read · Security, Incidents & postmortems, Threat detection, Identity & auth
  Binance's October 2026 breach showed that attackers who compromise a service allowed to request signatures can misuse a protected key without ever extracting it.
- [Mutation testing comes to DAML](https://swe.quest/articles/mutation-testing-comes-to-daml-6aa877043950ef44.md): Trail of Bits · 2026-07-08 · Medium · 10 min read · Testing, Identity & auth, Security, Open source
  Mewt, Trail of Bits' open-source mutation-testing engine, now supports DAML, the smart-contract language for Canton Network, adding controller party swap and controller party removal mutations that target authorization bugs.
- [Building Overexposed: understanding application exposure](https://swe.quest/articles/building-overexposed-understanding-application-exposure-db7e9a3ccc65fc14.md): Shopify Engineering · 2026-10-19 · Medium · 9 min read · Security, Identity & auth, Cloud platforms, Kubernetes, Application security
  Overexposed is Shopify's scheduled scanner for finding GKE Ingresses and Cloud Run services reachable without authentication.
- [Coding Agent Horror Stories: The CVE That Did Not Exist](https://swe.quest/articles/coding-agent-horror-stories-the-cve-that-did-not-exist-6a97fa18ca5ac54f.md): Docker · 2026-10-29 · Medium · 15 min read · AI agents, Sandboxing & isolation, AI for coding, Code review, CI/CD
  A self-hosted, read-only AI code review bot running on Ollama answered a routine PostgreSQL 16.11→16.13 patch bump with a 1,500-word report alleging an "architectural takeover".

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
