Version 0.1.0 is vulnerable to arbitrary file deletion due to improper input sanitization on the delete_workflow API. This PR ensures the API will only delete JSON files in user_dir.
Checklist
Please check the following items before code is ready to be reviewed.
[X] Code has passed all tests
[X] Docstrings have been added/updated in Google Style
name: Sanitize Delete Workflow about: Remediates arbitrary file delete
Description
Version 0.1.0 is vulnerable to arbitrary file deletion due to improper input sanitization on the delete_workflow API. This PR ensures the API will only delete JSON files in
user_dir
.Checklist
Please check the following items before code is ready to be reviewed.