15 KiB
Security review 2 (2026-11-19) — findings
Reviewed: felhom.eu@b7d8f75b (hub 0.182.0) · felhom-controller@10df99b8 · felhom-agent@3411592b ·
app-catalog-felhom.eu@b6058150 · homelab-manifests@1908bc68 (hub, runner and registry parts only).
For an open finding this page names the missing check and the harm only. The evidence column gives ONE landmark
(file:line of the place where the check is missing). The full path through the code, the measurements and the second
readers' answers are held off-git on DooPlex: /mnt/5_hdd/felhom.eu/evidence/security-review-2-2026-11-19-PRIVATE/
(INDEX.md maps each id to its files).
Columns: who = attacker of 13-threat-model.md §3 (a stranger · b LAN · c family member · d bad app · e taken-over
controller · f taken-over hub · g taken-over Gitea/registry · j hacked DooPlex pod). ctl = felhom-controller
controller/, agt = felhom-agent, hub = felhom.eu hub/. second read: a fresh helper that did not see the
reasoning (holds / does not hold / disputed), or „self". No finding is disputed.
| ID | area | title | who | harm | evidence (landmark) | static / measured | design or defect | new / known | tech sev | Sev | second read | row |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S2-01 | C3 | The agent's disk assign and guest-attach routes act as root on caller-named paths; no enrolled-drive check, links followed | e | root on the Proxmox host | agt internal/localapi/disks.go:494, intermediary.go:187-194 |
static; the 3 host facts measured (demo-hp) | defect | new | Critical | P2 | holds | R-1406 |
| S2-02 | C3 | The backup-target route accepts a mount the guest can write, with a caller-chosen storage id | e | whole-guest backups moved where the guest can erase or forge them, no signature | agt internal/localapi/backup_target.go:113-137 |
static | defect | known (October SR-17, R-984 — under-ranked) | High | P2 | holds | R-984 (note, re-ranked) |
| S2-03 | C1 | A .fab import never asks the privilege allow-list; any bundle file is written and started; infrastructure names accepted |
household click on a file from anyone; b via a network share | root in the guest | ctl internal/appexport/restore.go:551-590 |
static | defect | new (the allow-list of R-971 postdates October) | High | P2 | holds | R-1407 |
| S2-04 | C1 | A .fab import unpacks drive data where the bundle says; also into another app's volume |
as S2-03 | root-owned file write across apps and stacks | ctl internal/appexport/restore.go:745-754 |
static | defect | new | High | P2 | holds | R-1407 |
| S2-05 | C1 | Job error text is put into dashboard pages unescaped; it can hold an app-chosen file name or a bundle field; no script policy | d, or a prepared bundle | script with the household's session: every dashboard act | ctl internal/web/templates/app_data.html:447 |
static | defect | new | High | P2 | holds | R-1408 |
| S2-06 | C5 | App setting NAMES reach the compose tool's environment unfiltered, and no call names the file or project | g (no household act for an installed app); bundle | a definition the allow-list never judged runs | ctl internal/stacks/manager.go:1627, :1664 |
static + tool behaviour measured (9202) | defect | new | High | P2 | holds | R-1409 |
| S2-07 | C5 | The media-library override file is built as text from catalog values and is never judged | g | any service key on a media app, outside the allow-list | ctl internal/stacks/media_library.go:247 |
static | defect | new | High | P2 | holds | R-1420 |
| S2-08 | C5 | The compose file's own project name is not judged; a catalog app can address another stack's containers |
g | catalog commands run inside an infrastructure container (traefik holds the Docker socket) | ctl internal/privpolicy/privpolicy.go:280-307 |
static + measured (9202, throwaway containers) | defect | new | High | P2 | holds | R-1420 |
| S2-09 | C5 | A bind source is judged when written, not when the container starts; one template lets the app swap it | d (no catalog push) | at its next start the app gets a guest folder the allow-list would refuse | app-catalog templates/transmission/docker-compose.yml:88,91 |
static + measured (9202: re-resolved at restart) | defect (template) + design limit | new | High | P2 | holds | R-1421 |
| S2-10 | C2 | The operator start password's hash is in the public hub manifest since 2026-02-16 and is the fallback password | a (offline) | if still live: the whole hub, break-glass passwords included | felhom.eu manifests/hub.yaml:74 |
static; live state NOT measured | defect | new (public source is accepted, R-925; this hash is not named there) | High (conditional) | P2 (P1 if live) | holds | R-1410 |
| S2-11 | C2/C1 | The hub can give a CLAIMED box a new reset code, choose the box's catalog address and tunnel, and place files in the dashboard's origin — all unsigned | f (live hub; not a read-only copy) | every household's dashboard and app plane, no household act, no notice the hub cannot hold back | ctl internal/report/claim_sync.go:40-52, internal/bootstrap/bootstrap.go:184-223, internal/assets/syncer.go:273 |
static | design (the reset by mail is chosen; its cost under a taken-over hub is written nowhere) | new | High | P2 | holds | R-1422 (decision D90) |
| S2-12 | C2 | No limit on wrong operator sign-ins (form or Basic) | a (from HU/IE) | unlimited online guessing; cheap slow-down of the hub | hub internal/web/server.go:916, :942 |
static | defect | new | Medium | P2 | holds | R-1410 |
| S2-13 | C2 | An operator session cannot be ended; a password change keeps it 7 days | holder of a stolen cookie | a rotation does not lock the thief out | hub internal/web/server.go:1291 |
static | design by comment only | new | Medium | P2 | holds | R-1410 |
| S2-14 | C5 | networks is not judged at either level |
g | an app joins the file manager's private route or the tunnel network (host network by this route: refused by Docker, measured) | ctl internal/privpolicy/privpolicy.go:331 |
static + measured | defect | new | Medium | P2 | holds | R-1420 |
| S2-15 | C5 | Traefik labels are not judged; the provider has no constraint | g | a catalog app answers for the dashboard's or another app's name | ctl internal/infra/templates/traefik.yml.tmpl:32-37 |
static | design gap | new | Medium | P2 | self | R-1420 |
| S2-16 | C4 | An unsigned job with a harmless op name crashes the agent; the job stays queued | f; holder of the hub's global key | agent down until someone removes the job at the box: no backups, no supervisor, no signed fix | agt internal/signedjobs/runner.go:210-211 |
static | defect (older than October) | new | Medium | P3 | self | R-1423 |
| S2-17 | C2/C1 | The hub mails box-written text to a box-chosen address; /notify has no list or limit; /mail and the box's relay check only the sender's domain |
e, d | mail that truly comes from Felhom's address to anyone; quota and reputation | hub internal/api/handler.go:2759, internal/api/mail.go:124-134; ctl internal/mailrelay/policy.go:40-76 |
static | defect (address by the box: design, D84) | new | Medium | P3 | self | R-1424 |
| S2-18 | C2 | Re-enroll, while armed, needs no proof and can repeat; a second appliance register replaces the token and clears a bind; a host key can replace its sealed recovery package in place | a (armed window); b; host key holder | a caller becomes the host; a first-boot hand-over goes to the wrong caller; the recovery code opens nothing | hub internal/api/dr.go:116-134, internal/store/appliance.go:74-100, internal/store/store.go:3592-3603 |
static | defect (the open doors: design, 13 §4) |
new (the hub half of October SR-11) | Medium | P3 | self | R-1425 |
| S2-19 | C2 | No rate or size limit on any box route; limits by address rest on an ingress setting not in git; the geo rule lets any 10. source in |
e; a; j | one box fills or stalls the hub; address limits may be void | hub internal/api/handler.go:458; felhom.eu manifests/hub.yaml:349 |
static; ingress: cannot tell | defect | new | Medium | P3 | self | R-1426 |
| S2-20 | C2/C5 | One ring-0 box alone decides a package in the automatic fleet release | taken-over demo box | box → hub → every ring-1 box's package list (name and version shape re-checked on the box) | hub internal/osupdates/service.go:370 |
static | design (11 §) — to weigh |
new | Medium | P3 | self | R-1426 |
| S2-21 | C1 | A share's folder path is written raw into the Samba config; „add storage path" accepts the stacks folder | household session; d by a folder name | extra Samba settings; app definitions editable from the LAN | ctl internal/infra/samba.go:116, internal/web/handlers.go:3609 |
static | defect | new | Medium | P3 | self | R-1427 |
| S2-22 | C1 | A stranger can keep the claim/reset page shut for everyone, and make the hub mail the household and replace a pending code | a | no claim, no reset, while it lasts | ctl internal/web/claim.go:193-200, :447-481 |
static | design in part (R-983) | new | Medium | P3 | self | R-1427 |
| S2-23 | C3/C7 | Root helpers trust paths under the agent's own folder (bootstrap chown and bind, self-update marker); mkfs wrapper takes any block node | a taken-over agent process | root, or another guest's volume (BYO) | agt configs/felhom-agent.sudoers:47-48, configs/felhom-selfupdate-guarded:123-137, configs/felhom-mkfs-guarded.sh:69-80 |
static | defect | mkfs: known (R-984); the rest new, same class as R-974 | Medium | P3 | self | R-1428 |
| S2-24 | C3 | The format route's „confirmation" is sent by the controller itself | e | wipe of any plugged, unmounted, non-system disk (BYO: the owner's own) | agt internal/localapi/disks.go:926 |
static | design (16) against 03 §4 |
new | Medium | P3 | self | R-1428 |
| S2-25 | C5 | One CI runner serves all four repos in host mode with a shared file system; a nightly job holds a write token for main |
whoever can push to one repo | one repo's push right becomes all four's | homelab-manifests gitea-system/act-runner.yaml:131 |
static | design + gap | new | Medium | P3 | self | R-1429 |
| S2-26 | C2 | Hub lows: no security headers; a box-written link on the customer page; bind counter race and unswept limiter; reveal without a timeline row for an unbound host; token can read app log tails; id oracles; two fail-open reads; route tests pin the switch, not the handlers | a, e, operator | small each | list in the private index | static + headers measured | defect | new; R-955 and R-1054 noted | Low | P4 | self | R-1430 |
| S2-27 | C1 | Controller lows: claim try counted after the compare; sign-in limit per address only; current-password check unlimited; cookie can be shadowed from an app subdomain; notice text from the address bar; debug log prints field values; unbounded bundle unpack; userdata skeleton follows a link; no test pins the no-session route list; stale compose file publishes port 8080; initial_creds reads any container; sync follows a git link |
a, d, g | small each | list in the private index | static | defect | new | Low | P4 | self | R-1431 |
| S2-28 | C4/C7 | Agent lows: wrapper nonce file fails open; no „not older" rule for a signed update; pbs_dr grant before the type check; poke bound to an address, not the interface; hub TLS by public roots only; restart races; pct verbs take any vmid; local mount options; snapshot count; power-off key; plan file race; pairing code file left world-readable |
f, taken-over agent | small each | list in the private index | static + measured | defect / design | new; R-984 noted | Low | P4 | self | R-1432 |
| S2-29 | C5 | Controller image by tag (R-979) and installer by movable tag (R-980): both still open as written | g | — | — | static | — | known (October SR-12, SR-13) | High (as rows) | P3 | self | R-979, R-980 (notes) |
The Critical and the Highs — one paragraph each
S2-01 (Critical). Missing: the agent does not tie the filesystem it mounts to a disk the product may use, does not
require an enrolled drive for the attach, and its root steps follow a link. Harm: a taken-over controller reaches root
on the host, which 13 §5 says cannot happen. Fix: accept only an offered disk; require a registered user-data drive;
one root helper with no-follow opens; nosuid,nodev. Test: with the namespace folder a link to a sentinel directory,
the attach refuses and the sentinel's owner is unchanged; an assign with a mounted system volume's id is refused.
S2-02 (High, known as part of R-984). Missing: a rule that the new target is a raw drive mount the guest cannot write, and a fixed storage id. Harm: the primary whole-guest backup silently moves where guest root can delete or replace it. Fix in the root wrapper; consider a signature for moving the target. Test: the wrapper refuses a guest-facing bind, a tmpfs and a network mount.
S2-03 / S2-04 (High). Missing: the allow-list call, a file-name list, an infrastructure-name refusal, and a data-path rule on the import path. Harm: one import click runs what the box refuses from the catalog and writes outside the app. Fix and test: in the R-1407 row.
S2-05 (High). Missing: escaping where page scripts insert job errors, and a script policy. Harm: a hacked app crosses from one container to the whole dashboard when the household exports or imports it. Test: markup in a step error renders as text; a template gate fails on an unescaped insert.
S2-06 (High). Missing: a rule on setting names, and an explicit file and project on every compose call. Harm: the allow-list (R-971's fix) is passed by a catalog commit alone. Test: a reserved name is dropped at load; the argument list carries the file.
S2-07 / S2-08 (High). Missing: a YAML encoder and a character rule for the override, the override in the judged
set, and name as a refused key. Harm: as S2-06, by two more routes. Test: an override built from a value with a line
break parses to exactly one volumes key; a compose with name is refused.
S2-09 (High). Missing: a check at start time, and a catalog rule against a bind inside another read-write bind. Harm: a hacked download app reaches guest folders after its own restart. Test: the catalog gate refuses the nested pair; a start path refuses a source that now resolves outside the app's roots.
S2-10 (High, conditional). Missing: the start hash is a secret-derived value in a public file. Harm: offline guessing of the one password that opens the hub — only while that password is live. Fix: Secret, new password, gate. Test: the manifest gate refuses a non-empty hash.
S2-11 (High, a decision). Not a missing check but an unstated cost: three unsigned controller-side channels let a
taken-over hub take dashboards and choose the app source. The signed-job guarantee of 01 §4 holds where it is
written (the agent). Options are in STATUS.md D90.