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
viewer /api/restore joins raw body.name — files outside the store can be promoted into memory #21
Probe (hermetic store): POST /api/restore with {"name":"../../outside/planted.logfmt"} returned 200, and the planted row appeared as <memDir>/planted.logfmt — loaded by loadAll() and injectable into subsequent sessions.
Impact: any user-readable, logfmt-parseable file anywhere on disk can be promoted into the active store (read + persistent-poisoning primitive; combines with #11 XSS to complete a browser-driven chain). The memory_undo tool path is safe — it basenames first.
Fix direction (P0):basename() + enforce the snapshot-name shape ^<epoch-ms>-<YYYY-MM-DD>.logfmt$ in the route, and verify in restoreSnapshot that the resolved target stays inside the memory root (defense in depth for all callers). Test: ..-bearing and absolute names → 400, nothing written.
Activity
chore(release): 0.3.1 [skip ci]
abogartz-opencode-self-improvement commentedon Oct 21, 2026
🎉 This issue has been resolved in version 0.3.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
fix(viewer): contain /api/restore inside snapshots/ + the store root
Merge pull request abogartz#28 from abogartz/fix/viewer-restore-conta…
chore(release): 0.5.0 [skip ci]
fix(undo): restore only store snapshots and keep deleted rows deleted
chore(release): 0.8.4 [skip ci]