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

POTENTIAL RISK OF SENSITIVE DATA EXPOSURE THROUGH CLIPBOARD #51

Open
iuricmp opened this issue Mar 6, 2025 · 0 comments
Open

POTENTIAL RISK OF SENSITIVE DATA EXPOSURE THROUGH CLIPBOARD #51

iuricmp opened this issue Mar 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@iuricmp
Copy link
Collaborator

iuricmp commented Mar 6, 2025

The wallet application facilitates copying sensitive data, specifically mnemonic and private key
passphrases, to the clipboard. This functionality presents a significant security risk, as clipboard data could
be accessed both locally and remotely by unauthorized processes or malicious web pages. Attackers can
exploit this vulnerability by leveraging scripts or pages designed to capture clipboard content, thereby
compromising the confidentiality of critical information.
Furthermore, in multi-device environments where clipboard sharing is enabled (such as between
smartphones, tablets, and laptops), sensitive data copied to the clipboard can be inadvertently exposed
across multiple devices. This significantly increases the attack surface, as an attacker gaining access to
any linked device can retrieve the copied mnemonic or private key.

#Recommendation

It is recommended to avoid providing a direct copy-to-clipboard feature for sensitive information, such as
mnemonic and private key passphrases. Instead, consider implementing a secure display mechanism that
requires users to manually input or write down the passphrase. If clipboard functionality is essential for user
experience, implement automatic clipboard clearing after a short period to reduce exposure time.
Additionally, display a warning when sensitive information is copied, advising users to clear their clipboard
and avoid copying data in shared or multi-device environments where clipboard data can be synchronized
across devices. Another option is to allow users to copy almost all the information necessary but not the complete secret, this way, the secret is not copied entirely to the clipboard. These measures will
significantly reduce the risk of unauthorized access to sensitive information.

@jefft0 jefft0 added the bug Something isn't working label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants