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

CVE-2024-53276

6.3 Gravità media CVSS v4.0 · fonte NVD CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X 6.3 – Media

Descrizione

Home-Gallery.org is a self-hosted open-source web gallery to browse personal photos and videos. In 1.15.0 and earlier, an open CORS policy in app.js may allow an attacker to view the images of home-gallery when it is using the default settings. The following express middleware allows any website to make a cross site request to home-gallery, thus allowing them to read any endpoint on home-gallery. Home-gallery is mostly safe from cross-site requests due to most of its pages requiring JavaScript, and cross-site requests such as fetch() do not render javascript. If an attacker is able to get the path of the preview images which are randomized, an attacker will be able to view such a photo. If any static files or endpoints are introduced in the future that contain sensitive information, they will be accessible to an attacker website.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
xemle home-gallery <= 1.15.0 –

Tipo di vulnerabilità

CWE-942 Permissive Cross-domain Security Policy with Untrusted Domains

The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità, Disponibilità, Controllo degli accessi Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione, Leggere i dati dell’applicazione, Dipende dal contesto

Come si previene

Architettura e progettazione · Esercizio · Riduzione della superficie di attacco Define a restrictive Content Security Policy or cross-domain policy file.
Architettura e progettazione · Esercizio · Riduzione della superficie di attacco Avoid using wildcards in the CSP / cross-domain policy file. Any domain matching the wildcard expression will be implicitly trusted, and can perform two-way interaction with the target server.
Architettura e progettazione · Esercizio · Hardening dell’ambiente For Flash, modify crossdomain.xml to use meta-policy options such as 'master-only' or 'none' to reduce the possibility of an attacker planting extraneous cross-domain policy files on a server.

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

Tutte le 97 CVE di tipo CWE-942, con andamento e prevenzione

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