? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
19 Aug 2018

Summary of Changes

Make sure we don't send a referrer on the remind and reset views

Testing Instructions

  1. Apply this patch
  2. go to the remind page and request and remind token
  3. click on the link that is send to you
  4. check the http header of that page with the F12 developer tools.

Expected result

On this specific page we set the Referrer-Policy and set it to no-referrer so no referrer is send.

Actual result

We do not send that policy.

Documentation Changes Required

None.

Additional Information

This is a pull request for an report to the security team where the @joomla/security team decided to move the patch to the public tracker.

Thanks to Pim Feltkamp & Vipul Sahu for reporting this to us.

avatar zero-24 zero-24 - open - 19 Aug 2018
avatar zero-24 zero-24 - change - 19 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2018
Category Front End com_users
avatar wilsonge
wilsonge - comment - 19 Aug 2018

This is ok. But I think this belongs in the controller not the view?

avatar zero-24
zero-24 - comment - 19 Aug 2018

Where do you want me to add the header call?

avatar mbabker
mbabker - comment - 21 Aug 2018

Where do you want me to add the header call?

Headers should be set in whatever controller is triggering the view, in this case that'd be /components/com_users/controller.php

avatar zero-24 zero-24 - change - 24 Aug 2018
Labels Added: ?
avatar zero-24
zero-24 - comment - 24 Aug 2018

Headers should be set in whatever controller is triggering the view, in this case that'd be /components/com_users/controller.php

Something like this? 8dcc51c

avatar PhilETaylor
PhilETaylor - comment - 24 Aug 2018

@mbabker approved this pull request.

The highest form of approval and something to which will all aspire to seeing ;-)

avatar alikon
alikon - comment - 24 Aug 2018

is something we should also need to consider in the privacy-framework ?

avatar zero-24
zero-24 - comment - 24 Aug 2018

is something we should also need to consider in the privacy-framework ?

You can apply that on any page where you send a mail with a token in the URL. I'm not 100% sure but if you have a similar page please do so.

avatar alikon
alikon - comment - 24 Aug 2018

I have tested this item successfully on 8dcc51c


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

avatar alikon alikon - test_item - 24 Aug 2018 - Tested successfully
avatar fabpacheco
fabpacheco - comment - 31 Aug 2018

I have tested this item successfully on 8dcc51c

Before patch:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 3778
Content-Type: text/html; charset=utf-8
Date: Fri, 31 Aug 2018 13:00:04 GMT
Expires: Wed, 17 Aug 2005 00:00:00 GMT
Keep-Alive: timeout=5, max=100
Last-Modified: Fri, 31 Aug 2018 13:00:05 GMT
Pragma: no-cache
Server: Apache/2.4.29 (Win32) OpenSSL/1.0.2n PHP/7.0.28
Vary: Accept-Encoding
X-Powered-By: PHP/7.0.28

After patch:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 3775
Content-Type: text/html; charset=utf-8
Date: Fri, 31 Aug 2018 13:20:18 GMT
Expires: Wed, 17 Aug 2005 00:00:00 GMT
Keep-Alive: timeout=5, max=100
Last-Modified: Fri, 31 Aug 2018 13:20:19 GMT
Pragma: no-cache
Referrer-Policy: no-referrer
Server: Apache/2.4.29 (Win32) OpenSSL/1.0.2n PHP/7.0.28
Vary: Accept-Encoding
X-Powered-By: PHP/7.0.28


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

avatar fabpacheco fabpacheco - test_item - 31 Aug 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 31 Aug 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Aug 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 3 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-03 17:13:54
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 3 Sep 2018
avatar mbabker mbabker - merge - 3 Sep 2018
avatar zero-24 zero-24 - change - 4 Sep 2018
Title
[3.8] Make sure we don't send a referrer on the remind and reset views
[3.9] Make sure we don't send a referrer on the remind and reset views
avatar zero-24 zero-24 - edited - 4 Sep 2018

Add a Comment

Login with GitHub to post a comment