Skip to content
Access control Audit finding Intermediate

Any arc token creator can upgrade the implementation

The ArcTokenFactory gives the token creator the DEFAULT_ADMIN_ROLE, which implicitly administers the UPGRADER_ROLE, so any creator can grant themselves upgrade rights and replace the token implementation with malicious logic. This lets them freeze transfers, mint or reassign balances, or run a honeypot and rug-pull purchasers.

jovi Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

50784 sc high any arc token creator can upgrade the implementation

Submitted on Jul 28th 2025 at 14:40:31 UTC by @jovi for Attackathon | Plume Network

{% hint style="danger" %} High severity: attackers with the described capability can permanently compromise user funds and token behavior. {% endhint %}

Description

Brief / Intro

The DEFAULT_ADMIN_ROLE is the (implicit) admin of UPGRADER_ROLE, so every Arc‑token creator can instantly grant themselves upgrade power, swap in malicious logic, and steal or freeze purchaser funds. Since the Arc-token is portrayed as an official and trusted token implementation for Plume, this behavior is unlikely to be removed from the official UI before mitigations are implemented.

Vulnerability Details

When ArcTokenFactory initializes a new token it passes msg.sender as DEFAULT_ADMIN_ROLE (see: https://github.com/immunefi-team/attackathon-plume-network/blob/main/arc/src/ArcTokenFactory.sol#L193). In OpenZeppelin AccessControlUpgradeable, every custom role’s admin defaults to DEFAULT_ADMIN_ROLE unless explicitly overridden. Therefore the creator can immediately call grantRole(UPGRADER_ROLE, self) and gain unrestricted control over the proxy’s implementation — the correct flow, however, would be to only allow the token factory to retain this role (see: https://github.com/immunefi-team/attackathon-plume-network/blob/main/arc/src/ArcTokenFactory.sol#L200).

This enables the ArcToken creator to grant themselves the UPGRADER_ROLE.

Impact Details

Any ArcToken creator is able to modify their created token implementation. This enables exploitative behavior in multiple fronts:

  • Modified transfer implementations can permanently freeze user funds.
  • Modified balance accounting can enable funds to be removed or added arbitrarily.
  • ArcToken purchases can be honeypot: malicious arc token providers can create sales with excessive yield to lure users into purchasing their tokens, receive the earnings from the offering, then rug-pull the token by changing its implementation and claiming the whole yield back to themselves.

Proof of Concept

{% stepper %} {% step %}

Create a token

Someone creates an Arc token. {% endstep %}

{% step %}

Grant upgrader

The creator then grants themself the UPGRADER_ROLE. {% endstep %}

{% step %}

Execute malicious upgrade

The creator can decide when to act maliciously. For example, they can wait for volume on the token, execute honeypot actions to attract purchases, then upgrade the implementation to a malicious one that:

  • Freezes transfers,
  • Reassigns or mints balances to the attacker,
  • Or otherwise drains funds. {% endstep %} {% endstepper %}

References

The original report as published on Immunefi, by jovi. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The factory passes the creator as DEFAULT_ADMIN_ROLE, and OpenZeppelin makes that role the implicit admin of every custom role including UPGRADER_ROLE, instead of keeping admin rights with the factory.

Impact

A token creator could freeze user funds, arbitrarily add or remove balances, or run a honeypot sale and then rug-pull the token by upgrading it and claiming the yield back.

What the attacker needed

Ability to create an Arc token; victims buy the created token

The fix

The factory should retain DEFAULT_ADMIN_ROLE (or otherwise restrict who can administer UPGRADER_ROLE) so that token creators cannot grant themselves upgrade rights.

How it was found

  1. Someone creates an Arc token through the factory.
  2. The creator grants themselves the UPGRADER_ROLE.
  3. The creator later upgrades the implementation to malicious logic that freezes transfers, reassigns or mints balances, or drains funds.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A token is a smart contract that records who owns what. This token is upgradeable, meaning its logic can be swapped for new code, and only someone with the upgrader role should be able to do that. The factory accidentally made the person who created the token the top admin, so they can give themselves the upgrader role and change the rules to steal or lock funds.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by jovi

View all

25 more disclosed reports, best first.

More from Plume Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.