News for hackers. Stuff that matters.
Re:Why Is This Website Port Scanning Me? by djsumdog on Wednesday May 20, 2020 @10:43AM (#23247409)
Websockets are nice for some things. I hack on Mastodon and it uses WSS for streams and they're very helpful.

But WebBluetooth, ASM, etc are all fairly insane. WebRTC feels like a massive security issue (I've seen a demo of someone using WebRTC to find computers on an internal network at a security conference years ago. Even if that hole is fixed, it's still a hacky solution to video streaming behind NAT).

I agree; most of this stuff needs to have ways to disable it, in the base configuration screen of the browser (not hidden somewhere in about:config).

Re:Why Is This Website Port Scanning Me? by klodolph on Wednesday May 20, 2020 @11:10AM (#23247782)
Why is ASM insane? Are you talking about WASM? That’s got the same security model as JavaScript.
Re:Why Is This Website Port Scanning Me? by neurostimulant on Wednesday May 20, 2020 @03:15PM (#23250616)
WASM is great peace of tech but I can't help to think it would be abused a lot in the future. For example, right now we can use ad blocker to block ads and analytics by blocking its js from loading. Imagine when wasm gains mainstream popularity and ad companies begin to ship their ads and analytics product as a libaries to be linked at compile time. How do we block something like that? Sure the adblocker can hide the relevant dom contents, but the code is still run and doing whatever it want on your browser.
Re:Why Is This Website Port Scanning Me? by klodolph on Wednesday May 20, 2020 @04:13PM (#23251223)
These kind of complaints are based on a misunderstanding of how JS works or how the browser works.

You can do the same exact thing in JS right now. In fact, if anything, JavaScript makes this way easier than WASM. With JS, you can just use something like Rollup or Webpack to put your analytics code in the same code.

Re:Why Is This Website Port Scanning Me? by neurostimulant on Wednesday May 20, 2020 @04:53PM (#23251666)
Yeah but using webpack is not how majority of websites deployed, so it's probably not worth the effort for ads companies to support it. They will consider this when webpack/wasm become mainstream enough (approaching 50% web), which may or may not happen. Probably won't happened but the thought always linger in my mind.
Re:Why Is This Website Port Scanning Me? by klodolph on Wednesday May 20, 2020 @10:07PM (#23254184)
WASM is way less popular than Webpack.

Almost every site with some kind of front-end framework like React will use a bundler of some kind.

Re:Why Is This Website Port Scanning Me? by engineeringwoke on Thursday May 21, 2020 @07:10AM (#23256997)
It's easy to first party ad code. I would guess that as a percentage of website usage Webpack, or at least code that uses custom bundling, is over 50%. JS knows all.
Re:Why Is This Website Port Scanning Me? by saagarjha on Wednesday May 20, 2020 @04:48PM (#23251606)
Turing strikes again…
Re:Why Is This Website Port Scanning Me? by saagarjha on Wednesday May 20, 2020 @04:47PM (#23251597)
A stronger one, actually, since it can't access a bunch of stuff.
Re:Why Is This Website Port Scanning Me? by garmaine on Wednesday May 20, 2020 @11:36AM (#23248141)
Which is where the trouble started.
Re:Why Is This Website Port Scanning Me? by Sargos on Wednesday May 20, 2020 @12:00PM (#23248438)
Anyone who has enough technical knowledge to have a reason to turn these off should be just fine with about:config. We don't want a situation where normal users just randomly go into the config turning things off because they think they are doing something good. That's how we get another group of low-tech "turn off Windows Update" types who just harm themselves as a result of their incompetence.
Re:Why Is This Website Port Scanning Me? by bottled_poe on Wednesday May 20, 2020 @12:04PM (#23248490)
I think people turned those updates off for good reason... but it wasn’t the users that were incompetent.
Re:Why Is This Website Port Scanning Me? by mindslight on Wednesday May 20, 2020 @12:03PM (#23248481)
Anyone who has enough technical knowledge to have a reason to turn these on should be fine with about:config. The default settings should be secure.
Re:Why Is This Website Port Scanning Me? by Reelin on Wednesday May 20, 2020 @11:09AM (#23247778)
> Even if that hole is fixed ...

Last I checked (> 1 year ago) it was WONTFIX because of some very idiotic (IMO) reasoning. I keep it permanently disabled and have never missed it (media.peerconnection.enabled in Firefox btw).

Re:Why Is This Website Port Scanning Me? by rhizome on Wednesday May 20, 2020 @12:43PM (#23248979)
No doubt like canvas, font, audio, etc. fingerprinting, it will eventually be required to use Google apps like Maps and Messages for Web (to cite two recent discoveries).

"If you're not paying, you're the product" has its own form of economic inflation.

Re:Why Is This Website Port Scanning Me? by bradly on Wednesday May 20, 2020 @12:14PM (#23248612)
> I hack on Mastodon and it uses WSS for streams and they're very helpful.

I'm not familiar with Mastodon or WSS. Can you describe how using WSS make the end user's experience better? What would be different if web sockets weren't used?

Re:Why Is This Website Port Scanning Me? by djsumdog on Wednesday May 20, 2020 @12:32PM (#23248851)
Mastodon is a federated/distributed social networking server that communicates with other servers via a protocol called ActivityPub. The interface feels sorta like Twitter, but it doesn't have to be.

There are other FOSS ActiviyPub servers such as Pleroma (written in Elixir), Pixelfed (Instagram type interface) and PeerTube (distributed video). ActivityPub is a protocol (like e-mail/SMTP) for subscribing and replying to posts. ActiviyPub is just used for the backend (how servers communicate with other servers; like SMTP sending e-mail or RSS readers polling RSS).

Mastodon uses websockets to stream posts to the client/web browser. People who make mobile apps and desktop clients also tend to use WSS. It does fall back to regular HTTP polling in case WSS fails. Pleroma and others also re-implement the mastodon API. It means you can have different front-end web clients (Pleroma-fe, soapbox-fe, etc) on top of different backends (Mastodon/Pleroma).

The advantage of WSS is being able to stream new statuses with a socket, rather than polling constantly for new updates.

If you get on a Mastodon/Pleroma/Pixelfed instance (there are hundreds out there or you can setup your own), you can follow me at @[email protected]

Re:Why Is This Website Port Scanning Me? by bradly on Wednesday May 20, 2020 @04:19PM (#23251290)
Thank you for the explanation.
Re:Why Is This Website Port Scanning Me? by snisarenko on Thursday May 21, 2020 @12:08AM (#23254698)
I built a simple aggregator to give people a preview of mastodon

https://mastodonia.club

Re:Why Is This Website Port Scanning Me? by computerex on Wednesday May 20, 2020 @12:15PM (#23248632)
WebAssembly is awesome! It's a substantial performance boost, and will allow the off-loading of standards to open-source communities so browser developers can focus on core browser features rather than having to stretch themselves.
Re:Why Is This Website Port Scanning Me? by folmar on Wednesday May 20, 2020 @07:09PM (#23253077)
Also js_of_ocmal does a great job, i.e. you can usually run a CLI application in browser with zero changes.
Re:Why Is This Website Port Scanning Me? by JoshTriplett on Wednesday May 20, 2020 @01:32PM (#23249511)
The subset of web technologies that seems reasonable to any given speaker often closely matches the subset of web technologies the speaker uses (either for their own code, or in apps they use).

Personally, I'm looking forward to the point that web apps are capable enough to let PWAs do absolutely anything an Android or iOS application could do.