1. Archivio CVE
  2. 2014
  3. CVE-2014-0315

CVE-2014-0315

6.9 Gravità media CVSS v2.0 · fonte NVD AV:L/AC:M/Au:N/C:C/I:C/A:C 6.9 – Media

Descrizione

Untrusted search path vulnerability in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allows local users to gain privileges via a Trojan horse cmd.exe file in the current working directory, as demonstrated by a directory that contains a .bat or .cmd file, aka "Windows File Handling Vulnerability."

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
microsoft windows 7 tutte sp1 –
microsoft windows 8 tutte –
microsoft windows 8.1 tutte –
microsoft windows rt tutte –
microsoft windows rt 8.1 tutte –
microsoft windows server 2003 tutte sp2 –
microsoft windows server 2008 tutte sp2 –
microsoft windows server 2008 r2 sp1 –
microsoft windows server 2008 r2 sp1 –
microsoft windows server 2012 tutte –
microsoft windows server 2012 r2 –
microsoft windows vista tutte sp2 –
microsoft windows xp tutte sp2 –
microsoft windows xp tutte sp3 –
Tutte le 3.551 vulnerabilità di Microsoft Windows Server 2008
Tutte le 5.318 vulnerabilità di Microsoft Windows Server 2012
Tutte le 737 vulnerabilità di Microsoft Windows Xp

Tipo di vulnerabilità

CWE-426 Percorso di ricerca non attendibile

Il prodotto cerca risorse critiche usando un percorso di ricerca fornito dall’esterno, che può puntare a risorse fuori dal suo controllo diretto.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità, Controllo degli accessi Ottenere privilegi o assumere un’altra identità, Eseguire codice o comandi non autorizzati
Disponibilità Interruzione del servizio: arresto o riavvio
Riservatezza Leggere file o cartelle
Altro Dipende dal contesto

Come si previene

Architettura e progettazione · Sviluppo · Riduzione della superficie di attacco Hard-code the search path to a set of known-safe values (such as system directories), or only allow them to be specified by the administrator in a configuration file. Do not allow these settings to be modified by an external party. Be careful to avoid related weaknesses such as CWE-426 and CWE-428.
Sviluppo When invoking other programs, specify those programs using fully-qualified pathnames. While this is an effective approach, code that uses fully-qualified pathnames might not be portable to other systems that do not use the same pathnames. The portability can be improved by locating the full-qualified paths in a centralized, easily-modifiable location within the source code, and having the code refer to these paths.
Sviluppo Remove or restrict all environment settings before invoking other programs. This includes the PATH environment variable, LD_LIBRARY_PATH, and other settings that identify the location of code libraries, and any application-specific search paths.
Sviluppo Check your search path before use and remove any elements that are likely to be unsafe, such as the current working directory or a temporary files directory.
Sviluppo Use other functions that require explicit paths. Making use of any of the other readily available functions that require explicit paths is a safe way to avoid this problem. For example, system() in C does not require a full path since the shell can take care of it, while execl() and execv() require a full path.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 702 CVE di tipo CWE-426, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org