CodeAnt AI home pagelight logodark logo
  • Support
  • Dashboard
  • Dashboard
  • Join Community
Start Here
  • What is CodeAnt?
Setup
  • Github
  • Bitbucket
  • Gitlab
  • Azure Devops
Pull Request Review
  • Features
  • Customize Review
  • Quality Gates
  • Integrations
Scan center
  • Code Security
  • Code Quality
  • Cloud Security
  • Engineering Productivity
Integrations
  • Jira
  • Test Coverage
  • CI/CD
IDE
  • Setup
  • Review
  • Enhancements
Rule Reference
  • Compliance
  • Anti-Patterns
  • Code Governance
  • Infrastructure Security Database
  • Application Security Database
    • Apex
    • Bash
    • C
    • Clojure
    • Cpp
    • Csharp
    • Dockerfile
    • Elixir
    • Fingerprints
    • Generic
    • Go
      • Aws-lambda
      • Gin
      • Gorilla
      • Gorm
      • Grpc
      • Jwt-go
      • Lang
        • Best practice
        • Correctness
        • Correctness
          • Overflow
          • Permissions
        • Maintainability
        • Memory
        • Security
        • Security
      • Net
      • Otto
      • Secrets
      • Template
    • Html
    • Java
    • Javascript
    • Json
    • Kotlin
    • Ocaml
    • Php
    • Problem-based-packs
    • Python
    • Ruby
    • Rust
    • Scala
    • Solidity
    • Swift
    • Terraform
    • Typescript
    • Yaml
Resources
  • Open Source
  • Blogs
Correctness

Permissions

incorrect-default-permission

Detected file permissions that are set to more than 0600 (user/owner can read and write). Setting file permissions to higher than 0600 is most likely unnecessary and violates the principle of least privilege. Instead, set permissions to be 0600 or less for os.Chmod, os.Mkdir, os.OpenFile, os.MkdirAll, and ioutil.WriteFile
CWE:
- C
- W
- E
- -
- 2
- 7
- 6
- :
-

- I
- n
- c
- o
- r
- r
- e
- c
- t
-

- D
- e
- f
- a
- u
- l
- t
-

- P
- e
- r
- m
- i
- s
- s
- i
- o
- n
- s
OverflowMaintainability
twitterlinkedin
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.