Web application security measuers, explain where to disable rebind if needed (https://github.com/opnsense/core/issues/5481)

This commit is contained in:
Ad Schellevis 2022-01-20 09:52:27 +01:00
parent f5964434e6
commit 7869c116a7

View File

@ -155,7 +155,7 @@ function session_auth()
// check additional security measures
if (empty($_SESSION['Username'])) {
if (check_security_dns_rebind()) {
display_error_form(sprintf(gettext("A potential %sDNS Rebind attack%s has been detected.%sTry to access the router by IP address instead of by hostname."), '<a href="http://en.wikipedia.org/wiki/DNS_rebinding">', '</a>', '<br />'));
display_error_form(sprintf(gettext("A potential %sDNS Rebind attack%s has been detected.%sTry to access the router by IP address instead of by hostname.You can disable this check if needed under System: Settings: Administration."), '<a href="http://en.wikipedia.org/wiki/DNS_rebinding">', '</a>', '<br />'));
exit;
} elseif (check_security_http_referer_enforement()) {
display_error_form(sprintf(