262 points · by rkta · 3y ago · 124 comments
> [...]
> 2023-05-04: We privately shared the findings with security@...illa.org, offering coordinated disclosure according to the openSUSE disclosure policy.
> Until 2023-06-12: There has been a lack of communication by upstream. Relevant questions about the disclosure process remained unanswered, there was no formal reply to our report and no wishes have been expressed about how to continue the coordinated disclosure, or what the next steps would be.
> 2023-06-12: We learned that the embargo over this issue was violated by upstream via a GitHub PR [3] and, inspired by that, our community packager followed suit via another GitHub PR [5].
What a complete clusterfuck. It's unbelievable that in 2023, a company of Mozilla's stature appears to have no proper processes in place for handling serious security vulnerabilities even when they are being reported to them (for free!) by cooperative third parties.
This taints the image of the entire product in my view.
To add further context, that PR violating the embargo:
- removes authentication entirely instead of fixing it
- discusses it as if they've discovered the CVE independently, even though it had seemingly been reported to them just 1 month prior. It may be that they did discover it independently, but the timing seems odd for a bug that existed for 3 years.
- discusses it in an extremely casual way, as if the vuln is not severe. Honestly I don't know enough about the vectors here to know what type of CVSS it might end up with.
---
Edit: Based on @AAchen's HN comment, it seems compromise requires local shell, so not an incredibly high severity it would seem. Still curious to see what NVD come out with.
9.8
It's always 9.8.
To be fair, this is an application, so the score might be more grounded in reality. The CVEs I encounter as a developer are always insane and generally massive overreach from security to product design. It's not a vulnerability against all downstream libraries and applications that using some obviously unsafe C++ call might cause a DoS due to poor performance.
If you have 10 security bugs, 3 are genuinely high severity and 9 get assigned high severity by NVD, then at least you've managed to deprioritise one of them. It's something (unironiccally).
This is a pretty decent overview https://www.first.org/epss/model
While I agree with your sentiment here, it's not exceptionnal at all and I've seen security researcher complaining about the same thing comming from at least Intel, Cisco and Google[1]! And I wouldn't be suprised if you could find example if that regarding Apple and Microsoft as well.
[1] and for Google it was just one month ago: https://matan-h.com/google-has-a-secret-browser-hidden-insid...
Isn't it just a way to sync a reading list across browsers, and have those pages pre-cached on a mobile device for reading when you have no connection?
I'm interested in what people find objectionable about it.
The strongest argument I've heard is that it's not core browser functionality, it was fine before Mozilla bought them, and therefore it's just a distraction/bloat for Firefox. Which is definitely arguable, but probably not a reason to write off the biggest independent browser.
Free, up to date and does not send neither money nor data to Mozilla.
But personally I don't care so much about privacy extremism:
The day another more liberal organization forks it again, adds Google search for some easy cash and start fixing the extension API etc I am probably going to recommend that.
I already dial back some extreme measure(s), nuking my sessions whenever I close the browser comes to mind.
Also of course I will not use Google myself, but it seems to be the way for browser developers to make a living so I'll allow whoever takes care of the future of Firefox to do the same.
Same with that hidden spyware ad/extension (distributed using channels reserved for delivering 0day bugfixes). Mozilla shit on it's users without even getting paid for it.
"Selling users off" only matters to anyone trying to push some unheard of and less-secure forks of Chrome or Firefox. Nobody notable code-reviews theses browsers, you're at the mercy at some random person or small group to play catch-up with upstream browsers, and you're ultimately still locked into somebody else's decisions.
I use Firefox because double-clicking code one-liners from my wiki doesn't add a newline when pasted into Terminals on Linux, which I use on desktop for the challenge of it. Windows Terminal on Windows doesn't have this issue from any browser and I'm free to use Edge or Chrome there.
So you need to have a local shell on the system of the user you want to attack. Not cool, it violates permission boundaries that are there for a reason, but the headline sounded to me like a remote authentication bypass (I'm not into the whole D-Bus/Polkit thing) which this is not
ex: Desktop Linux's running X have a trivial escalation path; any program can read all keystrokes across all users. You type your sudo password in, you're screwed.
Or if the attacker is running as your user they can just modify your bashrc, aliases, etc, to do a whole bunch of things - like having `sudo` go to an attacker controlled binary - that one will work on the server, too!
So yeah sandboxing builds is super important because "unprivileged users" are almost always one trivial step away from full root.
and this is why I tell everyone who wants to run a rolling release distro to go with Opensuse rather than distros where people just install random packages from community repositories. They are so underrated given the scrutiny they put into their packaging and build process.
They did infact
removed polkit : https://github.com/mozilla-mobile/mozilla-vpn-client/pull/70...
refactor auth using D-Bus: https://github.com/mozilla-mobile/mozilla-vpn-client/pull/71...
These are why author's PR was dropped.
A user-configured VPN should not run as root and affect networking for the entire system; the whole VPN process should run in its own network namespace with no more privileges beyond those of the user activating it. Processes that need to use the VPN (rather than clearnet) should be attached to that same network namespace. If necessary, you can even avoid attaching a NAT (e.g.: slirp4netns) to the namespace so that if the VPN dies there is no data leakage.
I get that running things as root has a bit more performance, but compromising on security for the sake of performance doesn't sound like the right approach for this kind of software.
That the service runs as root isn't really the issue here. None of the attack relies on the abuse of some root capabilities, it's an authentication issue that abuses how the service works. Even if it were unprivileged somehow, this would still be the same impact.
If some pam session module were to set up its own network namespace that is shared by all user processes after login, this could be (mostly) solved. The result would be some surprising behaviour though, as processes outside have a possibly vastly different view of the network.
Ultimately this means there is no fix available yet and no ETA when there will be one.
On a related note, Polkit, itself, has had its own privilege escalation problems:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4034
https://blog.qualys.com/vulnerabilities-threat-research/2022...
The name is more than appropriate. It's not the developer of Mozilla VPN.