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 donate function in the EtherCharity contract lacks proper access control, allowing anyone to call the function and transfer the contract’s balance to an arbitrary address. This exposes the contract to potential exploitation, as unauthorized users can drain its funds.
Vulnerable Code
function donate(address beneficiary) {
selfdestruct(beneficiary);
}
Impact
All funds in the EtherCharity contract are at risk of being stolen.
The text was updated successfully, but these errors were encountered:
Filepath
contracts/misc/ErrorPartnerSale.sol
Description
The donate function in the EtherCharity contract lacks proper access control, allowing anyone to call the function and transfer the contract’s balance to an arbitrary address. This exposes the contract to potential exploitation, as unauthorized users can drain its funds.
Vulnerable Code
Impact
All funds in the EtherCharity contract are at risk of being stolen.
The text was updated successfully, but these errors were encountered: