fix: Critical and high audit findings (#81) #83
Reference in New Issue
Block a user
Delete Branch "fix/audit-critical-high"
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?
Summary
Fixes all critical and high severity issues from the full codebase audit (#81).
Closes #71, closes #76, closes #77, closes #78, closes #79, closes #80. Ref #72.
Fixes
RestoreCommandpassed filepath as record ID — now passes$recordIdJpaUnarchiverpath traversal — rejects../and validatesrealpath()boundaryBackupTable::delete()now deletes DB row before file — no data loss on DB failureRestoreEnginestaging path sanitized withpreg_replaceprofiles()masks sensitive fields (***) instead of exposing credentialsreturnaftersendJsonResponse()auth rejectionsloadFormData()casts array to object — fixesTypeErroron PHP 8.xPreflightCheck::run()wrapped in try-catch for DB exceptionsmkdir()failure includes actual error reasonTest Plan
bin/joomla mokosuitebackup:restore 1works correctly../paths are rejected***not real values