In JetBrains TeamCity prior to 2021.1.1, insufficient authentication checks for agent requests were made.
jetbrains teamcity