mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Implements the core of docs/Security/Remediation/WeKan.md: - models/lib/securityLogFormat.js: pure, unit-testable helpers (dated run-dir path, disk-space guard, one-line format, parse, per-category/Bleed/severity tally, summary render). - models/lib/securityCategories.js: general-category <-> hall-of-fame *Bleed catalog (RedirectBleed, LiveBleed, SourceBleed, MetricsBleed, InviteBleed, ...). - server/lib/securityLog.js + speedLog.js: best-effort, never-throwing writers to WRITABLE_PATH/files/security|speed/YYYY-MM/DD/HH_MM_SS/ (wekan-log.txt + wekan-summary.txt / wekan-speed-*), with a disk-space check before every write and a dropped-events counter. - Wire first remediation/rejection points to emit events: avatar-URL scheme rejection (setAvatarUrl), Trello live-import attachment SSRF block, and avatar localization SSRF block (covers the requested attachment/avatar rejection + sanitization logging). - tests/securityLog.test.cjs (unit + negative tests), wired into test:unit:node. Admin Panel Reports (Security/Speed UI), the FerretDB Go logger, and full guard coverage are the next phase (fully specified in the design docs).