You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/api/recipe_image/{*path} accepts any file, not just .cook/.menu recipes #697
Discovery audit finding H4 (high) — cooklang/cookcli @ 7c2f48b (v0.38.1), audited 2026-10-12. Repro verified live. Security-relevant: arbitrary file read (and write/delete) of non-recipe files under the recipe directory. Same bug class as #658, on an endpoint that was missed.
Summary
GET/PUT/DELETE /api/recipe_image/{*path} accepts any file, not just .cook/.menu recipes.
Where
src/server/handlers/recipe_image.rs:351-359 — find_recipe uses check_path but never is_recipe_request (the .cook/.menu extension allowlist that handlers/recipes.rs has).
Activity