One key difference is that open source software is or was designed to be open source, and as such has been aware of that vulnerability the whole time.
Never heard of such a thing. I don't think it's something reasonable anywhere, least of all places like Twitter, which could be of interest to even governments.
If your plan to protect a piece of software being used by millions of people constantly from all over the world is that they don't know what's going on behind the scenes, I would say that's absolutely a terrible plan. With enough interest and something juicy to gain there will be people hammering on it from all directions.
As mentioned elsewhere in these comments, obscurity is just a layer, not a whole security plan, at least we all hope.
It's a pretty key architecture thing from the very beginning to go "We're open-sourcing this, let's design the codebase to have key security/whatever components outside of our primary codebase(s)". If that is at no point considered because it is closed source software it is not at all unheard of for best practices such as fracturing out pieces of the code to be separate and (more) hidden to not be adhered to at any point during development (or only adhered to sporadically).
Simply being aware of a 'vulnerability' like your code being open source and having that at the forefront of your mind (closing issues on github, pushing your commits to github, etc) is going to be a relatively substantial step in keeping everybody security-minded with practices such as what I mentioned just above; not to mention rules for such practices being hammered into developers by management because the VP also had this at the forefront of their own mind.
There are many articles that go over these points even in simple "pros and cons" lists of open source vs closed source security, I believe what I said is rather reasonable actually - if maybe a bit tongue-in-cheek.
For years and years it could be the case that nobody thinks 'we should try that 0day we have on twitter's photo metadata processing software'
Why? It doesn't take a genius to figure out that a site that posts user-provided pictures may be doing some processing on them for either recompression, or CSAM detection or something like that.
The list of such software is very much finite, and can be narrowed down quite easily. Some will leave visible traces like writing a header in a particular way, or refusing a file that has some odd particularity, allowing one to identify the actual library being used.
When you combine that with a world-wide audience of hundreds of millions that includes experts with an axe to grind for some reason and state level actors that may have reasons to have professionals working full time on finding an exploit, hoping that the attackers won't try trivial ideas like testing a libpng exploit against the system just because they can't find a Makefile on github where something links to libpng.so is frankly stupid.
It doesn't take a genius, no, but it does take obscene quantities of particularly competent work-hours to figure out how to utilize any of it or even think of that specific attack vector; a good counter-point to your stance is the mere existence of bug-bounty programs even from companies that have had their code professionally audited and tested: not everyone will think of the same seemingly-simple attack vectors, let alone go down the entire rabbit hole with each and every one of them, it is not at all feasible to do so.
Yeah, lack of information makes an attacker's work harder, but you can't reasonably rely on it. Information can be leaked by various side channels, such as subtle traces found in the output (eg, particulars in how an image library follows the specification), accidental clues in error messages, employees asking on Stack Overflow, or stuff leaking in other ways. For good security, you should assume something along these lines will eventually happen.
Security-wise the only options I find reasonable is to actually do proper engineering -- review your attack vectors, secure the system, sandbox processes and limit what data can be leaked if the thing that interacts with random internet people by parsing complex structures with long and tricky to implement specifications happens to be exploited.
-2
u/dale_glass Mar 27 '23
Never heard of such a thing. I don't think it's something reasonable anywhere, least of all places like Twitter, which could be of interest to even governments.
If your plan to protect a piece of software being used by millions of people constantly from all over the world is that they don't know what's going on behind the scenes, I would say that's absolutely a terrible plan. With enough interest and something juicy to gain there will be people hammering on it from all directions.