Skip to main content

Insecure service configuration - Task Hijacking

Description

One of the activities in the application manifest is configured with launchMode=singleTask, this configuration is insecure because it opens the possibility that the application is vulnerable to Task Hijacking.

Impact

  • Mislead the user with a malicious application that impersonates the applications functionalities.
  • Install malicious application on the application users device.

Recommendation

Configure the launchMode with the singleInstance option.

Threat

Unauthorized user with access to the application.

Expected Remediation Time

⌚ 60 minutes.

Score

Default score using CVSS 3.1. It may change depending on the context of the vulnerability.

Base

  • Attack vector: L
  • Attack complexity: H
  • Privileges required: N
  • User interaction: R
  • Scope: U
  • Confidentiality: L
  • Integrity: L
  • Availability: N

Temporal

  • Exploit code madurity: P
  • Remediation level: O
  • Report confidence: X

Result

  • Vector string: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:O/RC:X
  • Score:
    • Base: 3.6
    • Temporal: 3.3
  • Severity:
    • Base: Low
    • Temporal: Low

Code Examples

Compliant code

The application manifest correctly configures launchMode to singleInstance

<manifest ... >
...
<application android:launchMode="singleInstance" ... >
...
</application>
</manifest>

Non compliant code

The application manifest allows launchMode with the singletask Option

<manifest ... >
...
<application android:launchMode="singleTask" ... >
...
</application>
</manifest>

Requirements

free trial

Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.