9 ms·
Any app can capture everything you put in your android clipboard and it does not need to ask for permission to do it. So don't copy passwords into your clipboa
by sschueller 10y ago
Any app can capture everything you put in your android clipboard and it does not need to ask for permission to do it.
So don't copy passwords into your clipboard!
- m_eiman 10y agoCan they access this while running in the background?
- sschueller 10y agoYes, you can write a background service that will be called when there is a change in the clipboard. You can even close the app and it will be restarted in the background when a clipboard change happens. I know this because I wrote an app[1] that does precisely this and looks for a specific URL in the clipboard. I was surprised when I found out I don't need to ask for permission to read clipboard changes. [1] https://play.google.com/store/apps/details?id=net.schueller.instarepost https://play.google.com/store/apps/details?id=net.schueller....
- m_eiman 10y agoOuch, that sounds like something that should have a permission. Permission for background or programmatic access, none needed to receive pastes initiated by user seems reasonable IMHO.
- dfox 10y agoThat would require reliably deciding whether the action was in fact initiated by user, which is hard in browser environment and probably impossible for android.
- poizan42 10y agoThe answer to that may actually be quite simple: The keyboard app is the one that should be allowed to read from the clipboard. Now can a keyboard spy on you clipboard contents? Sure. But it can also spy on all your keystrokes, so the trust must already be there.
- dfox 10y agoThat assumes that clipboard can only contain text, which I'm not sure whether is so on Android, but on all major desktop UI systems clipboard can not only contain arbitrary data, but even allows for negotiation of supported formats between source and destination.
- candiodari 10y agoBut, that's done on websites as well, and frankly it's annoying. Giving apps the ability to put stuff into the clipboard and extract it out again has been made too hard (and one of the few remaining applications of flash). I'd even settle for the ability to put stuff in the clipboard programmatically ... This is a case of overly broad security imho.
- ploggingdev 10y ago> But, that's done on websites as well Can websites running in background tabs access the clipboard contents on the Desktop?
- btown 10y agoThe spec says no, but there's no guarantee that a browser implementation doesn't "through an implementation-dependent mechanism" give this access by default. https://www.w3.org/TR/clipboard-apis/#event-handlers-that-are-allowed-to-read-from-clipboard https://www.w3.org/TR/clipboard-apis/#event-handlers-that-ar...
- emodendroket 10y agoIn my experience browsers won't let you see the clipboard at all unless the user initiates a paste event.
- makomk 10y agoThis is, incidentally, used by KDE Connect and possibly other apps to do clipboard synchronization with PCs.
- maxxxxx 10y agoWow. That's insane.
- izacus 10y agoHmm, I know iOS allowed that as well for a long while (basically free-for-all access to the pasteboard). Was that fixed in later iOS versions?
- m_eiman 10y agoIt's not obviously blocked, as far as I can see: https://developer.apple.com/reference/uikit/uipasteboard https://developer.apple.com/reference/uikit/uipasteboard Then there's the usual "no running in the background" obstacles, but assuming you can get around that…
- BoorishBears 10y agoWhy are you assuming that? There are multiple permissions that would become dangerous if it was trivial to bypass those checks.
- 0x0 10y agoIt's even worse with Universal Clipboard, the feature that seamlessly shares your active clipboard between your mac and iOS devices. I have seen the official Facebook iOS app trigger a "Pasting from <mac-hostname>..." spinner when starting up, because Facebook silently steals your clipboard on startup/resume, and they are probably an API that happens to now possess Universal Clipboard powers and thus are triggering a clipboard content pull from the mac.
- ClassyJacket 10y agoThis is a big problem. If I try to paste something on my iPhone, my iPhone pauses for 5 - 10 seconds while it fetches the clipboard. Plus apps being able to read it with no user action is not acceptable to me. I don't like that Facebook can or that Facebook does read my clipboard to every time I start it up.
- retox 10y agoI'm still astonished people on HN trust Facebook enough to have any of their apps installed. Since day one their developers have shown complete disregard for users privacy.
- jononor 10y agoHm. What mechanism does password managers like Onepass and Lastpass use?
- tyfon 10y agoI only use KeepAss, but it provides it's own keyboard so that when you have an entry selected in the app you can press the "user" and "password" keyboard buttons without copying. I assume (hope) the others do it the same way. Clipboard memory has _never_ been safe not on PC and not on phones.
- pdw 10y agoWhich app do you use? I'm using KeePassDroid, which seems to be the most popular, and as far as I can tell it only supports the clipboard method.
- kenny_r 10y agoI'm not the person you replied to, but Keepass2Android [0] has the custom keyboard for password entry. [0]. https://play.google.com/store/apps/details?id=keepass2android.keepass2android https://play.google.com/store/apps/details?id=keepass2androi...
- tyfon 10y agoSorry for the late reply, but I use this too (I wrote the original keepass post)
- Nullabillity 10y agoI use KeepShare, which has a custom keyboard for password entry, but also uses the accessibility APIs to auto-fill.
- emodendroket 10y agoCould you explain why you say that about the PC? As far as I know, the browser isn't going to let someone snatch your clipboard info. An application running locally, sure, but an application running locally could also be doing keylogging, I'd think.
- _jayy 10y agoThis is absolutely true and terrifyingly unheard of! CopperheadOS patched this in late 2016. https://copperhead.co/android/docs/technical_overview https://copperhead.co/android/docs/technical_overview
- wapz 10y agoIs there that big of a security risk if they can read the contents of your clipboard? The only example I can think of is if the app is a webview that you use to login to sensitive accounts and it scans the page for a login/password field and saves the login and sends back the clipboard info if found. It seems like reading random clipboard info isn't going to get linked to anything though (please correct me if I'm wrong).
- _jayy 10y agoI'd say that's a security risk and it's severity depends on the data you have on your device. The example you state is pretty serious: being able to get the master password from your Android Keypass file or LastPass master password would be a game-over situation!
- Mendenhall 10y agoWow I did not know that. Thanks for posting. Sad that this is "just the way it is".
- ams6110 10y agoThis is why I have a separate gmail account for my phone that I don't use for any other purpose, and I don't access other email, my bank accounts, etc. from my phone.
- Const-me 10y agoLooks like only Microsoft did it right on their platforms. On Windows Phone 8 and Windows Mobile 10, a background app doesn’t have access to the clipboard. The API is just blocked for background apps regardless on those application-wide permission settings. https://msdn.microsoft.com/en-us/library/windows/apps/hh202962(v=vs.105).aspx https://msdn.microsoft.com/en-us/library/windows/apps/hh2029... https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.datatransfer.clipboard https://msdn.microsoft.com/en-us/library/windows/apps/window...
- cptskippy 10y agoMicrosoft did a lot of things right with Windows Phone 8, it was a great OS and it's a shame it never took off. Unfortunately their timing couldn't have been worse, they showed up late to the party at the peak of their unpopularity. It never really had a chance.
- Const-me 10y agoProfessionally, yeah I’ve noticed the platform ain’t a great success, at least so far. I think last time a company approached me asking to do some WP development was over a year ago. Fortunately I also develop for Windows PCs, and those aren’t going from desktops any time soon. But personally I’m happy with my Lumia 930. It’s old but still works fine (replaced a battery once) and is updated to latest WM10. I don’t care about OS market share as long as my own copy works.
- pjmlp 10y agoSame here, and the apps I care about do exist as UWP anyway. On a positive note, I am seeing on consumer stores here in Germany the space that was used by hybrid Android tablets, being increasingly replaced by W10 netbooks and hybrid tablets.
- trojanh 10y agoMaybe Google and iOS do it deliberately to deliver ads perfectly. Just a thought, though highly vague.
- h4waii 10y agoFor what it's worth -- there are frameworks that allow EXTREMELY granular permission controls. This [0] => http://imgur.com/a/XVulF http://imgur.com/a/XVulF is what happens when an app tries to access the clipboard and I haven't granted it. There are steps people can take to maintain the "safety" of their information -- but not many do, instead they complain loudly and hope a first-party will give them the controls instead. This is basically never going to happen. Using AOSP, CyanogenMod/LineageOS, CopperheadOS builds are one of the first steps. If you (not you, but persons) can't climb over that relatively low barrier, it's likely that they're going to be stuck at the level of complaining loudly until someone provides the equivalent of a pacifier -- something to quiesce, but not actually provide any real controls. [0]. It's XPrivacy, and yes, it requires XPosed, which requires a modified system partition, which generally requires root, which most people won't give up mobile payments for. It all comes back to security vs convenience. There's always a choice, most people are picking the "wrong" one and complaining about it.
- piyush_soni 10y agoA little too condescending for my taste. No choice is wrong, and not everyone is technical enough to even think of rooting the phone and installing all those custom frameworks - and even if some people can, they may not find the need of it and it's perfectly fine. I rooted my first Android phone when the manufacturer decided not to upgrade my version to Jelly Bean, and tried almost all of the popular custom ROMs. All of them had their own special feature set, but all of them their limitations too. They were unstable, and had various random crashes. Overall, I was happy that I could stretch my old phone for longer and get those new features, but I also had to face embarrassment when my phone crashed in front of people or restarted in the middle of talking. When I got my Nexus 5, I just rooted it but stayed away from these custom ROMS. When I got my Nexus 6P, I didn't feel the need to root it. Let's accept it, most of the people are going to use the default settings, it does help to shout about your issues, and the first-parties do listen if you shout loud enough.
- darklajid 10y agoI'm off finding a suitable Android build for this company issued S6 Edge. Oh .. wait. In other words: Some devices are more equal than others, Android isn't a really open platform and your suggestion, while something I personally sympathize with, is impossible in general. :/
- st3v3r 10y agoSo don't use password managers? That is the most common way to take a password from one of those and input it.