Repository navigation
Conversation
…ed before any cloud request Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…op credentials and fragment once in parseUserUrl; refuse scheme-without-slashes Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
|
Landed in v0.0.143 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The start URL is validated once, at the top of
squirrel auditand of the MCPaudit_websitetool, before any cloud client, balance read, trace upload or log line. Onlyhttp://orhttps://with a host is accepted. Refused: other schemes, a scheme without slashes (mailto:,javascript:[email protected],tel:,data:), no host, junk.host:port(localhost:3000) still works. The MCP tool answersinvalid_urlwithout echoing the URL; the CLI exits 1.registerRunandplanMcpAuditrepeat the check.parseUserUrlnow drops credentials (user:password@) and the fragment from the URL it returns, so they never reach the crawl, logs, register or any cloud call (asserted across every request body of an MCP run). A note on stderr points to--headerfor basic-auth sites. The query is kept: it is part of the audited URL. Its error no longer echoes the input. Port 0 is refused.parseUserUrlis shared, sosquirrel crawland the private cloud runtime (packages/cloud-audit-runtime) also stop sending Basic auth from URL userinfo after the next gitlink bump. A URL over 2048 characters is audited but not registered (the endpoint 400s it).Tests (failing first): a CLI subprocess test, signed in, telemetry on, API and proxy pointed at a counting server: refused forms make no request except the startup install ping (
POST /v1/installs, sent before the command parses, carries no URL); an MCP counting fake asserting zero /v1/ requests; parseUserUrl unit tests; a source guard that registerRun validates before its first request and is the only poster to /register.Skill change needed: no. Docs updated (cli/audit, cli/mcp).