In JetBrains TeamCity prior to 2019.2.1, a user without appropriate permissions was able to import settings from the settings.kts file.
jetbrains teamcity