Fix SSRF + Information Disclosure via stylesheet links to a local network hosts

Reported by Georgios Tsimpidas (aka Frey), Security Researcher at https://i0.rs/
This commit is contained in:
Aleksander Machniak
2026-03-18 10:35:16 +01:00
parent 10a6d1fa8a
commit 27ec6cc9cb
7 changed files with 85 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ class rcmail_action_utils_modcss extends rcmail_action
$ctype = null;
try {
$client = rcube::get_instance()->get_http_client();
$client = rcube::get_instance()->get_http_client(['allow_redirects' => false]);
$response = $client->get($realurl);
if (!empty($response)) {