200 points · by ingve · 4y ago · 107 comments
Like, there’s an arbitrary code execution issue fixed here in ColorSync. ColorSync! Who thinks to attack the color management system, and then how do you set up your org structure to protect from attacks on that? Because…assuming they have much of a team on it at all, as it’s probably a bit of a solved problem…your core team is probably going to be focused on color, and not buffer overflows.
macOS has a lot of old components now, and just getting a grasp of where you could possibly have security issues must be nigh impossible.
1 is becoming extremely viable, infrastructure for 2 is starting to be included with modern programming languages and so will soon become the norm.
You're missing a key point the GP made, operating systems are big. There's also a finite number of person-hours in a development cycle. Third, fuzzing is a complicated and open ended process that's difficult to analyze.
Fuzzing is not a simple subject. Testing fuzzed input requires a lot of instrumentation that can affect measurements if it's instrumentation not enabled in production builds. Not all code is easily tested with fuzzed input even when it can be properly instrumented.
Because there's limited amounts of time in a day, every working moment can't be spent on the near infinite permutations of fuzzed input for every component on a system. Even automated test suites take time to run and then can only test known workflows or code paths.
An OS has thousands of components with complex graphs of those interacting components. There's vast surface area for bugs and limited time to explore it all. Just switching languages and adding more tests aren't going to make bugs go away.
Boy I’ve got bad news for you
The parent only mentioned "use a memory safe language", yet Rust it must be.
No, it could have been JOVIAL, NEWP, PL/I, BLISS, Modula-2, Modula-3, Oberon, Object Pascal, D, Nim, System C#, Ada, Swift, ....
General purpose languages are cool, but their unlimited expressiveness is exactly what you don't want for security. Why is this PNG loader able to make network connections and control my camera? You know a bad guy will find a way to force it to use those capabilities right?
Is there something rust inherently can't do but c/c++ can?
(Beating a dead horse, I know, and not blaming the devs because this utility has been around forever, but regardless)
Even if you have functionally unlimited money like Apple, it’s tough to prioritize rewriting a somewhat obscure piece of the OS solely to prevent security issues. Because if you have a team that’s capable of fully reimplementing this component, and getting it through a QA process to make sure it doesn’t break another component of the OS…well damn, that’s a team you probably want on a higher-profile project, and not doing cleanup, right?
However much of a team they have on ColorSync, it needs to be bigger. If they don't have code fixes to make, there's plenty of other things for them to get on with. I didn't think much of the API documentation, and multiple people who seemed credible to me claimed there wasn't enough detail for the kind of implementation Adobe and others need, as several calls have been deprecated. And, since Apple no longer offer their own competing product it would make sense to assist Adobe in getting it reliably right.
More than that, the calibration software for monitors is third party and, at least for the photo monitor I have... could be better. These monitors use onboard hardware LUTs instead of doing it in the GPU, so the software is hardware-specific. Fortunately, there are only a couple of brands who offer these high-end monitors, maybe 3 if you count LG, so there isn't all that much hardware to support. It's another case where the overall experience could be improved for a segment of Apple's customers if they put the effort in. There may even be money to be made.
ColorSync shouldn't have been an "old" component, if Apple had kept their eyes on what their users needed. Instead they went and changed Music again, which has apparently not pleased its users. It's a company whose management seems obsessed with a fairly narrow range of applications like home automation and instant messaging, the kinds of things shown in 1970s TV programs about the "future". If they widened their horizons more they would end up cycling through more of the many components of macOS more often, so things got timely refreshes.
There must be enough security bug fixes out there on GitHub that certain classes of security error become easily detectable.
- Big Sur: https://support.apple.com/en-us/HT213055
- Catalina: https://support.apple.com/en-us/HT213056
Though the Monterey update fixes 13 CVEs and the Big Sur and Catalina updates only address 7 and 5 CVEs respectively.
It seems unlikely that Big Sur just isn't vulnerable to so many of the Monterey CVEs and instead this is just Apple prioritizing fixes for the latest macOS version. Officially Apple of course only provides security updates for the latest version.
Edit: Here's a list of the security issues fixed in the Monterey update that aren't mentioned in the Big Sur update: https://gist.github.com/varenc/7722a0fe198d85a7e49544bcf4066...
It's like poetry.
Poetry indeed.
For example, there is no other app for Mac that handles the assembly of time lapses with the simplicity and speed of QT7. Many apps will do it, but in a more cumbersome way.
According to Google, the only mention of "amd64" on developer.apple.com (excluding the forums) is here[1], where they refer to which Ubuntu image you should download to set up an Ubuntu VM on "Intel-based Mac computers".
[1] https://developer.apple.com/documentation/virtualization/cre...
Here's the official logo:
https://en.wikipedia.org/wiki/X86-64#/media/File:AMD64_Logo....
What does this mean? Back in my day that's just what a regular computer program did.
The way I’ve dealt with this “let’sPretendUsersAreRetarded” annoyance is to actively add newly installed apps to the “Full Disk Access” list in the “security&privacy”-“privacy” section of system preferences as soon as I install them. Then I don’t have to allow permission everytime I open a new folder.
> WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal.
"Microsoft's January 2022 Security Updates" looks comparable: https://answers.microsoft.com/en-us/windows/forum/all/micros...
Perhaps the parent comment was flamebait and I fell for it.
And this update has very little security content compared to previous ones, for example 12.1 had 42 entries (13 entries for 12.2).
Apple security updates: https://support.apple.com/en-us/HT201222