Skip to content

[security] M-14: Unvalidated sys.argv[1] as file path in process_email.py #60

Description

@jacobyoby

Severity: Medium
File: process_email.py:28

Problem

sys.argv[1] used as file path without validation. If the script is invoked with attacker-controlled arguments, arbitrary files can be read or written.

Remediation

Validate the file path argument. Restrict to expected directories.

Source

Finding from security audit (2026-08-31). See .github/SECURITY_AUDIT_TRIAGE.md.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions