Description: A crafted deep-link can trigger a null dereference within [K
an exported activity handler, leading to an application crash. This vulnera[7D[K
vulnerability occurs due to improper input validation and the absence of nu[2D[K
null checks before accessing user-related objects. This can be exploited to[2D[K
to cause a denial-of-service.
How to Test:
- On a device with the application installed, execute the following adb co[2D[K
command to invoke the deep-link:
adb shell am start -a android.intent.action.VIEW \
-d "https://attacker.example.com/f/abcdef" \
-n <PACKAGE_NAME>/<ACTIVITY_NAME>
- Observe that the application crashes, resulting in a "App has stopped" e[1D[K
error.
- Examine the application logs for a
NullPointerExceptionrelated to acc[3D[K
accessing an object within the activity context.
Impact: The application crashes, resulting in a denial-of-service condi[5D[K
condition. Depending on the context, exploiting this vulnerability could p[1D[K
potentially lead to further issues like unintended data access or exposure.[9D[K
exposure.
Remediation: Implement robust input validation to ensure deep-link data[4D[K
data is properly sanitized. Always perform null checks before accessing us[2D[K
user-related objects. Utilize a strict allowlist for deep-link hosts and pa[2D[K
paths, and handle unexpected or malformed intents gracefully to avoid crash[5D[K
crashes.