mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
The person signing in still sees the same generic message whatever the reason, so a signed-out visitor cannot tell "no such user" from "wrong password". Every refusal is recorded with its precise reason (models/lib/loginRefusals.js, server/lib/loginRefusals.js): wrong password, unknown user, disabled account, brake, malformed request, and the LDAP reasons, which the LDAP handler now records before returning its one generic error - including the two messages that used to name the account. Problems / Summary groups them like a status dashboard: one row per reason with its count, first and latest time, latest account and address, the fix and the Admin Panel pane where it is made, and each problem area lists its three most frequent problems. Translated to every language. Thanks to Raymond-Voogt and xet7 ! Fixes #6942,
395 lines
33 KiB
JavaScript
395 lines
33 KiB
JavaScript
'use strict';
|
|
|
|
// Shared security category ↔ hall-of-fame *Bleed catalog
|
|
// (design: docs/Security/Remediation/WeKan.md §6).
|
|
//
|
|
// Maps a short guard key to { category (general name), bleed (hall-of-fame name),
|
|
// severity, cwe }. Guards pass a `key`; the logger fills the rest. Kept as one
|
|
// table so the general category and the *Bleed name never drift apart. CommonJS
|
|
// so both the server ESM code and the tests/*.test.cjs guards can load it.
|
|
|
|
const CATALOG = {
|
|
// Meteor 3.5.3's security fixes, carried by WeKan's forks of Meteor's own
|
|
// packages (packages/) until a Meteor 3.6 release has them. None of them is
|
|
// a WeKan hall-of-fame entry, and none blocks an account: each fires before,
|
|
// or without, a trusted user (models/lib/meteorSecurityEvent.cjs).
|
|
// A DDP message named '__proto__', 'toString' or not a string crashed the
|
|
// server; no DDP client sends one.
|
|
'dos.ddp-protocol-handler': { category: 'dos', bleed: 'Meteor DDP', severity: 'high', cwe: 'CWE-20', blocksAccount: false },
|
|
// A top-level '__proto__' in an update was left out of the field list the
|
|
// allow/deny validators saw; no WeKan client writes one.
|
|
'authz.allow-deny-proto-field': { category: 'authz', bleed: 'Meteor allow-deny', severity: 'high', cwe: 'CWE-863', blocksAccount: false },
|
|
// A dynamic import() request that is not JSON or exceeds its depth, node,
|
|
// key or path limits. Meteor generates these, so it is not ordinary use; an
|
|
// oversized one is not recorded, because an old open client may send it.
|
|
'dos.dynamic-import-request': { category: 'dos', bleed: 'Meteor dynamic-import', severity: 'medium', cwe: 'CWE-400', blocksAccount: false },
|
|
// A Google or Facebook access token minted for another application (or a
|
|
// Google ID token of another user) offered to the direct-token login.
|
|
'authn.oauth-token-audience': { category: 'authn', bleed: 'Meteor OAuth', severity: 'critical', cwe: 'CWE-287', blocksAccount: false },
|
|
// A state-changing HTTP request whose only login is the cookie, sent from
|
|
// another site (models/lib/crossSiteRequest.js). blocksAccount: false - the
|
|
// cookie belongs to the victim, whose browser was made to send it.
|
|
'csrf.cross-site-cookie': { category: 'csrf', bleed: 'Cross-site request', severity: 'high', cwe: 'CWE-352', blocksAccount: false },
|
|
'authz.card-copy-overrides': { category: 'authz', bleed: 'CopyIdentityBleed', severity: 'high', cwe: 'CWE-915' },
|
|
'authz.board-copy-overrides': { category: 'authz', bleed: 'CopyIdentityBleed', severity: 'high', cwe: 'CWE-915' },
|
|
'authz.admin-only-field': { category: 'authz', bleed: 'AdminFieldBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authn.saml-replay': { category: 'authn', bleed: 'SamlReplayBleed', severity: 'high', cwe: 'CWE-294' },
|
|
// ProxyBleed hardening: header login settings are environment-only, so a
|
|
// site administrator's session alone cannot make a proxy sign in as anyone.
|
|
'authn.header-login-env-only': { category: 'authn', bleed: 'ProxyBleed', severity: 'high', cwe: 'CWE-290' },
|
|
'authn.ldap-empty': { category: 'authn', bleed: 'LdapBindBleed', severity: 'critical', cwe: 'CWE-287' },
|
|
'authn.ldap-group': { category: 'authn', bleed: 'DirectoryGroupBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authn.cas-group': { category: 'authn', bleed: 'DirectoryGroupBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authn.inactive': { category: 'authn', bleed: 'InactiveBleed', severity: 'critical', cwe: 'CWE-613' },
|
|
// #6942: every refused sign-in, with its reason in the source
|
|
// (models/lib/loginRefusals.js). A typo is ordinary; the account tried is the
|
|
// target, and nothing here may block it.
|
|
'authn.login-refused': { category: 'authn', bleed: 'Login refused', severity: 'low', cwe: 'CWE-287', blocksAccount: false },
|
|
'authz.subtask-deposit': { category: 'authz', bleed: 'SubtaskDepositBleed', severity: 'high', cwe: 'CWE-639' },
|
|
// ImportPlacementBleed: an import into a board placed beside a list,
|
|
// swimlane or card of ANOTHER board. blocksAccount: false - an import menu
|
|
// left open while its list moved to another board reaches it too; the
|
|
// import is still refused and recorded.
|
|
'authz.import-placement': { category: 'authz', bleed: 'ImportPlacementBleed', severity: 'medium', cwe: 'CWE-639', blocksAccount: false },
|
|
// #6798: blocksAccount: false. This refusal also fires for a member of the
|
|
// card's OWN board whose role there (read-only, comment-only, Worker) does
|
|
// not write, linked card or not (server/lib/linkedCardPermission.js
|
|
// sourceRoleBlocksDelegation) - a screen still offering an edit after the
|
|
// role changed, a drag. That turned ordinary work into a disabled account:
|
|
// four accounts on one instance in three days. The write is still refused
|
|
// and recorded, as ssrf.webhook (#6782) is.
|
|
'authz.linked-write': { category: 'authz', bleed: 'LinkedWriteBleed', severity: 'high', cwe: 'CWE-863', blocksAccount: false },
|
|
'authz.invitation-boards': { category: 'authz', bleed: 'InvitationBoardBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'authz.invitation-profile': { category: 'authz', bleed: 'InviteProfileBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authz.rule-button': { category: 'authz', bleed: 'RuleButtonBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'authz.manage-board': { category: 'authz', bleed: 'ManageBoardBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authz.comment-card': { category: 'authz', bleed: 'CommentBoundaryBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'authz.mutation': { category: 'authz', bleed: 'MutationBleed', severity: 'high', cwe: 'CWE-863' },
|
|
// AuthBleed: copyBoard / copyCard / copySwimlane / createCardWithDueDate
|
|
// called with no login, or createCardWithDueDate (no WeKan client calls it)
|
|
// into a board the caller cannot write. Membership refusals of the copy
|
|
// dialogs are NOT recorded: a template or a stale dialog reaches them in
|
|
// ordinary use, and a high-severity record would disable that login.
|
|
'authz.copy': { category: 'authz', bleed: 'AuthBleed', severity: 'high', cwe: 'CWE-862' },
|
|
'authz.board-visibility': { category: 'authz', bleed: 'VisibilityBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// blocksAccount: false on the next two - the URL comes from data the user did
|
|
// not write (an identity provider's avatar, an imported Trello board's link
|
|
// attachment), so the user who triggered the fetch is not the attacker.
|
|
'ssrf.redirect': { category: 'ssrf', bleed: 'RedirectBleed', severity: 'high', cwe: 'CWE-918', blocksAccount: false },
|
|
'ssrf.attachment': { category: 'ssrf', bleed: 'LiveBleed', severity: 'high', cwe: 'CWE-918', blocksAccount: false },
|
|
'ssrf.fetch': { category: 'ssrf', bleed: 'DnsBleed', severity: 'high', cwe: 'CWE-918' },
|
|
// A webhook pointed at an internal address is refused when it is DELIVERED
|
|
// (outgoing.js, webhookQueue.js), and the user whose card move or comment
|
|
// caused that delivery did not write its URL - so it is recorded, and nobody
|
|
// loses their account for it (#6782; the record still names them, from the
|
|
// request it happened in).
|
|
'ssrf.webhook': { category: 'ssrf', bleed: 'IntegrationBleed', severity: 'high', cwe: 'CWE-918', blocksAccount: false },
|
|
// RepointBleed: a rule trigger, action, rule or webhook integration moved to
|
|
// another board (or '*') by an update; see server/lib/boardRepointGuard.js.
|
|
'authz.repoint': { category: 'authz', bleed: 'RepointBleed', severity: 'high', cwe: 'CWE-863' },
|
|
// PrototypeBleed: a '__proto__' (or '.', '$') map key sent to the per-user
|
|
// layout methods; see models/lib/safeMapKey.js. No client sends one.
|
|
// BackgroundBleed: a board background pointed at another board's attachment
|
|
// (models/lib/boardBackgroundOwnership.js). The UI only offers the board's own.
|
|
// OwnerBleed: a client board insert naming members other than its creator.
|
|
// BypassBleed's DoS part: a rule chain deeper than MAX_RULE_DEPTH, usually two
|
|
// rules undoing each other. Often an honest mistake, so only detected.
|
|
'dos.rule-loop': { category: 'dos', bleed: 'BypassBleed', severity: 'medium', cwe: 'CWE-674' },
|
|
// HookBleed: a client asking the server to send something other than the
|
|
// card-opened notification through a board's webhook (the UI never does).
|
|
'ssrf.webhook-forge': { category: 'ssrf', bleed: 'HookBleed', severity: 'high', cwe: 'CWE-345' },
|
|
'authz.board-owner': { category: 'authz', bleed: 'OwnerBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'authz.background': { category: 'authz', bleed: 'BackgroundBleed', severity: 'high', cwe: 'CWE-639' },
|
|
// GroupLinkBleed (GHSA-v544-rmr5-38gx): a client board write naming orgs,
|
|
// teams or domains, which the UI changes only through the board methods.
|
|
'authz.group-link': { category: 'authz', bleed: 'GroupLinkBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// GroupLinkBleed, member variant: a client board update adding a member
|
|
// instead of going through inviteUserToBoard.
|
|
'authz.member-add': { category: 'authz', bleed: 'GroupLinkBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// CreateBleed (GHSA-qcfm-2g4w-wqcc): a non-admin creating a working board
|
|
// while "Only admins can create boards" is on, on a path other than the
|
|
// Add Board form - a client Boards.insert, POST /api/boards, an import, a
|
|
// clone, a copy or a card turned into a board. blocksAccount: false - a
|
|
// browser tab opened before the admin switched it on still shows the
|
|
// buttons, and that member is no attacker.
|
|
'authz.board-creation': { category: 'authz', bleed: 'CreateBleed', severity: 'low', cwe: 'CWE-863', blocksAccount: false },
|
|
'injection.prototype': { category: 'injection', bleed: 'PrototypeBleed', severity: 'high', cwe: 'CWE-1321' },
|
|
'authz.notification-tray': { category: 'authz', bleed: 'TrayBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'authn.cas-state': { category: 'authn', bleed: 'CasTokenBleed', severity: 'high', cwe: 'CWE-352' },
|
|
// SyncBleed (GHSA-5q84-p3vr-f3xv): a List Sync server address on a private,
|
|
// loopback or link-local network, refused when saved and on every fetch.
|
|
'ssrf.list-sync': { category: 'ssrf', bleed: 'SyncBleed', severity: 'medium', cwe: 'CWE-918' },
|
|
'xss.source': { category: 'xss', bleed: 'SourceBleed', severity: 'high', cwe: 'CWE-79' },
|
|
'xss.mime': { category: 'xss', bleed: 'MimeBleed', severity: 'high', cwe: 'CWE-79' },
|
|
'xss.input': { category: 'xss', bleed: 'InputBleed', severity: 'medium', cwe: 'CWE-79' },
|
|
// A card, comment or checklist link to an operating-system handler with a
|
|
// code-execution history (ms-msdt:, search-ms:, telnet: ...). Never linked
|
|
// (models/lib/urlSchemeAllowlist.js OS_HANDLERS), so writing one is an
|
|
// attempt on whoever would click it, not a use of the feature.
|
|
'xss.handler-link': { category: 'xss', bleed: 'HandlerLink', severity: 'medium', cwe: 'CWE-939' },
|
|
'spoofing.xff': { category: 'spoofing', bleed: 'MetricsBleed', severity: 'medium', cwe: 'CWE-290' },
|
|
'authz.export': { category: 'authz', bleed: 'ImpersonateBleed', severity: 'high', cwe: 'CWE-863' },
|
|
// CrossBoardExportBleed (GHSA-8885-xrq4-j47h). A board export scoped to a
|
|
// checklist of ANOTHER board's card: no export menu asks for one.
|
|
'authz.export-checklist-scope': { category: 'authz', bleed: 'CrossBoardExportBleed', severity: 'medium', cwe: 'CWE-639' },
|
|
// An export asked for while Admin Panel turned all export off. The menus are
|
|
// hidden then, but a page opened before the switch still shows them, so it
|
|
// never costs the account.
|
|
'authz.export-disabled': { category: 'authz', bleed: 'CrossBoardExportBleed', severity: 'medium', cwe: 'CWE-863', blocksAccount: false },
|
|
'authn.import': { category: 'authn', bleed: 'ImportBleed', severity: 'critical', cwe: 'CWE-306' },
|
|
'authn.miniprofile': { category: 'authn', bleed: 'MiniProfileBleed', severity: 'medium', cwe: 'CWE-306' },
|
|
'authz.board': { category: 'authz', bleed: 'BoardBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authz.position-history': { category: 'authz', bleed: 'PositionHistoryBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'auth-race.cas': { category: 'auth-race', bleed: 'CasBleed', severity: 'high', cwe: 'CWE-362' },
|
|
'authn.cas-link': { category: 'authn', bleed: 'CasAccountMergeBleed', severity: 'medium', cwe: 'CWE-287' },
|
|
// A SAML login that would take over an existing non-SAML account of the same
|
|
// username while SAML_MERGE_EXISTING_USERS is off - the SAML counterpart of
|
|
// CasAccountMergeBleed (packages/wekan-accounts-saml/saml_server.js).
|
|
'authn.saml-subject': { category: 'authn', bleed: 'SamlSubjectBleed', severity: 'high', cwe: 'CWE-287' },
|
|
'authn.saml-link': { category: 'authn', bleed: 'SamlAccountMergeBleed', severity: 'medium', cwe: 'CWE-287' },
|
|
// A Google/GitHub/Facebook/… login whose email matches an account made by
|
|
// another method, while OAUTH_PROVIDERS_MERGE_EXISTING_USERS is off: the same
|
|
// takeover shape as CasBleed and OIDC's GHSA-mp7g-hj5q-gxhq, refused and recorded.
|
|
'authn.oauth-link': { category: 'authn', bleed: 'CasBleed', severity: 'medium', cwe: 'CWE-287' },
|
|
'auth-race.oidc': { category: 'auth-race', bleed: 'OIDCBleed', severity: 'high', cwe: 'CWE-362' },
|
|
'brute.invite': { category: 'brute-force', bleed: 'InviteBleed', severity: 'high', cwe: 'CWE-307' },
|
|
'brute.login': { category: 'brute-force', bleed: 'BruteBleed', severity: 'medium', cwe: 'CWE-307' },
|
|
'brute.account-recovery': { category: 'brute-force', bleed: 'ResetBleed', severity: 'high', cwe: 'CWE-307' },
|
|
// Repeated one-time-code requests can flood mail or probe a passwordless
|
|
// login. Keep their report distinct from password recovery's ResetBleed.
|
|
'brute.passwordless-request': { category: 'brute-force', bleed: 'Passwordless', severity: 'high', cwe: 'CWE-307' },
|
|
// GHSA-rf3w-rj48-jxcc: the known-user lockout counted every failure against
|
|
// the USER, so anyone who knew a username could lock its owner out from every
|
|
// address - and a correct password was refused while the lock held. The
|
|
// counter is per (user, source address) now. What is worth recording is a
|
|
// lockout FIRING: on a per-address counter that means somebody guessed three
|
|
// passwords wrong from one place, which is the attempt this is meant to see.
|
|
// The account a lockout names is the one being guessed - the victim - so this
|
|
// key never disables an account (blocksAccount: false); see
|
|
// server/lib/lockoutReporter.js.
|
|
'brute.lockout': { category: 'brute-force', bleed: 'JamBleed', severity: 'high', cwe: 'CWE-307', blocksAccount: false },
|
|
'injection.shell': { category: 'injection', bleed: 'ScannerBleed', severity: 'high', cwe: 'CWE-78' },
|
|
'file.mime': { category: 'file', bleed: 'MimeStorageBleed', severity: 'high', cwe: 'CWE-434' },
|
|
'file.name': { category: 'file', bleed: 'FileNameBleed', severity: 'medium', cwe: 'CWE-79' },
|
|
'file.sanitize': { category: 'file', bleed: 'FileBleed', severity: 'info', cwe: 'CWE-73' },
|
|
'file.content': { category: 'file', bleed: 'FileBleed', severity: 'medium', cwe: 'CWE-79' },
|
|
'file.malware': { category: 'file', bleed: 'MalwareBleed', severity: 'high', cwe: 'CWE-509' },
|
|
'file.size': { category: 'file', bleed: 'SpaceBleed', severity: 'low', cwe: 'CWE-400' },
|
|
'file.disk': { category: 'file', bleed: 'FloppyBleed', severity: 'low', cwe: 'CWE-400' },
|
|
'file.avatar-url': { category: 'ssrf', bleed: 'RedirectBleed', severity: 'high', cwe: 'CWE-918' },
|
|
'file.policy': { category: 'file', bleed: 'PolicyBleed', severity: 'info', cwe: '' },
|
|
|
|
// Canary tokens (docs/Security/Remediation/WeKan.md §12). A canary sits where
|
|
// somebody could TRY to override permissions, so every one of these is an
|
|
// ATTEMPT that the rules already refused - the event is the attribution, not
|
|
// the defence. They resolve through this same catalog so a canary's category
|
|
// and *Bleed name cannot drift from the guard it sits next to.
|
|
'authz.canary': { category: 'authz', bleed: 'CanaryBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
'authz.checklist': { category: 'authz', bleed: 'ChecklistBleed', severity: 'high', cwe: 'CWE-863' },
|
|
// StampBleed: a checklist, checklist item or text note inserted on one's own
|
|
// card with ANOTHER board's id (or an item into another card's checklist) -
|
|
// published to that board and drawn in its checklists. server/lib/cardChildStamp.js
|
|
'authz.card-child-stamp': { category: 'authz', bleed: 'StampBleed', severity: 'high', cwe: 'CWE-639' },
|
|
// AttachmentMigrationBleed (a SnowBleed finding): a board migration method
|
|
// asked about a board the caller cannot see (server/lib/migrationBoardAccess.js).
|
|
// No WeKan client calls those methods, so it is an attempt; it does not block
|
|
// the account, since the answer is refused either way.
|
|
'authz.migration-board': { category: 'authz', bleed: 'AttachmentMigrationBleed', severity: 'medium', cwe: 'CWE-862', blocksAccount: false },
|
|
// UploadBleed: an attachment upload through Meteor-Files' own pipeline, which
|
|
// inserts past the allow rules, by somebody not signed in or onto a card or
|
|
// board they cannot write to. models/lib/attachmentUploadAuth.js
|
|
'authz.attachment-upload': { category: 'authz', bleed: 'UploadBleed', severity: 'critical', cwe: 'CWE-862' },
|
|
// MoveStorageBleed sibling: validateAttachment - which deletes a file failing
|
|
// the current upload rules - asked by somebody who cannot change it.
|
|
'authz.attachment-validate': { category: 'authz', bleed: 'MoveStorageBleed', severity: 'high', cwe: 'CWE-862' },
|
|
'authz.comment': { category: 'authz', bleed: 'CommentBleed', severity: 'medium', cwe: 'CWE-639' },
|
|
'authz.file-path': { category: 'authz', bleed: 'PathBleed', severity: 'high', cwe: 'CWE-22' },
|
|
'authz.attachment-file-path': { category: 'authz', bleed: 'FilePathBleed', severity: 'high', cwe: 'CWE-22' },
|
|
// Unauthenticated DDP Methods Allow Instance-Wide Deletion of Attachments
|
|
// and Avatars: ostrio:files registers its OWN _FilesCollectionRemove_<name>
|
|
// method, gated only by allowClientCode, which never went through
|
|
// Attachments.allow/Avatars.allow - so any anonymous caller could wipe
|
|
// every attachment or avatar with selector {}.
|
|
'authz.file-remove': { category: 'authz', bleed: 'WipeBleed', severity: 'critical', cwe: 'CWE-862' },
|
|
// Unauthenticated Arbitrary File Write via Path Traversal in Attachment
|
|
// Upload namingFunction: fileId was used verbatim as the on-disk file name
|
|
// and sanitize() was neutered to an identity function. A distinct name
|
|
// from PathBleed (GHSA-4mxf-m8pq-xc9p, avatar versions.path/board export) -
|
|
// same CWE, different bug, different fix.
|
|
// blocksAccount: false - the upload proceeds with a fresh id, and an older
|
|
// cached client that sends an unexpected file id is not an attacker.
|
|
'authz.upload-path': { category: 'authz', bleed: 'UploadPathBleed', severity: 'critical', cwe: 'CWE-22', blocksAccount: false },
|
|
// Avatars Collection Lacks a protected Callback: ostrio:files' own
|
|
// library-native download route served every avatar to anyone because
|
|
// Avatars never set `protected` (unlike Attachments).
|
|
'authz.avatar-protected': { category: 'authz', bleed: 'PortraitBleed', severity: 'high', cwe: 'CWE-862' },
|
|
// serveLegacyAvatar Serves Legacy CollectionFS Avatars Without Any
|
|
// Authentication: the legacy-avatar fallback routes streamed a migrated-in
|
|
// avatar to anyone who knew its old filerecord id.
|
|
'authz.legacy-avatar': { category: 'authz', bleed: 'RelicAvatarBleed', severity: 'high', cwe: 'CWE-862' },
|
|
'authz.parent': { category: 'authz', bleed: 'ParentBleed', severity: 'high', cwe: 'CWE-862' },
|
|
'authz.share': { category: 'authz', bleed: 'RevokeBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authz.readonly': { category: 'authz', bleed: 'ReadOnlyBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
'authz.calendar': { category: 'authz', bleed: 'CalendarBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
'authz.assigned': { category: 'authz', bleed: 'AssignedBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// UnassignedAttachBleed (GHSA-w26g-rc43-q6cm): an assigned-only member
|
|
// added or soft-deleted attachments, through the REST API, on a card that
|
|
// was no longer assigned to them. Only a caller with a kept card id reaches it.
|
|
'authz.assigned-attachment-write': { category: 'authz', bleed: 'UnassignedAttachBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// GHSA-6xqf-jh8x-4wxc: an assigned-only member archiving or converting a card
|
|
// not assigned to them through archiveSelectedCards / createBoardFromCard.
|
|
'authz.assigned-card-write': { category: 'authz', bleed: 'UnassignedArchiveBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// GHSA-4734-8vrg-8j3w: a REST write in a list whose exception refuses the
|
|
// caller's role (#4527). The web UI offers no such write, so it is the lock
|
|
// being stepped round with a token. Medium: recorded, never disables.
|
|
'authz.list-locked': { category: 'authz', bleed: 'ListLockBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// ListLockAttachBleed: the same list refusal, for the attachment API's
|
|
// upload, delete, copy and move (server/lib/assignedOnlyAttachments.js). The
|
|
// card's screen hides those in such a list, so it is an attempt. Medium.
|
|
'authz.list-locked-attachment': { category: 'authz', bleed: 'ListLockAttachBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// ListLockBulkBleed (GHSA-83w9-74mx-7v83): the same list refusal, for the
|
|
// REST bulk delete and bulk label routes, which take their cards from the
|
|
// body. No screen calls them, so a refusal is an attempt. Medium.
|
|
'authz.list-locked-bulk': { category: 'authz', bleed: 'ListLockBulkBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// ListLockMoveBleed (GHSA-394w-8q99-q4qx): the same list refusal, for the
|
|
// REST swimlane move, which carried a locked list's cards to lists on another
|
|
// board with no exceptions. The board's menu refuses the move to such a
|
|
// member, so a refusal here is an attempt. Medium: recorded, never disables.
|
|
'authz.list-locked-move': { category: 'authz', bleed: 'ListLockMoveBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
// Decided 2026-11-18 (TODO.md): a rule action that would write into a list
|
|
// refusing the triggering user's role is skipped, and the rest of the rule
|
|
// runs. Not an attack - a rule a board admin wrote met a list somebody locked
|
|
// - so it is only `detected`, low, and never disables anyone: the summary row
|
|
// is where an admin sees which rules keep skipping.
|
|
'authz.rule-list-locked': { category: 'authz', bleed: 'ListLockRule', severity: 'low', cwe: 'CWE-863', blocksAccount: false },
|
|
'authz.tenant': { category: 'authz', bleed: 'TenantBleed', severity: 'medium', cwe: 'CWE-862' },
|
|
'authz.search-session': { category: 'authz', bleed: 'SessionBleed', severity: 'medium', cwe: 'CWE-639' },
|
|
'authz.database': { category: 'authz', bleed: 'DatabaseBleed', severity: 'high', cwe: 'CWE-863' },
|
|
'authz.swimlane-create': { category: 'authz', bleed: 'SwimlaneBleed', severity: 'medium', cwe: 'CWE-862' },
|
|
'authz.rule-destination': { category: 'authz', bleed: 'RuleBleed', severity: 'high', cwe: 'CWE-862' },
|
|
// The five ybsun0215 REST API findings. Four of them have an ATTEMPT that can
|
|
// be told apart from ordinary use, so the refusal is recorded and shows in
|
|
// Admin Panel / Problems. HashBleed (GHSA-6qpx-x7vr-p9w6) deliberately has no
|
|
// key: every call to that endpoint is a legitimate admin call, the fault was
|
|
// in what the answer CARRIED, so a log line there would fire on normal use and
|
|
// say nothing about an attacker.
|
|
'authz.card-delete': { category: 'authz', bleed: 'PurgeBleed', severity: 'critical', cwe: 'CWE-639' },
|
|
// RaceBleed (GHSA-3vjg-3p4q-8fwh): a REST card delete whose card was moved to
|
|
// another board between the lookup and the removal. The delete now loses that
|
|
// race and touches nothing; before, it destroyed the moved card's children.
|
|
// A delete racing a move reaches this line - the spray-and-wait attack - and so
|
|
// does a member deleting a card somebody had just moved away, so it never
|
|
// disables the account (a stale view is not an attack).
|
|
'authz.card-delete-race': { category: 'authz', bleed: 'RaceBleed', severity: 'medium', cwe: 'CWE-367', blocksAccount: false },
|
|
'authz.card-member': { category: 'authz', bleed: 'GuestBleed', severity: 'high', cwe: 'CWE-639' },
|
|
'authz.board-list': { category: 'authz', bleed: 'StaleBleed', severity: 'medium', cwe: 'CWE-863' },
|
|
'spoofing.author': { category: 'spoofing', bleed: 'AuthorBleed', severity: 'medium', cwe: 'CWE-345' },
|
|
// Registration disabled in the Admin Panel, and POST /users/register created
|
|
// accounts anyway, because its guard read a Meteor option WeKan never sets.
|
|
// Every call that reaches the refusal is an attempt: the admin has turned
|
|
// registration off, so there is no legitimate caller.
|
|
'authz.register': { category: 'authz', bleed: 'SignupBleed', severity: 'critical', cwe: 'CWE-862' },
|
|
// A password sign-in (DDP login, resetPassword, verifyEmail, createUser, or
|
|
// POST /users/login) while PASSWORD_LOGIN_ENABLED=false, and a forgotPassword
|
|
// call while forgot password - or password login - is disabled
|
|
// (models/lib/passwordLoginPolicy.js). The sign-in page offers neither then.
|
|
// Not a Hall of Fame vulnerability: a setting that used to only hide the
|
|
// form. blocksAccount: false - a sign-in page left open from before the
|
|
// administrator changed the setting still sends it.
|
|
'authn.password-login-disabled': { category: 'authn', bleed: 'Password login disabled', severity: 'medium', cwe: 'CWE-284', blocksAccount: false },
|
|
'authn.forgot-password-disabled': { category: 'authn', bleed: 'Forgot password disabled', severity: 'low', cwe: 'CWE-284', blocksAccount: false },
|
|
// Something an administrator turned off, asked for anyway on a path no
|
|
// screen offers while it is off (docs/Features/Admin-Panel/
|
|
// Settings-Enforced-On-Server.md): an Admin Panel / Settings / Features
|
|
// entry (models/lib/featureServerGates.js), a board's Card Settings switch,
|
|
// or an account setting of People / Login (own account deletion, username
|
|
// change). One key for the kind, the source says which. Not a Hall of Fame
|
|
// vulnerability: settings that used to only hide their buttons.
|
|
// blocksAccount: false - a page open from before the change still asks.
|
|
'authz.disabled-setting': { category: 'authz', bleed: 'Disabled setting', severity: 'medium', cwe: 'CWE-284', blocksAccount: false },
|
|
// Admin Panel / Settings / Features / Turn off all webhooks
|
|
// (models/lib/webhooksSwitch.js): a webhook added or changed anyway - the
|
|
// Integrations allow/deny rules, the REST integration routes, a webhook's
|
|
// delivery settings, the login and registration webhook. Every screen that
|
|
// makes one is hidden while it is on. Not a Hall of Fame vulnerability.
|
|
// blocksAccount: false - a page open from before the switch still sends it.
|
|
'authz.webhooks-disabled': { category: 'authz', bleed: 'Webhooks turned off', severity: 'medium', cwe: 'CWE-284', blocksAccount: false },
|
|
'authn.authentication-method': { category: 'authn', bleed: 'MembershipBleed', severity: 'high', cwe: 'CWE-200' },
|
|
'injection.nosql': { category: 'injection', bleed: 'SelectorBleed', severity: 'high', cwe: 'CWE-943' },
|
|
'injection.sql': { category: 'injection', bleed: 'EscapeBleed', severity: 'critical', cwe: 'CWE-89' },
|
|
'integrity.history': { category: 'integrity', bleed: 'HistoryIntegrity', severity: 'critical', cwe: 'CWE-345' },
|
|
// Two intact History rows saved within moments of each other naming the
|
|
// same previous row: the legacy append race (models/lib/historyLegacyAppend.js),
|
|
// not tampering. Undo of those two rows is refused, so it is still shown.
|
|
'integrity.historyConcurrentFork': { category: 'integrity', bleed: 'HistoryIntegrity', severity: 'medium', cwe: 'CWE-362' },
|
|
'integrity.file': { category: 'integrity', bleed: 'StorageBleed', severity: 'high', cwe: 'CWE-353' },
|
|
// Reply-by-email (#2414): a mail provider, not a logged-in user, calls
|
|
// /api/inbound-email, so the signed reply address is what authorizes a
|
|
// comment. Since ReplyBleed (GHSA-mc7c-cv99-64h7) it names the card and the
|
|
// one recipient, and the author is that recipient. Logged: a forged token, a
|
|
// From address that is not the recipient's, a wrong provider secret - none
|
|
// of which a real reply produces. NOT logged: an expired or pre-fix token, a
|
|
// disabled user or one who lost comment access - real people reach those.
|
|
'authn.inbound-email': { category: 'authn', bleed: 'ReplyBleed', severity: 'medium', cwe: 'CWE-346' },
|
|
// BounceBleed (GHSA-7w85-38ph-c96v): a bounce report through the generic
|
|
// inbound webhook without its secret - one would stop every email WeKan sends
|
|
// to the address it names. Logged: no real mail provider's bounce comes that
|
|
// way once the secret is set, and until it is, the row says to set it.
|
|
'authn.inbound-bounce': { category: 'authn', bleed: 'BounceBleed', severity: 'medium', cwe: 'CWE-306' },
|
|
// The Cloud Panel (server/cloudPanel.js) connects to MongoDB servers with
|
|
// credentials it is given, so it exists only where the server's environment
|
|
// says CLOUD=<its domain>. Before 2026-11-22 any site administrator of any
|
|
// WeKan - a customer is the administrator of their own container - could
|
|
// turn it on from the browser and make the server connect to internal
|
|
// MongoDB servers. Every cloud method called on a WeKan without CLOUD, and
|
|
// every attempt to set the old browser setting, is this key. blocksAccount:
|
|
// false - a page left open from before the upgrade still asks, and the
|
|
// administrator of a self-hosted WeKan is often its only one; the call is
|
|
// refused whatever happens to the account.
|
|
'authz.cloud-panel-off': { category: 'authz', bleed: 'CloudPanelBleed', severity: 'critical', cwe: 'CWE-918', blocksAccount: false },
|
|
// A Cloud Admin method called, at the CLOUD address, by somebody who is not
|
|
// a Cloud Admin there: a customer, or a Cloud Admin away from the allowed
|
|
// addresses. No page offers them one. blocksAccount: false for the same
|
|
// reason as above - a tab open since the allowed addresses changed.
|
|
'authz.cloud-panel-access': { category: 'authz', bleed: 'CloudPanelBleed', severity: 'high', cwe: 'CWE-863', blocksAccount: false },
|
|
// Admin Panel / Cloud / Allowed addresses: a Cloud Admin login from any
|
|
// other address. The account is the Cloud Admin's own, so it is the login
|
|
// that is refused, not the account that is disabled.
|
|
'authn.cloud-admin-address': { category: 'authn', bleed: 'CloudPanelBleed', severity: 'high', cwe: 'CWE-284', blocksAccount: false },
|
|
// The REST API at the CLOUD address, without a login: POST /users/login,
|
|
// /users/register and /api/ are not there at all (server/apiMiddleware.js).
|
|
'authn.cloud-rest-off': { category: 'authn', bleed: 'CloudPanelBleed', severity: 'medium', cwe: 'CWE-306', blocksAccount: false },
|
|
// Admin Panel / Settings / Privacy and security / Allowed addresses
|
|
// (server/adminPanelAddresses.js): a site administrator's admin method,
|
|
// admin check or admin REST call from an address the list does not have.
|
|
// blocksAccount: false - it is the administrator's own account, and their
|
|
// boards still work from there; only the admin action is refused.
|
|
'authz.admin-panel-address': { category: 'authz', bleed: 'Admin Panel allowed addresses', severity: 'medium', cwe: 'CWE-284', blocksAccount: false },
|
|
// Board View / Shop (server/shop.js). Board Settings / Shop saved by
|
|
// somebody who is not an admin of the board, an Orders list named on a board
|
|
// they do not administer, or a client write of a board's shopSettings past
|
|
// the method that checks it. No screen offers any of these. blocksAccount:
|
|
// false - an admin demoted while the popup was open still saves.
|
|
'authz.shop-settings': { category: 'authz', bleed: 'Shop', severity: 'medium', cwe: 'CWE-863', blocksAccount: false },
|
|
// An order the shop does not take: the shop closed, a visitor without an
|
|
// account where only accounts order, a payment method the shop does not
|
|
// offer, a board the caller can not read - the Shop view offers no checkout
|
|
// then. 'detected': a cart line carrying a price, which is not read.
|
|
// blocksAccount: false - a visitor has no account, and a tab open since the
|
|
// shop closed still sends.
|
|
'authz.shop-order': { category: 'authz', bleed: 'Shop', severity: 'medium', cwe: 'CWE-602', blocksAccount: false },
|
|
// More orders to one shop in an hour than it takes (server/shop.js
|
|
// MAX_ORDERS_PER_HOUR): the shop is being flooded with orders.
|
|
'dos.shop-orders': { category: 'dos', bleed: 'Shop', severity: 'medium', cwe: 'CWE-770', blocksAccount: false },
|
|
};
|
|
|
|
const DEFAULT = { category: 'unknown', bleed: 'Generic', severity: 'info', cwe: '' };
|
|
|
|
// Resolve a short guard key to its { category, bleed, severity, cwe }. Unknown
|
|
// keys fall back to a generic entry so the log/report is never blank.
|
|
function categoryFor(key) {
|
|
return Object.assign({}, DEFAULT, CATALOG[key] || {});
|
|
}
|
|
|
|
export { CATALOG, categoryFor };
|