Skip to content
Business logic Audit finding Intermediate

Minting Cap can by bypassed while self minting

Oxgritty Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#46108 [SC-Medium] Minting Cap can by bypassed while self minting

Submitted on May 25th 2025 at 00:34:50 UTC by @Oxgritty for Audit Comp | Flare | FAssets

Description

Brief/Intro

  • Minting Cap can be bypassed when Agent Owner does self minting, due to lack of proper checks in Minting.sol::selfMint.

Vulnerability Details

  • When minting is done for a normal user or agent does self minting, two amounts are minted mintValueUBA and _poolFeeUBA.
  • So its important that, before minting we account for both the amounts while checking minting cap, but in Minting.sol::selfMint this check is only done for mintValue, meaning poolFee will be minted over the limit.

Impact Details

  • Minting Cap plays an important role in ensuring proper functioning of the protocol and this bug allows the agent vault owner to do bypass it.

References

  • Correct checking when a user mints
  • Flawed minting cap check when agent owner self mints

Proof of Concept

POC [Note: All units are in AMG for simplicity]

Step 1: Assumptions we are making:

  1. mintingCapAMG = 10000000000
  2. mintValueAMG = 10000000000
  3. Agent Owner has sufficient collateral in the system to self mint.
  4. mintFee = 1000000000 (10% of mintValueAMG)
  5. poolFee = 400000000 (40% of mintFee)

Step 2: Agent Owner calls MintingFacet.sol::selfMint

  • When control flow will reach Minting.sol::selfMint, minting cap check will be done for mintValue and not mintValue + poolFee.
  • mintValue worth of fassets will be minted to minter address and poolFee worth of fassets will be minted to collateral pool, effectively bypassing the minting cap.

The original report as published on Immunefi, by Oxgritty. 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.

What is known

A medium-severity business logic bug in https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/library/Minting.sol. Immunefi made it public on 25 May 2025.

About Business logic

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

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

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Oxgritty

View all

5 more disclosed reports, best first.

More from Flare | FAssets

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.