News for hackers. Stuff that matters.
Re:Mozilla fixes Firefox zero-day actively exploited in attacks by fulafel on Thursday October 10, 2024 @04:52AM (#41796935)
They already are partly in JS so there's a smooth path.

(Wasm isn't safe but could be a building block too)

Re:Mozilla fixes Firefox zero-day actively exploited in attacks by flohofwoe on Thursday October 10, 2024 @04:59AM (#41796973)
I can't find the link right now but I seem to remember that Firefox already replaced some internal native subsystems with the same code compiled to WASM - or maybe even compiled to WASM and then translated back to C, which basically adds a runtime memory safety layer to unsafe C code at the cost of some performance (I think it was a couple of media codecs, but not sure).

Not sure why you think that WASM is less secure than JS though. Even if the WASM heap has internal corruption there's no way for this to do damage outside the WASM sandbox that wouldn't be possible in JS.

Re:Mozilla fixes Firefox zero-day actively exploited in attacks by cesarb on Thursday October 10, 2024 @08:07AM (#41798024)
> I can't find the link right now but I seem to remember that Firefox already replaced some internal native subsystems with the same code compiled to WASM - or maybe even compiled to WASM and then translated back to C

Was it this one? https://hacks.mozilla.org/2021/12/webassembly-and-back-again...

Or perhaps this one? https://hacks.mozilla.org/2020/02/securing-firefox-with-weba...

Re:Mozilla fixes Firefox zero-day actively exploited in attacks by fulafel on Thursday October 10, 2024 @05:05AM (#41797002)
If your browser is running in a wasm sandbox, it's a minor comfort that only your browser gets compromised which contains all your creds, etc.
Re:Mozilla fixes Firefox zero-day actively exploited in attacks by flohofwoe on Thursday October 10, 2024 @05:05AM (#41797006)
Only parts of the browser are running in multiple small isolated WASM sandboxes, those WASM sandboxes are isolated from outside world about as well as if they would run in their own process.
Re:Mozilla fixes Firefox zero-day actively exploited in attacks by fulafel on Thursday October 10, 2024 @05:06AM (#41797010)
Compartments of internally unsafe sandboxes are what we have now, with browsers employing native-code sandboxes and isolated renderer processes etc. It gets leaky.
Re:Mozilla fixes Firefox zero-day actively exploited in attacks by guappa on Friday October 11, 2024 @05:09AM (#41807714)
> there's no way for this to do damage outside the WASM sandbox

java applets promised a sandbox and then we had years of continuous vulnerabilities of escaping said sandbox.

Re:Mozilla fixes Firefox zero-day actively exploited in attacks by tomrittervg on Friday October 11, 2024 @08:26AM (#41808880)
This is true, but adding a sandboxing to browsers has been a huge part in driving up the difficulty/cost of browser exploits, and driving down the frequency of their use.

And also we'll pay for a bypass of the wasm sandbox. (Actually, looking at our table, I'm going to try and get the bountyamount upped...)

Re:Mozilla fixes Firefox zero-day actively exploited in attacks by flohofwoe on Saturday October 12, 2024 @05:52AM (#41817897)
Java applets didn't sandbox shit though, because you could call straight into your own native code via JNI (I know because I used exactly that approach to integrate a Win32 game client into browsers). The only thing that the applet launcher did was asking if it is ok to run the applet.
Re:Mozilla fixes Firefox zero-day actively exploited in attacks by guappa on Sunday October 13, 2024 @02:17PM (#41830212)
You're probably thinking of microsoft java. I was talking about the proper java.