CodeAnt AI home pagelight logodark logo
  • Dashboard
  • Dashboard
  • Documentation
  • Demo Call with CEO
  • Blog
  • Slack
  • Get Started
    • CodeAnt AI
    • Setup
    • Control Center
    • Pull Request Review
    • IDE
    • Compliance
    • Anti-Patterns
    • Code Governance
    • Infrastructure Security Database
    • Application Security Database
      • Apex
      • Bash
      • C
      • Clojure
      • Cpp
      • Csharp
      • Dockerfile
      • Elixir
        • Lang
          • Best practice
          • Correctness
          • Correctness
          • Security
            • Command-injection
              • Command injection
            • Rce-code
            • Rce-eex
            • Sql-injection
            • Traversal-file
            • Traversal-send-download
            • Traversal-send-file
            • Unsafe-atom-interpolation
            • Unsafe-binary-to-term
            • Xss-content-type
            • Xss-controller-html
            • Xss-raw
        • Phoenix
      • Fingerprints
      • Generic
      • Go
      • Html
      • Java
      • Javascript
      • Json
      • Kotlin
      • Ocaml
      • Php
      • Problem-based-packs
      • Python
      • Ruby
      • Rust
      • Scala
      • Solidity
      • Swift
      • Terraform
      • Typescript
      • Yaml
    Command-injection

    Command injection

    Untrusted input might be injected into a command executed by the application, which can lead to a command injection vulnerability. An attacker can execute arbitrary commands, potentially gaining complete control of the system. To prevent this vulnerability, avoid executing OS commands with user input through the :os.cmd and System.cmd functions. If this is unavoidable, validate and sanitize the input, and use safe methods for executing the commands.
    Likelihood: MEDIUM
    Confidence: MEDIUM
    CWE:
    - CWE-77: Improper Neutralization of Special Elements used in a Command (Command Injection)
    OWASP:
    - A03:2021 - Injection

    Or truthinessRce code
    twitterlinkedin
    Powered by Mintlify