Skip to content

Security: sefaelbir/netinfo

Security

SECURITY.md

Security policy

Reporting a vulnerability

Please report security issues privately through GitHub Security Advisories rather than public issues. Include a description, steps to reproduce and the affected version (netinfo --version). You can expect an acknowledgement within a few days.

Supported versions

Security fixes are released for the latest minor version.

Threat model

netinfo treats every target and every remote response as untrusted:

  • Input validation. Targets are validated and normalized (IDNA, label rules, Public Suffix List). Control characters, URL credentials and non-HTTP schemes are rejected.
  • Terminal safety. All remote text (DNS TXT records, WHOIS output, HTTP headers, certificate fields) is sanitized before it is printed. Control characters, ANSI escape sequences and bidirectional overrides are neutralized.
  • Bounded responses. Provider responses are limited to 2 MiB, WHOIS to 256 KiB and HTTP headers to 64 KiB. HTTP bodies are drained up to 1 MiB and never stored. Redirects are capped and restricted to http/https.
  • No access to internal services. TLS and HTTP inspection refuse to connect to loopback, private, link-local, CGNAT and other non-public addresses unless --allow-private is given. The check runs on the resolved socket address, so it also applies to redirects and DNS rebinding. Inspection connections never use proxies.
  • No scanning. netinfo makes one TLS handshake and, only when asked, one HTTP request per redirect hop. It does not probe ports or paths.
  • No secrets. No API keys are embedded and no telemetry is sent. Optional provider tokens are read from configuration or the environment.
  • Local cache. Cached provider responses are stored with owner-only permissions.

There aren't any published security advisories