Passwords are both security flaws and UX features -- they're inherently flawed, cannot be fixed, and are the only authentication system most people can use successfully.
Security is always in tension with usability.
I think the flaw marcoamorales intended to point out is how sudo doesn't always re-prompt for a password.