AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
{"type":"result","subtype":"success","is_error":false,"api_error_status":null,"duration_ms":2976772,"duration_api_ms":6904880,"ttft_ms":4180,"ttft_stream_ms":4177,"time_to_request_ms":390,"num_turns":56,"result":"Both test nodes are stopped (the remaining PID is this session's own process). Deliverables are written.\n\n## Summary\n\n**10 findings**, ranked by attacker reach. Both `/root/ab-run-p1/out/findings.json` and `/root/ab-run-p1/out/method.md` are in place and schema-validated.\n\n**Verified dynamically (booted the prebuilt release binary):**\n\n- **F1 — critical.** `SetPlugin::process` at `xerj-wasm/src/builtins.rs:870` does `doc[&self.field] = …`, which panics on a non-object document. The body is never required to be an object on the way in (`index_doc_auto`, `index_doc`, native `IngestRequest`, and the `_bulk` `create` action all lack the object gate). With `[profile.release] panic = \"abort\"`, one unauthenticated request in the default `--insecure` posture tore down the runtime — the port refused connections and never came back. This is the headline finding.\n- **F2 — high.** `term_matches_regex` at `aggs.rs:4751` recompiles a fresh `Regex` per candidate term with no cache, length cap, or deadline. Measured 17.9 s at a 7 KB pattern and 58.5 s at 21 KB, scaling to days at the 100 MB body limit, ×64 concurrent.\n\n**Verified statically with the exact call paths traced (and reproduced by subagent in scratch crates):** unvalidated segment offsets outside the CRC coverage (boot abort), the unauthenticated `.ids` sidecar (silent document/delete suppression), the `corpus add` slug traversal (arbitrary write + `remove_dir_all`), git `ext::` transport command execution, the symlink-following harvest walk, exponential `_simulate` expansion, the `/v1/admin/backup` brain-snapshot authz gap, and unbounded LZ4 output sizing on replay.\n\n**Two caveats I want to be explicit about rather than bury:**\n- **F9** (`/v1/admin/backup`) — I confirmed the authz classification and the unfiltered copy loop in source, but did *not* trace a full read-back chain (restore-with-rename). The impact as stated is disk duplication and reserved-namespace bytes copied by a low-privilege key; a data *exfiltration* chain would need the restore-rename path verified. Marked medium/medium.\n- **F8** (`_simulate` exponential) is source-confirmed but not measured end-to-end; the 2ⁿ arithmetic is straightforward but I did not build the 35-pipeline chain.\n\nThe console/guest static surface came back genuinely clean — embedded assets only, no runtime filesystem reads, safe DOM construction throughout, with a live control test proving the XSS payload would have fired through `innerHTML`. I found only minor `Cache-Control`/`nosniff` gaps there and chose not to spend a finding slot on them.","stop_reason":"end_turn","session_id":"d255dee7-eebb-4a74-9396-37e0561d0d09","total_cost_usd":31.82289000000002,"usage":{"input_tokens":138312,"cache_creation_input_tokens":0,"cache_read_input_tokens":4597888,"output_tokens":25240,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{"glm-5.3":{"inputTokens":607365,"outputTokens":124681,"cacheReadInputTokens":20914752,"cacheCreationInputTokens":0,"webSearchRequests":0,"costUSD":16.611226,"contextWindow":200000,"maxOutputTokens":32000},"glm-5.3-flash":{"inputTokens":839913,"outputTokens":156443,"cacheReadInputTokens":14202048,"cacheCreationInputTokens":0,"webSearchRequests":0,"costUSD":15.211663999999992,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"completed","fast_mode_state":"off","uuid":"c6a29f5e-684f-492b-8d7e-2d80522a0531"}