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
        • Security
          • Audit
      • Grpc
      • Jwt-go
      • Lang
      • 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
Security

Audit

gorm-dangerous-method-usage

Detected usage of dangerous method METHODwhichdoesnotescapeinputs(seelinkinreferences).Iftheargumentisuser−controlled,thiscanleadtoSQLinjection.WhenusingMETHOD which does not escape inputs (see link in references). If the argument is user-controlled, this can lead to SQL injection. When using METHODwhichdoesnotescapeinputs(seelinkinreferences).Iftheargumentisuser−controlled,thiscanleadtoSQLinjection.WhenusingMETHOD function, do not trust user-submitted data and only allow approved list of input (possibly, use an allowlist approach).
Likelihood: HIGH
Confidence: HIGH
CWE:
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)
OWASP:
- A01:2017 - Injection
- A03:2021 - Injection
Libxml2 xxe taintGrpc http command injection taint
twitterlinkedin
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.