You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call function in the withdraw method includes a payload consisting of whitespace. This unintended whitespace can potentially lead to unexpected behavior during execution.
Impact
The inclusion of whitespace in the payload may cause unintended consequences or failures when interacting with the recipient's fallback function. This could result in improper handling of the Ether transfer and potentially lead to bugs or vulnerabilities.
The text was updated successfully, but these errors were encountered:
Viktor-Andreev4
changed the title
b0g0_ctf - .call in function withdraw(uint256)
b0g0_ctf - .call() in function withdraw(uint256) with whitespace payload
Aug 12, 2024
Description of bug
The call function in the withdraw method includes a payload consisting of whitespace. This unintended whitespace can potentially lead to unexpected behavior during execution.
Impact
The inclusion of whitespace in the payload may cause unintended consequences or failures when interacting with the recipient's fallback function. This could result in improper handling of the Ether transfer and potentially lead to bugs or vulnerabilities.
Solution
Change
(bool success, ) = msg.sender.call{value: depositRequired}(" ");
to(bool success, ) = msg.sender.call{value: depositRequired}("");
The text was updated successfully, but these errors were encountered: