? ? ? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
31 Jul 2019

Pull Request for Issue #25735 && https://scotthelme.co.uk/security-headers-updates/

Summary of Changes

Drop X-XSS-Protection and X-Content-Type-Options options from the plugin.

X-XSS-Protection

As the most popular platform that still runs an XSS Auditor, Chrome announced plans to drop it in an Intent to Deprecate and Remove: XSS Auditor. There are further details available in this bug but the TLDR is that the XSS Auditor is going. Recent changes included taking it from block mode to filter mode by default and it seems that wasn't enough to save it from the false positives. Edge removed their XSS Filter last year so with the removal from Chrome there is now no browser that will have a native XSS protection. It's time for the header to go! With that said, and using my site as an example, you can see that the X-Xss-Protection header is no longer required for an A+ grade on Security Headers.

https://scotthelme.co.uk/security-headers-updates/

According to this the header is dying and was removed in Edge already and is now going to be remove in Chrome too. It makes no sense to ship Joomla 4 with that old thing that when we anyway only support the latest version of browsers. Based on that text it also seams that chrome in the past already defaulted to block mode now filter mode so older versions are also "protected" as long as you are using them. The best way to eliminate XSS is using CSP which we make much easier to do in Joomla 4 anyway.

X-Content-Type-Options

This header is now enforced by the default htaccess and web.config and seams to only confuse people as the switch has no affect at all anymore #25735

Testing Instructions

Apply this patch, make sure both headers are not possible to configure now and not set anymore.

Expected result

both headers are not possible to configure now and not set anymore.

Actual result

both headers are possible to configure now and get set as of today.

Documentation Changes Required

Yes.

Additional Info

I'm happy for all your input on this and this is a suggestion to deal with that two issues.

cc @SniperSister :)

avatar zero-24 zero-24 - open - 31 Jul 2019
avatar zero-24 zero-24 - change - 31 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jul 2019
Category Administration Language & Strings Front End Plugins
avatar zero-24 zero-24 - change - 31 Jul 2019
Labels Added: ? ? ?
avatar Quy
Quy - comment - 1 Aug 2019

I have tested this item successfully on 13f2cfd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar Quy
Quy - comment - 1 Aug 2019

I have tested this item successfully on 13f2cfd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar Quy Quy - test_item - 1 Aug 2019 - Tested successfully
avatar Quy Quy - test_item - 2 Aug 2019 - Tested successfully
avatar Quy
Quy - comment - 3 Aug 2019

Remove from the dropdown menu???

25753

avatar Quy
Quy - comment - 3 Aug 2019

I have tested this item successfully on 16b141e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar Quy Quy - test_item - 3 Aug 2019 - Tested successfully
avatar sandewt
sandewt - comment - 3 Aug 2019

screen shot 2019-08-03 at 17 29 47

(1) Supplement: 'X-Content-Type-Options' header is set as default in the htaccess or web.config file. (!?)

(2) How to set the 'X-Content-Type-Options' header if no use is made of htaccess or web.config? Or is this question not relevant?

File httpheaders.php, see line 68

private $supportedHttpHeaders = [
		'strict-transport-security',
		'content-security-policy',
		'content-security-policy-report-only',
		'x-frame-options',
		'referrer-policy',
		'expect-ct',
		'feature-policy',
	];

(3) The feature-policy header may or may not supported !? Also view the image above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar zero-24
zero-24 - comment - 3 Aug 2019

(1) Supplement: 'X-Content-Type-Options' header is set as default in the htaccess or web.config file. (!?)

I can not follow what you want me to-do?

(2) How to set the 'X-Content-Type-Options' header if no use is made of htaccess or web.config? Or is this question not relevant?

Well here we have the same problem than for the there static headers. I can not detect whether the header is set or not using htaccess. And it seams the current workaround with offering that option still via the plugin is just to confusing. Any suggestions to implement such thing in a non-confusing way?

(3) The feature-policy header may or may not supported !? Also view the image above.

It was just missing from the language string. Fixed.

avatar Quy
Quy - comment - 3 Aug 2019

It was just missing from the language string. Fixed.

Lets remove that language string. It adds no additional information.

avatar sandewt
sandewt - comment - 4 Aug 2019

I can not follow what you want me to-do?

I mean, add this additional information to the language string.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.
avatar zero-24
zero-24 - comment - 4 Aug 2019

Lets remove that language string. It adds no additional information.

Pushed.

I mean, add this additional information to the language string.

Any suggestions about a text and where we should add it?

avatar sandewt
sandewt - comment - 5 Aug 2019

Any suggestions about a text and where we should add it?

Specify it in the documentation anyway.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar sandewt
sandewt - comment - 5 Aug 2019

Any suggestions about a text and where we should add it?

Specify it in the documentation anyway.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar zero-24
zero-24 - comment - 5 Aug 2019

Specify it in the documentation anyway.

?

avatar Quy
Quy - comment - 5 Aug 2019

I have tested this item successfully on c9f8a85


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar Quy Quy - test_item - 5 Aug 2019 - Tested successfully
avatar sandewt
sandewt - comment - 6 Aug 2019

I have tested this item successfully on c9f8a85


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25753.

avatar sandewt sandewt - test_item - 6 Aug 2019 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Aug 2019
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Aug 2019

Status "Ready To Commit".

avatar wilsonge wilsonge - change - 6 Aug 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-08-06 10:27:24
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 6 Aug 2019
avatar wilsonge wilsonge - merge - 6 Aug 2019
avatar wilsonge
wilsonge - comment - 6 Aug 2019

Thanks!

avatar zero-24
zero-24 - comment - 23 Aug 2019

The two Headers have been removed from the docs: https://docs.joomla.org/J4.x:Http_Header_Management

Screenshot get updated as soon as other relevant PRs got merged.

Add a Comment

Login with GitHub to post a comment