max JTT mint (isJuniorOpen) can be breached at the epoch end.
Summary
It is possible when the time is near the epoch end time. This issue cannot be ruled out as out of scope because redemptions are involved, even if you implement redemption fees the atatcker will still do it. And any fix there cannot solve this issue, but to block the junior deposits based on cooldown period feature recommended on recommendation section.
And JTT is not open because its in the limit ratio of STT
So, an attacker can mint STT which will open JTT minting again, so mint some JTT again
Then call redemption request for the minted STT tokens alone. Then wait for few seconds to start a new epoch, and claim the redemption of minted STT back to stables.
Ironsidesec
medium
max JTT mint (
isJuniorOpen
) can be breached at the epoch end.Summary
It is possible when the time is near the epoch end time. This issue cannot be ruled out as out of scope because redemptions are involved, even if you implement redemption fees the atatcker will still do it. And any fix there cannot solve this issue, but to block the junior deposits based on
cooldown period feature
recommended on recommendation section.Vulnerability Detail
https://github.com/sherlock-audit/2024-03-zivoe/blob/01e00e6f27b58392a6fa0b82c84a46a783a0df3c/zivoe-core-foundry/src/ZivoeTranches.sol#L281
Attack path:
So right now, the JTT limit is already breached.
Impact
Code Snippet
https://github.com/sherlock-audit/2024-03-zivoe/blob/01e00e6f27b58392a6fa0b82c84a46a783a0df3c/zivoe-core-foundry/src/ZivoeTranches.sol#L281
Tool used
Manual Review
Recommendation
Maybe block the junior deposit for at least a day if the limit is hit. Think of it as having a cool down period.