Patch for get_client_addr (#4060)

* Update CHANGELOG

* Updated get_client_addr

When calling get_client_addr REMOTE_ADDR is always returned

* Update CHANGELOG
This commit is contained in:
mr_me authored and GitHub committed 2021-01-17 12:21:32 -05:00
1 parent 3dda6b5760
commit f92e9860c4
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
Cacti CHANGELOG
1.2.17
-issue#4060: When calling get_client_addr REMOTE_ADDR is always returned
-security#4019: In a recent audit of core Cacti code, there were a few stored XSS issues that can be exposed
-security#4022: SQL Injection in data_debug.php (CVE-2020-35701)
-security#4035: XSS security issue from WebScan report
+1 -1
View File
@@ -5406,7 +5406,7 @@ function get_client_addr($client_addr = false) {
} else {
$client_addr = $header_ip;
cacti_log('DEBUG: Using remote client IP Address found in header (' . $header . '): ' . $client_addr . ' (' . $_SERVER[$header] . ')', false, 'AUTH', POLLER_VERBOSITY_DEBUG);
break;
break 2;
}
}
}