mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
- Avatar localization redirect SSRF: fetch avatars via fetchSafe (DNS-pinned, redirects rejected) instead of native redirect:follow, and validate profile.avatarUrl scheme (http/https/data:image/local) at write time. - Trello import source.url stored XSS: only render/store an http(s) activity source URL, so a javascript: board url can no longer execute on click. - Trello LIVE import readable SSRF: gate every attachment/background/avatar download with validateAttachmentUrl, matching the offline import path. - CAS login global user-data race: store validated CAS user data per credential token instead of a module-global _userData (fixes account-takeover race). - Metrics X-Forwarded-For whitelist bypass: only trust XFF behind METRICS_TRUST_PROXY (parsed spoof-resistantly from the right); else use the socket peer address. - Stale impersonation export bypass: remove the "|| impersonateDone" export authorization bypass; require real board visibility (canExport) only. - Invitation code brute force: generate invitation codes with a 128-bit CSPRNG (crypto.randomBytes) instead of a 6-digit Math.random value, and rate-limit createUser (DDPRateLimiter). The OIDC shared serviceData race from the same report was already fixed (#4897, the per-login objects are callout-local). Source-guard regression test added (tests/securityMeifukun.test.cjs) and wired into test:unit:node. Thanks to meifukun and xet7 !