.forge/issues/ebaa1e1e-c386-49b4-92e2-8118a61f9175/issue.md 1.3 KiB 29 lines Raw

id: ebaa1e1e-c386-49b4-92e2-8118a61f9175 title: Reserved index names can overwrite section indexes (releases/issues/pulls/wiki) state: closed labels:


Problem

Generated index filenames are not reserved. A hostile .forge can overwrite the section index with a detail page:

All four are accepted by the current is_safe_segment/is_safe_id checks. Verified with fixtures; e.g. a release named index makes releases/index.html render <h1>Index release</h1> instead of the release table.

Impact

Hostile or accidental metadata silently destroys a section index, its navigation target, and the API/HTML consistency around it. No script injection, but a denial/correctness bug in the generated site.

Fix

Reserve generated names (index) for releases, issue/PR ids, and wiki pages, or write indexes last and reject collisions loudly. Add one fixture covering all four collisions.

view raw