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
Dashboard: GET /api/audit/{name} does not reject .. and can scan outside the skills source #402
GET /api/audit/{name} resolves the skill as filepath.Join(source, name) without rejecting .. segments (internal/server/handler_audit.go, around the skillPath resolution in handleAuditSkill). A URL such as /api/audit/..%2F..%2Fsomething therefore scans a directory outside the skills source.
This predates PR #390 (it exists at e4a3d8a8 and on main); the internal review of #390 found it while checking the followed-skill scan path. The dashboard binds to localhost, so the exposure is a local-user one, but the route should still stay inside the source.
Expected
Reject any name whose cleaned path escapes the source (the same check the other skill routes use for relPath), with a 400 or 404, before scanning.
Notes
Found during the .skillfollow review (ai_docs/reports/274-review-fixes.md, "Not changed").
Check the other {name}-taking audit/skill routes for the same pattern while fixing.
Activity
fix(server): reject skill names that escape the skills source (runkid…