163 points · by ksec · 4y ago · 227 comments
This vulnerability is basically an information disclosure issue that enables you to get BSSIDs from the Airport Utility without the appropriate location tracking entitlement. Even worse the OS will not even flash the "location being accessed" indicator in the status bar when geolocation is determined this way.
Essentially any app can shell out to the CLI tool and parse its output and then feed the resulting BSSID to one of the many external BSSID -> Geolocation services and determine a device's location.
At Kolide we are huge believers that device geolocation should not be accessible to third party programs without end-user prompting (even ones managed by MDM) so we aggressively seek out gaps the TCC authorization model (or other OS issues that undermine the tenets of https://honest.security) and report them whenever we find them.
I reported this vulnerability on January 17th 2020.
Edit: Btw, I am not really sure why the CVE was withdrawn. To me this is a pretty serious information disclosure style vulnerability and everyone should upgrade to this release as soon as possible.
Thanks though for your background information what is / was going on!
There are lots of macs stuck at macOS High Sierra (the last one that supports GPUs without metal), and none of them are receiving any security update.
No luck with High Sierra though. Its last update was in Nov 2020.
Apple is notable for providing ZERO official guidance on how long various versions receive security updates. Officially they just say you must be on the latest version. At the moment they're still releasing updates back to Catalina on macOS and iOS 12 for all the devices still stuck on that version. But they make no claims on how long that will continue.
Only solution is to use Big Sur installation using Hackintosh patches and to run it on mine computers.
How one knows that BigSur for instance isn't already compromised by one of those wonderful capabilities for code execution as they provide update only now ?
That’s not different from the situation with Windows. An Intel 386DX CPU with 4 MB of system RAM and 50–55 MB of hard disk space won’t see Windows security updates, either, anymore.
What is different is that Apple is less clear in support periods and often more aggressively leave older hardware behind.
I don’t think you can require them to support things forever, but requiring everyone to be clear about it at time of sale, or requiring X years of support would be good ideas, IMO.
Yes. And that is also part of the problem. They also don't patch reported vulnerabilities nor provide a clear path for the community to fix themselves.
> What is different is that Apple is less clear in support periods and often more aggressively leave older hardware behind.
Yes, that amplifies the problem a lot. Many of the abandoned machines are 10-year old but still very suited for daily use. They have 64-bit Core i processors with decent amounts of RAM (such as 8 GB).
Why you can't require them to support things forever ? Why not? It was their choice to lock completely those devices they sell.
I think as long as device is looked and you cannot have root access and install own software of course you can required them to support those things forever until they provide unlock for them at least, no?
Perhaps it's time to question this practice and discuss the issue with potentially making such devices illegal? At least when company doesn't provide software?
Shouldn't then Apple made be legally obligated to provide root access for the devices it no longer supports?
Otherwise it's what? You buy device then it's not functioning anymore just because they decide so. Doesn't it look like some kind of a fraud/scam ? How it's called then?
I mean if one owns computer/iphone and cannot install own software there since those devices are locked and Apple do not provide their software with security updates what an owner of the machine should do?
You knew this getting these devices. You didn’t buy it and except to be able to run android on iPhone did you?
> Perhaps it's time to question this practice and discuss the issue with potentially making such devices illegal? At least when company doesn't provide software?
Why? I don’t see a huge benefit. I don’t love it, but it’s not like you can’t run old versions or it stops working. Do you expect them to give you software updates forever once you buy it? Apple is one of the best at updating mobile.
If it was up to me I’d like to have the paid updates model again, it would stop forcing upgrades, I’m not fond of the security comes with features model, and I think it would force them to have more support for other versions, they expect everyone to always update.
Then again if you don’t like the product, don’t buy it. Many Android phones lets you do all of that, and once I set up an iMessage server to route it I’ll switch completely.
>I mean if one owns computer/iphone and cannot install own software there since those devices are locked and Apple do not provide their software with security updates what an owner of the machine should do?
What security problem are you worried about? I never update iOS from the version it came from and had never been hacked ever, I’d love to hear of anyone with that experience, I have never heard of it happening once, same with my android devices although I root. Maybe my Adblocks, blacklist, or the VPN on mobile prevents it anyway, on my home network I rely on my router to protect my devices.
Do you have a realistic fear, which exploit? Why is it scary? Best practice is to stop assuming you have any safety, updates or not, lots of unpublished backdoors, lots of ways to hack you if they really wanted to.
All of the Macs stuck at High Sierra can also run Windows or Linux.
What about current M1 model after few years?
Btw what about IPhones/ IPads? Can they run linux?
Well, that range covers three different CPU architectures(!) and at least one complete file system rewrite.
But your point is fair - to the layperson there hasn't been much change.
That said, I’ve upgraded the video cards and applied an EFI “fix”, so it runs later releases with full FV2 boot support (hence the EFI “fix”).
High Sierra runs well on this device.
That said, Apple did provide some support for iOS 12.x recently, which was unusual.
Yes, it also applies to MS and possibly many other companies.
One could claim that they do, always, in the newer versions of the OS, which are almost universally incremental improvements based on the older versions.
Not supporting old hardware is something that all companies [1] eventually must do, since resources are limited.
I don't think Apple or Windows would be a good choice, if openness is a feature you're looking for.
Are these things in Objective-C or Swift? Does Swift memory management make buffer overflows and use-after-free mistakes harder to make?
https://github.com/apple/darwin-xnu
C 82.5%
C++ 8.7%
Python 2.3%
Roff 2.3%
Assembly 1.4%
HTML 1.1%
Other 1.7%
Here you can find some examples: https://reddit.com/r/macbookpro/
I’ll not go into my personal relationships with Monterey, only global statistics matter, but I can say that right now I’m trying to not reboot my system accidentally because one of the issues accidentally disappeared and I don't know what caused it.
Apple used to be so smug about not being vulnerable in those 2000s commercials. Now that they have reached critical mass, their OS is equivalent to Windows.
Yeah, they're basically identical, except macOS doesn't even have Defender.
This was a big deal a few years ago when (IIRC) a bug caused it not to cache the list long enough and it started causing problems when it couldn’t phone home. Aside from that it’s always been a perfectly seamless process.
That's the XProtect blocklist, it's been around pretty long and hasn't caused any issues that I'm aware of.
> bug caused it not to cache the list long enough and it started causing problems when it couldn’t phone home
What changed is that since Catalina macOS additionally makes a synchronous check the first time you open an app. For certain things that are not code signed (eg. shell scripts), it checks every time. This can cause multi-second delays when launching apps or executing commands in the shell. (see https://sigpipe.macromates.com/2020/macos-catalina-slow-by-d...)
To my knowledge, this issue has not been fixed and is still a problem in Monterey (first time app launches on my M1 Max sometimes take several seconds).
It's possible to deactivate the check for Terminal (by marking it as a "Developer Tool" using a checkbox that sometimes shows up in System preferences, and sometimes doesn't). I'm not aware of a way to avoid this slowdown in Finder without disconnecting from the internet.
I wonder how long the same story will repeat before the balance shifts in favor of just rewriting in more modern languages. It's expensive work with a long ROI, but sounds like a lot of these are in foundational libraries that you want to be robust in the long run.
This is especially applicable for various parsers that are typically self-contained code that is not performance critical but very prone to bugs with nasty consequences like the article demonstrated again.
[1] - https://hacks.mozilla.org/2021/12/webassembly-and-back-again...
Haskell's Software-Transactional-Memory (and general focus on immutability-by-default) are another interesting approach towards the same goal.
Software Transactional Memory (STM) is perhaps much easier to get started with than Rust's model. (Though the same can not be said for the rest of Haskell.) The failure model with STM is that your stuff runs slow, if you don't know what you are doing.
For OS and browsers though, I agree completely if infrastructure as long as its not always connected to the open internet, it doesn't seem to be much of a threat, and even though I don't care about memory safety, the performance of rust tools impresses me! I wish people talked about performance of rust more than its memory safety, I don't care as much about that, but everything being faster? Who wouldn't want that? I made this thread a few days ago. https://news.ycombinator.com/item?id=29456115
See eg https://hacks.mozilla.org/2019/02/rewriting-a-browser-compon...
Nothing new should be written in these unsafe languages.
If Spartans were alive they would be using C or C++.
I do think Apple is honestly committed to Swift over the long term, but it takes loads of time and care to replace the foundations of a building that's in daily use.
(There were absolutely spaces where robustness and safety were the priority, but those weren't consumer, and their cost reflected it.)
Even today, I'm not sure we have the engineering margin spend on such efforts (time-to-market is still the priority), though I think the pressure is slowly increasing to do it (again, in consumer spaces, which macOS definitely is).
No one would enjoy paying for a fridge that leaks water, why should they do the same for software.
Bad programming shops taught them that way, that is why.
People by-and-large _choose_ to license software where the license contract denies liability.
You are free to offer 'proper' liability, and try to charge enough extra for it to make up for your extra costs.
(Or do you want to forbid certain kinds of contracts, so that your preferred kind of contract 'wins' because the competition is banned?)
Do keep in mind that some software does come with liability, and things that are a bit like liability. The latter category is eg when you sell both software and a support contract, and your support people have to work harder when stuff goes wrong.
In fact, in many jurisdictions there are laws against (or, more to the point, denying any effect to) the waivers of liability much software comes with.
It's too early to tell -it dropped last friday - but it will probably be marked as one of the most egregious vulnerability to date due to the sheer omnipresence of Log4j in production java's code and the simplicity of its exploitation. We are talking Heartbleed/EternalBlue/Struts2 vulnerability level here.
The difference of ROI of memory-unsafe/memory-managed is not so evident. Usually memory-managed languages have fewer bugs, but those tend to be massively impactful
The log4j bug fits in the "other" category.
Also, it's a fallacy to believe that memory-safe languages aren't that much better because their bugs are worse. All languages can have the worse bugs, it's just that memory-safe languages solved the easier type of bugs, so there isn't as much of them to bring the average down.
It's like thinking that flying is riskier than driving, because plane crashes are so devastating. Driving kills more people overall, but they're spread across more, smaller events, so we're not as aware of them.
A rewrite will likely introduce plenty of CVEs that weren't present in the original code -- possibly more than are fixed, for many years to come.
I see a Big Sur update dated December 13, so it's definitely still being supported. While I haven't done an exhaustive check, it looks like it patches many of the same security holes.
The only way to be safe on Apple's computers (and phones) is to update to the latest version the day it comes out.
>The only way to be safe on Apple's computers (and phones) is to update to the latest version the day it comes out.
That has not been the case with 14 and 15, its a heuristic but unknown backdoors are a constant threat. Realistically we should state that they are never, ever safe.
https://support.apple.com/en-us/HT201222
Big Sur and Catalina got corresponding updates today too.
The sandbox keeps being tightened each release.
[1]: https://web.archive.org/web/20100501010616/http://www.apple....
Also, it was really Flash's own limitations that killed it on mobile (which, it turn killed it on desktops). Don't forget it was on Android for a while and aggressively marketed as an advantage over iOS. But it was also a poor UX (slow, power-hungry, designed for mouse & keyboard not touch) and a propriety third-party black box.
Apple didn't so much kill Flash as just be the first to see it coming and act on it.