You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by Trail of Bits from their EthStaker Deposit CLI Security Assessment DRAFT report presented on October 8 2024. The description was updated on November 14 2024.
Description
The kdf_salt and aes_iv default parameters of the encrypt method are chosen at program initialization, rather than when the function is called. This means that duplicate calls to the function will produce the same kdf_salt and aes_iv values unless they are manually specified in the function call. This means, for example, that a call to new-mnemonic will produce multiple keystores with the same IV and salt values. This seriously weakens the encryption strength of these keystore files.
Short term, set these default parameter values to None. Add if statements in the function body to check if the value is None, and if so, assign a random value.
The text was updated successfully, but these errors were encountered:
Reported by Trail of Bits from their EthStaker Deposit CLI Security Assessment DRAFT report presented on October 8 2024. The description was updated on November 14 2024.
Description
The kdf_salt and aes_iv default parameters of the encrypt method are chosen at program initialization, rather than when the function is called. This means that duplicate calls to the function will produce the same kdf_salt and aes_iv values unless they are manually specified in the function call. This means, for example, that a call to new-mnemonic will produce multiple keystores with the same IV and salt values. This seriously weakens the encryption strength of these keystore files.
Recommendations
Short term, set these default parameter values to None. Add if statements in the function body to check if the value is None, and if so, assign a random value.
The text was updated successfully, but these errors were encountered: