News for hackers. Stuff that matters.
Re:TabFS – a browser extension that mounts the browser tabs ... by IncRnd on Saturday February 18, 2023 @12:36PM (#34848922)
This is a great idea. I really do like this.

However, we shouldn't forget the reduced security of the situation. This opens entirely new attack vectors by introducing the otherwise fantastic ability of local programs to consume network input.

With the flexibility and utility of local information comes additional remote attacks. In doing so, this extension blurs the lines between the greater difficulty of remote attacks vs local attacks. Many programs never considered in their threat models that input would come over the network. There are many developers who never try to protect past a certain point, saying, "if the person gets this far, there is nothing we can do anyway", then they ship.

Re:TabFS – a browser extension that mounts the browser tabs ... by rmbyrro on Saturday February 18, 2023 @01:26PM (#34849537)
Isn't this already a reality with wget, curl, and even package managers like pip and npm?

I mean, any script on my machine can use these tools to interact with network input and execute untrustworthy code...

Re:TabFS – a browser extension that mounts the browser tabs ... by IncRnd on Saturday February 18, 2023 @02:09PM (#34849999)
That's not the issue. The issue is adding network input into local tools whose threat models never considered having network input.
Re:TabFS – a browser extension that mounts the browser tabs ... by NoZebra120vClip on Saturday February 18, 2023 @04:17PM (#34851192)
If a tool's threat model never considered having network input in the first place, that tool would seem deficient in most every real-world situation.

I do not per se see a problem with "network input" but I think you're referring to input from untrusted sources, i.e. input that is not controlled or approved by the user of the tools.

I think that a modern operating system must definitely have access controls that can flag and signal when input is untrusted, wherever the source may be, network, keyboard, USB stick, camera, whatever. If the input is from a network source such as el rando website, then an AAA-layer service can block, flag, log, and handle an exception, rather than forcing every tool and every application to track the provenance of every byte of input. Don't you think?

Re:TabFS – a browser extension that mounts the browser tabs ... by IncRnd on Saturday February 18, 2023 @07:16PM (#34852615)
> If a tool's threat model never considered having network input in the first place, that tool would seem deficient in most every real-world situation.

The hyperbole isn't needed. Risk can be avoided, mitigated, transferred, or accepted. This extension, which otherwise looks fantastic by the way, moves the risks between those categories for various local tools, the data in the DOM, and even for remote accounts of the other current websites. That is what is happening here.

> I do not per se see a problem with "network input" but I think you're referring to input from untrusted sources, i.e. input that is not controlled or approved by the user of the tools.

That is the implication of saying network input, since that input is uncontrolled and from a third party.

Re:TabFS – a browser extension that mounts the browser tabs ... by NoZebra120vClip on Sunday February 19, 2023 @03:51PM (#34861737)
> That is the implication of saying network input, since that input is uncontrolled and from a third party.

Hey, it is easier to authenticate and authorize network input than keyboard input, considering what sort of USB devices are floating around.

Re:TabFS – a browser extension that mounts the browser tabs ... by gorgoiler on Saturday February 18, 2023 @04:28PM (#34851289)
Except now the attacker has your cookie jar with the bank.com cookie in it.

(Fantastic extension, btw.)

Re:TabFS – a browser extension that mounts the browser tabs ... by vorpalhex on Saturday February 18, 2023 @08:29PM (#34853129)
They already did. Where do you think Firefox stores your cookies?
Re:TabFS – a browser extension that mounts the browser tabs ... by quickthrower2 on Sunday February 19, 2023 @12:15AM (#34854722)
I guess we are now getting into which folders and what permissions
Re:TabFS – a browser extension that mounts the browser tabs ... by chisquared on Sunday February 19, 2023 @09:22PM (#34864263)
> even package managers like pip

This reminds me of a blog post [1] I read before. Pertinent quote:

> Unbeknownst to me, even with --dry-run pip will execute arbitrary code found in the package's setup.py. In fact, merely asking pip to download a package can execute arbitrary code (see pip issues 7325 [2] and 1884 [3] for more details)!

Also seen on Twitter [4].

[1] https://moyix.blogspot.com/2022/09/someones-been-messing-wit...

[2] https://github.com/pypa/pip/issues/7325

[3] https://github.com/pypa/pip/issues/1884

[4] https://twitter.com/moyix/status/1566561433898426368

Re:TabFS – a browser extension that mounts the browser tabs ... by vorpalhex on Saturday February 18, 2023 @08:28PM (#34853124)
If your local machine is compromised such that your mountpoints are free game to some tool running.. what difference do you think this will make? Your cookie jar IS STILL exposed without this.
Re:TabFS – a browser extension that mounts the browser tabs ... by IncRnd on Sunday February 19, 2023 @03:43PM (#34861667)
You misunderstand the security implications, so making categorical statements like that isn't useful. While random running processes may be on a developer's machine, that's not at issue here.
Re:TabFS – a browser extension that mounts the browser tabs ... by vorpalhex on Monday February 20, 2023 @01:33AM (#34865591)
/mnt is owned by root, the submount would be owned by either root or your user

your cookie jar is somewhere in ~ (eg ~/.firefox)

If a service has been compromised such that it can exfiltrate /mnt/blah/tab/blah/, it can also exfiltrate ~/.firefox/blah

You're shuffling deck chairs on the titanic.

Re:TabFS – a browser extension that mounts the browser tabs ... by IncRnd on Monday February 20, 2023 @12:18PM (#34870265)
You should read the article. This isn't /mnt but fs/mnt.

In this particular scenario, the article describes the use of FUSE for mounting the files. FUSE stands for "Filesystem in Userspace". This, thankfully, doesn't force running a web browser as root, which would be required in your scenario.

Re:TabFS – a browser extension that mounts the browser tabs ... by vorpalhex on Monday February 20, 2023 @04:32PM (#34873205)
> doesn't force running a web browser as root, which would be required in your scenario.

It would not in any way shape or form be required in my scenario. Please re-read the basics of file permissions on POSIX.

We are asking the question: "Does this expose additional potential security vulnerabilities not exposed with the cookies existing purely in the normal cookie store?"

Our possible vectors of attack are a compromised root owned service and a compromised user owned service. Both of those vectors would allow the cookie store to be exfiltrated regardless of whether this extension is used.

Ergo, this extension does not create any additional security vulnerabilities in that regard.

Re:TabFS – a browser extension that mounts the browser tabs ... by hannasm on Saturday February 18, 2023 @10:14PM (#34853904)
I think the security implications of this would qualify as a fantastic new problem to solve if it's really of any meaningful consequence.