Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value contract allows overwriting arbitrary keys in store #258

Open
pierluca opened this issue Jul 24, 2023 · 0 comments
Open

Value contract allows overwriting arbitrary keys in store #258

pierluca opened this issue Jul 24, 2023 · 0 comments
Labels
bug Something isn't working security

Comments

@pierluca
Copy link
Contributor

The value contract does not prefix the keys provided by the smart contract user to store a value.
As such, a malicious user could overwrite any key/value combination in the store, including other contracts'.

This is a non-critical because the value contract is a toy contract and not used in production, but it should be addressed nonetheless.

@pierluca pierluca added bug Something isn't working security labels Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working security
Projects
None yet
Development

No branches or pull requests

1 participant