From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9EF1A1F66F for ; Sat, 7 Nov 2020 19:10:45 +0000 (UTC) Received: by mail-wm1-f49.google.com with SMTP id v5so4527508wmh.1 for ; Sat, 07 Nov 2020 11:10:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=No14oxsCqVj26yMBOCql4atamzolII/bNn29taXfv4M=; b=aC8GvOSnZKXGqqIjXSyjqePoC7450bktcWIn01s06cEOy9GhrzZ/Gm48oUN8SnwbTN C/iNq6gi+lJ4XRZ0ppWfuu9MitbsKaf+DbxETVBfWWVM0dcDMB57KlEUqQqgmnDH9NF7 i8YQLI0LVdyOdQkopTPuayJEldwLRFfqQLGyOrZZyo+TAr4wGfIhmncJZV43bBREKwuS iOYi6WY9obEoiyVRwwfhBwc/EhSvkIG0H2yJxmn58+ujg5X4h84yej7cnO57kWFKjlJl UzKX7EG+g1OA1FqoYN8FhiXuggByaVRL675denCZSQtml2yc8IptWxUjxQEuByWnIzEv Ov8g== X-Gm-Message-State: AOAM532L0kT2oFFCY/PDbWy/sRbjuEyedSBzafAnWYUuwqzk7oGpD4E3 eio1wnDzjwka/QVS52V82cOoW1QMNSj7/A== X-Google-Smtp-Source: ABdhPJxOvd97E5r8G+J4RsWCYnD6nnBncQcC3EkeCOyw+rYcGV4ji7GtyLDqHm3oIGtc5dG8M+Sl/A== X-Received: by 2002:a05:600c:2254:: with SMTP id a20mr6045909wmm.117.1604776241322; Sat, 07 Nov 2020 11:10:41 -0800 (PST) Received: from rhea.home.vuxu.org ([2001:470:6d:72e:468a:bdad:15be:dff3]) by smtp.gmail.com with ESMTPSA id c17sm7266686wml.14.2020.11.07.11.10.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Nov 2020 11:10:36 -0800 (PST) Received: from localhost (rhea.home.vuxu.org [local]) by rhea.home.vuxu.org (OpenSMTPD) with ESMTPA id 3b74017a for ; Sat, 7 Nov 2020 19:10:28 +0000 (UTC) From: Leah Neukirchen To: meta@public-inbox.org Subject: MIME types for image attachments Date: Sat, 07 Nov 2020 20:10:28 +0100 Message-ID: <87mtztx9sr.fsf@vuxu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: 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 https://leahneukirchen.org/