Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The script interpolates the untrusted client_id directly into IMGFILE and TXTFILE without sanitization or path validation. An attacker can supply values such as '../../somefile' or absolute-path-like names to overwrite files outside the intended scripts directory, and because the script may run with the agent user's privileges, this can lead to arbitrary file clobbering or persistence in sensitive locations.
