Skip to content

Commit c6fa930

Browse files
authored
Create BankV1.md
1 parent 9ef2143 commit c6fa930

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

solutions/BankV1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## BankV1 issue explanation
2+
3+
The problem is that the developers deal with blockchain and the Web3 ecosystem as they do with Web2. They used `private` variables to secure clients' data and prevent anyone from knowing it.
4+
5+
But in the Ethereum Blockchain (public Blockchain), all data is public. There is no way to store data and prevent users from knowing it. All data on the Ethereum blockchain is public even if they are declared with the `private` modifier, and anyone can see the storage of the contract.
6+
7+
The attacker reads the stored variables that contain the Client's password and withdraws their money to himself.

0 commit comments

Comments
 (0)