-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non compliance with ERC standards #61
Comments
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 |
@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
The text was updated successfully, but these errors were encountered: