Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The script constructs the output path from the user-controlled video_id without validating or constraining it to a safe filename. An attacker can supply path traversal sequences such as '../' or absolute paths to cause the program to write JSON outside the intended transcripts directory, potentially overwriting arbitrary files writable by the current user.
