1. Archivio CVE
  2. 2024
  3. CVE-2024-45842

CVE-2024-45842

5.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N 5.3 – Media

Descrizione

Sharp and Toshiba Tec MFPs improperly process URI data in HTTP PUT requests resulting in a path Traversal vulnerability. Unintended internal files may be retrieved when processing crafted HTTP requests.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
sharp bp-30c25 firmware tutte –
sharp bp-30c25t firmware tutte –
sharp bp-30c25y firmware tutte –
sharp bp-30c25z firmware tutte –
sharp bp-30m28 firmware tutte –
sharp bp-30m28t firmware tutte –
sharp bp-30m31 firmware tutte –
sharp bp-30m31t firmware tutte –
sharp bp-30m35 firmware tutte –
sharp bp-30m35t firmware tutte –
sharp bp-50c26 firmware tutte –
sharp bp-50c31 firmware tutte –
sharp bp-50c36 firmware tutte –
sharp bp-50c45 firmware tutte –
sharp bp-50c55 firmware tutte –
sharp bp-50c65 firmware tutte –
sharp bp-50m26 firmware tutte –
sharp bp-50m31 firmware tutte –
sharp bp-50m36 firmware tutte –
sharp bp-50m45 firmware tutte –
sharp bp-50m50 firmware tutte –
sharp bp-50m55 firmware tutte –
sharp bp-55c26 firmware tutte –
sharp bp-60c31 firmware tutte –
sharp bp-60c36 firmware tutte –
sharp bp-60c45 firmware tutte –
sharp bp-70c31 firmware tutte –
sharp bp-70c36 firmware tutte –
sharp bp-70c45 firmware tutte –
sharp bp-70c55 firmware tutte –
sharp bp-70c65 firmware tutte –
sharp bp-70m31 firmware tutte –
sharp bp-70m36 firmware tutte –
sharp bp-70m45 firmware tutte –
sharp bp-70m55 firmware tutte –
sharp bp-70m65 firmware tutte –
sharp bp-70m75 firmware tutte –
sharp bp-70m90 firmware tutte –
sharp bp-90c70 firmware tutte –
sharp bp-90c80 firmware tutte –
sharp bp-b537wr firmware tutte –
sharp bp-b540wr firmware tutte –
sharp bp-b547wd firmware tutte –
sharp bp-b550wd firmware tutte –
sharp bp-c533wd firmware tutte –
sharp bp-c533wr firmware tutte –
sharp bp-c535wd firmware tutte –
sharp bp-c535wr firmware tutte –
sharp bp-c542wd firmware tutte –
sharp bp-c545wd firmware tutte –
sharp dx-2000u firmware tutte –
sharp dx-2500n firmware tutte –
sharp dx-c310 firmware tutte –
sharp dx-c311 firmware tutte –
sharp dx-c311j firmware tutte –
sharp dx-c381 firmware tutte –
sharp dx-c400 firmware tutte –
sharp dx-c401 firmware tutte –
sharp dx-c401 j firmware tutte –
sharp mx-1810u firmware tutte –
sharp mx-2010u firmware tutte –
sharp mx-2301n firmware tutte –
sharp mx-2310r firmware tutte –
sharp mx-2310u firmware tutte –
sharp mx-2314n firmware tutte –
sharp mx-2314nr firmware tutte –
sharp mx-2600g firmware tutte –
sharp mx-2600n firmware tutte –
sharp mx-2601n firmware tutte –
sharp mx-2610n firmware tutte –
sharp mx-2614n firmware tutte –
sharp mx-2615 a firmware tutte –
sharp mx-2615n firmware tutte –
sharp mx-2616n firmware tutte –
sharp mx-2630n firmware tutte –
sharp mx-2640n firmware tutte –
sharp mx-2640nr firmware tutte –
sharp mx-2651 firmware tutte –
sharp mx-3050n a firmware tutte –
sharp mx-3050n firmware tutte –
sharp mx-3050v a firmware tutte –
sharp mx-3050v firmware tutte –
sharp mx-3051 firmware tutte –
sharp mx-3060n firmware tutte –
sharp mx-3060v firmware tutte –
sharp mx-3061 firmware tutte –
sharp mx-3061s firmware tutte –
sharp mx-3070n a firmware tutte –
sharp mx-3070n firmware tutte –
sharp mx-3070v a firmware tutte –
sharp mx-3070v firmware tutte –
sharp mx-3071 firmware tutte –
sharp mx-3071s firmware tutte –
sharp mx-3100g firmware tutte –
sharp mx-3100n firmware tutte –
sharp mx-3101n firmware tutte –
sharp mx-3110n a firmware tutte –
sharp mx-3110n firmware tutte –
sharp mx-3111u firmware tutte –
sharp mx-3114n firmware tutte –

Mostrate 100 configurazioni su 320. L'elenco completo è su NVD.

Tutte le 10 vulnerabilità di Sharp Bp-70c31 Firmware

Tipo di vulnerabilità

CWE-22 Path traversal: percorso non limitato alla cartella consentita

Il prodotto costruisce il percorso di un file o di una cartella con dati provenienti dall’esterno, senza neutralizzare gli elementi speciali (come «../») che permettono di uscire dalla cartella a cui l’accesso dovrebbe essere limitato.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità Eseguire codice o comandi non autorizzati
Integrità Modificare file o cartelle
Riservatezza Leggere file o cartelle
Disponibilità Interruzione del servizio: arresto o riavvio

Come si previene

Sviluppo · Validazione dell’input Considera ogni input come potenzialmente malevolo. Adotta una validazione per «elenco di valori ammessi»: accetta solo gli input che rispettano rigorosamente le specifiche e rifiuta, o trasforma in qualcosa di conforme, tutto il resto. Nel validare considera tutte le proprietà rilevanti: lunghezza, tipo, intervallo dei valori ammessi, input mancanti o in più, sintassi, coerenza tra campi collegati e rispetto delle regole di business (per esempio «barca» è sintatticamente valido perché contiene solo lettere, ma non lo è se il campo deve contenere solo colori come rosso o blu). Non limitarti a cercare input malevoli o malformati: quasi certamente ne sfuggirà qualcuno, soprattutto se l’ambiente del codice cambia, lasciando all’attaccante lo spazio per aggirare la validazione. Le liste di valori vietati restano utili per rilevare possibili attacchi o scartare subito gli input più malformati. Per i nomi di file usa elenchi rigorosi dei caratteri ammessi. Se possibile, consenti un solo carattere «.» nel nome, per evitare errori come CWE-23, ed escludi i separatori di cartella come «/», per evitare CWE-36. Usa un elenco delle estensioni ammesse, utile anche contro CWE-434. Non affidarti solo a un filtro che rimuove i caratteri pericolosi: equivale a una lista di valori vietati, che può essere incompleta (CWE-184). Per esempio, filtrare «/» non basta se il file system accetta anche «\» come separatore; e un filtro applicato male può produrre comunque dati pericolosi (CWE-182): se si rimuovono in sequenza le occorrenze di «../» dalla stringa «.../...//», i caratteri rimasti formano di nuovo «../».
Architettura e progettazione Per ogni controllo di sicurezza eseguito lato client, ripeti lo stesso controllo lato server, per evitare CWE-602: un attaccante può aggirare i controlli del client modificando i valori dopo il controllo o eliminando del tutto i controlli dal client, e inviare poi al server i valori modificati.
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. Use a built-in path canonicalization function (such as realpath() in C) that produces the canonical version of the pathname, which effectively removes .. sequences and symbolic links (CWE-23, CWE-59). This includes: realpath() in C getCanonicalPath() in Java GetFullPath() in ASP.NET realpath() or abs_path() in Perl realpath() in PHP
Architettura e progettazione · Librerie o framework Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
Esercizio · Firewall Usa un firewall applicativo (WAF) in grado di rilevare attacchi contro questo tipo di vulnerabilità. È utile quando il codice non può essere corretto (perché controllato da terzi), come misura d’emergenza in attesa di interventi più completi, o come difesa aggiuntiva.
Architettura e progettazione · Esercizio · Hardening dell’ambiente Run your code using the lowest privileges that are required to accomplish the necessary tasks. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
Architettura e progettazione · Conversione in valori ammessi When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs. For example, ID 1 could map to inbox.txt and ID 2 could map to profile.txt. Features such as the ESAPI AccessReferenceMap provide this capability.
Architettura e progettazione · Esercizio · Sandbox o jail Esegui il codice in una «jail» o in una sandbox simile, che imponga confini rigidi tra il processo e il sistema operativo. Così si può limitare a quali file in una cartella si può accedere o quali comandi il software può eseguire (per esempio con chroot su Unix, AppArmor o SELinux). Il codice gestito può offrire una certa protezione: in Java, per esempio, java.io.FilePermission del SecurityManager permette di limitare le operazioni sui file. Non sempre è una soluzione praticabile e limita l’impatto solo sul sistema operativo: il resto dell’applicazione può comunque essere compromesso. Attenzione a CWE-243 e agli altri errori legati alle jail.

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

Tutte le 11.327 CVE di tipo CWE-22, con andamento e prevenzione

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