In depositFsGlp() function AMOUNT should be checked with caller or msg.sender wallet balance using REQUIRE statement . #134
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
edited-by-warden
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2022-11-redactedcartel/blob/03b71a8d395c02324cb9fdaf92401357da5b19d1/src/PirexGmx.sol#L422-L465
Vulnerability details
Impact
Its possible attacker can call depositFsGlp() function recursively without having any fsGLP Token . Attacker can block the depositFsGlp() function inactive or Denial-of-Service (DoS) . Attacker can create flooding the target with traffic. Attacker can create artificial traffic for depositFsGlp() function.
Proof of Concept
The above line should be added before the stakedGlp.safeTransferFrom call . Need to make sure msg.sender balance is greater than amount .
Manual finding with vscode
Recommended Mitigation Steps
Can use require statements to make sure the MSG.SENDER balance
The text was updated successfully, but these errors were encountered: