From time to time every operating system out there is revealed to have a bewildering bug or two. Today macOS has fallen victim to this custom, and as far as bugs go, this is a big one. It also unfortunately creates a huge security issue, so if you have a Mac running macOS High Sierra you should read on, for there's an easy fix you can apply yourself. First, the problem. The bug lets you or anyone with access to your computer get root (admin) access without a password. No, really. All you need to do is enter "root" in the username field when you log in, leave the password field blank, and...
Source: https://www.gsmarena.com/macos_high_sierra_bug_gives_you_root_access_without_a_password-news-28478.php