Descrizione
A vulnerability was detected in cosmicstack-labs mercury-agent up to 1.1.13. Affected is the function checkShellCommand of the file src/capabilities/permissions.ts of the component Shell Command Execution. The manipulation results in incorrect behavior order: validate before canonicalize. The attack may be launched remotely. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Tipo di vulnerabilità
CWE-179
Incorrect Behavior Order: Early Validation
The product validates input before applying protection mechanisms that modify the input.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi, Integrità |
Aggirare i meccanismi di protezione, Eseguire codice o comandi non autorizzati |
Come si previene
Sviluppo · Validazione dell’input
Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
Tutte le 8 CVE di tipo CWE-179, con andamento e prevenzione