Usage of permissive file permission ('other')

Overview

  • Rule ID: java_lang_file_permission_others

  • Applicable Languages: Java

  • Weakness ID: CWE-732

Description

Granting excessively permissive file permissions, particularly to the 'other' category, poses a significant security risk by potentially exposing sensitive information to unauthorized users.

Remediation Guidelines

  • Ensure file permissions are set as strictly as required. Prioritize assigning permissions to 'groups' rather than 'others' to mitigate the risk of unauthorized access

    permissions.add(PosixFilePermission.GROUP_WRITE)

References

Configuration

To omit this rule during a scan, and to provide you with continuous 24/7 code-level scanning, you can employ our SAST TOOL

Last updated