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
SEC: Arbitrary File Write via Credential Injection Parameter Tampering #183
Location: POST /api/agents/{name}/credentials/inject
Impact
An authenticated user can supply any file path in the files map, causing the server to write attacker-controlled content to arbitrary filesystem locations inside the agent container. This can lead to configuration overrides or persistent code execution.
Steps to Reproduce
POST /api/agents/shared/credentials/inject
{"files":{"/hello/anyfile.html":"<img src onerror=prompt(11)>"}}
# Returns 200 OK# {"status":"success","files_written":["/hello/anyfile.html"]}
The server creates arbitrary directories and files with attacker-controlled content instead of restricting to predefined credential file paths.
Remediation
Define an allowlist of valid credential file paths (e.g., .env, .mcp.json)
Reject any file path not in the allowlist
Use readOnly property in schemas for properties that should never be modified
Precisely define schemas, types, and patterns accepted in requests and enforce at runtime
Do not automatically bind incoming data and internal objects
Activity
fix(security): Credential injection file path allowlist — block arbit…
fix(security): Credential injection file path allowlist — block arbit…
feat(credentials): curated credential file-type injection (SA keys, c…
Release: v0.8.0 (#1529)
docs(release)+test: record ent#187 skill-package decision (accept ris…
feat(ui): Skills management surface — unhide and rebuild the Skills t…
feat(frontend): Library skills section — fleet browse over the skills…
Release: v0.9.0 (#2268)