Skip to content

fix(engine): prevent core tool request redirects - #664

Merged
thedancingdeveloper merged 1 commit into
mainfrom
fix/core-tools-redirects
Sep 10, 2026
Merged

thedancingdeveloper merged 1 commit into
mainfrom
fix/core-tools-redirects

Conversation

@thedancingdeveloper

@thedancingdeveloper thedancingdeveloper commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What

Harden the assistant's Vogt core MCP client against SSRF-style destination changes by validating the configured core URL and disabling HTTP redirects.

Why

The CodeQL rust/request-forgery finding identified that a core response could redirect requests to an unintended destination. Invalid or credential-bearing core URLs are now rejected, and redirect responses remain failures.

Part of #662 — fixes the rust/request-forgery finding only; the remaining code-scanning/secret-scanning backlog stays open on #662.

Verification

  • Engine: cargo fmt --all --manifest-path engine/Cargo.toml -- --check
  • Engine: cargo clippy --manifest-path engine/Cargo.toml --workspace --all-targets -- -D warnings
  • Engine: cargo test --manifest-path engine/Cargo.toml --workspace
  • Docs: uv run python scripts/check_docs.py

The first engine test run required the PWA bundle; after pnpm install --frozen-lockfile && pnpm build, the complete workspace suite passed.

Docs

  • docs/ENGINE.md updated

@thedancingdeveloper
thedancingdeveloper merged commit a12348a into main Sep 10, 2026
15 checks passed
@thedancingdeveloper
thedancingdeveloper deleted the fix/core-tools-redirects branch September 10, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant