Skip to content

Session files store auth credentials in plaintext #1710

@themavik

Description

@themavik

sessions.py stores auth.raw_auth (which can contain passwords and tokens) directly in the session JSON file under ~/.config/httpie/sessions/. post_process_data only handles cookies and headers but leaves the auth block as-is.

Anyone with read access to the user's config directory can extract credentials from session files.

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