Wow... Good thing this wasn’t Microsoft that did it or that would be bad news. Apple fanboys will just consider it a nice feature and thank apple for the easy root.
On a serious note how the hell does this happen? Buffer overruns I understand but just typing root gives you root??? This is serious bad coding, quality review, security design, and leadership.
/sarc for them who needz it
The operating system is configured such that nobody should ever need log in as root per se. As such, it’s easy to overlook the need to check such access from contexts that don’t apply. Looks stupid in retrospect, but as a software developer I’ve seen such mistakes many times.