CWE Database
/

CWE-560

Back to CWE list

CWE-560

Use of umask() with chmod-style Argument

Variant
Draft

Description

The product calls umask() with an incorrect argument that is specified as if it is an argument to chmod().

Common Consequences

Scope

Confidentiality
Integrity
Access Control

Impact

Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism

Potential Mitigations

Implementation

Use umask() with the correct argument.

Applicable Platforms

C

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now