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

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.

-2

u/dale_glass Mar 27 '23

Nah. I stand by my words here.

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.