RTC PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar SniperSister
SniperSister
8 Nov 2024

Summary of Changes

The current implementation of the FormattedTextLogger class creates a potential code execution vulnerability if either Joomla core itself or a third party extension would have an object injection vulnerability via unserialization of user supplied input. This PR adds an exception message for that very specific case, preventing that such an attack payload would be written.

YES, I'm aware that this is a theoretical b/c break. However, weighting the pros and cons of the current implementation, I think that it's a useful change nonetheless.

Testing Instructions

Apply patch, create a log message by trying to log in into the administrator site with wrong credentials.

Actual result BEFORE applying this Pull Request

Log file is written

Expected result AFTER applying this Pull Request

Log file is written

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar SniperSister SniperSister - open - 8 Nov 2024
avatar SniperSister SniperSister - change - 8 Nov 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Nov 2024
Category Libraries
avatar SniperSister SniperSister - change - 8 Nov 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-11-08 14:11:27
Closed_By SniperSister
Labels Added: PR-5.2-dev
avatar SniperSister SniperSister - close - 8 Nov 2024
avatar SniperSister SniperSister - change - 8 Nov 2024
Status Closed New
Closed_Date 2024-11-08 14:11:27
Closed_By SniperSister
avatar SniperSister SniperSister - change - 8 Nov 2024
Status New Pending
avatar SniperSister SniperSister - reopen - 8 Nov 2024
avatar fgsw
fgsw - comment - 8 Nov 2024

@ramalama can you open https://issues.joomla.org/tracker/joomla-cms/44428 and

  • login with your github-account
  • click button "Test this"
  • mark "Tested successfully"

Now the test count as successfull.

avatar ramalama ramalama - test_item - 8 Nov 2024 - Tested successfully
avatar ramalama
ramalama - comment - 8 Nov 2024

I have tested this item ✅ successfully on 4982fc9

Tested successfully as described.
Log Entries before and after identical.


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

avatar Quy
Quy - comment - 10 Nov 2024

The test instruction doesn't appear to run the new method. Please confirm.

avatar SniperSister
SniperSister - comment - 10 Nov 2024

As described, there is no option to execute the method in core. That’s why the purpose of the instructions is to confirm that legitimate use cases of that class are unaffected.

avatar richard67 richard67 - alter_testresult - 10 Nov 2024 - ramalama: Tested successfully
avatar richard67 richard67 - change - 10 Nov 2024
The description was changed
avatar richard67 richard67 - edited - 10 Nov 2024
avatar viocassel viocassel - test_item - 11 Nov 2024 - Tested successfully
avatar viocassel
viocassel - comment - 11 Nov 2024

I have tested this item ✅ successfully on 2ed7d84


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

avatar Quy Quy - change - 11 Nov 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 11 Nov 2024

RTC


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

avatar Hackwar Hackwar - change - 14 Nov 2024
Labels Added: RTC
avatar Hackwar Hackwar - change - 14 Nov 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-11-14 08:08:52
Closed_By Hackwar
avatar Hackwar Hackwar - close - 14 Nov 2024
avatar Hackwar Hackwar - merge - 14 Nov 2024
avatar Hackwar
Hackwar - comment - 14 Nov 2024

Thank you for your contribution!

Add a Comment

Login with GitHub to post a comment