Commit Graph
1075 Commits
Author SHA1 Message Date
BaaRai da00bf7c8a fix(intercept): close shell-option, env -S, xargs -l and find -exec argv bypasses 2026-11-19 17:57:59 +01:00
BaaRai 8f0b73f514 fix(intercept): match argv deny and ask rules across compound and wrapped Bash commands 2026-11-19 17:15:53 +01:00
BaaRai 8e6acb0638 Merge pull request #371 from mathkartel/docs/openai-compatible-gateways
docs: recipe for OpenAI-compatible gateways
2026-11-19 16:31:32 +01:00
BaaRai 35fbda765a Merge pull request #372 from BaaRai/fix/workspace-symlink-confinement
fix(server): confine workspace and skill paths against symlink escapes
2026-11-19 16:28:24 +01:00
BaaRai 39990fe7e4 docs(changelog): note the workspace and skill symlink confinement 2026-11-19 16:10:12 +01:00
BaaRai b1ccac4c9a fix(server): confine workspace and skill file paths against symlink escapes (#367) 2026-11-19 16:10:02 +01:00
BaaRai 90ca982c5e Merge pull request #370 from BaaRai/fix/target-gate-proxy-name-only
fix(intercept): make target pins name-only behind any proxy
2026-11-19 16:04:16 +01:00
mathkartel 95dd5e9711 docs: recipe for OpenAI-compatible gateways (NotHoly example) 2026-11-19 11:58:37 -03:00
BaaRai 9f892e4e95 fix(intercept): make target pins name-only behind any proxy
The gate treated a call as direct whenever only the recording proxy or a
custom tool's own proxy was in the path, so it stored IP pins the proxy
did not enforce. ProxyAddr now covers the recording and global proxies,
a per-tool check covers a custom http tool's own proxy, and the gate
marks the pin name-only for any of them.

Closes #368.
2026-11-19 15:47:36 +01:00
BaaRai e5fe5b2878 Merge pull request #346 from mervedalgin/i18n-turkish
web: add UI translation layer and Turkish locale
2026-11-19 15:43:22 +01:00
BaaRai d577d7e3b2 fix(web): guard t() against prototype keys and check the dictionary in CI
t() looked a key up with dict[key] ?? key, so t("constructor") returned
Object and t("toString", {}) threw. Backend values are used as keys, so
this was reachable. Use an own-property check for the dictionary and the
vars, and commit the key-check script as npm run test:i18n in the web
job so tr.json cannot drift.
2026-11-19 15:40:49 +01:00
BaaRai 5ada6ecd86 Merge pull request #369 from BaaRai/docs/provider-policy
docs(contributing): keep provider support generic
2026-11-19 15:31:08 +01:00
BaaRai 08544a652e docs(contributing): keep provider support generic
A vendor-specific provider format, logo or promotional code is not what
we want for a base URL that the generic OpenAI profile already reaches.
State the rule before the next request.
2026-11-19 15:30:51 +01:00
BaaRai c2ddd1c6ba Merge pull request #363 from chetanvhsk-wq/chetanvhsk-wq-postgres-readiness-probe
feat(server): add PostgreSQL-backed readiness probe
2026-11-19 14:28:40 +01:00
BaaRai a88bc26144 Merge pull request #349 from anqorithm/abdallah/console-browser-protections
feat(server): add browser protections for the operator console
2026-11-19 14:28:25 +01:00
BaaRai ce8c90c2dd Merge pull request #348 from anqorithm/abdallah/private-reporting-link
docs(security): link the private vulnerability report form
2026-11-19 14:28:10 +01:00
BaaRai b8ec69d6ab Merge pull request #357 from Coff0xc/fix/mcp-rpc-limit
fix(mcphttp): cap JSON-RPC response bodies
2026-11-19 14:27:43 +01:00
Coff0xc 9b1fe50d66 fix(mcphttp): cap JSON-RPC response bodies
Streamable HTTP decoded the whole response with no byte limit, so a
remote MCP server could force an unbounded allocation.
2026-11-19 14:27:20 +01:00
BaaRai fbcbe3ac04 Merge pull request #356 from Coff0xc/fix/llm-capture-cap
fix(llmrec): cap captured provider response bodies
2026-11-19 14:27:09 +01:00
Coff0xc 53f764babf fix(llmrec): cap captured provider response bodies
TeeResponse mirrored every byte of every attempt into memory with
no limit, so a large or retrying stream could exhaust RAM.
2026-11-19 14:26:30 +01:00
BaaRai ae068f29cf Merge pull request #355 from Coff0xc/fix/audit-final
fix(guard): record allow only after intercept decides
2026-11-19 14:25:56 +01:00
Coff0xc eddc4ba339 fix(guard): record allow only after intercept decides
preToolUse wrote an allow audit row before applyIntercept, so a
denied or gated call still showed as allowed in the audit ring.
2026-11-19 14:25:42 +01:00
BaaRai b3c9375101 Merge pull request #354 from Coff0xc/fix/dsn-redact
fix(config): mask keyword-value and query DSN passwords
2026-11-19 14:25:37 +01:00
Coff0xc 7d28638980 fix(config): mask keyword-value and query DSN passwords
Redact only rewrote URL userinfo, so libpq keyword DSNs and
?password= query values reached ping-failure logs in full.
2026-11-19 14:25:24 +01:00
BaaRai 8f92caa042 Merge pull request #353 from Coff0xc/fix/dsl-nesting-limit
fix(db): bound asset DSL length and parenthesis depth
2026-11-19 14:25:18 +01:00
Coff0xc 16b04cfb48 fix(db): bound asset DSL length and parenthesis depth
ParseDSL recursed on every '(' with no depth or size cap, so a
query of nested parentheses could grow the goroutine stack until
the process died. Cap input at 4 KiB and nesting at 32.
2026-11-19 14:25:04 +01:00
BaaRai 432c882bca Merge pull request #352 from Coff0xc/fix/conv-messages-limit
fix(server): cap conversation message page size
2026-11-19 14:24:31 +01:00
Coff0xc bf6feefbdf fix(server): cap conversation message page size
GET /api/conversations/{id}/messages passed limit through to the
database with no upper bound, so a huge query could load the whole
transcript. Clamp history pages to 200 and keep the since tail at 1000.
2026-11-19 14:24:11 +01:00
BaaRai cdc39ed776 Merge pull request #351 from Coff0xc/fix/retry-after-overflow
fix(egress): reject overflowing Retry-After values
2026-11-19 14:23:56 +01:00
Coff0xc 7bbb0267e4 fix(egress): reject overflowing Retry-After values
strconv.Atoi accepted a huge Retry-After, then time.Duration(n)*Second
wrapped so the delay looked smaller than MaxDelay and the governor
retried immediately. Parse as int64 and refuse anything above MaxDelay.
2026-11-19 14:23:32 +01:00
BaaRai 05d320878b Merge pull request #285 from renaesop/codex/s3-task-archives
feat: add encrypted S3 archive storage backend
2026-11-19 14:23:12 +01:00
chetan-venugopalaandCopilot App 2aa89ab786 feat(server): add PostgreSQL readiness probe
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-19 17:26:47 +05:30
Chubboy Ren fa84c00202 Merge remote-tracking branch 'upstream/main' into codex/s3-task-archives 2026-11-19 03:33:51 +00:00
Chubboy Ren 3755e95504 fix: enforce archive encryption and clean failed S3 uploads 2026-11-19 03:33:51 +00:00
BaaRai 65045efae6 Merge pull request #335 from Coff0xc/fix/createdb-ident
fix(db): reject unsafe CREATE DATABASE identifiers
2026-11-18 22:43:54 +01:00
BaaRai 8110735aa7 fix(db): quote CREATE DATABASE name with pgx.Identifier
The allowlist rejected names PostgreSQL accepts, so an existing install
whose database name had a hyphen, a dot or non-ASCII characters refused
to start. pgx.Identifier escapes any name, which closes the injection
without refusing a name that already exists.
2026-11-18 22:43:30 +01:00
Coff0xc 437c0ff03e fix(db): reject unsafe CREATE DATABASE identifiers
ensureDatabase quoted the DSN path into CREATE DATABASE with no
check. A quote in the name could close the identifier. The name is
now restricted to the unquoted-identifier alphabet before quoting.
2026-11-18 22:43:20 +01:00
BaaRai 8f3a9a8413 Merge pull request #331 from Coff0xc/fix/browser-mcp-npx
fix(mcp): launch the browser MCP from playwright-mcp, not npx
2026-11-18 22:43:02 +01:00
BaaRai 5a4af1b4da fix(docker): install MCP chromium through its linked playwright-core
playwright-core's exports map does not expose ./cli.js, so
require.resolve threw inside the command substitution, the outer node
got an empty script path, and the build still succeeded without
installing chromium v1247. Run the binary npm links for @playwright/mcp
instead. Verified with docker build: both v1247 and v1248 are in the
cache, and @playwright/mcp's playwright-core launches 155.0.8059.12.
2026-11-18 22:42:38 +01:00
Coff0xc 3546ea0fff fix(mcp): rewrite npx -y and playwright-mcp rows missing --browser
The stock seed was npx @playwright/mcp, but the UI mock and common
invocations use npx -y, which the first pass left untouched. Also add
--browser chromium to a leftover playwright-mcp --headless row, resolve
the MCP's playwright-core CLI via require.resolve, and cover proxy-arg
stripping so capture sync does not depend on args[0].
2026-11-18 22:42:38 +01:00
Coff0xc f2666dbae2 fix(mcp): launch the browser MCP from playwright-mcp, not npx
npx @playwright/mcp queries the npm registry on every start even with
the package installed globally, so the image's pin did not decide what
ran and offline starts failed. Seed playwright-mcp --headless --browser
chromium, rewrite leftover stock npx rows once, and install the Chromium
build the MCP's own playwright-core expects.

Fixes #329
2026-11-18 22:42:25 +01:00
BaaRai b0e3851451 Merge pull request #344 from Coff0xc/fix/ingest-header-inject
fix(traffic): reject CR/LF in ingested methods and headers
2026-11-18 22:42:06 +01:00
Coff0xc 2352cfa7ed fix(traffic): reject CR/LF in ingested methods and headers
RecordExternal wrote method and header maps into req_head/resp_head
with no token or line-break check. Replay already refused those
values. An ingest JSON string with \r\n became extra evidence lines.

Apply the same validHeaderName and CR/LF/NUL checks before storage.
2026-11-18 22:41:42 +01:00
BaaRai 12211c467d Merge pull request #343 from Coff0xc/fix/change-password-limit
fix(server): rate-limit change-password guesses
2026-11-18 22:41:26 +01:00
Coff0xc 389825a683 fix(server): rate-limit change-password guesses
POST /api/auth/change-password checked the current password with bcrypt
and had no limiter. A stolen session could guess without backoff.

Reuse the login limiter, keyed by client IP and by the session token,
so rotating the source address with the same token still blocks.
A successful change clears both buckets.
2026-11-18 22:41:00 +01:00
BaaRai 83a1d17800 Merge pull request #342 from Coff0xc/fix/chat-session-id
fix(agent): reject unsafe ChatAgent session ids
2026-11-18 22:40:46 +01:00
Coff0xc 2a9743eb9e fix(agent): reject unsafe ChatAgent session ids
Chat joined sessionID into <workDir>/sessions with no allow-list, so
".." or a separator would escape that directory. Production callers
use conv-<id>, but the exported method accepted any string.

Accept only [A-Za-z0-9_-] up to 64 bytes, then confirm the cleaned
path still sits under sessions/.
2026-11-18 22:40:21 +01:00
BaaRai 48d6158ac2 Merge pull request #341 from Coff0xc/fix/asset-http-href
fix(web): only http(s) asset URLs become service hrefs
2026-11-18 22:40:05 +01:00
Coff0xc d1431cfdcd fix(web): only http(s) asset URLs become service hrefs
The Services tab wrote the stored asset URL into href with no scheme
check. A javascript: or data: value stored via insert_assets or the
asset API became a clickable link. Non-http(s) URLs now render as text.
2026-11-18 22:39:38 +01:00
BaaRai 3bbda778e6 Merge pull request #340 from Coff0xc/fix/csv-formula
fix(report): neutralize formula cells in findings CSV export
2026-11-18 22:39:19 +01:00