security question : is it possible in any way for a hacker to deploy a contract to an already existing contract address / in order to overwrite the functions and hijack external calls to this contract?
Jun 26, 2022, 8:56 AM
even in the meantime it is being deployed, it can't "take the place" of the existing code? just to be sure
i saw some exploit that looked like that, where a factory kept testing deploying address until the address matched a lottery win criteria, but i understand that's a different scenario
Jun 26, 2022, 10:12 AM
No, but if there is something at that address and gets selfdestructed yes
Jun 26, 2022, 10:52 AM
I see. Tx
Jun 26, 2022, 11:06 AM
But hacker can't call selfdestruction method without private key of deployed, is it right?
Jun 26, 2022, 11:38 AM
No, depends on how the contract is written
Ok then probably I read that bad the first time who cares
I read you said they needed to implement a function called selfdestruct
Jun 26, 2022, 12:02 PM