Skip to content

[BUG] vscode out-of-workspace read protection trivially circumvented by symlinks #169

@nh2

Description

@nh2

Even when the

  • Include files outside workspace

Read permission setting in "Auto-Approve" is off, the harness in readonly ("Ask") mode will provide file contents via symlinks.

For example, you can create a symlink in the workspace, e.g. myfile pointing to /etc/passwd, and Ask mode will trivially be able to access it.

Suggested solution

That setting should probably be extended by a setting

  • Include symlinks in workspace resolving to outside of workspace

so one can control this behaviour.

The harness should then resolve file paths before providing their contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions