Bug: PostsController unvalidated datetime in scheduled_at #95
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit Finding H-5
Severity: Medium
Issue:
The
exportCsv()method applies filters correctly, but when saving posts via the post edit form, thescheduled_atdatetime from user input is stored without validation. A malformed datetime could cause MySQL errors.Fix: Validate datetime format in
PostModel::prepareTable()or sanitize viaFactory::getDate().Files:
PostModel.phpLabel:
priority: medium,type: bugBranch created:
feature/95-bug-postscontroller-unvalidated-datetime