Missing non reentrancy modifier
Many public and external functions in the NFTX contracts lack the nonReentrant modifier that other functions use. The author did not find an exploit, but the judge raised severity because reentrancy is a real risk even without a demonstrated attack path.
Submitted by robee
The following functions are missing reentrancy modifier although some other pulbic/external functions does use reentrancy modifer. Even though I did not find a way to exploit it, it seems like those functions should have the nonReentrant modifier as the other functions have it as well..
NFTXMarketplaceZap.sol, receive is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, __SimpleFeeDistributor__init__ is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, addReceiver is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, initializeVaultReceivers is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, changeReceiverAlloc is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, changeReceiverAddress is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, removeReceiver is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, setTreasuryAddress is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, setLPStakingAddress is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, setInventoryStakingAddress is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, setNFTXVaultFactory is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, pauseFeeDistribution is missing a reentrancy modifier
NFTXSimpleFeeDistributor.sol, rescueTokens is missing a reentrancy modifier
NFTXStakingZap.sol, setLPLockTime is missing a reentrancy modifier
NFTXStakingZap.sol, setInventoryLockTime is missing a reentrancy modifier
NFTXStakingZap.sol, provideInventory721 is missing a reentrancy modifier
NFTXStakingZap.sol, provideInventory1155 is missing a reentrancy modifier
NFTXStakingZap.sol, addLiquidity721ETH is missing a reentrancy modifier
NFTXStakingZap.sol, addLiquidity1155ETH is missing a reentrancy modifier
NFTXStakingZap.sol, addLiquidity721 is missing a reentrancy modifier
NFTXStakingZap.sol, addLiquidity1155 is missing a reentrancy modifier
NFTXStakingZap.sol, receive is missing a reentrancy modifier
NFTXStakingZap.sol, rescue is missing a reentrancy modifier
NFTXV1Buyout.sol, __NFTXV1Buyout_init is missing a reentrancy modifier
NFTXV1Buyout.sol, emergencyWithdraw is missing a reentrancy modifier
NFTXV1Buyout.sol, clearBuyout is missing a reentrancy modifier
NFTXV1Buyout.sol, addBuyout is missing a reentrancy modifier
NFTXV1Buyout.sol, removeBuyout is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, __NFTXVault_init is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, finalizeVault is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, setVaultMetadata is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, setVaultFeatures is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, assignDefaultFeatures is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, setFees is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, disableVaultFees is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, deployEligibilityStorage is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, setManager is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, mint is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, redeem is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, swap is missing a reentrancy modifier
NFTXVaultUpgradeable.sol, flashLoan is missing a reentrancy modifier
PalmNFTXStakingZap.sol, setLockTime is missing a reentrancy modifier
PalmNFTXStakingZap.sol, addLiquidity721 is missing a reentrancy modifier
PalmNFTXStakingZap.sol, addLiquidity1155 is missing a reentrancy modifier
PalmNFTXStakingZap.sol, receive is missing a reentrancy modifier
LSDan (judge) increased severity to medium and commented:
I’m updating this [from a low] to a medium. Reentrancy represents a real and significant risk (as evident by ETC existing) and should be protected against regardless of if you can foresee the external event that causes lack of protection to be an issue.
2 — Med (M): vulns have a risk of 2 and are considered “Medium” severity when assets are not at direct risk, but the function of the protocol or its availability could be impacted, or leak value with a hypothetical attack path with stated assumptions, but external requirements.
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
Likely the developers applied the nonReentrant modifier inconsistently, leaving many external and public functions without the guard.
Impact
The text does not demonstrate an exploit; the judge noted a hypothetical attack path with stated assumptions and external requirements, so the practical impact is unproven.
What the attacker needed
None demonstrated
The fix
The functions should be protected with the nonReentrant modifier, as the report suggests.
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.
Reentrancy is when a contract calls another contract, and that other contract calls back into the first one before the first call finishes, potentially confusing its state. This report lists many functions that do not have a guard against that, but it does not show a working attack. The judge still treated it as a medium risk because the missing guard is a real weakness.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.