Closed c4-bot-7 closed 8 months ago
gzeon-c4 marked the issue as primary issue
gzeon-c4 marked the issue as duplicate of #33
gzeon-c4 marked the issue as sufficient quality report
JustDravee marked the issue as partial-25
JustDravee marked the issue as satisfactory
JustDravee marked the issue as partial-25
@JustDravee Wondering why this is partial-25 whereas issue #116 is partial-75?
@Shubh0412 because that person had several submissions under the duplicated finding and I totaled them
Lines of code
https://github.com/code-423n4/2024-02-spectra/blob/main/src/tokens/PrincipalToken.sol#L483
Vulnerability details
The
maxRedeem
functions should return the0
when the withdrawal is paused. But here, it's returning_maxBurnable(owner)
.Proof of Concept
According to the ERC-5095 standards:
But inside the Principal token contract, the function can be called even if the contract is paused.
Tools Used
Manual Review & ERC-5095
Recommended Mitigation Steps
Add
whenNotPaused
modifier inmaxRedeem
function.Assessed type
Error