Skip to content

Security: TheTechBasket/SnapFromWeb

SECURITY.md

Security Policy

Reporting a vulnerability

Please do not open a public issue for security problems. Use GitHub's private vulnerability reporting ("Security" tab → "Report a vulnerability") on this repository, or contact the maintainers directly.

Include:

  • what you can do that you should not be able to
  • the affected endpoint/file and a minimal reproduction
  • the impact you believe it has

You will get an acknowledgement as soon as possible, and credit in the fix if you want it.

Scope

Things that are especially interesting here, because this service fetches arbitrary URLs with a browser:

  • SSRF bypasses: reaching loopback, private ranges, link-local/metadata endpoints, or non-http(s) schemes.
  • Reading local files or internal services through the capture path.
  • Escaping the rate limiter / URL caps to exhaust CPU, memory or disk.
  • XSS or HTML injection through URLs or error messages rendered in the UI.
  • Path traversal through /i/....

Deployment expectations

  • The service is unauthenticated by design. Expose it behind authentication or a network boundary you control.
  • Private-address blocking runs on every request the page makes (redirects, iframes, subresources, WebSockets). It resolves DNS during validation, while Chromium resolves again when navigating. If you need a hard guarantee, add an egress firewall or HTTP proxy that only permits public addresses.
  • TRUST_PROXY_HEADERS=true makes the rate limiter believe x-forwarded-for/x-real-ip. Only enable it behind a proxy that overwrites those headers.
  • ALLOW_PRIVATE_HOSTS=true disables the SSRF guard's private-network checks. Use it for local development only.

There aren't any published security advisories