-
Notifications
You must be signed in to change notification settings - Fork 0
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
M-02 MitigationConfirmed #30
Comments
The mitigation review should include more than just links to the issue and the fix. Not much is needed, but at least a description of both. |
alcueca marked the issue as unsatisfactory: |
Original vulnerabilityThe // @POC: WithdrawQueue inherits PausableUpgradeable
contract WithdrawQueue is
Initializable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
WithdrawQueueStorageV1
{
// ...
function pause() external onlyWithdrawQueueAdmin {
_pause();
}
function unpause() external onlyWithdrawQueueAdmin {
_unpause();
}
// ...
} The issue is that the user-accessible contract WithdrawQueue is
Initializable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
WithdrawQueueStorageV1
{
// ...
function withdraw(uint256 _amount, address _assetOut) external nonReentrant {
// ...
}
function claim(uint256 withdrawRequestIndex) external nonReentrant {
// ...
}
} Mitigation analysisThe mitigation successfully fixes this issue by introducing the - function withdraw(uint256 _amount, address _assetOut) external nonReentrant {
+ function withdraw(uint256 _amount, address _assetOut) external nonReentrant whenNotPaused {
- function claim(uint256 withdrawRequestIndex) external nonReentrant {
+ function claim(uint256 withdrawRequestIndex) external nonReentrant whenNotPaused { This mitigation ensures that mean admins decide to pause these functionalities, they'll be able to do so by calling the permissioned function |
alcueca marked the issue as satisfactory |
Lines of code
Vulnerability details
The fix applied by the team fully mitigates M-02.
The text was updated successfully, but these errors were encountered: