Skip to content

Security Audit: 2 medium findings (path prefix bypass, silent network isolation fallback) #5

@starbuck100

Description

@starbuck100

AgentAudit Security Report

Package: answerlink/MCP-Workspace-Server v0.2.0
Risk Score: 10/100 (safe)
Report ID: #444

Findings

1. Silent fallback disables network isolation for executed code (MEDIUM)

  • File: mcp_filesystem/command/executor.py:133
  • Description: When unshare is unavailable, network isolation silently falls back to disabled. Executed Python code then has full network access.
  • Remediation: Fail closed or surface isolation status prominently.

2. Path allowlist uses string prefix check vulnerable to sibling directory bypass (MEDIUM)

  • File: mcp_filesystem/security.py:136
  • Description: startswith() check without path separator boundary allows sibling directory bypass.
  • Remediation: Use is_relative_to() or append os.sep before startswith check.

Automated security audit by AgentAudit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions