Closed arttujo closed 10 months ago
Thanks for reporting this, I will update the ANDROID_API_LEVEL_MAP
.
It seems like if the targetSdk
is not determined from the manifest file, minSdk
is used as target SDK. ANDROID_API_LEVEL_MAP
is not considered for determining targetSdk
Addressed in https://github.com/MobSF/mobsfscan/pull/77
It seems like if the targetSdk is not determined from the manifest file, minSdk is used as target SDK.
This will lead to a false failure in TaskHijackingChecks
if minSdk
=26 but targetSdk
=34 defined in build.gradle.
Both minSdk
and targetSdk
really should come from build.gradle because it is no longer defined in Manifest.
@ajinabraham Is there a way to have scan_manifest
or TaskHijackingChecks
instead read from build.gradle in order to obtain the correct minSdk/targetSdk
version?
Hello @ajinabraham,
I'm seeing the same false positives for TaskHijackingChecks
because my target SDK is set in build.gradle
.
Could this be reopened ? Or maybe reopened the linked issue https://github.com/MobSF/mobsfscan/issues/78
It would seem that in the latest pull request and with the new
ANDROID_API_LEVEL_MAP
there seems to be an issue where if yourtargetSdk = 34
all the checks will default to API lvl26
due to34
missing from the definition.