What problem does it solve?
Applications that export user-controlled data to CSV or Excel files can silently turn stored input into executable spreadsheet formulas, leading to client-side command execution and data exfiltration when staff open the export. This Skill provides a systematic workflow to find, validate, and demonstrate CSV/DDE formula injection during authorized penetration tests.
Core Features & Use Cases
- Export Surface Mapping: Trace user-controlled fields (profiles, tickets, comments) through to every CSV/XLSX export, including admin-only reports and audit logs.
- Detection and Bypass Payloads: Test all four formula trigger characters (=, +, -, @), whitespace/control-character filter bypasses, and comma/quote cell breakout.
- Impact Demonstration: Weaponize confirmed injection with HYPERLINK/WEBSERVICE data exfiltration to an out-of-band listener, DDE command execution on a controlled victim VM, and stored-XSS-via-CSV-import variants.
- Use Case: During a web app pentest, set a profile field to =WEBSERVICE(...) , trigger the admin user export, and confirm via an OOB callback that opening the file in Excel exfiltrates adjacent cells, then report with reproduction steps and remediation guidance.
Quick Start
Test the target application's profile fields and admin CSV export for formula injection using benign arithmetic payloads first, then confirm execution by opening the export in Excel or LibreOffice.