News for hackers. Stuff that matters.
Re:LinkedIn sued over allegation it secretly reads Apple use... by gruez on Saturday July 11, 2020 @10:05AM (#23802296)
How can this be implemented? You can go with the javascript approach of "you can only read the clipboard contents during an user interaction", but there's nothing preventing the app from reading the clipboard every time you touch the the screen. A lot of sites use a similar exploit to bypass popup blockers. You could make so the user must accept an OS modal before the clipboard contents are released. It's more secure, but it's jarring and slows down the user.
Re:LinkedIn sued over allegation it secretly reads Apple use... by stanmancan on Saturday July 11, 2020 @10:37AM (#23802502)
There should be no “reading the clipboard” at all. A “paste” should result in the OS providing the contents to the app, not signalling the app to read the clipboard.
Re:LinkedIn sued over allegation it secretly reads Apple use... by gruez on Saturday July 11, 2020 @11:19AM (#23802790)
Your solution of "only let the OS initiate pasting" only really works when dealing with os provided text editing widgets. What if an app wants to implement a paste button/gesture? eg. paste and go to url that chrome/safari has, or terminal emulators that paste on control-shift-v rather than control-v, or photo editors that don't really have a text box to "paste" to begin with.
Re:LinkedIn sued over allegation it secretly reads Apple use... by pavel_lishin on Saturday July 11, 2020 @11:23AM (#23802816)
Yes, these are hard problems, but I would prefer that they either be solved - or go without some features - rather than let every app be able to read the contents of my clipboard.
Re:LinkedIn sued over allegation it secretly reads Apple use... by kshacker on Saturday July 11, 2020 @11:40AM (#23802968)
Hard problems sometimes (but not always) have simple solutions.

Putting apps copying clipboard up in your face is one such solution and it seems to be highlighting the abusers, no?

Even if an app has a genuine need to copy clipboard, having it in front of user every time will be useful.

Re:LinkedIn sued over allegation it secretly reads Apple use... by stanmancan on Monday July 13, 2020 @10:09AM (#23820941)
I know those are probably just a few examples of many but:

Paste and go isn’t a feature worth sacrificing the privacy of your clipboard contents

Terminal emulators, not sure to be honest. Why not stick to traditional cut and paste shortcuts?

Photo editors: nobody said you need a text box to paste to. Set your UI element as “pasteable” or whatever’s needed and let the app handle whatever clipboard contents comes it’s way. If it’s not supported it gets ignored.

Re:LinkedIn sued over allegation it secretly reads Apple use... by chrisshroba on Saturday July 11, 2020 @10:23AM (#23802405)
I don't think it's jarring to use an OS modal, if that modal is the one that almost every app already uses: [1].

Perhaps this could be the default way of interacting with the clipboard, and then apps that want to be able to read it a different way (e.g. Google Chrome wanting to be able to offer you a "Go To Link You Copied" button) could request an additional permission.

[1]: https://cdn4syt-solveyourtech.netdna-ssl.com/wp-content/uplo...

Re:LinkedIn sued over allegation it secretly reads Apple use... by gruez on Saturday July 11, 2020 @11:06AM (#23802695)
That's not a modal, that's just a standard widget. I'm not sure how they're implemented in iOS, but they can be subject to clickjacking attacks.
Re:LinkedIn sued over allegation it secretly reads Apple use... by _visgean on Saturday July 11, 2020 @10:31AM (#23802465)
The clipboard should be on the level of virtual keyboard. The app should not see whats in the clipboard before pasting. Don't see much of an issue with implementation.
Re:LinkedIn sued over allegation it secretly reads Apple use... by gruez on Saturday July 11, 2020 @11:14AM (#23802750)
How would that work with non-text applications? eg. a photo editor. Would the application need to bring up the keyboard just so the user can paste? Screen real estate is also an issue. Mobile keyboards are cramped as it is, adding a paste button would either require it being buried behind another layer, or take up more screen real estate.
Re:LinkedIn sued over allegation it secretly reads Apple use... by _visgean on Saturday July 11, 2020 @02:36PM (#23804524)
It sounds like a problem of UI, i think it can be solved, you could hold some button to paste...
Re:LinkedIn sued over allegation it secretly reads Apple use... by pjmlp on Saturday July 11, 2020 @05:52PM (#23806417)
And in what format should the image be copied into the clipboard?
Re:LinkedIn sued over allegation it secretly reads Apple use... by gentleman11 on Saturday July 11, 2020 @05:45PM (#23806345)
Have the browser (or OS) implement a clipboard. To paste, the middle-man software (either the OS or the browser) just inserts characters one after the other from this clipboard. Similarly, to insert text into it, make a request to this middle-man software. Not kernel level of course, but built in. If its windows, call it "clippy" and bring back that paperclip character.