Basket.sol#mint() Malfunction due to extra nonReentrant modifier
The mint function in Basket.sol is broken because it has a nonReentrant modifier while the mintTo function it calls also has one, causing the call to revert. As a result, no one can mint tokens, impacting protocol availability.
Mint is factually broken, definitely an oversight. I don’t think high severity is correct here though as since no-one can mint, no funds are at risk. I’ll go with medium severity as per the docs:
2 — Med: Assets 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.
The original report as published on Code4rena, by WatchPug. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Generating the AI write-up for this report.
This usually takes about 40 seconds. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
How it worked
Impact
The mint function is completely broken, so no one can mint tokens, which impacts the protocol's availability but does not put funds at direct risk.
What the attacker needed
None
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.
Generating the AI write-up for this report.
This usually takes about 40 seconds. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
A nonReentrant modifier is a lock that prevents a function from being called again while it is still running. Here, the mint function locks, then calls mintTo which tries to lock again, so the second lock fails and the whole call reverts. This means the mint feature does not work at all.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.