Descrizione
The Datadog Agent collects events and metrics from hosts and sends them to Datadog. Prior to datadog-apm-inject 0.66.0, the Datadog Single Step Instrumentation injector stores helper tooling in a predictable host directory. On Linux or Kubernetes systems with SSI enabled and at least one Java service instrumented through SSI, a local unprivileged attacker with shell access to the same host can influence that tooling and execute code with the privileges of the instrumented Java service. Services that use dd-java-agent without SSI and non-Java language runtimes are not affected. This issue is fixed in datadog-apm-inject 0.66.0.
Tipo di vulnerabilità
CWE-379
Creation of Temporary File in Directory with Insecure Permissions
The product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza |
Leggere i dati dell’applicazione |
Come si previene
Requisiti
Many contemporary languages have functions which properly handle this condition. Older C temp file functions are especially susceptible.
Sviluppo
Try to store sensitive tempfiles in a directory which is not world readable -- i.e., per-user directories.
Sviluppo
Avoid using vulnerable temp file functions.
Tutte le 45 CVE di tipo CWE-379, con andamento e prevenzione