paint-brush
How to Solve the Ethernaut Game's Level 4: Telephoneby@kamilpolak
2,184 reads
2,184 reads

How to Solve the Ethernaut Game's Level 4: Telephone

by Kamil Polak3mJanuary 24th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In level 4 of the Ethernaut Game our goal is to claim ownership of the `Telephone` contract. In this game we use a simple contract with only one function and constructor that assigns the ownership to the address that deployed the contract. To claim the ownership we need to first understand what is the difference between `tx.origin` and `msg.sender` and why contracts that use the `txorigin` to authorize users are vulnerable to phishing attacks. We need to create a new malicious contract and encourage the owner to call a specific function that under the hood will change the ownership.

Coin Mentioned

Mention Thumbnail
featured image - How to Solve the Ethernaut Game's Level 4: Telephone
Kamil Polak HackerNoon profile picture
Kamil Polak

Kamil Polak

@kamilpolak

I am a huge enthusiast of cryptocurrency and blockchain technology.

About @kamilpolak
LEARN MORE ABOUT @KAMILPOLAK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kamil Polak HackerNoon profile picture
Kamil Polak@kamilpolak
I am a huge enthusiast of cryptocurrency and blockchain technology.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Allella
Ktachibana
Moomoo
Learnrepo
Coffee-web
Kavin
Leftic