## Description Three related server routing/parsing issues: ### 1. DELETE /forget matches too broadly (line 272) `path.starts_with("/forget")` means DELETE requests to `/forgetful`, `/forget-me-now` also match. Should use exact match. ### 2. Query param split truncates values with '=' (line 277) `pair.split('=')` splits on every '=', so `tag=foo=bar` loses the middle `=`. Should use `splitn(2, '=')`. ### 3. --host/--port missing value is silent (line 383+) If `--host` is the last arg without a value, the code silently skips it. Should print error and exit. ## Affected Code - `crates/uteke-server/src/main.rs` lines 272, 277, 383+ ## Fix 1. Use `path == "/forget" || path.starts_with("/forget?")` 2. Replace `split('=')` with `splitn(2, '=')` 3. Add bounds check with error message for missing values Found by Cora v0.4.4 scan.
Activity
release: v0.0.11 — audit fixes from Cora scan (#221-#231)
ajianaz commentedon Jun 7, 2026
Fixed in v0.0.11 (PR #234)
release: v0.0.11 — audit fixes from Cora scan (#221-#231)