Using the bug in #31920 set the $log_path value to a folder which Joomla has no write permissions outside of JPATH_BASE
Eg: ../../../../../../../../../test
On a Mac, setting this to /test
will also break it, but /
is interpreted as JPATH_BASE for some reason
Its just logging, so should fail gracefully, or at most with a warning.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69632 bytes) in /Users/phil/Downloads/Joomla_4.0.0-beta6-Beta-Full_Package/libraries/src/Log/LogEntry.php on line 121
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /Users/phil/Downloads/Joomla_4.0.0-beta6-Beta-Full_Package/libraries/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 14
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-02-07 08:42:32 |
Closed_By | ⇒ | alikon |
PR PR #32339 should address this issue adds some validation to make sure log_path is valid/writable and should address this issue.