News for hackers. Stuff that matters.
Re:Hackers used zerodays to infect Windows, iOS, and Android... by upofadown on Friday March 19, 2021 @01:09PM (#26515792)
The actual exploited bugs were mostly found in the OS but this is really about browsers. A contemporary browser pretty much exposes your entire OS to remote attacks. You want to exploit font interpretation? No problem, the browser will happily download your malicious font.

There has to be a better way. This isn't working...

Re:Hackers used zerodays to infect Windows, iOS, and Android... by ancarda on Friday March 19, 2021 @01:40PM (#26516157)
The only thing that comes to mind is having most websites be sites and not apps. Most sites don't need custom fonts, JavaScript, and CSS.

If Firefox & Chrome had support for something lightweight like Gemini (https://gemini.circumlunar.space/) then most sites could just use that.

With that sort of setup, restrictions on the web like uMatrix would be a lot less painful because most sites wouldn't ever need to be whitelisted.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by sodality2 on Friday March 19, 2021 @02:22PM (#26516721)
>If Firefox & Chrome had support for something lightweight like Gemini (https://gemini.circumlunar.space/) then most sites could just use that.

But they wouldn't, because they couldn't track people.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by ipaddr on Friday March 19, 2021 @07:01PM (#26519040)
Why do you think firefox is tracking you?
Re:Hackers used zerodays to infect Windows, iOS, and Android... by sodality2 on Friday March 19, 2021 @08:49PM (#26519736)
It was a response to >most sites could just use that

They wouldn't use it (or the VAST majority wouldn't) because it means losing tracking.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by Delk on Saturday March 20, 2021 @02:25AM (#26521207)
I guess in an ideal world, the default might be something simple enough (akin to Gemini), and using a more flexible and complex technology that comes with all the security and privacy implications would be distinguishable from the simpler sites and using them would require and allow user discretion. That might place web apps somewhere between plain websites and applications installed on the computer (or phone or whatever).

If implementing your site as an app rather than using something like Gemini came at the price of making people think twice, in theory there might be an incentive to only do web apps when it's actually needed.

But of course not that many people would use that kind of discretion, not to mention "ooh, shiny!"

And it's hard to put the genie back in the bottle anyway.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by zzo38computer on Friday March 19, 2021 @03:09PM (#26517190)
I agree, and on my computer I disable custom fonts in the web browser anyways.

A better web browser is really needed; one of things it can have is support for the Gemini protocol and file format. (It can also omit many things, as well as adding things.)

Re:Hackers used zerodays to infect Windows, iOS, and Android... by edoceo on Friday March 19, 2021 @04:54PM (#26518065)
What else to omit? Not snark. I'm playing with a Firefox fork and ripping stuff out (pocket).
Re:Hackers used zerodays to infect Windows, iOS, and Android... by ancarda on Friday March 19, 2021 @06:18PM (#26518695)
Could I make a suggestion? It'd be great if it were possible to white-blacklist all web features? We can do this for some features like location, but I can't selectively turn off images, JavaScript, or web fonts (only globally).

It might be nice to have a prompt like "This page wants to use a web font" like how you get for location. I realize that may be a lot of work to add in though.

Really, I'd just like to re-enable webfonts on Netflix so the subtitles don't look like garbage, but keep the fonts off on almost all websites. If anyone at Netflix is reading this, please fallback to something like sans-serif and not serif.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by zzo38computer on Saturday March 20, 2021 @01:38AM (#26521016)
You may want to set up arbitrary criteria. For example, something I would like to do is enable web fonts for SVG, but not for HTML.

Prompts do help, but the prompt should allow the user to allow or block once or always, and to override settings too (e.g. for location, the user can optionally specify a location to use, or specify a command-line of a program that provides the location; for camera, the user can specify the path to the device or to a picture or video file, or a command-line of a program that will produce the picture). The user can then specify whether or not to always make this selection in the future, and in what scope. If the site uses TLS, or is a local file which has been digitally signed, then the user can optionally specify certificate pinning too, in which case the automatic selection will be ignored if the certificate does not match.

I also have other ideas, about meta-CSS, presentation mode, table of contents window, animation skipping, capability of loading animated GIF and PNG files as videos (so that you can rewind and pause it), better keyboard controls, save form data to local files, regular expression search, full cookie editor, SQL access to HTML tables, Xaw-style scrollbars, relative location bar, ARIA view, etc. Most of this is configured and/or activated only by the end user, not by the document. Although, some are capable in the document too, such as, a HTML document with a <video> referencing a GIF or PNG will work; such a file can be loaded with <img> or <video> and either way would work.

No "do not track" setting is needed. My idea is the user could set up request headers arbitrarily, as well as overriding response headers (including some "protected" ones, which are stripped if received from a remote site, so are only effective if set up by the user). For example, to enable "do not track", you can add the rule which adds the request header "DNT:1" with the criteria specified as "always".

I would also ensure that all timing APIs can be spoofed (including the JavaScript core Date object; in my opinion this is an I/O function so it shouldn't belong in the core). This is probably useful for testing, as well as for the end user to get rid of annoyances too.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by edoceo on Friday March 19, 2021 @06:34PM (#26518824)
We on the same page. My current rough draft blocks every thing by default and has a an accept_list.

I wish servo was in a better place to fork

Re:Hackers used zerodays to infect Windows, iOS, and Android... by edoceo on Saturday March 20, 2021 @09:19PM (#26527356)
Re:Hackers used zerodays to infect Windows, iOS, and Android... by dkdk8283 on Friday March 19, 2021 @06:35PM (#26518825)
Rip out the clipboard API along with all the other functions that allow sites to manipulate text selection semantics, sticky overlays, and all of the other UX garbage that has accumulated over the years.
Re:Hackers used zerodays to infect Windows, iOS, and Android... by zzo38computer on Saturday March 20, 2021 @01:41AM (#26521028)
Agreed. In addition to clipboard API and Pocket, I had other ideas to remove, including <marquee> (although the user can add it back using their own CSS and/or meta-CSS if wanted), several APIs, some events, scrolling by script, testing visibility of anything by script, window ops by document scripts, etc.

In normal view and ARIA view, the viewport height would always be reported as Infinity. In print preview and in presentation view (which is a paged/screen media type), the viewport height is reported correctly.

Re:Hackers used zerodays to infect Windows, iOS, and Android... by fsflover on Friday March 19, 2021 @01:45PM (#26516226)
The better way is to use Qubes OS for security through isolation. You then use hardware virtualization to isolate untrusted application (including browsers) from the rest of system. Doesn't work on mobile though.
Re:Hackers used zerodays to infect Windows, iOS, and Android... by uncledave on Friday March 19, 2021 @03:18PM (#26517272)
Processes were a form of robust virtualisation once. It’s just pushing the problem down another layer. There are vulnerabilities in virtualisation layers too.
Re:Hackers used zerodays to infect Windows, iOS, and Android... by cutemonster on Friday March 19, 2021 @03:23PM (#26517307)
> Processes were ..

Was it ever robust? Or just that there weren't yet so many exploits?

Re:Hackers used zerodays to infect Windows, iOS, and Android... by uncledave on Friday March 19, 2021 @04:23PM (#26517818)
It’s a good question. Perhaps the same is true now with virtualisation.
Re:Hackers used zerodays to infect Windows, iOS, and Android... by fsflover on Sunday March 21, 2021 @08:13AM (#26529842)
> There are vulnerabilities in virtualisation layers too.

Qubes OS v4+ does not use typical software virtualization methods. VT-d hardware virtualization it uses was broken only once, and it was done by the Qubes founder: https://en.wikipedia.org/wiki/Blue_Pill_(software)