Fix vulnerability in handling of mail()'s 5th argument

release-1.0
Aleksander Machniak 8 years ago
parent 5d2aaa68c3
commit a54dde834c

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix vulnerability in handling of mail()'s 5th argument
- Don't create multipart/alternative messages with empty text/plain part (#5283)
- Fix XSS issue in href attribute on area tag (#5240)
- Wash position:fixed style in HTML mail for better security (#5264)

@ -1542,7 +1542,7 @@ class rcube
if (filter_var(ini_get('safe_mode'), FILTER_VALIDATE_BOOLEAN))
$sent = mail($to, $subject, $msg_body, $header_str);
else
$sent = mail($to, $subject, $msg_body, $header_str, "-f$from");
$sent = mail($to, $subject, $msg_body, $header_str, '-f ' . escapeshellarg($from));
}
}

Loading…
Cancel
Save