News for hackers. Stuff that matters.
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by wool_gather on Friday March 13, 2020 @07:49PM (#22571877)
I wouldn't be surprised if the apps themselves were not directly responsible here -- that is, the code that's written directly by the app developers.

Instead, it may very well be be some analytics/marketing SDK that has been included in the app because of a business request. These have no privilege separation: they run their code in the same context as the code that the app developers wrote. (Consider the example of games with no text UI; unless they're truly spying on their users, what would they get from doing this?)

I've said before, this SDK privacy hole is something we need to be very aware of as engineers and push our product/marketing folks to recognize as well. I would love to see Apple address it too. (On the other I have no idea how they would.)

Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by izacus on Friday March 13, 2020 @08:18PM (#22571991)
A few years ago, Pasteboard was a popular way of how advertising SDKs communicated between their own instances in different apps on iOS. It allowed those SDKs to determine which apps were installed on the phone and combine/mine user profile data across apps. Meaning: if you entered a social login in one app, others immediately got your demographic data.

I assumed Apple plugged this hole by now :/

Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by cortesoft on Friday March 13, 2020 @10:38PM (#22572721)
Would that mess up things users actually copied?
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by saagarjha on Saturday March 14, 2020 @01:57AM (#22573491)
You can read the pasteboard without messing it up, and then replace the contents back to what they used to be.
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by cortesoft on Saturday March 14, 2020 @04:54PM (#22578595)
But don't you have to update the paste contents, and then wait for the other process to read them and update the paste contents to tell the original process that the message was received?
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by stefan_ on Friday March 13, 2020 @08:21PM (#22572009)
"We shipped a trojan and code-signed it, but it's okay, it is some blob from a vendor that we included just because. We should talk to Bob from marketing to make sure it's not doing bad things."

No.

Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by hamburglar on Friday March 13, 2020 @08:57PM (#22572190)
Ok, well, say "No" all you want but this totally happens, only the perpetrators are not nearly so clue-ful as to realize they've shipped a trojan. There are "helpful" SDKs out there whose ulterior purpose is to collect user data without the app author's knowledge. This is one reason I'm very wary about what apps I'll install... it's not enough to trust the app author if they include 3rd party code.
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by bigiain on Friday March 13, 2020 @09:44PM (#22572476)
Pretty sure at least some of those are “helpful” in the sense of “this is one of the ways we make money, by installing someone else’s sdk in our game and getting paid for it, while not looking too carefully at what it’s doing to our users”. And I’d be astounded if various Facebook/Google/Twitter SDKs (including things like Fabric/Crashlytics and Google Analytics) haven’t done this in the past even if they’re not doing it now. Surveillance capitalists gonna surveil...
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by ryandrake on Saturday March 14, 2020 @12:11AM (#22573120)
This comes up all the time on HN and I’m always shocked[1] at how controversial an idea it is that the developer is responsible for knowing what they are shipping in their dependencies. “Oh, woe, how can you audit all of your dependencies and their dependencies and know what’s in them?? Oh it’s impossible! There is no way to solve this!”

Too few devs are really careful about their dependencies and do good due diligence when evaluating them for suitability. Everyone else is just “Hey our problem is solved by this one. YOLO! Link it and ship it LOL!” I’ve seen projects that link and ship binary dependencies without even being able to inspect the source. This is, to me, totally insane. But standard practice in a lot of places!

1: https://news.ycombinator.com/item?id=21439953

Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by bigiain on Saturday March 14, 2020 @12:51AM (#22573274)
While I totally agree with what you say here, I think it goes deeper. Some devs/shops are complicit in this, knowingly adding dependencies for shady reasons.
Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by wool_gather on Saturday March 14, 2020 @12:57PM (#22576715)
I think you got my point backwards. I wasn't justifying including bad code.

> ...we included just because...

Bob from marketing is the one who asked for the integration.

> We should talk to Bob from marketing to make sure...

Bob has no clue about this stuff.

We're not asking Bob what the SDK is doing, we're telling him. And any other decision makers in the vicinity.

Then we see whether the decision about the SDK changes. If not, we have to make our own personal ethical decision about what to work on.

Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by hjnilsson on Saturday March 14, 2020 @04:03AM (#22573879)
I have personally seen apps that used the pasteboard to trigger debug ui / extra logging etc.

For example, if the clipboard contained “FPS” when started, an FPS counter would be shown in game.

Note: this was a long time ago, there are better methods now.

Re:Popular iPhone and iPad Apps Snooping on the Pasteboard by frankus on Friday March 13, 2020 @08:23PM (#22572015)
This is one of the few ways SDKs can enable e.g. diagnostic modes without extra integration work by the app developer, but as is often the case there's a fine line between "convenient hack" and "gaping security hole".

Obviously this sort of thing needs super-explicit user opt-in and needs to be secured sufficiently that it can't leak private data, and it's possible/likely that a lot of SDKs aren't great about this.