ParallelPathdocumentation

ParallelPath 0.0.1: security test report

Date: 2026-10-24. Scope: the server (ppserver), the client engine (Windows, Android and web), the web app, the call page and the TURN relay, at version 0.0.1. It collects every round of testing during development: the core platform (findings 1-15); private conversations, permissions, choosing who to call, the tone model and help (16-19); and who may bring families onto the server, the file explorer's operations (moving and copying folders, copies into another family, bulk removal, restore, files shared in messages) and the right-click menus (20-22).

Method: an automated attack suite run against a real server over post-quantum TLS on loopback (server/e2etest/pentest_test.go), with real attackers holding their own keys and sessions. Plus targeted tests (access_test.go, repin_test.go, callrestart_test.go, internal/turn/turn_test.go, internal/backup), a code review of the authorisation paths, a dependency scan (govulncheck), and live testing of the web app in a browser engine and the Android app on an emulator. All the tests run with every build (tools/build-release.ps1).

Summary

#FindingSeverityStatus
1A parent who joined but was never approved could remove the approved parentsCriticalFixed
2An unapproved parent could rotate the family to a key they generated (and read everything new)CriticalFixed
3A member without a key could plant a bogus key for a new member's device (key poisoning)HighFixed
4Automatic key rotation would have handed the new key to a device restored from a recovery code before the family re-approved itHighFixed during development
5TURN relay could reach other UDP services on the server's own addressMediumFixed
6Malformed STUN packet could crash the server (pion/stun GO-2026-6163), with no sign-in neededMediumFixed (dependency updated)
7Daily backups didn't include the families' encrypted filesMedium (availability)Fixed
8Blocked accounts' devices still counted as holding the family's keyLowFixed
9Web app CSP allowed inline stylesLowFixed
10Permissions-Policy blocked location for web check-insFunctionalFixed
11The TLS server's certificate key (not the CA key) is stored unsealed in the data folderLowAccepted (see below)
12A device that briefly loses its connection during a lock or unlock could show "offline" while connectedFunctionalFixed
13On Ubuntu the call relay never started under the hardened systemd serviceFunctional (calls)Fixed
14ppserver uninstall --purge left the backup folder behind when the data was in the encrypted containerLowFixed
15Unsigned Windows setups are blocked outright where Smart App Control or similar app control is onDistributionOpen: needs a code-signing certificate
16Children's names never reached their family (their device refused to post its own name record)FunctionalFixed
17Section visibility within a family is enforced by the server, not by separate keysDesign limitAccepted, documented
18"Voice only" is enforced by the apps (a call's kind is end-to-end encrypted, so the server can't see it)Design limitAccepted, documented
19A professional with a history window saw no names (names posted before the window were hidden with it)FunctionalFixed: devices post names again inside the window, under the current key only
20Any account holder (a parent included) could start any number of family spaces, so families could be brought onto the server without its operatorMedium (authorisation)Fixed
21The server couldn't tell a private journal from a family, so a journal could be given membersLowFixed
22"Save a copy" writes a decrypted file outside the app; copies within a family share the encrypted fileDesign noteAccepted, documented

Findings

1. Unapproved parent could remove the approved parents (critical)

A parent invite code joins someone as a parent *waiting for approval*: approval is when an existing parent compares safety numbers and shares the family's keys. The server only checked the role, so the joined-but-unapproved account could remove both approved parents, locking the family out of its own record. Anyone who got hold of a leaked invite code could do this.

Fix: parent powers (inviting, family settings, removing people) need an *approved* parent: one whose calling device holds the family's current key. And an approved parent can't be removed by the other parent at all. Neither co-parent can lock the other out; the server's operator can block an account if that's ever genuinely needed. A parent still waiting for approval can be removed. Covered by TestPentest.

2. Unapproved parent could take over the family's key (critical)

A rotation had to re-key every approved device, but the server didn't check *who* rotated. A parent without the key could make a new key, wrap it to every approved device, and so read everything written after.

Fix: only a device that holds the current key may rotate, and only a device that holds a key may share it. Covered by TestPentest.

3. Key poisoning (high)

For the same reason, a member without a key could post a grant for a key it made to a newly joined device, which would keep that key and ignore the real one. Fixed by the same rule as finding 2.

4. Rotation and recovered devices (high, found while building automatic rotation)

Automatic rotation (monthly, and whenever a device that held the key is revoked or its owner removed, blocked or out of their access window) originally re-keyed *every* device of every member. That included a device just restored from a recovery code, before the family had compared safety numbers and approved it.

Fix: a rotation must re-key exactly the devices that hold the current key, and the server refuses any other device. New devices still wait for approval. Covered by TestRecovery and TestPentest.

5. TURN relay reaching the server's own services (medium)

So that two callers can meet on the same relay, it must be allowed to send to its own address. TURN permissions cover a whole IP, though, so a signed-in device could send UDP through the relay to any service on the server (DNS, NTP, VPN), arriving from the server itself.

Fix: relay sockets drop datagrams to the server's own address unless they go to the relay's port range. Loopback, link-local, multicast and the server's other addresses stay refused. Covered by TestGuardedRelaySockets and TestRelayAccess.

6. Unauthenticated crash through STUN (medium)

govulncheck: pion/stun/v3 v3.0.1 panics on a malformed XOR-MAPPED-ADDRESS (GO-2026-6163), reachable from the TURN listener without signing in. Fix: updated to v3.1.5 (and pion/dtls v3.1.4). govulncheck now reports no reachable vulnerabilities in any module. One remaining advisory is in golang.org/x/crypto/openpgp, which ParallelPath doesn't import.

7. Backups without files (medium, availability)

Daily backups copied the database only, so restoring one would have lost every photo, receipt and document. Fix: backups now keep an incremental copy of the encrypted files (blobs/). They're still ciphertext.

8. Blocked accounts and rotation (low)

Blocking an account stops it signing in, but its devices still counted as holding the key, so no rotation happened. Fix: blocked accounts count as "shouldn't hold the key"; the families rotate away from them.

9. Inline styles in the web app's CSP (low)

style-src 'unsafe-inline' wasn't needed. Removed, and checked in a real browser engine: no CSP violations, and the app renders.

10. Location blocked for web check-ins (functional)

The API's Permissions-Policy said geolocation=(), which blocked the web app's own optional location on check-ins. Now geolocation=(self).

11. TLS certificate key unsealed (accepted, low)

The local CA's key is sealed with the OS key store, but the server certificate's key (tls-leaf.key, 200 days, can only vouch for this server's names) is a file in the data folder. That folder is readable only by the service and administrators, and it's on an encrypted volume. Stealing it would also need control of the network path, and all family content is end-to-end encrypted anyway. It may be sealed in a later version.

12. Stale "offline" after lock and unlock (functional)

When the app locked and unlocked, the old connection's shutdown could report "offline" after the new connection had reported "online". Status updates from a replaced connection are now ignored.

13. Relay blocked by the service sandbox (functional)

Found by installing a test build in a throwaway Ubuntu (WSL) clone. The unit allowed only AF_UNIX, AF_INET and AF_INET6, but listing network interfaces (the relay's networking, and its own-address check) needs netlink. The relay failed to start with a warning, so calls across networks would have had no relay. Fix: AF_NETLINK added to RestrictAddressFamilies; systemd-analyze security still scores 1.1.

14. Purge left the backups (low)

The purge read the backup folder from the config, but by then the encrypted data volume was closed. Fix: the folder is read before anything stops, and it's also kept in /etc/parallelpath/install.json.

15. Unsigned setups and app control (open)

Windows Sandbox on this build of Windows now enforces app control, and it blocks both unsigned setups ("An Application Control policy has blocked this file"). PCs with Smart App Control on would do the same. The setups need code signing before public release. They were verified in the sandbox before this policy applied (m5-m6), and haven't changed since apart from the version and wording.

16. Children's names (functional)

A child's device treated read-only access as "can't post anything", including the encrypted record carrying its own name, so families saw "Member 34823f" instead of the child's name. The device now follows the same rule as the server: anyone may post their own name; everything else follows their permissions.

17. Server-enforced sections (accepted)

A family's sections (chat, calendar, expenses, documents, info bank) share the family's epoch keys. Hiding a section from someone is done by the server never sending them its items. A compromised server could send them anyway, and the person's device could decrypt them. Private conversations have separate keys, so for content that must stay away from some family members, use a private conversation. The family's audit log (metadata only) stays visible to every member, because each device verifies the whole chain.

18. Voice-only calls (accepted)

Whether a call is voice or video is inside the end-to-end encrypted call set-up, so the server can't enforce "voice only"; the apps do. The server does enforce who may call whom.

20. Starting families without the operator (medium)

Reported by the product owner: the server let any signed-in account create a family space. A server invite (admin only) was meant to bring one family onto the server, but its person - or anyone they invited, the other parent included - could then start more and invite whole other families into them, bypassing the operator. Now every account has an allowance (Person.FamiliesLeft): a server invite gives one family, a family invite none, and only the admin portal (signed in, CSRF-protected, recorded in the server's audit chain) can give more. The server checks it on every family creation. Accounts from earlier test builds keep their one family only if they hadn't started one. The apps only offer "New family space" when it's allowed. Tests: TestFamilyAllowance, TestFamilyAllowanceLegacy, TestFileExplorer, the portal tests.

21. Journals indistinguishable from families (low)

The private journal is a space only its owner's devices hold keys for, but the server stored it like a family, so a (modified) app could invite people into it or open a conversation there. A journal is now created as one (kind=journal in its signed creation intent), one per person; the server refuses invites into it and conversations in it. Journals from earlier test builds aren't marked; the apps never invite into them.

22. Saved copies and shared files (accepted)

"Save a copy" deliberately writes a normal, decrypted file where the person chooses (Downloads, a USB stick). It's recorded like an opening (a download in the family's audit log), and the dialogs say the copy isn't encrypted. A copy made within a family points at the same encrypted file (same per-file key) rather than uploading it again; everyone in the family could already open the original, so nobody gains access. A copy into another family is decrypted on the device and encrypted again under that family's keys, and the other family never learns about the source.

What was attacked and held

Not covered (yet)