Forumer review

Fresh independent review: code read (engine, backend, QML), unit tests incl. ASan/UBSan, 8 probes, GUI test in Basecamp 0.3.1 (create / lock / second account / restore on a second "device" / composer / replies), install check · repo bristinWild/forumer commit cde75b1ea4ce75fe7e9498bce6a8302d570f6ab1 (default branch HEAD), package forumer 0.2.2 (forumer-0.2.2.lgx, sha256 26139cf3…6f80, matches the catalog index) · 2026-10-08

A polished app on a well-tested crypto/engine core, but three of its privacy promises do not hold and spam/spoof defences are thin. What works: onboarding, vault (Argon2id 3 x 256 MiB, mode 0600), recovery phrase with typo detection, outbox that survives a restart, two-level replies, per-account quota counter, 110/110 engine tests (also clean under ASan+UBSan) and no crash in 200 000 fuzzed wire messages.

What does not (all reproduced unless marked):

3high-severity findings (3 reproduced)
6medium findings (5 reproduced, 1 read in code)
110 / 110author's tests pass (also with ASan+UBSan); they do not cover the Qt backend, the QML, multi-account isolation or restore on a fresh device

How I reviewed

What the README promises, and what I saw

README saysObserved
Anonymous: "a fresh one-time persona"; composer: "one-time key, never reused" (§5)No after a restore on a device with an empty post log the same anonymous key is used again (F1)
"No file on disk holds anything that links personas to each other, except the encrypted vault" (§4)No outbox table: post, account id, persona key, disclosure in plaintext (F3)
My posts: "everything this account wrote ... Only you can see this list"; several accounts per device (§1)No another account on the device sees them, anonymous ones included (F2)
"Images and HTML in posts are never loaded" (§1)Partly HTML is parsed after a one-backslash bypass and swallows text; I could not make it fetch my local image URL (F4)
Per persona at most 10 topics / 60 replies per hour, "checked by every peer" (§8)No counted on the sender's own ts: one key got 470 topics accepted (F6)
Fresh keys "draw from a shared budget" so spam is bounded (§8)Partly bounded, but one cheap sender takes the whole budget (F7)
Readers see "night owl · fr:7Q4K-M2XD" or "fr:..."; every post is signed (§5-6)Partly signatures hold, but an alias can be exactly someone else's fingerprint display (F5)
"Peers answer ... at most two weeks at a time" (§7)Partly bypassed by an integer overflow (F11, read in code)
Vault: Argon2id, 3 passes, 256 MiB, XChaCha20-Poly1305, mode 0600Holds vault.json shows ops 3, mem 268435456, mode -rw-------
24 words, typo caught, words may be shortened to 4 lettersHolds "word 24 ("enabel") is not in the recovery word list"; "PLUG velv sato ..." restored the account
Outbox persists across restarts; posts show sending / live / failedHolds 5 posts stayed "sending..." through a restart (offline); live/failed not reachable offline
110 unit testsHolds 110/110, also under ASan+UBSan
Install from the catalog, "Package Manager -> Social -> Forumer -> Install"Partly catalog and package are correct (sha256, contents); in-app install failed with "Download failed" in my environment (F9)
Dev/test network: "Settings -> network shows the one in use"Holds screenshot

High

HighF1. Restore on a fresh device reuses "one-time" anonymous keys and un-rotates the persona (reproduced)

restoreIdentity (forumer_backend.cpp:579-599) positions the persona counters only from authors already in the local post log (m_posts->authors(), line 585; identity.cpp:208-222). On a new device the log is empty, so currentIndex=0, nextIndex=1. Consequences: (a) the next anonymous post (and every auto-rotated post) derives index 1, 2, ... again, i.e. the same Ed25519 key as an anonymous post the user published before. The key is public in every envelope (pk), so the "anonymous" posts are linkable by anyone; (b) a user who rotated away from persona 0 deliberately posts as persona 0 again. A comment in the backend says "restore again later to pick those up", but nothing in the UI tells the user, and the damage is done on the first post.

GUI repro: account alice on device 1, posts as persona 0, anonymous, rotate, post (persona 2). Restore the same phrase in a fresh profile, post anonymously and as persona: the restored device used the identical anonymous public key CIbiFrhl... and persona fr:MWVR-ZJKN (the one device 1 had rotated away from) - see probes/results.txt (p04b) and probes/p04_restore_reuse.cpp (real Account::restore).

device 1 after rotation
Device 1: after "rotate now" the persona is fr:E7TV-6DY0.
restored device posts as MWVR-ZJKN
Restored device (empty log): persona posts show the old fr:MWVR-ZJKN; the anonymous post reuses device 1's anonymous key (see results.txt).
composer hint one-time key never reused
The promise on screen: "one-time key, never reused".

Suggested fix: do not derive anonymous (and auto) personas from a counter that restore cannot recover. Derive them from a random per-post value (they need no recovery), or give each device an index range (device_id << 32 | n). For the persona counter: on restore, ask the user to wait for history (or run the store query) before allowing a post, and warn that the rotation state is rebuilt from what the network still holds; consider storing the current index in the vault. The gap limit of 50 in recoverNextIndex also misses indices beyond a gap (p04).

Reproduce: probes/p04_restore_reuse.cpp, probes/p04b_restore_gui_compare.py

HighF2. A second account on the same device sees the first account's posts, anonymous ones included (reproduced)

loadBacklog returns the delivery state of every outbox row of every account (forumer_backend.cpp:1309-1312, outbox() is not filtered by account). The view's "posts written on this device" (ForumStore.qml:422-444) is simply "every post that has a delivery state", and unsentCount is global too. After lock + "new account", account bob opens "my posts" ("topics and replies written on this device") and "missed" ("posts of yours that have not gone out yet") and sees all five of alice's posts, including the anonymous one by title. Unsent posts are not even public yet. The per-account inbox and quota are correct; only these lists leak.

bob sees alice's posts
Signed in as bob: "my posts" lists alice's 5 posts incl. "ALICE anonymous topic".
bob sees alice's outbox
Same for "missed": alice's outbox shown as bob's.

Suggested fix: pass the unlocked account id into the delivery-state lookup (outbox WHERE account_id = ?), re-run it on every unlock/lock, make unsentCount per account, and clear the view's deliveries map when the identity state changes. Add a two-account test.

Reproduce: GUI (media above); code: forumer_backend.cpp:1309-1312, ForumStore.qml:236, 422-444.

HighF3. The post log links every post (anonymous too) to the account id in plaintext (reproduced)

The outbox table (post_store.cpp:36-45) stores (post_id, account_id, ...) next to posts.author (the persona key) and the envelope (disc = anonymous). So anyone who can read the data folder (the file is mode 0644, folder 0775 here; no OS-level encryption) learns, without the vault, which anonymous posts and which persona keys belong to one account, and state.json (0664) adds the account label and the number of personas used (next). README §4 says "No file on disk holds anything that links personas to each other, except the encrypted vault", and §9 lists "a stolen, switched-off device" as protected. p06_disk_linkage.py on the real data dir of the GUI run: 5 posts -> account 2d8a801a8cb870f0 ('alice'), 2 persona keys linked, 1 anonymous post linked.

Suggested fix: keep the account-to-post mapping inside the encrypted account state (or key the outbox rows by an HMAC under a vault-derived key and drop them once sent); put the data folder and DB under 0700/0600; or state the limitation honestly and drop the "my posts rebuilt on a new device" claim for anonymous posts.

Reproduce: probes/p06_disk_linkage.py (output in results.txt; sample-home-b-data/ is the data from the run)

Medium

MediumF4. The markdown sanitiser is bypassed with one backslash; HTML is parsed (reproduced; no remote fetch observed)

markdown.js:24 neutralises raw HTML by turning < into \<. A post that already contains \< becomes \\<: the backslash escapes itself, the < is live and Qt's Markdown renderer treats the rest as raw HTML. Posted locally (never sent), the body X \<img src="http://127.0.0.1:18080/..." width="40"> Y ... rendered as "X \" with everything after the tag swallowed, in the composer preview and in the thread; the same for \<font> and \<a>. So HTML is parsed after the sanitiser and a post can hide parts of its own text. What I could not show: coloured/sized text or an image actually rendering (the <font> tag also just swallowed the rest), and my local HTTP server logged no request, so the README's real worry (a post making a reader's client fetch an image and reveal its IP) did not happen on Basecamp 0.3.1 here; Basecamp's QML sandbox may be what stops it, which is not something to rely on.

preview shows backslash only
Composer preview of "bold [link]", then \<img ...> line: only "\" is shown, the following lines (markdown image, raw tag, link) vanish.
thread shows X backslash
Thread view of X \<img ...> Y \<font ...> Z: "X \".

Suggested fix: escape with an entity (&lt;) instead of a backslash (an entity cannot be neutralised by a preceding character), or convert Markdown to a whitelisted HTML subset yourself and render with Text.StyledText/PlainText spans. Add a test that feeds \<, \\< and \\\< through Md.safe.

Reproduce: GUI, local post with body \<img src="http://127.0.0.1:18080/t1.png"> (scripts/newtopic.sh, hitserver.py).

MediumF5. An alias can be exactly another persona's fingerprint display (reproduced; OP badge read in code)

validateDisclosure (post.cpp:91-94) requires only a non-empty alias of at most 32 bytes for alias posts; it does not require fp=true, and authorDisplay (post.cpp:260) shows the alias alone when fp=false. An attacker signs an alias post with alias fr:014G-XQ5E (the victim's fingerprint) or night owl · fr:014G-XQ5E and fp=false; verify() accepts it and the display is byte-identical to the victim's. In the thread view the "op" badge compares these display strings (ForumStore.qml:390), so such a post would also carry the badge in the victim's topic (read in code; not run in the GUI). Fingerprints are only 40 bits, so an attacker can also grind a key whose fingerprint matches (low).

Suggested fix: reject alias posts with fp=false (the sender never produces them), reject aliases that start with fr: or contain " · "/control/bidi characters, and compare authors by public key, not display text.

Reproduce: probes/p01_alias_spoof.cpp

MediumF6. The per-persona hourly limit is counted on the sender's own timestamp, so it is bypassed by back-dating (reproduced)

checkPost counts a key's posts in [ts - 1 h, ts] with ts chosen by the sender (forumer_backend.cpp:1387-1391; design note in flood.h "AUTHOR time"). Back-dated posts only need to be not in the future, so a single key spreads posts over past hours and each hour sees at most 10. Known keys also skip the new-key budget (line 1417). p02 uses the real post::verify, PostStore and flood::withinLimit with the same accept sequence: 15 topics at ts=now -> 10 accepted, 5 rejected; 470 topics back-dated over 47 h, same key, all accepted and all inside the 48 h digest window (so peers re-serve them). The probe copies the backend's accept order (the backend needs Qt); the unit tests do not test this path.

Suggested fix: apply the limit to arrival time too (per key, outside history import), or reject live posts whose ts is older than a few minutes (history/range answers can be exempt but cap per key per answer).

Reproduce: probes/p02_flood_backdate.cpp

MediumF7. The new-key budget can be monopolised cheaply; proof-of-work is nominal (reproduced)

A fresh key costs the attacker 29 ms (key + 16-bit PoW + signature, one core: about 34 posts/s); a receiver verifies one in 0.08 ms. Every receiver stores posts from never-seen keys only while a shared bucket (60/min, burst 120) has tokens (forumer_backend.cpp:1417). p03 (real TokenBucket, simulated timeline): an attacker sending 100 fresh-key posts/min for 30 min leaves honest first-time keys (every anonymous and every auto-rotated post is one) 2 stored out of 30, versus 30/30 without the attacker. "Deferred" posts are re-offered by digests but compete with the same flood. The README acknowledges RLN as the long-term answer; until then the limit protects the disk, not honest users.

Suggested fix: prefer higher-work posts when the bucket is short (hashcash priority), raise anonymous PoW cost with load, reserve a share of the bucket for keys that arrive with older timestamps, or gate new keys on RLN where available.

Reproduce: probes/p03_newkey_budget.cpp

MediumF8. A forged message carrying a real post's id suppresses repair of that post (read in code; decoding reproduced)

handlePost records m_lastSeenOnWire[post.id] = now before it verifies anything (forumer_backend.cpp:1398); resend() treats "seen within 30 s" as "someone just sent it" and drops the post from the answer queue (lines 1824-1826). Post::fromJson/sync::decode accept any well-formed envelope, so a message with a real id and a garbage signature gets that far (p05 (d): decode ok, carries the real id, verify() rejects it). Re-sent every 30 s per target id, it stops honest peers from repairing that post for newcomers, who learn about posts only via digests. Ids are public. The backend part could not be executed standalone, hence "read in code".

Suggested fix: move the m_lastSeenOnWire insert after checkPost() succeeds (or only count posts that verified).

Reproduce: probes/p05_wire_fuzz.cpp section (d); code lines above.

MediumF9. In-app catalog install ended in "Download failed" (still running at 4.5 min, failed by 10 min; cause not isolated)

Add repository -> the catalog appears -> Install shows the dependency dialog (delivery_module v0.3.2, optional RLN module v0.10.0 + liblogos_lez_rln_module v4.2.1, libp2p v1.1.0 all preselected) -> "INSTALLING..." (progress events, still running at 4.5 min) -> by the 10-minute mark "Install Failed: 'forumer' could not be installed. The package manager reported: Download failed". On this machine GitHub downloads run at about 0.5 MB/s (the 97 MB delivery_module took ~3 min by curl), so the download may simply be slow or the downloader may time out; I cannot say whether the package is at fault. lgpm installed both .lgx files immediately. Also note: the dialog preselects the RLN and libp2p modules, while Forumer works without them (RLN-less node on logos.test: relay on, "RLN proof validation disabled").

install dialog
Install dialog: delivery_module 0.3.2 + preselected optional modules.
Install Failed
By the 10-minute mark: Install Failed, "Download failed".

Suggested fix: ask Basecamp's package-downloader owners about the failure mode (no timeout message, no retry progress); for Forumer, document the lgpm fallback and that the optional modules are not needed.

Low

WhatWhere / how I knowSuggestion
F10. A digest's oldest field is unbounded; oldest=1 makes every client walk back weekly windows to 1970: 2 960 windows x >= 13 s = 10.7 h of range requests per client, and a bogus "history back to 1970" statesync.cpp:115-119, forumer_backend.cpp:1450-1455, 1592-1639; decode + window count in p05 (b). Walk loop read in code, not runClamp oldest to a plausible launch date and to the best-attested value (e.g. needs two peers)
F11. since=INT64_MIN, until=INT64_MAX in a range request: untilMs - sinceMs overflows to -1, so the "two weeks at a time" cap is skippedsync.cpp:109-114 accepts it; forumer_backend.cpp:1504; arithmetic in p05 (c). Read in code (signed overflow is UB)Compute the span in unsigned/__builtin_sub_overflow, or reject spans > max in decode
F12. Limits are in bytes but documented as "characters"; the UI has no maxLength/counter; non-ASCII domains normalise to nothing and silently become #generalpost.cpp:146,115, forumer_backend.cpp:1203; p09: 101 Cyrillic letters (202 B) refused as "post is too large", 3 334 CJK characters refused, политика, 日本 -> 0 domains. (GUI typing of non-ASCII via xdotool was unreliable, so this is probe-only)Count code points or fix the wording; show a live counter; keep non-ASCII domain names or tell the user
F13. "Remove from this device" deletes the account files but leaves its posts and outbox rows: they keep being retried and show up in other accounts' lists (see F2)forumer_backend.cpp:648-661, account_store.cpp:229-239. Read in codeDelete or hand over the outbox rows of the removed account
F14. File modes: posts.sqlite3 0644, state.json, accounts.json, peer_id 0664 (only the vault is 0600); the data folder follows the umaskp06 listing in results.txt (reproduced)Create the folder 0700 and the DB 0600
F15. UX: the status line says "disconnected - synced 10:21" while the node has no peer ("synced" is only "a digest was sent"); with a 5-line message the new-topic sheet is taller than 900 px and the post button is clipped; no length counter; a quota line appears only after the sheet opensscreenshots gui-empty-home, gui-composer-clippedShow "synced" only after a peer answered; make the sheet scrollable
F16. Argon2id (256 MiB x 3) and proof-of-work (20 bits for anonymous) run inside the synchronous backend slots, blocking the ui-host thread that also handles delivery events; passwords and the 24-word phrase cross the Remote Objects contract as slot arguments / return valuesaccount_store.cpp, forumer_backend.cpp:548-627, 1270; read in code. no UI freeze noticed in my runs (the view calls are async)Run KDF/PoW on a worker thread; keep the phrase out of the contract where possible (show it from the backend)
F17. The Settings screen ships the "storage probe" (start a Storage node, share a test file; share code includes the machine's IPv4 addresses) and the package hard-depends on storage_module for itforumer_backend.cpp:781-1186, SettingsScreen.qml:153, metadata.json. Read in code; not runHide behind a developer flag, drop the dependency until media ships
F18. Unbounded post log and start-up cost: every accepted post is stored forever and loadBacklog sends the whole table to the view as one JSON string; 16 KiB x the flood caps (F6/F7) grows fastforumer_backend.cpp:1305-1341, post_store.cpp:226-237. Read in code; not measuredPage the backlog, prune old rows, cap storage

What works

Hypotheses that turned out fine: "typing a long phrase into a masked field breaks onboarding" (no); "restore on the same device loses the persona" (no, settings kept); "markdown links are clickable for non-http schemes" (no: onLinkActivated checks http(s)); "a remote image is fetched by the markdown bypass" (not observed).

Not tested

Environment: Linux 6.17, x86_64, Basecamp 0.3.1 AppImage (extracted copy for the sandboxed runs), Xvfb :95, g++ with libsodium/sqlite3, nlohmann/json 3. Work dir /tmp/forumer-fresh/; the repo under review was cloned there and never modified (the author's test build wrote src/build/). Re-run the probes with probes/README.md. Test traffic: none on shared networks (see "How I reviewed"). The video starts with the offline sessions; the first, online session is deliberately not in the recording because it shows other people's public posts.