r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

-2

u/dale_glass Mar 27 '23

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.

0

u/[deleted] Mar 27 '23

[deleted]

-5

u/dale_glass Mar 27 '23

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.

4

u/Zbee- Mar 27 '23

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.

→ More replies (1)