task hijacking bug
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Comienza revisando los pasos para reproducir el problema y el cambio propuesto en taskAffinity; después, inspecciona la configuración de Android Activity de la app y la gestión de las tareas de inicio. El issue también propone comprobar los recuentos de app-task de ActivityManager y advertir a los usuarios; la finalización debe abordar el escenario de task hijacking descrito sin exponer información confidencial.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Kotlin
- Estrellas
- 45.9k
- Forks
- 11.8k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de android/architecture-samples
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
android/architecture-samples#1066 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
android/architecture-samples#1083 ·
-
CI · GitHubAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 12/100
android/architecture-samples#1082 ·
-
{***}Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
android/architecture-samples#1081 · 1 comentario · 2 reacciones ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
android/architecture-samples#1080 ·
Todos los issues de android/architecture-samples
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
emm3000/myGame#2175 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MetrolistGroup/Metrolist#5426 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
backend
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
digitalfabrik/entitlementcard#3330 ·
Los mantenedores suelen responder en 2 días