Skip to content

Sherlock

stNXM by EaseDeFi

Every publicly disclosed report for stNXM by EaseDeFi and what kind of bugs they were.

disclosed reports
12
most reported class
Business logic
bug classes found
5
first disclosure
2025
Find stNXM by EaseDeFi on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what stNXM by EaseDeFi chose to make public.

Business logic

Missing Tranche Tracking After `extendDeposit()` Causes Temporary Asset Underreporting

The extendDeposit() function moves a staking position into a new tranche but does not record the new tranche in the tokenIdToTranches mapping. As a result, stakedNxm() and totalAssets() underreport the vault's holdings until resetTranches() is called, which could let a depositor obtain an inflated number of shares.

stNXM by EaseDeFi

Medium
Business logic

Admin fees are applied to NMX tokens during migration

During the migration of NXM tokens from the old arNXM contract to the new stNXM contract, the update modifier incorrectly calculates admin fees on the entire migrated balance because the staked amount is zero. This allows a malicious user or the owner to charge admin fees on all migrated NXM tokens, reducing users' balances.

stNXM by EaseDeFi

Medium
Business logic

Wrong price validation in oracle causes early DoS and allows late-stage price manipulation

The oracle's sanity check computes an annualised percentage yield by dividing by the time elapsed since the protocol started, which magnifies small normal price deviations early on and lets large deviations pass later. This can cause the Morpho market to revert on health checks early and allow abnormal prices to be accepted later.

stNXM by EaseDeFi

Medium
Business logic

Expired tranche cannot be extended due to lack of token allowance

The StNXM contract only approves the top-up amount of NXM tokens to the TokenController, but when extending an expired tranche the StakingPool withdraws the full stake and redeposits it together with the top-up, requiring approval for the larger total. As a result, the redeposit fails and the transaction reverts, leaving the extension incomplete.

stNXM by EaseDeFi

Medium
Access control

The vault can be drained

The owner-only stakeNxm function does not verify that the vault owns the requested NFT token ID, so an admin can approve the vault for an NFT they still own and have vault funds staked to that NFT. The admin can then withdraw the stake, taking assets funded by the vault.

stNXM by EaseDeFi

High
Access control

Owner can steal funds on withdraw by burning wrong Uniswap V3 position liquidity

The vault's decreaseLiquidity function does not verify that the supplied Uniswap V3 position tokenId belongs to the wNxm/stNxm pool. The owner can pass a tokenId from a different pool, causing the vault to burn its own shares and allowing the owner to withdraw more assets while other users' withdrawals are blocked.

stNXM by EaseDeFi

High
Access control

Owner can steal funds from contract by calling stakeNxm() with fake pool address

The contract owner can pass a fake staking pool address to stakeNxm(), which is stored without validation. By setting themselves as fee beneficiary and calling getRewards(), the fake pool returns inflated rewards, increasing adminFees so the owner can withdraw the contract's entire wNXM balance.

stNXM by EaseDeFi

High
Business logic

pushing same tranchId to the tokenIdToTranches will inflate stakedNxm accounting

The stNXM contract adds a tranche ID to a token's tranche list without checking for duplicates, so repeated staking with the same tranche ID inflates the computed stakedNxm and totalAssets. This can lead to incorrect minting and redemption amounts, and a malicious owner could exploit it to redeem at an inflated value.

stNXM by EaseDeFi

Medium