Skip to content

Directories should be locked #192

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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