From 5a5fb1befdae9632c59541b307fd5e7e0fe20983 Mon Sep 17 00:00:00 2001 From: chapeau Date: Sun, 23 May 2021 10:45:40 +0200 Subject: [PATCH] change regex to remove a dos vuln --- radius/api/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radius/api/urls.py b/radius/api/urls.py index 3e141936..2ab8ec91 100644 --- a/radius/api/urls.py +++ b/radius/api/urls.py @@ -23,17 +23,17 @@ from . import views urls_functional_view = [ ( - r"radius/authorize/(?P[^/]+)/(?P.+)/(?P[0-9a-fA-F\:\-]{17})$", + r"radius/authorize/(?P[^/]+)/(?P.+)/(?P[^/]{17})$", views.authorize, None, ), ( - r"radius/post_auth/(?P[^/]+)/(?P.+)/(?P[0-9a-fA-F\:\-]{17})$", + r"radius/post_auth/(?P[^/]+)/(?P.+)/(?P[^/]{17})$", views.post_auth, None, ), ( - r"radius/autoregister/(?P[^/]+)/(?P.+)/(?P[0-9a-fA-F\:\-]{17})$", + r"radius/autoregister/(?P[^/]+)/(?P.+)/(?P[^/]{17})$", views.autoregister_machine, None, ),