Skip to content

Directories should be locked #192

@bugdea1er

Description

@bugdea1er

To prevent deletion from another program and the same vulnerability we prevented in #165, the temporary directory should be locked to prevent an attacker from replacing its path with a symlink

  • NTFS supports atomic mandatory locking when using CreateFile
  • Some Linux systems support mandatory locking for tmpfs
  • At the very least, advisory locking should be added to all systems, as discussed here

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