mobsfscan icon indicating copy to clipboard operation
mobsfscan copied to clipboard

False Positive Issues on Android 34

Open Heckfer opened this issue 2 years ago • 4 comments

We've recently updated our targetSdk from 33 to 34 and all was fine while using mobsfscan version v0.3.4. Once we updated to mobsfscan version v0.3.5 we started having 2 false positives in our CI:

  • android_task_hijacking1
  • android_task_hijacking2

The reason I say it's a false positive is that the problem is saying this only happens on targetSdk < 28 and targetSdk < 29 respectively. Also, if I change my targetSdk version back to 33 the problems go away.

Heckfer avatar Jan 12 '24 14:01 Heckfer

I forgot to mention that this was not fixed on version v0.3.6

Heckfer avatar Jan 12 '24 14:01 Heckfer

Can you share a sample problamatic manifest file for troublehsooting this?

ajinabraham avatar Mar 22 '24 19:03 ajinabraham

@ajinabraham We started to have the same issue too. Our TargetSdk is 34

And we just use a normal launch activity with launchMode singleTop: sample manifest:

    <activity
            android:name=".main.MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.App.Starting"
            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

wissa-b avatar Apr 05 '24 09:04 wissa-b

This is still a thing with version 0.3.8

joost-klitsie avatar Apr 17 '24 07:04 joost-klitsie

What everyones <uses-sdk> like? Something like this will trigger the rule since the minSdk is <=28 <uses-sdk android:minSdkVersion="28" android:targetSdkVersion="34" />

With the following <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="34" /> I don't see any android_task_hijacking1 or android_task_hijacking2 findings. If you are still seeing the issue in latest mobsfscan, please share the full android manifest file that triggers the issue and I can investigate this.

ajinabraham avatar May 27 '24 19:05 ajinabraham