Open whavey opened 5 years ago
The formatter method is a library method. For performance reasons, library methods are not analyzed together with each app. Instead, FlowDroid relies on external data flow summaries to know how a call to such a method influences the taint. For this class, we did not have a suitable summary. Consequently, the taint was lost. I have added a summary in the commit referenced above. Can you please try again with the new version?
With sendTextMessage defined as a sink and getIpAddress defined as a source flowdroid reports a leak when converting the IP address to a string using Integer.toString but not when using android.text.format.Formatter even though the source data flows through the same way. Does the specific method matter between a source and a sink when source data is flowing through the same way?
Jimple when using formatter (no leak reported):
Jimple when using toString (leak reported):