gitlab.flawfinder.chmod-1

137
Download Count*
License

Use fchmod( ) instead.

Run Locally

Run in CI

Defintion

rules:
  - id: flawfinder.chmod-1
    languages:
      - c
    message: |
      Use fchmod( ) instead.
    metadata:
      cwe: "CWE-362: This accepts filename arguments; if an attacker can move those
        files, a race condition results. (CWE-362)"
      primary_identifier: flawfinder.chmod-1
      secondary_identifiers:
        - name: Flawfinder - chmod
          type: flawfinder_func_name
          value: chmod
      license: MIT
    pattern: chmod(...)
    severity: ERROR