task hijacking bug
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia esaminando i passaggi per riprodurre il problema e la modifica proposta a taskAffinity, quindi analizza la configurazione di Android Activity dell'app e la gestione dei task all'avvio. L'issue propone inoltre di controllare i conteggi degli app-task di ActivityManager e di avvisare gli utenti; il completamento deve affrontare lo scenario di task hijacking descritto senza esporre informazioni sensibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Task stack hijacking affects apps with startup modes of singletask and standard
We hijacked the task stack of the application by setting the same taskAffinity. When the user clicks on the application, what is actually displayed is the activity of the attack application we wrote (there is no interface switching process in the entire process, which is very hidden and difficult for the user to discover). By designing the activity in this way, we can mimic the login interface of the application, induce the user to log in, and steal the user's private password information
Reproduction method:
Write an attack application that hijacks the application's task stack by setting the taskAffinity attribute to the package name of soul
Expected behaviour
Repair plan
Set the taskAffinity property of the application's activity to empty
When the APP is initially enabled, check whether the number of front-end tasks in the activity stack is greater than the initial set value. If it is greater than the initial set value, it is necessary to draw the user's attention to the possibility of disguised malicious attacks in the future. Do not output sensitive information on the page
Example code:
val activityManager = getSystemService(ACTIVITY_SERVICE) as ActivityManager
val appTasks: List = activityManager.getAppTasks()
if (appTasks.isNotEmpty()) {
Val initial Activity Count=5//Assuming that the initial set number of front-end task activities is 5
val taskInfo: RecentTaskInfo = appTasks[0].taskInfo
val numActivities: Int = taskInfo.numActivities
if (numActivities > initialActivityCount) {
//If the number of activities in the current front-end task is greater than the initial set value, a Toast prompt will pop up to remind the user to pay attention to safety
Toast.makeText (this, "Warning: The current front-end task has an abnormal number of activities, which may pose a security risk. Please be careful not to enter sensitive information on subsequent pages! ", Toast.LENGTH_LONG).show()
}
}
The specific attack video has been attached
- Lingua principale
- Kotlin
- Stelle
- 45.9k
- Fork
- 11.8k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di android/architecture-samples
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
android/architecture-samples#1066 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
android/architecture-samples#1083 ·
-
CI · GitHubAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 12/100
android/architecture-samples#1082 ·
-
{***}Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
android/architecture-samples#1081 · 1 commento · 2 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
android/architecture-samples#1080 ·
Tutte le issue di android/architecture-samples
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
emm3000/myGame#2175 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
MetrolistGroup/Metrolist#5426 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
digitalfabrik/entitlementcard#3330 ·
I maintainer di solito rispondono entro 2 giorni