Skip to content

Is it possible for someone to have permission to invoke the execute function as an attack #48

Closed Answered by PaulRBerg
BradMoonUESTC asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, this is possible, but it's just a natural consequence of the power of DELEGATECALL. You should note, however, that the execute does not allow any target contract to change the owner:

https://github.com/paulrberg/prb-proxy/blob/0cab8248a4c513fa86e4064c352cff054d54ff90/contracts/PRBProxy.sol#L91-L94

But besides that, the target can do whatever it wants to the proxy. That's by design.

Also - if indeed the target was malicious, why would it take a detour and approve another malicious target? Why would it not peform the attack itself?

Bottom line is - users just should be very careful what target contracts they interact with via PRBProxy. Just like they should be very careful what contrac…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants