Skip to content

Set PATH to safe default #7

@FooBarWidget

Description

@FooBarWidget

Matchhostfsowner executes external commands in order to perform certain operations. For example it executes "readlink". However, the user can abuse this by setting PATH to a location that contains arbitrary executables, that are then executed by matchhostfsowner with root privileges.

We should reset PATH to a safe default, restoring it only after having dropped privileges.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions