Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
remote_billing_legacy_server_login: Only accept credentials via POST.
Mateusz Mandera3d6863b5b98b
diff --git a/corporate/views/remote_billing_page.py b/corporate/views/remote_billing_page.pyindex ed727269c41..da590924689 100644--- a/corporate/views/remote_billing_page.py+++ b/corporate/views/remote_billing_page.py@@ -3,7 +3,7 @@ from typing import Literal, Optionalfrom django.conf import settingsfrom django.core import signing-from django.http import HttpRequest, HttpResponse, HttpResponseRedirect+from django.http import HttpRequest, HttpResponse, HttpResponseNotAllowed, HttpResponseRedirectfrom django.shortcuts import renderfrom django.urls import reversefrom django.utils.crypto import constant_time_compare@@ -243,6 +243,10 @@ def remote_billing_legacy_server_login(context={"error_message": False},)+ # The form must be submitted via POST.+ if request.method != "POST":+ return HttpResponseNotAllowed(["POST"])+try:remote_server = get_remote_server_by_uuid(server_org_id)except RemoteZulipServer.DoesNotExist: