From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH 1/2] Apache: prevent Referrer leaks via WebUI Date: Tue, 05 Nov 2019 10:34:02 +0000 Message-ID: <776FA946-3917-472D-AD72-1DCE9FAABE99@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7304825326695831158==" List-Id: --===============7304825326695831158== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Acked-by: Michael Tremer > On 4 Nov 2019, at 18:52, peter.mueller(a)ipfire.org wrote: >=20 > By default, even modern browsers sent the URL of ther originating > site to another one when accessing hyperlinks. This is an information > leak and may expose internal details (such as FQDN or IP address) > of an IPFire installation to a third party. >=20 > Signed-off-by: Peter M=C3=BCller > --- > config/httpd/vhosts.d/ipfire-interface-ssl.conf | 1 + > config/httpd/vhosts.d/ipfire-interface.conf | 1 + > 2 files changed, 2 insertions(+) >=20 > diff --git a/config/httpd/vhosts.d/ipfire-interface-ssl.conf b/config/httpd= /vhosts.d/ipfire-interface-ssl.conf > index 2009184bb..dc1151110 100644 > --- a/config/httpd/vhosts.d/ipfire-interface-ssl.conf > +++ b/config/httpd/vhosts.d/ipfire-interface-ssl.conf > @@ -22,6 +22,7 @@ >=20 > Header always set X-Content-Type-Options nosniff > Header always set Content-Security-Policy "default-src 'self'; script-s= rc 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" > + Header always set Referrer-Policy strict-origin >=20 > > Options ExecCGI > diff --git a/config/httpd/vhosts.d/ipfire-interface.conf b/config/httpd/vho= sts.d/ipfire-interface.conf > index b70994404..d95fa264f 100644 > --- a/config/httpd/vhosts.d/ipfire-interface.conf > +++ b/config/httpd/vhosts.d/ipfire-interface.conf > @@ -8,6 +8,7 @@ >=20 > Header always set X-Content-Type-Options nosniff > Header always set Content-Security-Policy "default-src 'self'; script-s= rc 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" > + Header always set Referrer-Policy strict-origin >=20 > > Options ExecCGI > --=20 > 2.16.4 --===============7304825326695831158==--