task hijacking bug
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các bước tái hiện và thay đổi taskAffinity được đề xuất, sau đó kiểm tra cấu hình Android Activity của ứng dụng và cách xử lý task khi khởi động. Issue cũng đề xuất kiểm tra số lượng app-task của ActivityManager và cảnh báo người dùng; việc hoàn thành cần xử lý kịch bản task hijacking được mô tả mà không làm lộ thông tin nhạy cảm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Kotlin
- Star
- 45.9k
- Fork
- 11.8k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của android/architecture-samples
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
android/architecture-samples#1066 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
android/architecture-samples#1083 ·
-
CI · GitHubĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 12/100
android/architecture-samples#1082 ·
-
{***}Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
android/architecture-samples#1081 · 1 bình luận · 2 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
android/architecture-samples#1080 ·
Tất cả issue của android/architecture-samples
Issue tương tự
-
Remove Collect againĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
thisisartman/Meguri#211 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
emm3000/myGame#2175 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android: NoSuchElementException in ScrollIndicators.refit when a scroll view is garbage collectedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
software-mansion/react-native-bottom-sheet#140 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MetrolistGroup/Metrolist#5426 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày