by jeroenhd · 4y ago · 0 comments
Sadly, because of the nature of the web, one can never be sure that the image actually stays within the browser. There's no way to prevent it from secretly sending everything you convert with this to some shady website because it runs in the browser. I trust the people behind this just fine, but sadly the promise of offline-level privacy and running code inside the browser just don't go well together.
The thing is, that logic applies just as well to desktop apps. There's never any guarantee on either desktop or web unless you have very specific counter-measures in place (firewalls, airgapping, ...).
It's just "closer to the web" when it runs in the browser, but if malice is the intent, it's as likely on either. Desktop apps are just "harder" to install.
A website might serve a different code every time you use it. It might even serve a malicious code specifically for some users.
Desktop apps can do this little trick, too. Also, many desktop apps can enlist the help of other desktop apps using the three decades or so of various ways our OSes have made to lett apps talk to each other. Bad actors were using macro languages in desktop apps long before the invention of the web browser. Now, it's just as easy for a desktop app to hit an endpoint, grab a script (shell or macro language) and then execute it. The browser is just another desktop app - one with much more scrutiny than that MP3 tagging thing with a built in Lua interpreter that Bob in sales just gave local admin privileges to...
Oh, and most desktop apps have some level of access to your identity - or outright have you confirm your identity when you activate your license.
Windows Firewall commonly serves this purpose even among users who are not familiar with terms like “countermeasures.” The only problem with their system is, the warnings are so common that clicking through them becomes a reflex action.
I can’t imagine it’s just so flawed because it’s been like that for years. There must be another reason I don’t get.
While not impossible, the likelihood of, say, imagemagick doing this, while going through this process, is extremely improbable.
I agree that just downloading apps off random websites is every bit as risky as a browser app.
But who does that?!
(The last statement was sarcastic, and aimed at the curl | bash crowd, the nodejs crowd, the composer crowd... these things are the polar opposite of trusted, secured, audited, safe, sensible.)
Most NPM libraries (even open source) are compiled and / or minified before they are uploaded to npm so it’s actually pretty common to get unreadable source code from npm.
Nothing in NPM ensures that the package code is the same thing you see on GitHub. This would require NPM to checkout and build all the packages by themselves.
So no, with NPM, you are totally running random code on your company’s computer. But surprisingly the world seems to be ok with that.
Just because ubuntu is terrible, and uses snaps, does not mean all distros do. You should have taken the high road, and debated what I was discussing here.
In Debian proper, you can read the source code of everything too. After all, old school distros like debian are they very reason you have such freedoms. They've been fighting the good fight for decades, working to keep OSS running pure, untarnished from closed licenses!
The very idea that you think Linix distros are less audited than npm, and have less accessible source code, is, to me, incomprehensible. It also shows how little you know about OSS, while you use the very tools giants crafted for you.
This doesn't make me mad, it makes me very, very sad.
what about:
* DNS leaks (eg. trying to connect to payloadhere454098357987.attacker.example, leaks payloadhere454098357987 to the attacker)
* websocket
* webRTC
* prefetching
* service workers (background sync)
* beacons
* CSP reports
Disconnect wifi of on Desktop, but agree with OP there is no good way to check if processing is actually happening locally.
I wish browsers, Android, and iOS had this option so that users could be confident that the app/site doesn't have access to the internet. Maybe a little tricky with a browser but perhaps it could be possible somehow.
If you do not trust the developer of a web app, you can always disconnect from your Wi-Fi, use the app, close the tab and then reconnect to your Wi-Fi.
Web browsers don't come with such a firewall, and they need to be permitted by the system firewall to operate normally. It's technically possible to block outgoing requests with addons and configuration, but that's a pain to get right, especially compared to the simple toggle you can find in most OS firewalls.
For example: you enable throttling, upload a picture, that picture gets buffered by a serviceworker, you close the tab, therefore closing the dev tools and disabling the throttling you set up, and the serviceworker uploads whatever you resized to the server anyway.
Or: the application just tries to upload stuff whenever you open the page, turning the throttling solution into a race between you and your browser.
I don't think using dev tools intended to replicate offline-only behaviour are a good way to actually enforce offline-only behaviour.
Resize to particular size idea came, when online service asked me to upload image upto 25KB. I had to just keep on changing size till image became 25KB.