Enumerating and Exploiting Installed Apps
Pre-requirement
Kỹ thuật chủ yếu sẽ dùng là Dynamic Analysis nhé. Bởi vậy bạn đọc cần trang bị cho mình một chút kiến thức liên quan đến Static Analysis để tránh mất thời gian nhé.
Khái niệm chung
Dynamic Analysis sẽ áp dụng trong các trường hợp sau:
- Real-time Vulnerability Detection
- Understanding Application Behavior
- Testing trong các điều kiện khác nhau
- Security of Sensitive Data
Các loại lỗ hổng mà Dynamic Analysis có thể phát hiện:
- Runtime Permission Abuse
- Improper Handling of Intents ⇒ Intent interception ⇒ injection attacks
- Insecure Data Transmission ⇒ unencrypted/poorly encrypted data
- Insecure Storage of Sensitive Information ⇒ Detecting sensitive information stored on the device
- Authentication and Session Management Flaws
- Leakage of Sensitive Information ⇒ Leak through logs, UI, components hoặc các tương tác runtime khác.
- Dynamic Code Execution ⇒ loading an external library dynamically at runtime
Thực hành
Đầu tiên, ta sẽ mổ sẻ lỗ hổng liên quan đến Insecure Storage of Sensitive Information thông qua Enumerating Local Storage.
Enumerating Local StorageTiếp đến là lỗ hổng liên quan đến xử lí Intent không đúng cách.
Abuse Exported ActivitiesExploiting WebViewsNgoài dạng Intent bình thường như 2 trường hợp trên thì bạn cũng cần phải biết đến một loại Intent khác, đó là Pending Intents
Pending IntentsTiếp tục đến lỗ hổng liên quan đến Leakage of Sensitive Information through Log.
Insecure LoggingCuối cùng đến với lỗ hổng liên quan đến Dynamic Code Execution (loading an external library dynamically at runtime)
Insecure Library Load Through Deep Linking