Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Issue 1: FixConfig.java: Insecure Temporary File Creation #1

@PrinceSajjadHussain

Description

@PrinceSajjadHussain

Body:

The FixConfig class creates a temporary file to store FIX configuration. This file is created using Files.createTempFile("fix", ".cfg"). While this creates a temporary file, it doesn't guarantee its security. Specifically, the file may be created with overly permissive permissions, allowing other users on the system to read the file. If the FIX configuration contains sensitive information, such as passwords or API keys (though this shouldn't be the case), this could lead to a security vulnerability.

Recommendation: Use the java.nio.file.attribute.FileAttribute to set appropriate file permissions during temporary file creation. For example, restrict access to only the current user. Alternatively, ensure the environment where this code runs has adequate file system security. The ideal solution is to create temporary files in a dedicated directory with restricted permissions and encrypt sensitive data.

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