Descrizione
Stoat for Android exports the chat.stoat.activities.ShareTargetActivity component (reachable to any process on the device via the android.intent.action.SEND intent) and accepts the file to share as a URI supplied through the android.intent.extra.STREAM extra. The activity does not validate or filter the incoming URI before using it as the outgoing attachment, so a caller can pass a file:// URI pointing at the application's own internal storage (for example /data/data/chat.revolt/databases/revolt.db, cached authentication token files, or preferences) and have the app treat that internal file as a user-selected attachment. An attacker who can invoke intents on the victim's device (via ADB access, a co-installed malicious application, or any other route that reaches Android's intent dispatch) can launch ShareTargetActivity with such a URI and cause the victim, on a single channel-selection interaction, to send the internal file to any Stoat channel or user of the attacker's choosing. The composer displays the attachment as \"attachment\" with no filename indication, so the victim has no visible signal that the file being sent is their own internal application data. Consequences include disclosure of the local Stoat database (message history, contact list, cached content), disclosure of authentication tokens permitting full account takeover, and disclosure of any other file readable by the app process.
Tipo di vulnerabilità
CWE-926
Improper Export of Android Application Components
The Android application exports a component for use by other applications, but does not properly restrict which applications can launch the component or access the data it contains.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità, Integrità |
Stato imprevisto, Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità, Dipende dal contesto |
| Disponibilità, Integrità |
Stato imprevisto, Ottenere privilegi o assumere un’altra identità, Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità, Dipende dal contesto |
| Riservatezza, Integrità |
Leggere i dati dell’applicazione, Modificare i dati dell’applicazione |
Come si previene
Build e compilazione · Riduzione della superficie di attacco
If they do not need to be shared by other applications, explicitly mark components with android:exported=false in the application manifest.
Build e compilazione · Riduzione della superficie di attacco
If you only intend to use exported components between related apps under your control, use android:protectionLevel=signature in the xml manifest to restrict access to applications signed by you.
Build e compilazione · Architettura e progettazione · Riduzione della superficie di attacco
Limit Content Provider permissions (read/write) as appropriate.
Build e compilazione · Architettura e progettazione · Separazione dei privilegi
Limit Content Provider permissions (read/write) as appropriate.
Tutte le 124 CVE di tipo CWE-926, con andamento e prevenzione