PR63688 balancer csrf problems
fix case-sensitive referer check
Submitted By: Armin Abfalterer
Reviewed by: covener, jim, jorton
PR: 63688
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1865966 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.4.42
+ *) mod_proxy_balancer: Fix case-sensitive referer check related to CSRF/XSS
+ protection. PR 63688. [Armin Abfalterer <a.abfalterer gmail.com>]
+
Changes with Apache 2.4.41
*) SECURITY: CVE-2019-10097 (cve.mitre.org)
if (apr_uri_parse(r->pool, ref, &uri) || !uri.hostname)
return 0;
- return strcmp(uri.hostname, ap_get_server_name(r)) == 0;
+ return strcasecmp(uri.hostname, ap_get_server_name(r)) == 0;
}
/* Manages the loadfactors and member status