Forumer review

Code review, tests, probes, and hands-on GUI test (one and two Basecamps) · bristinWild/forumer commit cde75b1, package forumer 0.2.2 from the catalog · 8 Oct 2026

A well-built, carefully documented app whose privacy promises do not all hold. It installs from the catalog with the right warnings, onboarding and the recovery phrase are good, live sync worked (a topic posted in one Basecamp showed up in a second one in about 25 seconds, and a reply came back with a notification), a fresh install showed the existing forum straight from the network, and the engine's 110 unit tests pass. The code is tidy: SQL is parameterised, network JSON is parsed defensively, and the signature covers every field.

The problems are in what the README promises about anonymity and flood control. All of the following I reproduced with a program or in the GUI:

Also: the Markdown filter that is meant to remove raw HTML can be bypassed (it did not fetch anything in Basecamp's sandbox), and the on-disk files link every post, anonymous ones included, to one account. A table of README promises against what I saw is below.

2high-severity findings (both reproduced)
6medium findings (4 reproduced, 2 read in code)
110 / 110engine unit tests pass; the 2000-line Qt backend, where most findings sit, has no tests

How I reviewed

What the README promises, and what I saw

README saysObserved
§5 “Anonymous: a fresh one-time persona”; composer: “one-time key, never reused”Not after a restore A restore can hand out an already-used key (F1).
§4 “No file on disk holds anything that links personas to each other, except the encrypted vault”No The plaintext outbox table links every own post, anonymous ones too, to one account id (F4).
My posts: “only you can see this list”Not across accounts A new account sees the previous account's posts (F2).
§8 “At most 60 replies per hour per persona, checked by every peer”Bypassable 300 of 300 accepted when sent newest-first (F3).
§1 “Images and HTML in posts are never loaded”Filter bypassable Raw HTML reaches the renderer (F6). I saw no network request in Basecamp 0.3.1's sandbox, so “never loaded” held in practice, but because of the sandbox, not the filter.
§5 “Without the master key, two personas cannot be linked”; “nobody can tell two of your personas belong to the same person”Not always See F1, F2, F4.
Recovery phrase brings back the account; a mistyped word is caughtHolds Restore gave the same persona fingerprint as the original account on another profile; a wrong last word gave a clear checksum error.
Inbox “works out on your device only”Holds Computed locally from the outbox; nothing is published.
Posts can't be forged or alteredHolds Signature, id and proof-of-work cover every field. (An alias can still look like someone else, see F5.)

High

HighRestoring from the phrase can reuse a key that signed an “anonymous” post

Anonymous posts use the next unused persona index from the same sequence as public personas (identity.cpp, allocateFresh). After a restore, the counter is rebuilt only from posts already stored on this device (recoverNextIndex, fed from m_posts->authors(), forumer_backend.cpp around line 586), and the stored state.json is not consulted again if the account id already exists (account_store.cpp 194–196). Two outcomes, both reproduced with q_identity against the real library:

Anyone watching the public network can see this; no access to the device is needed.

Suggested fix: derive anonymous keys from a separate KDF context (or index range) so they can never coincide with a public persona; on restore, take the maximum of the recovered index and any stored one, and never mark an anonymous key as the current persona. Also scan far past the 50-index gap limit.

Reproduce: probes/q_identity.cpp (output in results.txt).

HighA new account sees the previous account's posts, including anonymous ones

After locking and creating a new account (“bob”, never posted), my posts listed both posts written by “alice” on the same device, among them the anonymous one. The backend marks every outbox entry from every account with a delivery state (loadBacklog, forumer_backend.cpp 1305–1340), and the view treats any post with a delivery state as “mine”; the store is not cleared when you lock or switch account. This defeats the point of anonymous posting on a shared device, and “only you can see this list”.

Bob sees alice's posts
Logged in as bob (fr:WAD8-2GEC, new account): “my posts” shows alice's two posts, one of them the anonymous “anon-A”.

Suggested fix: filter by account id when loading and clear the view's store on lock and switch (ForumStore.qml).

Medium

MediumThe hourly limit per persona is bypassed by sending newest-first

Receivers count the author's stored posts with a timestamp in [ts − 1 h, ts] (checkPost, forumer_backend.cpp ~1384–1390; post_store.cpp 294). Only posts at or before the new post's own timestamp count. If the sender signs posts with timestamps spread over the last hour and sends them in descending order, each one finds an empty window. Replaying the receiver's exact check against the real PostStore with the real 16-bit proof-of-work (q_flood):

ascending (honest) order: 60 of 300 accepted · descending order: 300 of 300 accepted (limit is 60)

Signing took about 30 ms per post. A key therefore costs one “new key” token and then pushes unlimited posts, so the README's “checked by every peer” does not hold. I did not test it live on the network.

Suggested fix: count posts in a window centred on the post ([ts − 1 h, ts + 1 h]), or enforce a total per key within the log's receive time as well.

MediumPlaintext files link every post to one account, and permissions are loose

The outbox table in posts.sqlite3 stores (post_id, account_id) for every post the device sent, anonymous ones included. I read it from a copy of the database (f88a3d40… and a5845128…, both with account 17eda670…, one of them the anonymous post). The backend also logs stored <id> as <fingerprint> (anonymous) (forumer_backend.cpp 1284, read in code; I did not see that line in Basecamp's output). Permissions as created: data folders 775, posts.sqlite3 644, state.json 664; only vault.json is 600. Anyone who can read the folder or logs can see which anonymous posts and personas belong together, which contradicts README §4.

Suggested fix: for anonymous posts keep the account link only in memory (or encrypted), never log the fingerprint, and create folders 700 and files 600.

MediumAn alias post can look exactly like another persona

An alias post with fp:false shows only the alias text. The alias is free text, and fp is inside the signed document, so a custom client signs it itself. I built the envelope with a copy of post.cpp that differs in one line (sign() forces fp:true for aliases, see the patch), and fed it to the unmodified verifier: verify: ok; author shown to readers as: "fr:30H4-316V", the same string as the victim's real post. The view compares authors by display string, so the “OP” badge and the participant list are fooled the same way. Probes: attacker, verifier.

Suggested fix: refuse aliases that look like a fingerprint (fr: prefix) in validateDisclosure, always show the real fingerprint next to an alias, and compare authors by public key, not display text.

MediumThe Markdown filter can be bypassed, and one payload hides the rest of a post

markdown.js “neutralises” raw HTML by writing \< for every <, but it does not escape backslashes and tracks code spans with its own scanner. Three bodies reach Qt's renderer with a live <img> tag (probe): a backslash before the tag (\<img …> becomes \\<img …>), escaped backticks around it, and an indented fence line. In the GUI, a post with the backslash payload rendered as “control: <img …>backslash: \” and everything after the tag disappeared, so a post can show readers different text than it contains.

I saw no network request to my local probe server, so the “never loads images” claim held in Basecamp 0.3.1 (views have no network). That protection comes from the sandbox, not from the filter. The same filter also lets link text hide the target: [https://logos.co/docs](http://other.example/) renders as the first and opens the second, with no tooltip or confirmation (MdText.qml 21–23). Only http(s) is opened, which is good.

Thread rendering
The probe post as rendered in the thread view: the text after the first raw tag is gone.

Suggested fix: don't pass user text through a hand-written escaper: render with Text.PlainText, or use a real Markdown parser with HTML disabled, and show the link target on hover.

MediumPeers can be pushed into work or starved; four sync issues (read in code)

Suggested fix: require a lower bound on oldest and on accepted timestamps (for example the app's launch date); record “seen” only after a post validates; reserve part of the new-key budget per sender or require more work from fresh keys under load.

MediumA crash can lose the only copy of the master key (read in code)

writeFileAtomic (account_store.cpp 44–70) does flush() and rename() without fsync of the file or the folder. After a power cut, vault.json can end up empty. changePassword and a repeated restore overwrite the existing vault the same way and never check that the new vault decrypts before replacing the old one. The recovery phrase is the safety net, but only if the user kept it.

Suggested fix: fsync the file and its directory, and re-open the new vault before replacing the old one.

Low

WhatWhere / how I knowSuggestion
Argon2 parameters in vault.json are not bounded: a huge ops hangs unlock, a huge mem fails with “not enough memory”.vault.cpp 160–166, 207–216 (read in code).Floors and ceilings.
Unlock, “show phrase” and delete run Argon2id (256 MiB) inside the backend slot, which also serves delivery events and timers. 280 ms on this fast machine, longer on a small one.forumer_backend.cpp 565, 615–620, 648–652; timing from q_argon_time.Run it on a worker thread.
Persona fingerprints are 40 bits (fr:XXXX-XXXX), so a look-alike key is about 240 tries.identity.cpp 203–218.Show 60+ bits or a short checksum word.
Passwords and phrases pass through QString copies that are never wiped; a mistyped phrase word is echoed in the error message.forumer_backend.cpp 552–624; mnemonic.cpp 108, 130.Wipe where possible; don't echo input.
Replies with made-up root ids create permanent “Topic still arriving…” rows on every reader's Home.ForumStore.qml addReply, topicItem (read in code).Hide placeholder topics until the root arrives.
A deep link opened while locked answers “success” but nothing opens; a thread link whose post is not held gets one request and then a static error.Main.qml 43–50 (read in code).Reply when it is actually handled; retry.
The README says reading a thread link request “reveals nothing”, but peers learn which day you asked about and the ids you already hold.fetchAround (read in code).Say so in the threat model.
The lock screen shows the account name without a password.Seen on the unlock screen; local only.Fine on a personal device; note it for shared ones.
A wrong password and a damaged vault give the same message, which could push someone to re-create an account.vault.cpp 220.Distinguish “damaged file”.
Range answers use one global 3 s slot, and any request refreshes it, so one request every 3 s keeps others unanswered.forumer_backend.cpp 1499–1501 (read in code).Per-sender slots.
since/until in a range request can overflow (until − since with ±5e18).forumer_backend.cpp 1504 (read in code).Check bounds before subtracting.

What works

Composer
The topic composer with Markdown toolbar, domains and “post as”.
Anonymous composer
“One-time key, never reused” (see F1).

Installing from the catalog

Not tested

Test traffic on logos.dev: one topic (“review-test: live sync A to B (safe to ignore)”, domain review-test) and one reply from throw-away accounts. The Markdown probe posts were written on logos.test (they showed “sending…”/“failed”; I cannot rule out delivery there; they only point at 127.0.0.1). Everything else ran on this machine. Re-run the checks: probes/results.txt.