mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-20 14:56:56 +01:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user