Should Basilisk Disable WebAssembly By Default

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

Should we disable WebAssembly by default?

Yes
3
19%
No
13
81%
 
Total votes: 16

User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 323
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Should Basilisk Disable WebAssembly By Default

Unread post by Basilisk-Dev » 2023-08-03, 22:00

I've been doing a lot of research lately into WebAssembly, specifically in regards to its use as a potential attack vector.

I've found a significant number of sites, both general news sites and cybersecurity sites, which say that WebAssembly is commonly abused for malicious purposes. Several of these news sources reported that over 50% of all sites using WebAssembly use it for a malicious purpose.

Personally I am in support of disabling it, but I don't want to disable it without asking people here first. While I think that browsers should cater to the least common denominator (non-technical users), at the same time I'd say it's safe to assume that most users of Pale Moon and Basilisk probably do not fall into this category. One thing I would do to cater to those non-technical users is add a toggle in the browser settings to enable/disable WebAssembly so users don't have to go to about:config to toggle it.

What are your thoughts? Should I set Basilisk to disable it by default?

Below are some links discussing the security implications of leaving WebAssembly enabled:
* https://www.crowdstrike.com/blog/ecrimi ... e-malware/
* https://www.zdnet.com/article/half-of-t ... -purposes/
* https://thehackernews.com/2022/07/hacke ... embly.html
* https://iamroot.blog/2020/06/29/webasse ... ystem.html
* https://it.slashdot.org/story/20/01/08/ ... s-purposes
Basilisk Project Owner

viewtopic.php?f=61&p=230756

User avatar
suzyne
Lunatic
Lunatic
Posts: 364
Joined: 2023-06-28, 22:43
Location: Australia

Re: Should Basilisk Disable WebAssembly By Default

Unread post by suzyne » 2023-08-03, 22:34

I found this comment on SlashDot interesting. If it is an accurate assessment of the security risk, it makes me wonder what all the fuss is about in the other articles?
Web Assembly is as exactly as malicious as Javascript on the same website. It runs with the same privilege and it is capable of the same things. The only difference is WASM is slightly faster (since it is precompiled and closer to machine instructions), and slightly harder to disassemble. That's it.

If people find themselves victim of malicious content, then maybe they shouldn't be visiting the websites that was hosting it. Chances are they've always been victim of malicious content on those sites and just didn't know it.
Laptop 1: Windows 10 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35651
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Should Basilisk Disable WebAssembly By Default

Unread post by Moonchild » 2023-08-03, 22:38

It's only as much of a security risk as any black-box code is you allow to run (including obfuscated JS). It's just abused more readily because it's fairly easy to use transpilers to transpile other languages to WASM - but effectively it's just pseudocode with a feature set akin to asm.js (a limited subset of JS).

The Slashdot comment is right on the money.

PS: quite a few captchas/botchecks will attempt to toss in WASM as one check to see if it's a full-fledged browser or some limited bot client/script that won't be able to handle it -- disabling WASM might cause a lot of impact for the user in that scenario, getting blocked by WASM checks failing.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Should Basilisk Disable WebAssembly By Default

Unread post by moonbat » 2023-08-03, 23:16

I would say don't ever go down the path of mollycoddling users to protect them from themselves. If WASM is used as a gatekeeping function as Moonchild says, it will create more problems than fix it. Users need to be responsible for the sites they visit. You are doing everyone a great favor by building this browser for them in your spare time as it is, it isn't a well funded corporate product (neither is PM), not that those bother to listen to user feedback.

A well configured adblocker is a pre-requisite on the modern web and will suffice to block malicious sites ( combined with sane surfing habits). As you said, users of UXP browsers tend to be somewhat more experienced than the masses and can make an informed decision on their own over toggling the feature.

By all means add an option in the UI to make it easier to use; but understanding what it does is the user's job before meddling with it.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
frostknight
Fanatic
Fanatic
Posts: 209
Joined: 2022-08-10, 02:25

Re: Should Basilisk Disable WebAssembly By Default

Unread post by frostknight » 2023-08-06, 21:26

Having an option to disable WebAssembly does sound like its sufficient, if its a risk.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Also, say NO to Fascism and Corporatism as much as possible!

Blacklab
Board Warrior
Board Warrior
Posts: 1081
Joined: 2012-06-08, 12:14

Re: Should Basilisk Disable WebAssembly By Default

Unread post by Blacklab » 2023-08-07, 14:51

Another link... MDN's 'WebAssembly' documentation dated 31May23: https://developer.mozilla.org/en-US/docs/WebAssembly

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35651
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Should Basilisk Disable WebAssembly By Default

Unread post by Moonchild » 2023-08-09, 01:18

Blacklab wrote:
2023-08-07, 14:51
MDN's 'WebAssembly' documentation dated 31May23
Forewarning: this has an introduction/summary written that reads like a marketing push post. Read with a grain of salt.
The "near native" speed touted is the same as any JIT compiled javascript and is not new to WASM. The same speed can be achieved with asm.js; only the loading will be slightly faster as it's bytecode.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 323
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Re: Should Basilisk Disable WebAssembly By Default

Unread post by Basilisk-Dev » 2023-08-16, 15:05

It sounds like there is overwhelming consensus that Basilisk should not disable WebAssembly by default. We will not be disabling WebAssembly by default for the forseeable future unless there is some drastic reason to do so. Thanks to everyone who voted and participated in the discussion.
Basilisk Project Owner

viewtopic.php?f=61&p=230756