News for hackers. Stuff that matters.
Re:Facebook iOS App Scrapes Your Clipboard? by TeMPOraL on Monday October 19, 2015 @12:27AM (#10411119)
> This is widely considered a mistake

Is it? I've heard voices, but I didn't realize it's a very popular opinion. Personally, I think it's a feature and what makes desktop useful as a tool, as opposed to mobile devices being mostly toys.

Re:Facebook iOS App Scrapes Your Clipboard? by johncolanduoni on Monday October 19, 2015 @01:21AM (#10411266)
I think the mistake (at least in today's world) is that un-sandboxed is the default. Even as a power user, I would like if most of the GUI programs on my computer (web browser, word processor, etc.) were sandboxed, so I can focus most of my scrutiny on my IDE, toolchains, etc.

The other aspect is that programs are traditionally really bad at being conscientious about your system, even when not being malicious. Windows programs have a tendency to put files wherever they feel like, although UAC has helped this to some degree. Plus, every program and its brother has its own update system that absolutely must run in the background constantly, even when I'm not using it.

Re:Facebook iOS App Scrapes Your Clipboard? by TeMPOraL on Monday October 19, 2015 @01:59AM (#10411349)
> I think the mistake (at least in today's world) is that un-sandboxed is the default. Even as a power user, I would like if most of the GUI programs on my computer (web browser, word processor, etc.) were sandboxed, so I can focus most of my scrutiny on my IDE, toolchains, etc.

As a desktop user I need little to none scrtuiny. My web browser, IDE, toolchains, IM, video player and computer games all work together well and while technically any one could own any other, this simply does not happen. It takes some (little) skill to avoid obvious malware, and then generally you're fine. On the other hand, I get to open my video file in my IDE, edit IM's data files in a word processor, and move things around seamlessly with OS; everything is expected to work and no program tries to lock me in.

> The other aspect is that programs are traditionally really bad at being conscientious about your system, even when not being malicious.

I don't think much has changed here. Phone apps are also not conscientious; they fight for your attention with other apps and with the entire operating system. The changelog of both Android and iOS is full of things done against app developers, because many popular app developers are willing to do anything imaginable to get your attention (and thus ad money).

My point is - the problem isn't with sandboxing itself; it's with the web and mobile ecosystem that makes developers work against the interest of users, instead of for it. The sandboxing is just a symptom - something that is being done to mitigate the damage of greedy "entrepreneurs". Desktop environments don't need that much sandboxing because there isn't that much crap going on.

I think the fact that desktops originally weren't connected to the Internet is a reason we've started with an open system, but it may be worth preserving this flexibility even in the Internet era.

Re:Facebook iOS App Scrapes Your Clipboard? by johncolanduoni on Monday October 19, 2015 @02:26AM (#10411420)
> As a desktop user I need little to none scrtuiny. My web browser, IDE, toolchains, IM, video player and computer games all work together well and while technically any one could own any other, this simply does not happen. It takes some (little) skill to avoid obvious malware, and then generally you're fine.

It's not just downloading malware that is an issue; you also have to worry about security flaws in the apps you trust. Web browsers are a perfect example; they are constantly downloading untrusted code and executing it. Even when the javascript engine doesn't have a flaw, you have exploits like Rowhammer.js[1] which sidestep them entirely.

> It takes some (little) skill to avoid obvious malware, and then generally you're fine.

I think you're underestimating the knowledge needed to secure your computer properly, and overestimating the savy of the majority of users. The current state of computer security (huge botnets, etc.) is a testament to the fact that the current model isn't cutting it.

> On the other hand, I get to open my video file in my IDE, edit IM's data files in a word processor, and move things around seamlessly with OS; everything is expected to work and no program tries to lock me in.

If the lock in is an open file dialog, or passing a filename by command line, all of the examples you list would work fine.

> Desktop environments don't need that much sandboxing because there isn't that much crap going on.

You are missing an important difference; most users are far more liberal in downloading apps for mobile than for desktop, and if they were just as liberal on their desktops they would be pretty much guaranteed to get malware. Because of this, many apps which are only used in a browser on a computer are used as apps on mobile (which is needed at the very least for performance reasons). Sandboxes aren't perfect, but they move the ability to infect a device via installation from "totally trivial" to "requiring significant vulnerability".

[1]: https://github.com/IAIK/rowhammerjs

Re:Facebook iOS App Scrapes Your Clipboard? by pjc50 on Monday October 19, 2015 @05:08AM (#10411880)

  > Desktop environments don't need that much sandboxing because there isn't that much crap going on
http://www.howtogeek.com/198622/heres-what-happens-when-you-...

You're safe if you install only paid-for software from big companies and open-source software that hasn't been bundled with installer malware. And never install Flash or Adobe Reader. And keep your browser, AV, and anti-malware up to date.

The plural of unsandboxed desktop is "botnet".

Yes, this is tragic and a real threat to open software development.

Re:Facebook iOS App Scrapes Your Clipboard? by MichaelGG on Monday October 19, 2015 @02:17AM (#10411398)
It also means opening a video file (or browsing a website, or editing a photo, etc.) can trigger code to read your documents and email it to someone else.
Re:Facebook iOS App Scrapes Your Clipboard? by TeMPOraL on Monday October 19, 2015 @02:26AM (#10411419)
Yes, it does. But that rarely happens. Why is that?

There's something with web/mobile that makes people afraid to do anything without sandboxing the living hell out of every app, even though we've managed to live with unsandboxed desktops without many such incidents. I can't exactly put my finger on what is going wrong (it has definitely something to do with installing random crap and the new business model of companies trying to monetize user's eyeballs and data), but the push towards sandboxing is a symptom of that problem.

Re:Facebook iOS App Scrapes Your Clipboard? by TazeTSchnitzel on Monday October 19, 2015 @03:56AM (#10411674)
> even though we've managed to live with unsandboxed desktops without many such incidents

Antivirus is mandatory on desktops

Re:Facebook iOS App Scrapes Your Clipboard? by interpol_p on Monday October 19, 2015 @01:05AM (#10411228)
Sandboxing and App Stores do not prevent powerful software tools being developed. You can have first-class video editors, painting and photo manipulation, and coding environments.

You might not be able to do absolutely everything you could with unfettered access, but that hardly leads to "mostly toys." The nature of mobile apps stems far more from the use case of the devices (user attention measured in seconds, rather than minutes) than limitations of the software development platforms.

Re:Facebook iOS App Scrapes Your Clipboard? by karmelapple on Monday October 19, 2015 @01:36AM (#10411301)
The sandboxing of mobile apps - at least on iOS - was always sold as a feature that respected this handheld computer was also a phone, and needed the voice chat reliability of a pre-smartphone.

If you have any suspicion that installing an app will cause your phone call with your grandmother to be interrupted, you will really scrutinize what you install.

Early Android devices tended to have more problems than iOS devices when it came to phone calls getting interrupted, so whether this was marketing making an excuse for something Apple wanted on s technical level, it seems sandboxing was with the use case of "keep the phone working" firmly in mind.

Re:Facebook iOS App Scrapes Your Clipboard? by userbinator on Monday October 19, 2015 @01:47AM (#10411321)
Sandboxing and App Stores do not prevent powerful software tools being developed. You can have first-class video editors, painting and photo manipulation, and coding environments

I don't doubt that - but the problem is that everything you do with one app must almost always stay within that one. It's only when you want to exchange data between apps that all the power of the traditional full-access model really shines, and the reason why people have resorted to some horribly inefficient workarounds (e.g. upload to some server on the Internet from one app, then download the data in another) to do this.

Re:Facebook iOS App Scrapes Your Clipboard? by interpol_p on Monday October 19, 2015 @02:03AM (#10411360)
That's not an insurmountable problem though, and sandboxed environments are getting better in this regard. E.g., it is now possible in iOS to launch one application from another which edits the source document directly — not a copy.

That said, the notion of a file system isn't inherently incompatible with sandboxing. If you allow the user to grant permission on a per-app basis whether those apps can read/write to a common data store, you essentially have the benefits of a local file system in a way that does not break sandboxing.

You only want to sandbox apps to keep them from touching the OS and other private app data. If it is user-permitted for them to touch a common data store then that means data does not always have to stay within the app in which it was created.

Re:Facebook iOS App Scrapes Your Clipboard? by TeMPOraL on Monday October 19, 2015 @02:05AM (#10411368)
Fair, but I also want to grant sandbox apps to touch the OS and other private app data. The way how on desktop I can use Emacs to edit /etc/hosts, or MS Paint to change some other program's splash screen.
Re:Facebook iOS App Scrapes Your Clipboard? by geofft on Monday October 19, 2015 @06:24PM (#10416213)
There are methods for solving that, like powerboxes:

http://plash.beasts.org/powerbox.html

I believe that Apple's desktop sandbox does use powerboxes, in that the Open dialog is privileged code and hands the app an open file handle. But it means that you can't tell Emacs to edit an entire source code directory. BBEdit had exactly this complaint about the sandbox.

Re:Facebook iOS App Scrapes Your Clipboard? by interpol_p on Monday October 19, 2015 @06:05AM (#10412008)
Well that defeats the purpose of a sandbox. A sandbox is specifically to disallow apps from touching OS or private data.

But there's no reason such apps can't live side-by-side. I use Emacs to edit my hosts file, it's pretty convenient. A sandboxed Emacs would not be.

But I don't mind if the painting app I download is sandboxed because I'm going to be dragging-and-dropping my artwork into that program and I don't want it having access to my disk or network outside its sandbox.

Re:Facebook iOS App Scrapes Your Clipboard? by danielheath on Monday October 19, 2015 @01:17AM (#10411254)
I tend to think of systems which don't sandbox each process effectively as 'toys' since I can't meaningfully trust them to run code I haven't audited.
Re:Facebook iOS App Scrapes Your Clipboard? by TeMPOraL on Monday October 19, 2015 @01:47AM (#10411322)
You can't trust sandboxed systems either, and honestly, who ever audits the code they run? "Auditing code" is a smart-sounding phrase that is meaningless to 99% of users. Also, have you audited your sandbox's code yet?

I consider mobile apps toys because they're designed to contain and own your data, and that impares both the ergonomy of work and limits your capability for doing things to whatever is available in the MVP some startup released. Most apps don't evolve past the point of MVP.

Re:Facebook iOS App Scrapes Your Clipboard? by h1282227 on Monday October 19, 2015 @04:12AM (#10411727)
In other words.

Real scissors are toys but plastic scissors are not toys since you can't hurt yourself with them.

Re:Facebook iOS App Scrapes Your Clipboard? by reitanqild on Monday October 19, 2015 @03:04AM (#10411529)
A chainsaw is also dangerous. You have to know how to use it and you should use protective gear.

Definitely not a "toy".

Re:Facebook iOS App Scrapes Your Clipboard? by Too on Monday October 19, 2015 @01:26AM (#10411279)
Sandboxing doesn't necessarily mean that you can't share files/data between programs. I think it's easy to mix these up because ios hides the file system for you. I would very much like both visual studio and notepad++ to be able to edit the same .cs file but i don't want notepad++ to have internet or GPS access because it has absolutely no reason to.
Re:Facebook iOS App Scrapes Your Clipboard? by TeMPOraL on Monday October 19, 2015 @02:04AM (#10411362)
Sandbox all you want but give me root level access then. Notepad++ may not need the GPS or Internet access[0], but I need it to be able to edit Visual Studio's config files when I ask it to, without having to ask VS for permission. Don't let programs have magic databases that are inaccessible by users.

[0] - most desktop software doesn't need Internet access; even most mobile software doesn't need it in principle, it's only because of lazy business models that they have to have it.

Re:Facebook iOS App Scrapes Your Clipboard? by danieldk on Monday October 19, 2015 @02:47AM (#10411484)
Sandbox all you want but give me root level access then. Notepad++ may not need the GPS or Internet access[0], but I need it to be able to edit Visual Studio's config files when I ask it to, without having to ask VS for permission. Don't let programs have magic databases that are inaccessible by users.

OS X solves this quite elegantly. If an application is sandboxed, it cannot access files outside the sandbox directly. However, when an Open (or Save) dialog is requested, it is handled by a privileged daemon outside the process (it used to be pboxd). This daemon then makes the file or directory available in the sandbox after selection.

You still get app isolation, but it does not impede the user experience. (Of course, it does not apply for every scenario, but sandboxing is not a requirement outside the App store.)

Re:Facebook iOS App Scrapes Your Clipboard? by izacus on Monday October 19, 2015 @08:16AM (#10412377)
There are several very useful OS X applications and tools that are not available on MAS BECAUSE Sandboxing doesn't let them do their job.

E.g. Finder replacements, tools like Alfred, BootChamp, etc.

Re:Facebook iOS App Scrapes Your Clipboard? by Too on Monday October 19, 2015 @11:26AM (#10413471)
> Don't let programs have magic databases that are inaccessible by users

Maybe you misunderstood my post but that's exactly what I meant should not be misunderstood as sandboxing. Sandboxing api calls is not the same as hiding the file system.