# Unlimited token approval (~1e30) with no disclosure

**URL:** <https://ghostforum.org/t/unlimited-token-approval-1e30-with-no-disclosure/149>\
**Category:** Bug Bounty\
**Tags:** ghost-dao-interface\
**Created:** [October 6, 2026, 2:47am UTC](https://ghostforum.org/t/unlimited-token-approval-1e30-with-no-disclosure/149 "2026-10-06T02:47:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rusdiwireng](https://ghostforum.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@Rusdiwireng](https://ghostforum.org/u/Rusdiwireng)\
**Post date:** [October 6, 2026, 2:47am UTC](https://ghostforum.org/t/unlimited-token-approval-1e30-with-no-disclosure/149/1 "2026-10-06T02:47:46Z")

</div>

**Component:** `ghost-dao-interface` @ `a911859`, `src/components/TokenAllowanceGuard/TokenAllowanceGuard.jsx:78-79`.

**Description:** Whenever an allowance is insufficient, the guard calls `approveTokens` with a hardcoded value:

```js
const bigValue = 100000000000000000000000000000000000000000000000000n;
await approveTokens(chainId, tokenName, owner, spender, bigValue);

```

The value is about 1e48 wei = about 1e30 tokens (18 decimals), effectively unlimited, to the spender (BondDepository, Staking, Router). The UI only shows “Approve” with no disclosure of the unlimited approval and no exact-amount option.

**Impact:** If a spender contract is ever compromised or upgraded to malicious, the user’s entire approved token balance can be drained without a new signature.

**Reproduction:** Read the code lines 74-80; click “Approve” in any Bond/Stake/Swap flow and inspect the `approve` tx in the wallet: `value` = 1e48.

**Severity: Low.** Reason: common industry practice, not directly exploitable today; impact only materializes if the spender contract is compromised. Not purely informational because there is no disclosure or choice for the user.

**Recommendation:** Approve `spendAmount` (exact) as the default, or show explicit “Unlimited approval” text plus an exact-vs-unlimited toggle.

**Verification:** VERIFIED.

---

<div class="post-metadata">

**Author:** ![VoidDragon](https://ghostforum.org/user_avatar/ghostforum.org/voiddragon/32/16_2.png) [@VoidDragon](https://ghostforum.org/u/VoidDragon)\
**Post date:** [October 6, 2026, 9:34am UTC](https://ghostforum.org/t/unlimited-token-approval-1e30-with-no-disclosure/149/2 "2026-10-06T09:34:32Z")

</div>

Thank you for your report!

You are right - that was a deal with the devil. On one hand, it avoids multiple approvals from the user, which would otherwise mean doing each approval right before the transfer. On the other hand, you’re right that it could be potentially dangerous. But when it comes to `BondDepository`, `Staking`, and `Router`, these are non-upgradable smart contracts with predefined logic.

Or do you see any possible issues in the form of a chained attack? What is dangerous about these smart contracts that could lead to unexpected usage of the `approval`?

---

<div class="post-metadata">

**Author:** ![Rusdiwireng](https://ghostforum.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@Rusdiwireng](https://ghostforum.org/u/Rusdiwireng)\
**Post date:** [October 7, 2026, 7:23am UTC](https://ghostforum.org/t/unlimited-token-approval-1e30-with-no-disclosure/149/3 "2026-10-07T07:23:45Z")

</div>

Honest answer: I do not have a concrete chained attack against these three contracts as deployed. The approval is bounded by each contract’s actual transferFrom call sites. BondDepository, Staking, and the Router only pull the amounts their logic requires to the destinations their logic defines, and they are non-upgradable, so there is no privileged function I can point to today that turns the approval into a drain.

The danger is blast-radius amplification, not a demonstrated chain. The approval is a standing, indefinite permission that outlives the user’s intent. If a flaw is ever found in any of those contracts (or in periphery code sharing a spender address), the impact upgrades from “one transaction’s worth” to “everything the user holds.” The user also cannot see the approval amount and has no revoke UI, so the exposure is invisible and indefinite.

That is why I framed it as Low rather than informational: nothing is exploitable today, but the missing disclosure and the missing exact-amount option leave the user exposed to a risk they never consented to. My recommendation stands, with the UX trade-off noted: defaulting to the exact spendAmount costs one extra signature per flow but removes the standing permission; disclosure plus a revoke affordance keeps your current UX and at least makes the risk visible.
