Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported component not found because of code logic #371

Open
DanielPPK opened this issue Aug 4, 2020 · 0 comments
Open

Exported component not found because of code logic #371

DanielPPK opened this issue Aug 4, 2020 · 0 comments

Comments

@DanielPPK
Copy link

When I scan a apk with such AndroidManifest.xml:

<service android:name="com.tencent.soter.soterserver.SoterService" android:exported="true">
            <intent-filter>
                <action android:name="com.tencent.soter.soterserver.ISoterService" />
            </intent-filter>
        </service>

The issue Exported tags is not found in the report.

I check the code and add some print codes, finally found that the problem is in exported_tags.py:247

if (exported is not None and exported != "false") or tag_is_provider:
            print("tag_is_provider:", tag_is_provider) #print tag_is_provider code
            print(self.min_sdk) #print min_sdk code
            print(self.target_sdk) #print target_sdk code
            if tag_is_provider and self.min_sdk > 16 or self.target_sdk > 16:
                # provider is not vulnerable under these conditions, return
                print('provider is not vulnerable under these conditions, return') #my check code
                return

and the output is these:

tag_is_provider: False
29
29
provider is not vulnerable under these conditions, return

Please confirm the logic of this code is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant