Part-DB-server/src/Services/LogSystem
tonghuaroot c2ec0ee12b Escape user-controlled element/collection names in CollectionElementDeleted log rendering
LogEntryExtraFormatter::getInternalFormat() escapes user-controlled
strings with htmlspecialchars() in every branch except the
CollectionElementDeleted one, which interpolates getOldName() and
getCollectionName() into the returned HTML unescaped. That string is
rendered as raw HTML by LogEntryExtraColumn in the activity-log and
element-history DataTables, so a name set on a deleted sub-element
(parameter/attachment/lot/orderdetail) by a low-privileged editor is
parsed as live markup in a log viewer's browser (stored XSS / HTML
injection).

Wrap both values in htmlspecialchars(), matching the sibling branches
(e.g. ElementDeletedLogEntry at the old_name line).
2026-06-07 18:04:40 +02:00
..
EventCommentHelper.php Improved code style of tests 2023-06-11 15:02:59 +02:00
EventCommentNeededHelper.php Moved the "ENFORCE_CHANGE_COMMENTS_FOR" type to the HistorySettings class 2024-06-25 22:59:22 +02:00
EventCommentType.php Moved the "ENFORCE_CHANGE_COMMENTS_FOR" type to the HistorySettings class 2024-06-25 22:59:22 +02:00
EventLogger.php Use a enum for level in LogEntries 2023-06-18 17:25:55 +02:00
EventUndoHelper.php Removed unused import statements 2024-03-03 20:34:36 +01:00
EventUndoMode.php Applied rector suggestions 2024-06-22 00:31:43 +02:00
HistoryHelper.php Removed unused import statements 2024-03-03 20:34:36 +01:00
LogDataFormatter.php Use DatetimeImmutable instead of DateTime wherever possible 2024-06-22 17:36:54 +02:00
LogDiffFormatter.php Moved remaining twig extensions to new attributes system 2026-02-15 00:23:30 +01:00
LogEntryExtraFormatter.php Escape user-controlled element/collection names in CollectionElementDeleted log rendering 2026-06-07 18:04:40 +02:00
LogLevelHelper.php Removed unused import statements 2024-03-03 20:34:36 +01:00
LogTargetHelper.php Removed unused import statements 2024-03-03 20:34:36 +01:00
TimeTravel.php Upgraded brick/math to latest version 2026-05-19 21:18:17 +02:00