-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thumbnail generator should also make sure that the file is an image #5485
Comments
As reporter, I think these security checks by file content are excessive. The response will be with 'Content-Type: image/xxx' header, so browser must treat content as image and nothing else. Can anybode please explain security hole more detailed? Google keywords and other links are highly welcome. (And, please, do not open #4151 (comment) - there is swf-file inlined disguised as image.) Propose to discuss this. ) Maybe CSRF protection ( |
#4014 talks about an iframe, maybe with img there's no such issue in browsers, but I don't know. As for the CSRF check, I'm not sure. |
Fixed. For other considerations use mailing list. |
* 'master' of https://github.com/roundcube/roundcubemail: (31 commits) Fix write_log() return value when using syslog() and it fails Fix alignment of error icon Fix _from argument validation A better alignment/positioning of icons on widescreen list Update changelog Revert some style changes to correctly position status icon in threaded messages view of widescreen mode Always send columns list as array (unsetting items makes it an object with numeric keys) Adjust sizes and spacings in new 3-column layout Support hostname and hostname:port in force_https option (roundcube#5511) Fix displaying attached images with wrong Content-Type specified (roundcube#5527) Fix missing content check when image resize fails on attachment thumbnail generation (roundcube#5485) Make sure $prefs property is an array (roundcube#5523) Fix storing "empty" values in rcube_cache/rcube_cache_shared (roundcube#5519) replace old trac links (roundcube#5514) Enigma: Don't log bad-passphrase errors Require Crypt_GPG 1.6.0 Update README with some GnuPG 2.1 support info GnuPG 2.1: Fix secret keys export write_record() should return boolean value Code simplification ...
As suggested in #4151 (comment) it is possible to bypass security checks by using e.g. swf-file with jpg extension and image/jpeg mimetype. If the image resize fails we should make sure the file is an image before sending it to the browser as we do for inline images.
The text was updated successfully, but these errors were encountered: