Skip to content

Add path filter to joomla updates download process for the temp folder#32076

Merged
HLeithner merged 8 commits intojoomla:stagingfrom
zero-24:path
Feb 3, 2021
Merged

Add path filter to joomla updates download process for the temp folder#32076
HLeithner merged 8 commits intojoomla:stagingfrom
zero-24:path

Conversation

@zero-24
Copy link
Contributor

@zero-24 zero-24 commented Jan 18, 2021

Summary of Changes

The JSST has been contacted about an missing path filter whithin the joomla download process. Given that an successfull attack requires a Super User access to change the tmp path setting and also to trigger the update itself the JSST decided to move this patch to the public tracker.

Testing Instructions

Actual result BEFORE applying this Pull Request

The upgrade works as expected

Expected result AFTER applying this Pull Request

The upgrade works as expected

Documentation Changes Required

none

@nibra
Copy link
Member

nibra commented Jan 18, 2021

You can then replace the whole switch statement with
$result = parent::clean($source, $type);

@zero-24
Copy link
Contributor Author

zero-24 commented Jan 18, 2021

Right even better 👍

@HLeithner HLeithner added this to the Joomla! 3.9.25 milestone Jan 20, 2021
@richard67
Copy link
Member

@zero-24 Shall we test this, or shall we wait until the Todo's are done? If test: Could you add the missing link to an update package in the testing instructions (currently "(to be generated)")?

@zero-24
Copy link
Contributor Author

zero-24 commented Jan 24, 2021

This has to wait for the archive package to be merged and the path filter patched as noted above. The package i mean is the one generated by drone.

@richard67
Copy link
Member

@zero-24 I've updated in the description the link to the update package for this PR so it points to the latest build.

@richard67
Copy link
Member

Test on Linux was ok, but on Windows it was failing. See joomla-framework/filter#40 for the fix in the framework package.

@richard67
Copy link
Member

Now we have to wait for #32206 to be merged.

@zero-24
Copy link
Contributor Author

zero-24 commented Feb 1, 2021

I have just merged the filter package and updated the branch here so this is ready to be tested again.

@richard67
Copy link
Member

I've updated in the description the link to the update package for this PR so it points to the latest build.

@zero-24
Copy link
Contributor Author

zero-24 commented Feb 1, 2021

I've updated in the description the link to the update package for this PR so it points to the latest build.

Thanks was about to do that too as we have to wait for it to be generated👍

@richard67
Copy link
Member

richard67 commented Feb 1, 2021

I had to do it again because I had to restart drone.

@richard67
Copy link
Member

I have tested this item ✅ successfully on adab40b

Tested with 2 server environments, one Linux with PHP 7.3, and one Windows with PHP 7.4.


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

@richard67
Copy link
Member

@zero-24 I've removed the "Todo's" section from the description because that stuff has been done meanwhile.

jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');

use Joomla\CMS\Filter\InputFilter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move after line 10?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved ce05326

@chmst
Copy link
Contributor

chmst commented Feb 2, 2021

I have tested this item ✅ successfully on adab40b

Tested on win10, with php8, following the testing instructions


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

@joomla-cms-bot joomla-cms-bot removed this from the Joomla! 3.9.25 milestone Feb 2, 2021
@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 2, 2021
@richard67
Copy link
Member

@zero-24 Could you check @Quy 's suggestion above and fix it? #32076 (comment) . It will not change RTC status.

@zero-24
Copy link
Contributor Author

zero-24 commented Feb 2, 2021

@zero-24 Could you check @Quy 's suggestion above and fix it? #32076 (comment) . It will not change RTC status.

Moved with: ce05326

@richard67
Copy link
Member

Previous tests are still valid since last change after tests was code style only. I've restored the test results in the tracker.

@HLeithner HLeithner merged commit c2570c2 into joomla:staging Feb 3, 2021
@HLeithner
Copy link
Member

Thanks

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 3, 2021
@HLeithner HLeithner added this to the Joomla! 3.9.25 milestone Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants