Skip to content

Security: auteursoft/archivis

Security

SECURITY.md

Security Policy

Supported Versions

Use this section to tell people about which versions of your project are currently being supported with security updates.

Version Supported
5.1.x ✅
5.0.x ❌
4.0.x ✅
< 4.0 ❌

Reporting a Vulnerability

If you discover a security vulnerability in Aveloxis, please report it responsibly.

Do not open a public GitHub issue for security vulnerabilities.

Instead, please use one of the following methods:

  1. GitHub Security Advisories (preferred): Use the Report a vulnerability feature to create a private security advisory.

  2. Email: Send details to the maintainers at the email addresses listed in the repository's commit history.

Please include:

  • A description of the vulnerability
  • Steps to reproduce the issue
  • The potential impact
  • Any suggested fixes (if you have them)

Response Timeline

  • Acknowledgment: Within 48 hours of receiving the report.
  • Assessment: Within 1 week, we will assess the severity and confirm whether it is a valid vulnerability.
  • Fix: For confirmed vulnerabilities, we aim to release a fix within 2 weeks for critical/high severity, and within 4 weeks for medium/low severity.
  • Disclosure: We will coordinate disclosure timing with the reporter. We follow a 90-day disclosure policy.

Security Measures in Aveloxis

Authentication and Sessions

  • OAuth-only authentication: The web GUI uses GitHub and GitLab OAuth for login. No local passwords are stored.
  • Session cookies: All cookies set HttpOnly: true (prevents JavaScript access) and Secure: true (prevents transmission over HTTP) by default. The Secure flag can be disabled via "dev_mode": true in the config for local HTTP development. HttpOnly is always enabled regardless.
  • SameSite: Cookies use the SameSite=Lax attribute to mitigate CSRF attacks.

API Keys

  • API tokens are stored in the PostgreSQL database (aveloxis_ops.worker_oauth), not in plaintext config files (though config-file keys are supported as a fallback).
  • Tokens are never logged. Only the first 8 characters are shown in warning messages (e.g., key invalidation).
  • The key pool rotates through all keys via round-robin and handles rate limiting automatically.

Input Validation

  • Git URLs: All repository URLs are validated before being passed to git clone. URLs starting with - (flag injection), containing control characters, or using non-network schemes (file://) are rejected. The -- sentinel is always passed before the URL argument to git.
  • Text sanitization: All text ingested from APIs is sanitized before database insertion: null bytes, invalid UTF-8, and control characters are removed.
  • SQL injection: All database queries use parameterized statements via pgx. No string interpolation is used in SQL.
  • URL validation: The web GUI validates all user-submitted URLs before adding repos to the queue.
  • HTML escaping: The monitor dashboard HTML-escapes all user-controlled values (repo owner/name, error messages, worker hostnames) via template.HTMLEscapeString to prevent stored XSS.
  • Symlink protection: The dependency and libyear analysis walkers reject symlinks (os.ModeSymlink) to prevent a malicious repository from reading host files via symlinked manifest names.
  • npm argument injection: The npm registry resolver rejects package names starting with - and uses -- as an argument separator to prevent flag injection from malicious package.json keys.

Network Security

  • CORS: The REST API restricts Access-Control-Allow-Origin to localhost origins. Deploy behind a reverse proxy if cross-origin access from non-localhost origins is needed.
  • SSRF (Server-Side Request Forgery): Aveloxis accepts arbitrary repository URLs by design (including generic git hosts). The collector issues HEAD requests and git clone to user-supplied URLs. To mitigate SSRF risk, deploy the collector in a network segment without access to cloud metadata endpoints (e.g., 169.254.169.254) or other sensitive internal services. If your deployment requires host restrictions, configure network-level firewall rules on the collector host.
  • Session safety: The web GUI's in-memory session map is protected by a sync.RWMutex to prevent concurrent-access crashes.

Database

  • All INSERT statements use ON CONFLICT clauses for idempotency (verified by an automated source-code scanning test).
  • PostgreSQL connection pooling with configurable limits.
  • The sslmode connection parameter supports require, verify-ca, and verify-full for encrypted database connections.

Security Scanning

This repository uses GitHub CodeQL for automated security analysis on every push. Results are visible at Security > Code scanning.

There aren't any published security advisories