Skip to content

install.sh rollback should validate promoted asset names before recursive removal #3503

Description

@Widthdom

Problem

Rollback removes promoted assets with rm -rf using asset names passed through shell word splitting. The current asset sources appear intended to be controlled, but the destructive helper does not validate that each asset is a simple relative filename.

Evidence

remove_promoted_files loops over promoted_files and runs:

rm -rf "${install_dir}/${asset}"

Expected behavior

Validate rollback asset names before deletion: no empty values, no slashes, no .., no absolute paths, and ideally only the known expected release asset names.

Labels

bug, security

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecurity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions