T09 · Insecure Skill Coding Practices
- Location
saas-landing-page.sh:54- Finding
Output Path Traversal Through Unsanitized Product and Output Values
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 } OUTPUT_PATH=$(realpath -m "$BASE_DIR/${DIR_NAME}-landing") case "$OUTPUT_PATH/" in "$BASE_DIR/"*) ;; *) echo "Output path escapes the approved directory" >&2 exit 1 ;; esac ``` ]]>
