From: Leah Neukirchen <leah@vuxu.org>
To: meta@public-inbox.org
Subject: MIME types for image attachments
Date: Sat, 07 Nov 2020 20:10:28 +0100 [thread overview]
Message-ID: <87mtztx9sr.fsf@vuxu.org> (raw)
Hi,
I just noticed this on a plain public-inbox 1.6.0 installation:
https://inbox.vuxu.org/9fans/8F5F1B4BCF0E2F1DA17BDFBF06430DC7@abbatoir.fios-router.home/T/#u
> [-- Attachment #2: Type: image/png, Size: 56860 bytes --]
However, when I click on it:
% curl -I https://inbox.vuxu.org/9fans/8F5F1B4BCF0E2F1DA17BDFBF06430DC7@abbatoir.fios-router.home/2-a.bin
HTTP/1.1 200 OK
Server: nginx/1.18.0
Date: Sat, 07 Nov 2020 19:08:48 GMT
Content-Type: application/octet-stream
Content-Length: 56860
Connection: keep-alive
Any reason this is not served as image/png? I don't think serving
image/* types is particularily dangerous, and it easily allows looking
at attached images from the browser.
Thanks,
--
Leah Neukirchen <leah@vuxu.org> https://leahneukirchen.org/
next reply other threads:[~2020-11-07 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-07 19:10 Leah Neukirchen [this message]
2020-11-07 20:39 ` MIME types for image attachments Eric Wong
2020-11-08 0:05 ` Leah Neukirchen
2020-11-08 7:49 ` [PATCH] wwwattach: set "Content-Disposition: attachment" Eric Wong
2020-11-23 14:15 ` [PATCH v2] wwwattach: prevent deep-linking via Referer match Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mtztx9sr.fsf@vuxu.org \
--to=leah@vuxu.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).