Skip to content

exercism configure stores API token insecurely by default #1209

@nathanscain

Description

@nathanscain

When setting up the CLI on a new system, I noticed that the default configuration file created by the exercism configure --token=asdf command at ~/.config/exercism/user.json has 644 permissions by default. That makes the file, and the API token within it, globally readable by any other user on the system.

User config files containing any form of authentication should always be stored with 600 permissions (and possibly refuse to be process if permissions are more open, like with ssh)

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