Skip to main content

Security Assessment

This is a technical risk assessment of Questarr’s most likely and impactful potential security problems. It is distinct from two other documents that cover adjacent ground and are linked rather than duplicated here:
  • docs/SECURITY.md — vulnerability reporting process, deployment hardening checklist, and the collaborator access/ escalation policy.
  • docs/SECRETS.md — a full inventory of every secret/ credential in the system, how each is stored, and how it’s rotated.
  • docs/VEX.md — exploitability assessments for known vulnerabilities (CVE/GHSA) reported against third-party components Questarr ships. This document covers first-party design risk; VEX covers third-party component vulnerabilities.
Read those first for the complete credential, access-control, and component-vulnerability picture; this document analyzes risk, not inventory. Update policy: revisit this register whenever a PR touches authentication, SSRF protections, credential storage, rate limiting, or adds a new external integration/actor (see docs/ARCHITECTURE.md for the actor list).

Methodology

Each row below is a specific, source-verified risk area rated by likelihood and impact given Questarr’s threat model — a self-hosted, typically single-or-few-user application, often run behind a home network or reverse proxy rather than exposed as a multi-tenant public service. Full STRIDE-style modeling was judged to be more process than a small project can keep current; this lighter table format matches the pragmatic tone of the rest of docs/.

Risk register

Steam owned-library import

The new manual import reuses Steam and IGDB as existing external actors. Steam names and IDs are untrusted and schema-validated, with bounded array/name sizes; React renders names as text. The server controls the HTTPS endpoint, sends it through safeFetch, bounds requests with a timeout, and never logs the URL or provider error (the query string contains STEAM_API_KEY). Browser requests cannot choose a Steam ID, API key, upstream URL, title or IGDB mapping. Ownership is rechecked before writes; bulk selections are capped at 20,000, each worker batch at 50, and per-account imports are serialized. Authentication, CSRF protection, account content filters, exact ID matching, and duplicate checks remain in force. Preview is read-only and responses prohibit caching. The action neither starts downloads nor touches files; existing entries retain their states and progress. API errors are generic and never echo credentials. Normal automation can apply to imported Owned games later, as documented in STEAM_LIBRARY.md. Background jobs persist only their latest account-scoped selection/results/Steam identity in the existing database, with no API key. Status is read-only and omits the saved Steam identity/pending selection; retry uses only the authenticated account’s saved IDs and rechecks ownership. Workers checkpoint bounded batches and safely deduplicate a replay after restart. The browser renders only 50 preview rows and polls active progress every two seconds; recent result payloads are capped at ten rows.

Out of scope / already covered elsewhere

  • Full credential inventory, rotation procedures, and per-secret storage detail: docs/SECRETS.md.
  • Vulnerability disclosure process and repository/infrastructure access escalation policy: docs/SECURITY.md.
  • Exploitability assessments for known vulnerabilities in third-party dependencies and the container base image (satisfies OSPS-VM-04.02): docs/VEX.md and the feed itself at security/vex/questarr.openvex.json.
  • System actors and data-flow diagrams referenced throughout this register: docs/ARCHITECTURE.md.
  • Formal attack-surface analysis (trust boundaries, high-risk data flows, per-integration trust table, unauthenticated-route inventory): docs/THREAT_MODEL.md, which satisfies the related OSPS-SA-03.02 requirement. This document (SECURITY_ASSESSMENT.md) satisfies OSPS-SA-03.01 and takes a risk-register view rather than duplicating that analysis.