-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Security) problems with new feed-me logging #1491
Comments
For now we've adjusted our components config to the following below and disabled the logging in the
feed-me.php
app.php
|
See #1487 for similar areas around excessive amount of logs causing issues. |
@jeffreyzant Thanks for the thorough report and workaround. I think your assessment is spot-on and something we need to address. In truth, the old logging behavior wasn't working for many people (being file-based it didn't work on load-balanced envs) that I think we rushed an oversimplified fix out to something that shouldn't have been a minor bump, or should have been opt-in. We'll work on a remedy ASAP – stay tuned. |
As a start:
Solutions for bloated logs tables issues are being discussed here: #1487 |
@jeffreyzant Everything mentioned here should be resolved in the latest releases:
A follow up feature is #1494, which will prevent the db table from bloating if you leave db logging enabled. Thanks again for the report, and sorry for the trouble it caused. |
Thanks for the quick action you took! |
I am using the code from the README file, but getting the following error:
Any help would be appreciated. |
@arentsen that error makes it sound like you are missing the |
@timkelty great, I tried to find out what that means and how to fix it without being successful. Further instructions by anyone would be very helpful. |
@arentsen can you share the entirety of your |
|
@arentsen And what are you looking to achieve exactly? If you are looking to disable database logging and log instead to a file (as discussed in this thread), you haven't included any of the example code from the README as you mentioned. Doing so would look something like this:
|
Great, now it works, thanks!! I had added that part in the app.php file but commented it out since it gave an error, so that's why I did not copy it in, sorry. |
Description
The newly implemented feed-me logging has several issues:
Sensitive Data Exposure: When making a request to the same Craft application, the logger adds an entry to the database with the
application
category. This entry includes the entire$_SERVER
array, which may contain plain text environment variables with passwords. If this database table is exposed (e.g., through a backup), all credentials (database, encryption keys, ...) could be compromised.Logging Behavior: The example provided in the release does not seem to prevent logs from being written to the database. Even though log files are written, adjusting the
monologTargetConfig
as stated in the README does not stop the feed-me logs from being recorded in the database.Log Clearing Limitations: When adjusting the log target there is no way to clear the logs through the frontend as the
clear
method only does a truncate of the database table. This limitation makes it difficult to manage and remove logs from the frontend.Lack of Log Rotation: The current implementation lacks log rotation, leading to uncontrolled log growth. Some of our applications have already accumulated over 2GB of logs.
Overall, this implementation is flawed and constitutes a breaking change that should not have been introduced by default in a minor version update.
Additional info
The text was updated successfully, but these errors were encountered: