A guard that refuses in silence tells the operator nothing. Four of the five
findings have an ATTEMPT that can be told apart from ordinary use, so each
refusal is now recorded through server/lib/securityLog into the `security`
stream - which is what Admin Panel / Problems counts and lists - with a catalog
entry naming it after its Hall of Fame page:
authz.card-delete PurgeBleed critical CWE-639
authz.card-member GuestBleed high CWE-639
authz.board-list StaleBleed medium CWE-863
spoofing.author AuthorBleed medium CWE-345
What counts as an attempt is the part worth being careful about, because a log
that fires on ordinary use is a log nobody reads:
- PurgeBleed logs when the card id names a card that exists but is NOT on the
authorised board. A card id that names nothing is an ordinary 404 and writes
nothing. Telling those apart needs the bare lookup back, so it is there once
more - after the constrained one has already failed, named `elsewhere` for
what it is, and never handed to cardRemover.
- GuestBleed logs the ids dropped from a members/assignees array. An array whose
ids are all fine writes nothing.
- StaleBleed logs when the caller HAS revoked memberships that the listing
withheld - counted, not named, because the point is that somebody removed is
still asking and the titles are the thing being withheld. A caller with no
revoked membership writes nothing.
- AuthorBleed logs when the body still carries an authorId naming somebody
other than the session. Naming yourself is what an old client does and is not
an attempt.
HashBleed deliberately has NO key, and the catalog says why: every call to
GET/PUT /api/users/{userId} is a legitimate admin call. The fault was in what
the answer carried, not in who asked, so a log line there would fire on ordinary
use and say nothing about an attacker.
`req.body.authorId` is still READ - that is how the spoof is noticed - but never
used as an identity, and the guard pins that: not stored as userId, not passed
to cardCreation, cardRemover or customFieldCreation, and read exactly once in
cards.js, inside noteAuthorSpoof.
tests/restApiIdorBatch.test.cjs is at 14 checks, five of them negative: that
ordinary use writes nothing on all four, that HashBleed has no key and neither
endpoint logs, and that every securityLog call sits in a try/catch - a log that
throws would turn a refusal into a 500, which makes the logging its own denial
of service.
Thanks to ybsun0215 and xet7 !