News for hackers. Stuff that matters.
Re:The Fake Browser Update Scam Gets a Makeover by sysadm1n on Wednesday October 18, 2023 @12:51PM (#37931365)
Seriously considering running a JIT-less JavaScript free browser should be the standard for surfing these days, and only whitelisting sites you trust (like your online banking site or Amazon for example). Disabling JS wipes out entire classes of attacks. I know developers assume the user has JS enabled and codes their site to that end, but a small minority disables JS to get rid of various annoyances and for accessibility reasons, and, malware issues in the browser.

This attack can still be pulled off without JS though: using plain old CSS & HTML. It seems these attacks are targeted to the non tech savvy, but even I (tech savvy) get duped by persuasive messages in my browser. This is why I advocate for a Phishing/Malware 101 course which is mandatory for all types of tech-related courses and learning.

Re:The Fake Browser Update Scam Gets a Makeover by sublinear on Wednesday October 18, 2023 @01:27PM (#37931864)
This isn't that complicated. Like everything else in life it's a matter of trust and awareness, not really that technical. I'll never understand why the default stance on HN is always javascript bad.
Re:The Fake Browser Update Scam Gets a Makeover by simion314 on Wednesday October 18, 2023 @01:53PM (#37932232)
>I'll never understand why the default stance on HN is always javascript bad.

I am a web dev, and I agree that JS on the web is bad for pages that should be just documents like a news webpage or wiki page. JS makes sense for applications like a video game, video/audio/level/text editor, or some internal app that your company trust, but for random untrusted document pages JavaScript is a detriment, even if we only consider UX.

Re:The Fake Browser Update Scam Gets a Makeover by andybak on Wednesday October 18, 2023 @02:43PM (#37932915)
You're a web developer but your mental map of the web consists of "documents" on one end and "applications like a video game, video/audio/level/text editor(s)" on the other?

You haven't in your career, stumbled across web (sites/apps) that sit somewhere on the spectrum between the extremes of "document" vs "app"?

It strikes me that there's a fairly even distribution between those two points - even if we discount all the misguided "could have been a static site but someone decided it had to be an app" decisions.

I actually agree with you on reigning in javascript but I think much of the web is poorer without it. We had an answer for this years back and it was called "progressive enhancement".

Re:The Fake Browser Update Scam Gets a Makeover by thedaly on Wednesday October 18, 2023 @04:08PM (#37934100)
> Progressive enhancement is a strategy in web design that puts emphasis on web content first, allowing everyone to access the basic content and functionality of a web page, whilst users with additional browser features or faster Internet access receive the enhanced version instead.

Why isn't this still the norm?

Re:The Fake Browser Update Scam Gets a Makeover by andybak on Wednesday October 18, 2023 @04:30PM (#37934377)
The ascent of SPA frameworks and the inexorable allure of "Development by CV".
Re:The Fake Browser Update Scam Gets a Makeover by simion314 on Thursday October 19, 2023 @01:45PM (#37946041)
Most links we opened daily are to read stuff not to interact with stuff, either read documentation, read news, read some social media page. Those pages should be readable without scripting but for some reason they do not load at all without JS.
Re:The Fake Browser Update Scam Gets a Makeover by andybak on Friday October 20, 2023 @05:41AM (#37954059)
Yes. That was the bit where I mentioned "progressive enhancement".
Re:The Fake Browser Update Scam Gets a Makeover by tremon on Wednesday October 18, 2023 @01:56PM (#37932278)
I don't think it's a matter of trust and awareness, because your browser is already happily executing the javascript payload before you have decided whether to trust the website or not. And users are completely unaware of what the payload is doing unless it's spinning at 100% cpu or throwing UI elements in the user's face. It's a matter of convenience mostly, from my point of view.

The HN population consists for a large part of computer power users and developers who are fully aware of the capabilities of browsers and the dangers of remote code execution. I'll never understand why the default stance on HN still mostly seems to be javascript good, if not for the convenience factor.

Re:The Fake Browser Update Scam Gets a Makeover by dylan604 on Wednesday October 18, 2023 @02:50PM (#37932991)
The browser had Javascript ON or Javascript OFF. If the browser had JS off for all until user whitelists the site, that would negate the need for plugins like uBO/NoScript/etc.
Re:The Fake Browser Update Scam Gets a Makeover by klyrs on Wednesday October 18, 2023 @03:48PM (#37933830)
Your browser is a platform that downloads and runs arbitrary code on your local hardware. "JavaScript bad" doesn't capture the nuance I read in people's comments here, but history shows that JavaScript is a gaping maw of security nightmares.
Re:The Fake Browser Update Scam Gets a Makeover by sublinear on Wednesday October 18, 2023 @10:55PM (#37937761)
Modern browsers are what have removed the nuance. Please tell me what about the Web API for JS is truly dangerous.

Native apps and programmable documents (PDFs and spreadsheets for example) are the real security nightmare.

The danger on the web lies squarely with easily fooled idiots visiting shady sites.

Re:The Fake Browser Update Scam Gets a Makeover by klyrs on Wednesday October 18, 2023 @11:01PM (#37937799)
For me personally it isn't as much "danger" as annoyance. Most of the web is hidden behind piles of modals, dickbars, autoplay videos, etc. Almost none of that happens without javascript. But don't dismiss those fools, they're inside sensitive networks around the world.
Re:The Fake Browser Update Scam Gets a Makeover by amelius on Thursday October 19, 2023 @05:02AM (#37940304)
Fingerprinting is one example.
Re:The Fake Browser Update Scam Gets a Makeover by everdrive on Thursday October 19, 2023 @04:57AM (#37940264)
It's simple; the web becomes a much nicer place when you block javascript by default. Some things don't work, but they never compromise you, or bog down your computer, and throw huge ads and banners in your face. I could go on. I obviously see that JS can be used for good things, but it seems like people can't constrain themselves to that.
Re:The Fake Browser Update Scam Gets a Makeover by coldpie on Wednesday October 18, 2023 @03:36PM (#37933665)
Re:The Fake Browser Update Scam Gets a Makeover by pcwalton on Wednesday October 18, 2023 @04:28PM (#37934359)
I would argue that a world that didn't have JS would make these types of attacks more common, not less common. Because in that world, people would have to download desktop apps for everything, which would make people used to downloading desktop apps from random Web pages, which would make malware easier to distribute.

In fact, we don't have to imagine that world: it was the world of the late 90s.

Re:The Fake Browser Update Scam Gets a Makeover by livueta on Wednesday October 18, 2023 @04:35PM (#37934432)
That's a very real problem, but one would hope that package managers would be a lot more widely adopted in that counterfactual world. Maybe that's a naive hope.
Re:The Fake Browser Update Scam Gets a Makeover by yesco on Wednesday October 18, 2023 @06:30PM (#37935665)
Most people call them app stores these days
Re:The Fake Browser Update Scam Gets a Makeover by hnlmorg on Thursday October 19, 2023 @02:31AM (#37939265)
Desktop software runs with fewer protections than web applications. So unless everyone is planning on becoming SELinux experts tomorrow, the web still makes sense for a lot of stuff.

Hence why exploits like these are always about getting software installed onto the host rather than being 100% JS.

And before anyone says “but package managers solve this problem”, no they don’t. There have been numerous cases of compromised software leaking into office repositories. It happened with a Ubuntu package were an attacker hacked the upstream repository. It’s happened with npm. Browser extensions from Google and Firefox repos are frequently a source for Trojans. Android and iOS have lots of apps that appear to be free torches or other such utilities but are actually just harvesting all your data. Just because a software package is published to an official repository, it doesn’t make that package safe.

Re:The Fake Browser Update Scam Gets a Makeover by vhcr on Wednesday October 18, 2023 @07:15PM (#37936075)
In an ideal world, native apps shouldn't be able to compromise your whole system.
Re:The Fake Browser Update Scam Gets a Makeover by lazide on Thursday October 19, 2023 @01:59AM (#37939044)
And how would that ideal world come to pass?

Hell, we even tried applets!

Re:The Fake Browser Update Scam Gets a Makeover by quickthrower2 on Thursday October 19, 2023 @07:50AM (#37941589)
Webassembly will get us there
Re:The Fake Browser Update Scam Gets a Makeover by littlestymaar on Friday October 20, 2023 @07:18AM (#37954674)
It's still not native apps by any means though…
Re:The Fake Browser Update Scam Gets a Makeover by WhyNotHugo on Thursday October 19, 2023 @05:54AM (#37940666)
Native applications should be downloaded via your distributions' channels, not from random websites.
Re:The Fake Browser Update Scam Gets a Makeover by slikrick on Thursday October 19, 2023 @08:43AM (#37942087)
but realistically they aren't, so why are you even mentioning it?

not every app is on the windows or Mac App store, not every app is on the Linux package managers. even so there is no sandboxing so you're just waiting until one of them gets compromised and hope nothing bad happens

sandboxing hostile apps is the only true way to protect yourself, and even that isn't perfect

Re:The Fake Browser Update Scam Gets a Makeover by hollerith on Thursday October 19, 2023 @09:27AM (#37942585)
>even so there is no sandboxing

Lenovo sells all-in-one PCs that run Android, and in a world without Javascript, you can imagine such a thing having become much more common that it actually has become so far in our world (with more enhancements done to Android to work well with a mouse) and of course Android has very solid sandboxing of apps.

Re:The Fake Browser Update Scam Gets a Makeover by fsflover on Wednesday October 18, 2023 @04:29PM (#37934365)
Or alternatively, you can pursue security through compartmentalization. My VM for random browsing has JS enabled, but if I'm hacked, the attacker will not get access to any files. Also the VM is destroyed when the browser is closed.
Re:The Fake Browser Update Scam Gets a Makeover by lxgr on Wednesday October 18, 2023 @07:40PM (#37936284)
What’s the threat model here? Javascript sandbox escapes are extremely rare these days (subjectively they happen less frequently that image or video codec bugs).
Re:The Fake Browser Update Scam Gets a Makeover by fsflover on Thursday October 19, 2023 @03:32AM (#37939648)
Apart from js escapes, you are protected even if you run random executables from the Internet, or any untrusted software in general. More reasons: https://forum.qubes-os.org/t/how-to-pitch-qubes-os/4499/15
Re:The Fake Browser Update Scam Gets a Makeover by lxgr on Thursday October 19, 2023 @09:27AM (#37942589)
> run random executables from the Internet

Well, here's your actual problem. That's a vastly different threat model!

Modern browsers are very well sandboxed.

Re:The Fake Browser Update Scam Gets a Makeover by fsflover on Thursday October 19, 2023 @10:14AM (#37943216)
Even with the original threat model, CVEs in the web browsers are much more frequent than in the hardware virtualization with Xen, aren't they?