Repository navigation
Conversation
… the audited host and its www/apex counterpart for the TLS check #1317 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1353: I found no blocking issues. The by-name path is limited to the audited host and its www/apex counterpart. IP literals, metadata names and anything
🤖 Generated with Claude Code |
…passes #1317 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1353 (opt-in
No security problems found beyond the SSRF trade-off, which is documented and defaults to off. |
… audited port only; docs say the crawl probe never requests by name #1317 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff and the surrounding code in The design holds up. The by-name path is gated on all of these:
It fails closed when
No blocking issues. |
|
Landed in v0.0.145 as nik |
Closes #1317
[crawler] tls_proxy_resolves_names(default off): behindHTTPS_PROXY/HTTP_PROXY,security/tls-certificatecan ask the PROXY to resolve the audited host and its www/apex counterpart. The CONNECT is thenhost:443by name, with no local resolution, the name stays the SNI and verification name, and everything else is unchanged:www./apex counterpart take this path (isAuditedHostOrCounterpart); a name from page content or any other subdomain is still resolved, vetted and pinned here and CONNECTed by address;refusedWithoutLookuprefuses are never CONNECTed by name (they take the normal vetted path and are refused before a byte is sent, in both modes);PROXY_*; proxy credentials never reach a result.Setting:
[crawler] tls_proxy_resolves_names(config key, no CLI flag), plumbed to everycreateTlsProbecall (audit, analyze, crawl). Optional in the zod schema so hand-built configs and cloud runs are unchanged. Docs state the SSRF trade-off (where those names resolve is the proxy's decision):docs/configuration/crawler.mdxand the new "When the proxy owns DNS" section ofdocs/rules/security/tls-certificate.mdx.Tests (
apps/cli/tests/audit/tls-probe.test.ts, real CONNECT proxy fixture): off by default (address CONNECT, local lookup); on: audited host by name with no lookup; www and apex both directions; page-derived host vetted + CONNECT by address, sibling subdomain with a metadata answer refused; IP literal and metadata name refused in both modes with nothing sent; refusing/hanging/garbage proxy not checked and the proxy password absent from the result; a real certificate through the by-name tunnel is verified against the name. 64 pass. Gates: tsgo (cli, config), cli format:check + lint, docs validate, config tests.Docs + CHANGELOG under Unreleased. Skill (
squirrelscan/skills): none (a config key for an uncommon proxy setup).