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":2601133,"duration_api_ms":5579417,"ttft_ms":5966,"ttft_stream_ms":5963,"time_to_request_ms":158,"num_turns":77,"result":"Both deliverables are written: `/root/ab-run-x2/out/findings.json` (8 findings) and `/root/ab-run-x2/out/method.md`.\n\n## What I found\n\n**F1 (high, verified live)** — `authz.rs:586` `cluster_is_read()` returns true for any verb whose first path segment is in `POST_READ_OPS`. That list contains `_ingest`/`_scripts`/`_security` on the theory they'd \"only ever be consulted for POST-shaped verbs\" — false for the `Target::Cluster` arm. A key holding only `privileges:[\"read\"]` on one index (correctly confined for reads and writes on indices) can `PUT`/`DELETE /_ingest/pipeline/{id}`, `PUT /_scripts/{id}`, and `PUT /_security/privilege`. I demonstrated a read-only key destroying another tenant's `pii_redaction` pipeline, after which the tenant's next ingest stored the raw SSN.\n\n**F2 (high, verified live)** — Four unvalidated request parameters reach panicking arithmetic, and `panic = \"abort\"` makes each one total node death: `date_histogram fixed_interval:\"0ms\"` → `div_euclid(0)`; `geotile_grid precision:64` → `clamp(0,-1)`; `geohash_grid precision:2^63-1` → 9.2 EB allocation; `highlight fragment_size:2^63-1` → capacity overflow. I killed a node as a **completely unauthenticated share-link guest** — no admin key anywhere in the request.\n\n**F3 (medium, verified live)** — `segment.rs:675` slices the mmap with unvalidated `u64` offset/length from the section table. I overwrote a `.seg` entry, recomputed the unkeyed CRC32, and the node aborted — proving the checksum is not a barrier for this adversary, and that the result is a persistent poison pill that survives restarts.\n\n**F4–F8** — console session cookie never `Secure` (`request_is_secure` is dead code, both mint sites hardcode `false`); `/v1/metrics` leaks every index name including reserved `.xerj-memory-*` brains to the low-priv scrape token; the `/_share/claim` per-share window is an unauthenticated one-link kill switch held only in memory; `search_templates` is an unbounded unevicted map; xerj-mcp skips its own percent-encoder on seven builders and lets a tool argument traverse the filesystem.\n\nTwo leads I chased and **dropped** rather than reported: a `/_decide` write-back into reserved namespaces and an `api_key` minting path — live tests showed their guards firing, so reporting them would have been wrong.\n\nOne caveat worth flagging on F4: wiring in the existing `request_is_secure` helper is not a safe fix, since it trusts `x-forwarded-proto` from any caller with no trusted-proxies gate.","stop_reason":"end_turn","session_id":"b8dadb22-c1d0-47f2-9ef3-4d5c3777b169","total_cost_usd":23.932009999999988,"usage":{"input_tokens":118232,"cache_creation_input_tokens":0,"cache_read_input_tokens":5067200,"output_tokens":35820,"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":118232,"outputTokens":35820,"cacheReadInputTokens":5067200,"cacheCreationInputTokens":0,"webSearchRequests":0,"costUSD":4.0202599999999995,"contextWindow":200000,"maxOutputTokens":32000},"glm-5.3-flash":{"inputTokens":789726,"outputTokens":154256,"cacheReadInputTokens":24213440,"cacheCreationInputTokens":0,"webSearchRequests":0,"costUSD":19.911749999999998,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"completed","fast_mode_state":"off","uuid":"4d1b5494-7560-4d4e-9200-7e75fd711e7d"}