T09 · Insecure Skill Coding Practices
- Location
scripts/expense.py:309- Finding
Spreadsheet Formula Injection in CSV Exports
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a local expense-tracking skill whose financial-data handling is expected and mostly disclosed, with privacy and export hardening gaps users should understand.
Install only if you are comfortable storing expense records, receipt details, merchant names, and imported bank-statement rows locally under ~/.expense-tracker/. Use a private machine/account, review exported CSVs before opening them in spreadsheet software, and prefer pinned/trusted dependency installation if you enable OCR scanning.
scripts/expense.py:309Spreadsheet Formula Injection in CSV Exports
scripts/expense.py:28Sensitive Financial Data Stored Without Explicit Restrictive Permissions
scripts/expense.py:106Unpinned Runtime Dependency Installation Guidance
The skill explicitly handles receipt images and bank statement imports, and it states that all data is stored in ~/.expense-tracker/, but it does not warn users that these inputs contain sensitive financial information. This can lead users to unknowingly retain unencrypted personal spending data, merchant history, and account-related records on disk, increasing privacy and disclosure risk on shared or compromised systems.
When scan extracts receipt items, it automatically converts them into transactions and writes them to the tracker file. Although the function prints extracted text and final success output, there is no user-facing warning or confirmation that potentially sensitive receipt contents will be persisted as expense records.
The import command reads a bank statement CSV and appends all rows into transactions.json, which is a safety-relevant file write involving sensitive financial data. The code reports success afterward, but it does not give a prior warning, confirmation, or clear user disclosure in the command help/docstring that imported financial records will be stored persistently under ~/.expense-tracker/.
No suspicious patterns detected.