Skip to content

Commit d375cf0

Browse files
Small fixes
Co-authored-by: Samuel Moelius <[email protected]>
1 parent 843902b commit d375cf0

File tree

1 file changed

+1
-1
lines changed
  • not-so-smart-contracts/solana/signer_check

1 file changed

+1
-1
lines changed

not-so-smart-contracts/solana/signer_check/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In case certain permissions are required to perform a sensitive function of the
66

77
## Exploit Scenario
88
The following contract updates the current market owner with a new one. Unfortunately, the only check being done here is against the current owner’s public key prior to setting a new owner.
9-
Therefore, a malicious actor can set themselves as the new owner without being the actual market owner. This is because the current owner’s private key isn’t being verified considering the contract doesn’t check that the attacker has signed or not.
9+
Therefore, a malicious actor can set themselves as the new owner without being the actual market owner. This is because the current owner’s private key isn’t being verified considering the contract doesn’t check whether the account holder has signed or not.
1010

1111
### Example Contract
1212
```rust

0 commit comments

Comments
 (0)