Back to Home
repkam09 icon

repka-lifeforce

by repkam09

Overview

A modular REST API server providing an AI conversational assistant, server utilities, weather, music playback information, and media management.

Installation

Run Command
docker compose up

Environment Variables

  • TEMPORAL_HOST
  • TEMPORAL_PORT
  • TEMPORAL_NAMESPACE
  • TEMPORAL_TASK_QUEUE
  • BRAVE_SEARCH_API_KEY
  • SUPABASE_API_KEY
  • SUPABASE_SERVICE_KEY
  • SUPABASE_URL
  • TELEGRAM_BOT_KEY
  • LIFEFORCE_ADMIN_UUIDS
  • LIFEFORCE_PORT
  • LIFEFORCE_PUBLIC_URL
  • LIFEFORCE_LOCAL_IPS
  • WEATHER_API_KEY
  • LAST_FM_API_KEY
  • LIFEFORCE_MEDIA_MOUNT
  • LIFEFORCE_MEDIA_PREFIX
  • LIFEFORCE_AUTH_TOKEN
  • TRANSMISION_PORT
  • TRANSMISSION_HOST
  • OPENAI_API_KEY

Security Notes

1. Critical Directory Traversal Vulnerability: The `backend_helper/repcast.php` script, which is actively deployed by the project's helper scripts, directly concatenates user-controlled base64-decoded input (`$urlparam`) into the directory path without sanitization. This allows an attacker to list and potentially read arbitrary files outside the intended `repcast` directory (e.g., `?dir=Lw==` would decode to `/`). 2. Static Authentication Token: The system relies on a single, static `LIFEFORCE_AUTH_TOKEN` for general API authorization. If this token is compromised, an attacker gains full access to all endpoints protected by this mechanism, with no expiry or user-specific revocation capabilities. 3. Potential Command Injection in RepCast Torrent Add: While magnet links are base64-decoded, if the `transmission` library (used for adding torrents) doesn't adequately sanitize or escape shell commands embedded within a malformed magnet link, this could lead to command injection on the server running Transmission. This is a hypothetical risk depending on the `transmission` library's internal robustness. 4. Sensitive Data in Logs: Logging webhook request bodies and query parameters directly (`/api/webhook/log`) could expose sensitive information (e.g., passwords, API keys) if clients send such data to these endpoints. 5. Misconfiguration Risk: Plugins like Home Assistant and Weather rely on API keys/URLs from environment variables. A misconfigured or malicious URL could lead to Server-Side Request Forgery (SSRF) if not properly vetted by an administrator.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2026-01-07

Tags

REST APIAI AssistantServer UtilitiesHome AutomationMedia Management