1. Archivio CVE
  2. 2023
  3. CVE-2023-22487

CVE-2023-22487

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

Descrizione

Flarum is a forum software for building communities. Using the mentions feature provided by the flarum/mentions extension, users can mention any post ID on the forum with the special `@"<username>"#p<id>` syntax. The following behavior never changes no matter if the actor should be able to read the mentioned post or not: A URL to the mentioned post is inserted into the actor post HTML, leaking its discussion ID and post number. The `mentionsPosts` relationship included in the `POST /api/posts` and `PATCH /api/posts/<id>` JSON responses leaks the full JSON:API payload of all mentioned posts without any access control. This includes the content, date, number and attributes added by other extensions. An attacker only needs the ability to create new posts on the forum to exploit the vulnerability. This works even if new posts require approval. If they have the ability to edit posts, the attack can be performed even more discreetly by using a single post to scan any size of database and hiding the attack post content afterward. The attack allows the leaking of all posts in the forum database, including posts awaiting approval, posts in tags the user has no access to, and private discussions created by other extensions like FriendsOfFlarum Byobu. This also includes non-comment posts like tag changes or renaming events. The discussion payload is not leaked but using the mention HTML payload it's possible to extract the discussion ID of all posts and combine all posts back together into their original discussions even if the discussion title remains unknown. All Flarum versions prior to 1.6.3 are affected. The vulnerability has been fixed and published as flarum/core v1.6.3. As a workaround, user can disable the mentions extension.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
flarum flarum < 1.6.3 –
Tutte le 16 vulnerabilità di Flarum

Tipo di vulnerabilità

CWE-284 Controllo degli accessi improprio

Il prodotto non limita, o limita in modo errato, l’accesso a una risorsa da parte di soggetti non autorizzati.

Impatto sui sistemi

AmbitoImpatto
Altro Dipende dal contesto, Ottenere privilegi o assumere un’altra identità
Quando un meccanismo di protezione non viene applicato o non funziona, un attaccante può compromettere la sicurezza del prodotto: ottenere privilegi, leggere informazioni sensibili, eseguire comandi, eludere i controlli e così via.

Come si previene

Architettura e progettazione · Esercizio Gestisci con molta attenzione l’assegnazione e l’uso dei privilegi, e definisci in modo esplicito le zone di fiducia del software.
Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.

Tutte le 7.877 CVE di tipo CWE-284, con andamento e prevenzione

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