]> git.ipfire.org Git - thirdparty/systemd.git/commit
import: turn off weird protocols in curl v249.4
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Aug 2021 16:12:56 +0000 (18:12 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Aug 2021 11:04:08 +0000 (13:04 +0200)
commit4d8fd88b9641fce81272f60f556543f713175403
treede0d25c9dbf9b3571fccf0883d92340678c3c4e8
parent08c7dfd68e9d79edf4e9cfe405d7f234bcd12324
import: turn off weird protocols in curl

Let's lock things down a bit and now allow curl's weirder protocols to
be used with our use. i.e. stick to http:// + https:// + file:// and
turn everything else off. (Gopher!)

This is cde that interfaces with the network after all, and we better
shouldn't support protocols needlessly that are much less tested.

(Given that HTTP redirects (and other redirects) exist, this should give
us a security benefit, since we will then be sure that noone can forward
us to a weird protocol, which we never tested, and other people test
neither)

(cherry picked from commit 55b90ee00b78a449c8f187a5e8141f8ccb100bf4)
src/import/curl-util.c