Skip to content

SSH command injection via unsanitized remote path in format! string #1

Description

@consigcody94

Found via code audit. crates/hstry-core/src/remote.rs:244-254. file_exists() and expand_remote_path() pass untrusted path into format!(test -f {remote_path}). Semicolons inject commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions