Description
phi 0.1.1 through 0.28.4 contains an improper link resolution vulnerability that allows malicious repositories to bypass workspace_only_writes by exploiting lexical-only path checks in the permission gate. Attackers can commit symlinks pointing outside the workspace and use prompt injection to make the write tool write attacker-influenced content to external files without approval.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pulseaiclub | phi | 0.1.1 – ≤ 0.28.4 | — |
References
- https://hackmd.io/@haind/phi-symlink-permission-boundary third-party-advisory
- https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/permission/gate.go#L106-L119 technical-description
- https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/tools/writetool/write.go#L64-L68 technical-description
- https://github.com/pulseaiclub/phi product
- VulnCheck Advisory: Phi 0.1.1 through 0.28.4 Symlink Workspace Write Restriction Bypass third-party-advisory