Deletes any existing archive without disclosing the destructive replacement.
- Category
- Output Handling
- Confidence
- 96% confidence
- Finding
The script unconditionally deletes the existing archive before creating and validating its replacement, so a packaging failure can destroy the previous backup. Additionally, archive_name is not constrained to a safe filename, allowing a configuration value containing parent-directory traversal to target another file writable by the executing user. Replacement is plausible for a packaging utility, but undisclosed deletion and the lack of path validation make this an unsafe implementation.
- Content
