News for hackers. Stuff that matters.
Re:Android permissions and hypocrisy by sschueller on Monday January 23, 2017 @04:39AM (#13460995)
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!

Re:Android permissions and hypocrisy by Const-me on Monday January 23, 2017 @09:39AM (#13462407)
Looks 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/hh2029...

https://msdn.microsoft.com/en-us/library/windows/apps/window...

Re:Android permissions and hypocrisy by cptskippy on Monday January 23, 2017 @10:41AM (#13462909)
Microsoft 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.
Re:Android permissions and hypocrisy by Const-me on Monday January 23, 2017 @11:02AM (#13463068)
Professionally, 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.

Re:Android permissions and hypocrisy by pjmlp on Tuesday January 24, 2017 @01:01AM (#13469152)
Same 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.

Re:Android permissions and hypocrisy by _jayy on Monday January 23, 2017 @08:19AM (#13461957)
This is absolutely true and terrifyingly unheard of!

CopperheadOS patched this in late 2016. https://copperhead.co/android/docs/technical_overview

Re:Android permissions and hypocrisy by wapz on Monday January 23, 2017 @08:48PM (#13468145)
Is 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).
Re:Android permissions and hypocrisy by _jayy on Tuesday January 24, 2017 @08:59AM (#13471298)
I'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!
Re:Android permissions and hypocrisy by izacus on Monday January 23, 2017 @05:04AM (#13461094)
Hmm, 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?
Re:Android permissions and hypocrisy by 0x0 on Monday January 23, 2017 @06:44AM (#13461502)
It'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.
Re:Android permissions and hypocrisy by retox on Monday January 23, 2017 @07:41AM (#13461773)
I'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.
Re:Android permissions and hypocrisy by Diederich on Monday January 23, 2017 @09:35AM (#13462376)
I useful Facebook lightly/moderately, but I uninstalled its app from my phone a long time ago, initially because it was a battery sucking monster, but also because it didn't 'feel' right.

These days, I pretty much don't install apps on my phone. I just use it as an everywhere web browser and live with the web version of various things.

Re:Android permissions and hypocrisy by codazoda on Monday January 23, 2017 @12:09PM (#13463673)
I also use their web app, which means I can no longer access the private messages people send me. Sometimes it tells me I've got a new message. Friends, I'm sorry that I'm ignoring you, but I'm not installing the battery sucking privacy steeling app that is required to view those messages. Wish I could disable the ability for people to send me private messages so they would get a notice instead of thinking I'm an a-hole.
Re:Android permissions and hypocrisy by c22 on Monday January 23, 2017 @01:00PM (#13464208)
I had this problem for awhile. Now I'm using mbasic.facebook.com for a much more functional experience.
Re:Android permissions and hypocrisy by Diederich on Tuesday January 24, 2017 @05:46PM (#13476493)
I will give that a try, thanks!
Re:Android permissions and hypocrisy by dragonwriter on Monday January 23, 2017 @05:33PM (#13466779)
> I also use their web app, which means I can no longer access the private messages people send me.

You could actually do that through the Facebook.com web interface much longer than you could through the FB mobile app. Of course, you can still do it on the web, though it's a separate domain (just as, on mobile, it's a separate app.)

But since they really want you to use the Messenger mobile app, to use the web interface on mobile you have to use "Request desktop site".

Re:Android permissions and hypocrisy by Diederich on Monday January 23, 2017 @05:24PM (#13466707)
Yes, this is the big downside.

My 'SLA' for facebook messages is about 24 hours, and people who send me things there learn that over time. I generally just tell them why I don't see their messages right away.

In general, I make a point of not being too responsive with any online/async notification systems, except for SMS. It's one way I keep myself from being so scattered.

Re:Android permissions and hypocrisy by shalmanese on Tuesday January 24, 2017 @08:40PM (#13477672)
If you go to messenger.com and select Request Desktop Site, you can get a web version of messenger which is tolerably ok to use.
Re:Android permissions and hypocrisy by jdavis703 on Monday January 23, 2017 @09:50AM (#13462503)
Facebook seems to be one of the few apps that gets privacy right, only asking for permissions to certain things (e.g. camera and microphone) when you want to use say a video recording feature. Now what's the general trustworthiness of the company? That's hard to say for sure, but at least they're doing app permissions right.
Re:Android permissions and hypocrisy by evilduck on Monday January 23, 2017 @01:25PM (#13464475)
That's because of how iOS grants camera and mic permissions, not because Facebook did anything right.
Re:Android permissions and hypocrisy by yAak on Monday January 23, 2017 @01:54PM (#13464811)
It's partially Facebook doing it right, but not exactly noteworthy. iOS devs can proactively request permissions whenever, and tell you whatever useless reason they want, but that usually gets users to tap "Don't Allow" (and may get your app rejected by Apple.)
Re:Android permissions and hypocrisy by xenophonf on Monday January 23, 2017 @10:17AM (#13462703)
I didn't really think about it until the iOS Facebook app helped itself to my Christmas morning photos this year. I had assumed that Apple had stronger protections in place for users' content. It's one thing to say in an alert or popup or something "did you take photos of the kids opening presents this morning? want to make a photo collage using our helpful tool?" and quite another to access my photos (and, presumably, other personal data) without prompting.
Re:Android permissions and hypocrisy by 0x0 on Monday January 23, 2017 @11:28AM (#13463326)
You must have granted the app permission to your photos/camera roll earlier. Still I agree it's sneaky for the app to go in uninvited at a later point in time.
Re:Android permissions and hypocrisy by yAak on Monday January 23, 2017 @01:58PM (#13464841)
Agreed. It might be nice if Apple extended their "Do you want to continue allowing XYZ to use Location Services" prompt to other permissions, provided it wasn't too aggressive.
Re:Android permissions and hypocrisy by 0x0 on Monday January 23, 2017 @02:22PM (#13465062)
Or even better, offer a restricted photo access permission that only works with the built-in image picker. Then at least the user has to tap on an image before it is transferred to the app. I don't care about the fancy custom image pickers with real time preview effects that various apps build in.
Re:Android permissions and hypocrisy by iainmerrick on Monday January 23, 2017 @10:54AM (#13463007)
You can deny it access to your photos, under Settings -> Privacy -> Photos.
Re:Android permissions and hypocrisy by rhizome on Monday January 23, 2017 @02:12PM (#13464963)
I uninstalled FB from my phone years ago after all of my FB friends suddenly showed up in my Android Contacts.
Re:Android permissions and hypocrisy by Twisell on Monday January 23, 2017 @09:01AM (#13462177)
I'm very outraged that you are right. Just checked with a dubious app that let you display current clipboard with no user action.

Yet you still have to bring the app to the foreground, but this is potentially a huge privacy leak IMHO.

The "doodle fruit ninja run" game I play don't need to now that my girlfriend left me so they can display a tinder ad...

(Oh, god if an evil ad developer come here don't take this as a good idea)

Re:Android permissions and hypocrisy by ClassyJacket on Monday January 23, 2017 @07:27AM (#13461701)
This 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.
Re:Android permissions and hypocrisy by m_eiman on Monday January 23, 2017 @05:31AM (#13461195)
It's not obviously blocked, as far as I can see:

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…

Re:Android permissions and hypocrisy by BoorishBears on Monday January 23, 2017 @07:55AM (#13461843)
Why are you assuming that? There are multiple permissions that would become dangerous if it was trivial to bypass those checks.
Re:Android permissions and hypocrisy by shimfish on Monday January 23, 2017 @06:46AM (#13461511)
I believe apps can no longer read clipboards while not in the foreground since iOS9 though I can't seem to find documentation that confirms that behavior.
Re:Android permissions and hypocrisy by m_eiman on Monday January 23, 2017 @04:48AM (#13461029)
Can they access this while running in the background?
Re:Android permissions and hypocrisy by sschueller on Monday January 23, 2017 @04:50AM (#13461041)
Yes, 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....

Re:Android permissions and hypocrisy by m_eiman on Monday January 23, 2017 @05:11AM (#13461119)
Ouch, 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.
Re:Android permissions and hypocrisy by dfox on Monday January 23, 2017 @05:31AM (#13461196)
That would require reliably deciding whether the action was in fact initiated by user, which is hard in browser environment and probably impossible for android.
Re:Android permissions and hypocrisy by poizan42 on Monday January 23, 2017 @08:45AM (#13462091)
The 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.
Re:Android permissions and hypocrisy by dfox on Monday January 23, 2017 @09:22AM (#13462290)
That 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.
Re:Android permissions and hypocrisy by candiodari on Monday January 23, 2017 @05:42AM (#13461241)
But, 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.

Re:Android permissions and hypocrisy by ploggingdev on Monday January 23, 2017 @06:37AM (#13461471)
> But, that's done on websites as well

Can websites running in background tabs access the clipboard contents on the Desktop?

Re:Android permissions and hypocrisy by emodendroket on Monday January 23, 2017 @07:28AM (#13461707)
In my experience browsers won't let you see the clipboard at all unless the user initiates a paste event.
Re:Android permissions and hypocrisy by btown on Monday January 23, 2017 @06:48AM (#13461516)
The 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-ar...
Re:Android permissions and hypocrisy by makomk on Monday January 23, 2017 @08:38AM (#13462052)
This is, incidentally, used by KDE Connect and possibly other apps to do clipboard synchronization with PCs.
Re:Android permissions and hypocrisy by maxxxxx on Monday January 23, 2017 @11:32AM (#13463362)
Wow. That's insane.
Re:Android permissions and hypocrisy by h4waii on Monday January 23, 2017 @11:15AM (#13463189)
For what it's worth -- there are frameworks that allow EXTREMELY granular permission controls. This [0] => 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.

Re:Android permissions and hypocrisy by piyush_soni on Monday January 23, 2017 @11:59AM (#13463602)
A 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.

Re:Android permissions and hypocrisy by darklajid on Monday January 23, 2017 @12:48PM (#13464088)
I'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. :/

Re:Android permissions and hypocrisy by jononor on Monday January 23, 2017 @05:43AM (#13461249)
Hm. What mechanism does password managers like Onepass and Lastpass use?
Re:Android permissions and hypocrisy by tyfon on Monday January 23, 2017 @05:55AM (#13461293)
I 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.

Re:Android permissions and hypocrisy by pdw on Monday January 23, 2017 @07:13AM (#13461606)
Which 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.
Re:Android permissions and hypocrisy by kenny_r on Monday January 23, 2017 @07:28AM (#13461713)
I'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=keepass2androi...

Re:Android permissions and hypocrisy by tyfon on Monday January 23, 2017 @07:33AM (#13461747)
Sorry for the late reply, but I use this too (I wrote the original keepass post)
Re:Android permissions and hypocrisy by Nullabillity on Monday January 23, 2017 @07:29AM (#13461719)
I use KeepShare, which has a custom keyboard for password entry, but also uses the accessibility APIs to auto-fill.
Re:Android permissions and hypocrisy by emodendroket on Monday January 23, 2017 @07:30AM (#13461730)
Could 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.
Re:Android permissions and hypocrisy by problems on Monday January 23, 2017 @09:45AM (#13462459)
The same argument is true on smartphones. Only an application you've installed is able to snatch your clipboard info.

Treat your phone like you've always treated your desktop - only install trusted applications and use tools like XPrivacy to analyze sketchy applications and block "features" for the ones you absolutely need to use.

Re:Android permissions and hypocrisy by tyfon on Monday January 23, 2017 @07:42AM (#13461775)
It is probably better now, but you used to be able to copy clipboard content from javascript or flash.

Keepass for windows and linux use autotyping or clears the buffer after a few seconds if you copy.

Re:Android permissions and hypocrisy by emodendroket on Monday January 23, 2017 @08:57AM (#13462152)
Oh, I see. Yeah, Flash is a different story, I guess, but for JavaScript you can't get at the clipboard unless someone pastes in all the browsers I'm aware of.
Re:Android permissions and hypocrisy by cyphar on Monday January 23, 2017 @10:59AM (#13463050)
There's a library for accessing the clipboard within JS[1]. As far as I can tell, the HTML5 APIs for it are designed to stop this from being used to steal your clipboard but I somewhat doubt its effectiveness.

[1]: https://clipboardjs.com/

Re:Android permissions and hypocrisy by emodendroket on Monday January 23, 2017 @11:39AM (#13463430)
That seems to let you write to the clipboard, not read it.
Re:Android permissions and hypocrisy by cyphar on Monday January 23, 2017 @12:00PM (#13463610)
The API used (document.execCommand) supports "paste" which lets you paste the current contents of the clipboard. However, it doesn't appear to work in my version of Chromium.
Re:Android permissions and hypocrisy by izacus on Monday January 23, 2017 @06:06AM (#13461330)
LastPass either hooks up to the Accessibility framework (scanning for password fields and filling them in directly), provides a keyboard (filling directly) or standard copy/paste.
Re:Android permissions and hypocrisy by drdaeman on Monday January 23, 2017 @08:50AM (#13462122)
AFAIK, LastPass still uses clipboard, even when accessibility APIs are available. Probably because new-style autofills (like pass implementation Password Store uses) are possible since relatively recent API revisions and there are still a lot of 4.x Androids out there.

Maybe I'm wrong, but at the very least, XPrivacy indicates it accesses clipboard shortly after requesting auto-fill - don't have a hook for setting text there.

Re:Android permissions and hypocrisy by ThatGeoGuy on Monday January 23, 2017 @01:00PM (#13464217)
As far as I can tell LastPass also clears the clipboard after you've pasted a password or something from the app. The other day I had to paste my Google password twice and noticed that it was cleared from the clipboard in the meantime.
Re:Android permissions and hypocrisy by ams6110 on Monday January 23, 2017 @09:36AM (#13462377)
This 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.
Re:Android permissions and hypocrisy by trojanh on Monday January 23, 2017 @10:21AM (#13462736)
Maybe Google and iOS do it deliberately to deliver ads perfectly. Just a thought, though highly vague.
Re:Android permissions and hypocrisy by Mendenhall on Monday January 23, 2017 @09:35AM (#13462374)
Wow I did not know that. Thanks for posting. Sad that this is "just the way it is".
Re:Android permissions and hypocrisy by st3v3r on Monday January 23, 2017 @01:27PM (#13464504)
So don't use password managers? That is the most common way to take a password from one of those and input it.