Skip to content

Security: aandreakis/dblog-impl

Security

SECURITY.md

Security

This repository is an implementation published under the MIT License. It has no feature roadmap or support commitment (see CONTRIBUTING.md), though concrete, reproducible security defects within the documented scope are welcome as private reports.

Reporting a vulnerability

Please report privately via GitHub Security Advisories by opening the repository's Security tab and clicking Report a vulnerability. Include:

  • a minimum reproduction (command, config, repo version, JDK, source database family and version)
  • observed impact and attack prerequisites
  • a suggested fix, if you have one

There is no SLA. Response is best effort, with no guarantee of fix, backport, or coordinated disclosure.

In scope

  • remote code execution
  • credential leakage in logs, errors, or crash artifacts beyond what is already documented
  • SQL injection, path traversal, TLS / certificate-validation gaps
  • denial of service against the DBLog process from crafted input (malformed source events, malformed control-plane requests, etc.)
  • bypasses of documented fail-closed boundaries (watermark invariants, schema drift policy, metadata-row validation, single-owner claim)

Out of scope

The following are documented limits of this implementation, not vulnerabilities:

  • No control-plane authn/authz. The HTTP control plane binds to 127.0.0.1 by default and has no built-in authentication. To limit local browser CSRF and DNS rebinding against loopback, POST /api/v1/requests requires Content-Type: application/json (415), requests carrying a foreign Origin or Sec-Fetch-Site: cross-site are rejected (403), and loopback listeners reject non-loopback Host headers (403). With dblog.control-plane.allow-non-loopback=true (the packaged Docker examples) the Host header must still be a loopback name, an IP literal, or a name listed in dblog.control-plane.allowed-hosts; any other DNS name is rejected (403), so DNS rebinding cannot reach a published port. Exposing the control plane beyond loopback is the operator's responsibility. See docs/OPERATION.md § 5.1.1 and docs/CONTROL_PLANE.md § 2.
  • Plaintext credentials in configuration. Source and target database passwords in application.properties are plain strings. They will appear in heap and thread dumps. See docs/OPERATION.md § 9.1.2.
  • Disposable demo fixture credentials. The Docker fixtures under ops/docker/ use dblog/dblog, postgres/postgres, and the MySQL root/root account (MYSQL_ROOT_PASSWORD in ops/docker/compose.yml) and bind to 127.0.0.1 only. Do not run them in environments where those ports are reachable from an untrusted network.
  • Educational tap blocking the pump. When dblog.tap.enabled=true, a slow subscriber stalls the DBLog pump via TCP backpressure. That is expected behavior, not a denial-of-service bug. See docs/CONTROL_PLANE.md § 5.4.
  • Single-host, no HA, no fencing. See docs/OPERATION.md § 2.5.
  • Third-party patent questions. Not a security concern for this repository. See PATENTS.md.

A report that restates one of the items above without a novel attack is not a vulnerability and will be closed.

There aren't any published security advisories