Context-Inappropriate Capability
Medium
- Confidence
- 95% confidence
- Finding
- The exportTransactions function accepts a caller-supplied filePath and passes it directly to fs.writeFile with no path validation or confinement to the ledger workspace. In an agent setting, this allows transaction data to be written to arbitrary local files, which can overwrite unrelated files or exfiltrate sensitive financial records into attacker-chosen locations if an untrusted prompt or tool invocation controls the destination.
