Skip to content

Path Traversal in load_traffic_file #16

@snapspecter

Description

@snapspecter

The file_path parameter is not sanitized before being passed to open(), allowing potential read access to arbitrary files.

Location: [src/mitmproxy_mcp/core/server.py:324]

This is an easy fix: validate the file_path to ensure it does not contain traversing sequences and possibly restrict it to a specific directory.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions