Skip to content

Advanced Security: Enforce strict permissions on generated VPN config files #32

@basantnema31

Description

@basantnema31

Description

When the admin panel generates .ovpn or .conf files for clients, the file permissions might be too permissive (e.g., 0644). Since these files contain private keys and sensitive certificates, this is a massive privilege escalation risk.

Proposed Solution

I propose updating the file generation logic to explicitly set file permissions to 0600 (read/write only for the owner) immediately upon creation, using os.chmod() or native OS commands before the files are served or stored.

I would love to work on this critical security issue under the GSSoC '24 program! Could you please assign it to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions