The most basic mistakes were made here.
I also think that there must be a line between getting hacked because some 5th level transitional dependency had a memory overflow bug which made it possible for the attacker to push some sensitive data in the response headers vs "auth? what auth?".
Very hard to exactly define it though, where it should lie, other than the extreme examples.
https://www.theverge.com/2021/11/14/22781341/fbi-email-syste...