The review passes
Security was reviewed over and over as the project grew - thirteen whole-project passes, and separate reviews of the installers and the box - most passes by several reviewers at once. The later ones were run blind: reviewers saw the code and nothing else, because the eyes that had not absorbed the project's reasoning were the ones that found the real bugs.
Before the internet: passes one to three
The first review came before remote access was built. It found that a path is an instruction to a
backend holding an admin credential - /api/hls/jellyfin/%252e%252e/System/Info reached
Jellyfin's admin API through a double-decoded dot segment - and that one Jellyfin account serving
films and TV let an id cross between them. It added the first-account setup code, per-account
guess limits, origin-based CSRF checks, no-overwrite uploads, a disk reserve, hashed session keys and
validated reading positions.
The second, broader pass found little. The third found the largest thing in the whole series and it
was architectural: recover() appeared nowhere, so a panic in any goroutine EmberStorm
started - per-source search, the ebook scanner, provisioning, certificate renewal - took the whole
process down. Every such loop now recovers.
The reader, three times
The same class of bug was found three times through three doors, which is why the reader's defences are layered:
- Fourth pass: a book's chapter pointing an absolute
<script src>at the server's own book-resource endpoint ran underscript-src 'self', as the owner. Fixed by refusing non-fetch destinations and never serving a script type. - Fifth pass: the same through a cover - a declared cover named
x.jswas served as JavaScript. Fixed centrally for every stream path. - Sixth pass: a chapter loading the app's own
app.js, which ran against the book's copy of the page's ids. Fixed by stripping scripts from every chapter before rendering and refusing to run the app in a frame.
After remote access: passes five to seven
- Fifth: anyone could switch off renewals for every install by spending the name service's daily challenge budget; cookie tossing from another install's trusted name; state-file growth by any member; OPDS ids as an authenticated GET anywhere; an EPUB directory that cost four times the file's size in memory; and the discovery that no read deadline behind the logging middleware had ever worked.
- Sixth: links out of a book kept
window.opener; a zip64 gap; the Linux installer writing a router's answer into.envunchecked; any member restarting read-along syncs; Jellyfin's trickplay tiles carrying the admin token. - Seventh: the Plex import could reach the compose network; any app on a phone could repoint the Android app through a leftover launch extra; the published APK was debuggable; covers and song headers that exhausted memory; downloads carried over to the next person on a shared device.
Passes eight to ten
- Eighth (whole project):
/static/served the app without its policy; Go and Alpine versions past support; exported volumes world-readable; no ceiling on book and picture reads in flight; Apple TV crashes from a malicious server. - Ninth (eight reviewers, every file): a 16MB PDF that took 2.6GB to read its title; a playlist import that pinned the CPU on a title of brackets; a JPEG of thousands of empty scans; Jellyfin's subtitle manifest leaking its token by another parameter; a panicking shelf fetch that hung every later request; the setup log carrying the setup code.
- Tenth (nine reviewers, every file): a small photo zip that ran the server out of memory at every start; phone backup carrying on into the next person's folder on a shared phone; backup over plain http when a secure name existed; one member slowing everybody through list writes and unlimited video conversions; quota bypass by an upload without a length.
Passes eleven to thirteen
After the rename, chosen names, the box and USB drives. The thirteenth was blind twice over: even its plan - how to split the project and what each reviewer should look for - was made by a reviewer shown only the code.
- Eleventh: the box's power-button password reset trusted the address a request named; a few kilobytes of crafted audiobook index could exhaust memory; a PDF of unclosed titles pinned a processor; a pretend TV could be used to take over a member; Open my EmberStorm followed whatever address it was given. Fuzz tests for every file reader came out of it.
- Twelfth: the names service's sweep would have released chosen names of installs without remote access; a planted profile cookie from another install; one member seeing another's camera details; updates that never refreshed the compose file; a page able to point the apps' photo backup at itself.
- Thirteenth: a member could have reached the owner's account through a shared TV's commands; a photo zip that understated its entries; the button's code readable where the app's container could see it; CSS references reaching the server's own addresses from inside a book.
The installers and the box
The Windows setup was reviewed four times blind, each time by fresh reviewers who also walked real runs through the code (a fresh PC needing a restart, every permission refused, a standard account, an uninstall). The box was reviewed twice: its scripts, its caretaker, its build and the USB stick that installs it. Among what they changed: Docker's installer checked as Docker's twice before it runs, folders the setup makes locked to their owner, an uninstall that can always be finished, a box that refuses to start rather than look new when its library drive is missing, and updates and resets that survive a power cut.
After the tenth: guessing from many addresses
Asked about afterwards as Tor. The throttle already counts guesses per account whatever the address - about 1,400 a day - so many addresses buy a guesser little, but 1,400 a day is plenty against "password1". Three things followed (see accounts):
- Twelve characters and not a common one, checked when a password is set, from a list built in; nothing is fetched.
- New devices can need approval, an owner switch: the right password on a device the account has never used waits until a device already signed in allows it.
- Asking everybody for a new password, and the same request made of anybody who signs in with a password today's rules would refuse.
The latest review
- A TV switched to somebody from their phone now gets a playback-only session.
- Plain http answers only at home addresses; from the internet it is sent on to https.
- The setup refuses the old 0.12 Windows program, which fetched its script unchecked, and runs a script beside it only when a developer asks.
- The Android app needs Android 9, where an app controlling the music can be told apart.
- An audiobook's pieces are sized from the file's index before they are sent, so a crafted file claiming a gigantic piece is refused (16 MB at most).
What the passes taught
- Blind reviewers find more. Context is what makes a reviewer accept a design's assumptions.
- Denial of service by a signed-in member is the most common remaining class: not one expensive operation, but nothing capping how many run at once.
- The same bug returns through a different door; fix the class, centrally, not the instance.
- The fail-open default deserves a test that walks every route - the access check has one.