Outbound fetches, proxied files and the extension updater are hardened after the December audit. A hostname that flips to an internal IP is refused at connect time, a proxied file cannot run script on the OpenCloud origin, and a link from a feed only opens when it is a web link.
What changed
- netguard: a dialer Control hook validates the IP actually dialed, closing the DNS rebinding window, and blocks CGNAT, 0/8, 192.0.0/24, 198.18/15, 240/4 and the IPv4-in-IPv6 translation prefixes. The safe transport gets a response header timeout.
- imgproxy: nosniff, a sandboxing CSP and CORP same-origin on every proxied body. SVG is served as an attachment, the cache stores the type of the body actually received, stale non-image entries are ignored, and entries older than 30 days are pruned.
- news: item, enclosure, thumbnail and website links are resolved against the site and kept only when they are http(s). The share page re-checks stored rows and carries a no-script CSP, nosniff and no-referrer.
- auth: the Graph and shadow credential caches are capped at 10000 entries, and a shadow user is never relinked to another oc_id.
- news: feed ownership checks fail closed on any database error.
- notes and photos: attachments and originals carry nosniff and a sandboxing CSP, non-media files are downloads, the OCS user XML escapes the display name, the original filename follows RFC 6266 and the static token is compared in constant time.
- websub: deliveries without a subscription secret are refused with 403.
- deploy: extension downloads are checked against the asset digest reported by the GitHub API, install.sh takes the root helper from the release tag and refreshes it on every install, and downloads are https-only.
Upgrade
curl -fsSL https://raw.githubusercontent.com/gnacho/ocapps/v0.1.17/install.sh | sh -s -- --url <opencloud-url>