task hijacking bug
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
調査の方向性
まず再現手順と提案されている taskAffinity の変更を確認し、次にアプリの Android Activity 構成と起動時のタスク処理を調査します。この issue では、ActivityManager の app-task 数を確認してユーザーに警告することも提案されています。対応では、機密情報を公開することなく、説明されている task hijacking シナリオに対処する必要があります。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Kotlin
- スター
- 45.9k
- フォーク
- 11.8k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
android/architecture-samples のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
android/architecture-samples#1066 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
android/architecture-samples#1083 ·
-
CI · GitHubオープン
難易度 3/5 1〜2日 初心者へのやさしさ 12/100
android/architecture-samples#1082 ·
-
{***}オープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
android/architecture-samples#1081 · コメント 1 件 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
android/architecture-samples#1080 ·
android/architecture-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
emm3000/myGame#2175 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MetrolistGroup/Metrolist#5426 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
backend
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
digitalfabrik/entitlementcard#3330 ·
メンテナーはふだん 2 日以内に返信