Secret Vault on Aptos

First Flight #46
Beginner FriendlyWallet
100 EXP
View results
Submission Details
Severity: high
Valid

Secret is stored in plain text

Root + Impact

The secret in set_secret is stored in plain text and the blockchain is a global storage, hence anyone can check the contents of the secret from the account resources

Description

Sensitive information like secrets/passwords should not store it's original contents but the hash of it's contents should be stored instead

Risk

Likelihood:

High: Anyone can check the contents of the caller's resoiurces to see the secret

Impact:

High: Exposed Keys

Recommended Mitigation

Hash the secret in set_secret before storing the value in the vault

Updates

Lead Judging Commences

bube Lead Judge 17 days ago
Submission Judgement Published
Validated
Assigned finding tags:

Anyone can see the `secret` on chain

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.