The write helper follows directory symlinks despite explicitly promising never to write through a symlink.
- Category
- Excessive Agency
- Confidence
- 99% confidence
- Finding
The helper checks resolved directory containment but opens the original path, and O_NOFOLLOW protects only the final component. An attacker able to manipulate directories can alias one environment to another within data/, replace a parent after validation, or redirect data/ itself because its resolved target is accepted as the trusted root; a stable environment symlink pointing outside an unchanged root is correctly rejected. In this persistent-memory skill, these weaknesses can redirect context overwrites or audit appends, although exploitation requires filesystem access and remains limited by the process's permissions.
- Content
