SERVER-134872ClosedFixed

Fix localhost exception remaining active after $external user creation

In a auth-enabled server bound to localhost, the localhost exception allows an unauthenticated user to run a tiny set of commands (e.g. createUser and createRole) in order to bootstrap the server and create the initial set of users. Under this mode, a {{createUser}} command is permitted if the authentication database is either "admin" or "$external" (see {{AuthorizationSessionImpl::_getDefaultPrivileges}} in [authorization_session_impl.cpp|https://github.com/10gen/mongo/blob/f9d5af03b27b1869dcb5

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10258.3.169.0.78.0.377.0.48
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp