T09 · Insecure Skill Coding Practices
- Location
scripts/enterprise_kb_manager.py- Finding
Imported event fields control the base directory of filesystem writes
- Content
View full analysis
Impact
An attacker can create directories and create or truncate JSON files outside the intended index directories. For example, a CSV row with id=gps_loss and device_type=../../../../assets/solution_templates causes the importer to overwrite assets/solution_templates/gps_loss.json with the imported event, corrupting a decision template without using the learning approval flow. Writes remain limited by filesystem permissions, JSON serialization, and sanitized filename components.
