T09 · Insecure Skill Coding Practices
- Location
scripts/game.py- Finding
Scenario metadata can redirect save writes and resets outside the scenario directory
- Content
View full analysis
Impact
A value such as ../victim redirects the destination to ~/victim/state.json. An absolute directory also discards the intended base directory. Resetting the imported scenario can therefore delete another application's or scenario's state.json; subsequent saves can replace it with game state. The destination filename is constrained to state.json, not arbitrary filenames.
