Skip to content

Security: Path Traversal via SQLite table names #311

@imfht

Description

@imfht

CWE-22: scripts/file_helper.py uses SQLite table names from sqlite_master directly in open() paths (lines 40, 57). A malicious .db file with table named ../../tmp/evil writes files outside the output directory. Fix: sanitize table names with os.path.basename().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions