Mailing List Archive

[Bug 65737] Proxy Balancer AH10187: ignoring params in balancer-manager cross-site access
https://bz.apache.org/bugzilla/show_bug.cgi?id=65737

--- Comment #3 from Andrii Ustymenko <ustymenko.andrew@gmail.com> ---
Hi all,

Have the same issue in 2.4.55. Apparently the code mentioned earlier

:~$ vim mod_proxy_balancer.c
[...]
/* Ignore parameters if this looks like XSRF */
ref = apr_table_get(r->headers_in, "Referer");
if (apr_table_elts(params)
&& (!ref || !safe_referer(r, ref))) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10187)
"ignoring params in balancer-manager cross-site access");
apr_table_clear(params);
}
[...]

is checking for the Referer header in the request. The correct Referer can be
taken from DevTools when accessing balancer-manager page in the browser and
clicking on the corresponding backend.

Adding that to the request will fix the issue.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65737] Proxy Balancer AH10187: ignoring params in balancer-manager cross-site access [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65737

Joe Orton <jorton@redhat.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED

--- Comment #4 from Joe Orton <jorton@redhat.com> ---
Yes, you need to have a valid Referer: header in the request since 2.4.41 -
this is a deliberate security feature to prevent XSS/XSRF attacks. So I don't
see a bug here.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65737] Proxy Balancer AH10187: ignoring params in balancer-manager cross-site access [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65737

--- Comment #5 from Horst Platz <hp@localhorst.org> ---
ok thx for the infos and in my example case. the referre header must in the
proxy configuration.

~# vim /etc/apache2/sites-enabled/000-default.conf
[...]
<Location /balancer-manager>
ProxyPass http://192.168.56.170:81/balancer-manager
ProxyPassReverse http://192.168.56.170:81/balancer-manager
RequestHeader set Referer http://192.168.56.170:81/balancer-manager
SetOutputFilter INFLATE;SUBSTITUTE
Substitute "s|http://192.168.56.170:81|http://192.168.56.70|i"
</Location>
[...]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org