Blame SOURCES/0005-CVE_2019_13038.patch

765550
From 297093e6a48a4c0fd307c2206c59a8c8eb84fb53 Mon Sep 17 00:00:00 2001
765550
From: Valentin <awakenine@users.noreply.github.com>
765550
Date: Fri, 6 Sep 2019 13:30:36 +0300
765550
Subject: [PATCH] Update auth_mellon_mode.c
765550
765550
Fix open redirect CVE-2019-13038
765550
---
765550
 auth_mellon_util.c | 4 ++++
765550
 1 file changed, 4 insertions(+)
765550
765550
diff --git a/auth_mellon_util.c b/auth_mellon_util.c
765550
index fd442f9..7dff61e 100644
765550
--- a/auth_mellon_util.c
765550
+++ b/auth_mellon_util.c
765550
@@ -116,6 +116,10 @@ int am_validate_redirect_url(request_rec *r, const char *url)
765550
 
765550
     /* Sanity check of the scheme of the domain. We only allow http and https. */
765550
     if (uri.scheme) {
765550
+	/* http and https schemes without hostname are invalid. */
765550
+        if (!uri.hostname) {
765550
+            return HTTP_BAD_REQUEST;
765550
+	}
765550
         if (strcasecmp(uri.scheme, "http")
765550
             && strcasecmp(uri.scheme, "https")) {
765550
             AM_LOG_RERROR(APLOG_MARK, APLOG_ERR, 0, r,
765550
-- 
765550
2.21.0
765550