sherlock-audit / 2024-09-predict-fun-judging

5 stars 4 forks source link

smbv-1923 - `whenNotPaused()` modifier not checked during `call()` which creates problem #321

Open sherlock-admin3 opened 1 month ago

sherlock-admin3 commented 1 month ago

smbv-1923

Medium

whenNotPaused() modifier not checked during call() which creates problem

Summary

whenNotPaused() modifier not checked during call() which creates problem

Root Cause

https://github.com/sherlock-audit/2024-09-predict-fun/blob/main/predict-dot-loan/contracts/PredictDotLoan.sol#L561

Internal pre-conditions

Contract should be paused when user calls call()

External pre-conditions

No response

Attack Path

Impact

PoC

No response

Mitigation

Add whenNotPaused() modifier during call()