Can one app read data from clipboard copied in another app [duplicate]

Let's say I'm working in application A and copy some sensitive data to clipboard. Can application B which is opened at the moment catch the information I've copied?

Does OS X protect from such vulnerabilities?

Update: To be more specific what if I copy a password from a password manager, is the pass accessible for all the apps while it is in clipboard? If so how password managers protect a user in this case?


This is not a vulnerability per se.

The clipboard is accessible system wide which is why you can copy something from application A and paste it to application B.

It's not meant nor does it function as a secure holing area.

If an application has sensitive data fields, it is up to the developers to block clipboard access to the data. For all intents and purposes, once info is in the clipboard, it's accessible.

As a test and demo, copy your password from your password manager. Open terminal and type the command pbpaste. It will output the password that's residing in your clipboard.


It's probably worth stating that having any app on your system which you do not trust is not advisable.

As others have already mentioned (and this post is old, so this benefits only those who stumble upon it later), there are ways in some password managers (I'm familiar with 1Password, personally) that can remove that item from your clipboard after a predetermined period of time. However, beyond that concern, I would seriously question the idea of running an app for which you do not have a certain level of trust. If you have any doubts, that's the first thing I'd resolve.