Skip to content

Security: Suz41/FinBowl

Security

SECURITY.md

Security Policy

We prioritize the security, integrity, and privacy of FinBowl. This document outlines our security architecture, supported versions, and responsible disclosure procedures.


Supported Versions

Security fixes and compatibility updates are actively maintained on the following release line:

Version Status Notes
v1.0.x (v1.0.0-beta.1+) Supported Current active FinBowl standalone release line

Reporting a Vulnerability

If you discover a security vulnerability or sensitive flaw in FinBowl, please do not open a public issue. We request that you disclose it responsibly:

How to Report

  1. GitHub Security Advisory (Preferred): Navigate to the Security tab of Suz41/FinBowl and select Report a vulnerability.
  2. Private Email: Alternatively, send a detailed vulnerability report to: sujalacharii@gmail.com

What to Include in Your Report

To help us triage and resolve the issue quickly, please provide:

  • Clear description of the vulnerability and its potential security impact
  • Step-by-step reproduction instructions or a minimal Proof-of-Concept (PoC)
  • Target Android OS version, patch level, device model, and active Low-RAM profile
  • Any proposed remediation or patch if available

Response & Disclosure Process

  • Acknowledgement: We will acknowledge receipt of your vulnerability report within 48 hours.
  • Remediation: We will assess severity, develop a fix on a private branch, and verify it via unit tests and Android hardware testing.
  • Coordinated Disclosure: A patched release will be published alongside release notes crediting the reporter (unless anonymity is requested).

Security Architecture & Invariants

FinBowl is engineered around strict security and isolation invariants for standalone local media hosting:

1. Zero Telemetry & Privacy Preservation

  • 0 Remote Trackers: No analytics SDKs (Google Analytics, Firebase, Mixpanel, etc.).
  • 0 Background Telemetry: The application never phones home to tracking endpoints. Update checks query the public GitHub Releases API (https://api.github.com/repos/Suz41/FinBowl/releases) over HTTPS only when triggered, and password-reset PINs remain strictly on-device.
  • 100% Local Media Hosting: All library indexing, user authentication, SQLite queries, and media streaming stay on-device or on your local network.

2. Sandboxed Process Execution & Attack-Surface Reduction

  • Native .NET processes (dotnet jellyfin.dll), FFmpeg binaries, and SQLite engines execute exclusively within the Android application's dedicated UID sandbox (/data/data/com.finbowl.app/files/usr).
  • No root access is required or requested; FinBowl operates strictly in unprivileged Android user space.
  • Because all companion automation daemons (torrent clients, indexers, Python/Node runtimes, and Servarr services) are removed, FinBowl exposes only a single local service endpoint (Jellyfin Core).

3. Process Containment & Resource Bounds

  • FinBowlSecurityManager: Monitors and safely reclaims orphaned Jellyfin/FFmpeg processes holding port 8096 without issuing indiscriminate signals outside the app sandbox.
  • LowRamConfig Guardrails: Deterministic .NET GC hard heap limits, DOTNET_EnableWriteXorExecute=0, thread-pool bounds, and FFmpeg throttling limit memory pressure and protect against runaway allocations.
  • Update Integrity Verification (UpdateManager): Release downloads enforce HTTPS endpoints, SHA-256 digest verification, package identity checks, and version downgrade protection before prompting Android APK installation.

4. Credential & Cryptographic Protection

  • FinBowlKeystoreCrypto: Sensitive stored credentials use authenticated AES-256-GCM encryption backed by AndroidKeyStore.
  • Sanitized Diagnostics: In-app bug reports and diagnostic exports exclude stored passwords and API credentials before clipboard copy or GitHub issue prefill.

5. SELinux, Storage Boundaries & Atomic Integrity

  • Media directory access strictly respects Android SELinux boundaries and scoped storage/SAF constraints.
  • External storage paths are anchored to verified POSIX mount points or package-scoped storage (/storage/<UUID>/Android/data/com.finbowl.app/files), while non-POSIX virtual cloud DocumentProviders are quarantined to avoid database corruption.
  • Backup/restore (BackupRestoreManager) enforces canonical path containment (preventing zip-slip traversal), SQLite PRAGMA integrity_check verification, WAL/SHM journal cleanup, and atomic rollback snapshots.

6. Local Network & Socket Bounds

  • Jellyfin Kestrel HTTP bindings are restricted to local loopback (127.0.0.1:8096) and the device's local Wi-Fi / Tailscale subnet addresses.
  • network_security_config.xml allows cleartext HTTP solely for local LAN/loopback media playback while trusting system CA anchors for remote HTTPS requests.
  • FinBowl never opens UPnP ports or exposes services to public WAN interfaces automatically.

7. Reproducible Builds & Source Auditing

  • All Gradle build scripts, ProGuard/R8 rules, and dependency manifests are open-source and verifiable with ./gradlew testDebugUnitTest and ./gradlew assembleRelease.

There aren't any published security advisories