πVulnerability #9: Use of Implicit intent to send a broadcast with sensitive data
public final void onSendData(View view) {
Intrinsics.checkParameterIsNotNull(view, "view");
String userName = Prefs.INSTANCE.getUsername();
if (userName == null) {
Intrinsics.throwNpe();
}
String password = Prefs.INSTANCE.getPassword();
if (password == null) {
Intrinsics.throwNpe();
}
Intent intent = new Intent("com.insecureshop.action.BROADCAST");
intent.putExtra("username", userName);
intent.putExtra("password", password);
sendBroadcast(intent);
TextView textView = (TextView) _$_findCachedViewById(R.id.textView);
Intrinsics.checkExpressionValueIsNotNull(textView, "textView");
textView.setText("InsecureShop is an intentionally designed vulnerable android app built in Kotlin.");
}
PreviousVulnerability #8: Insecure Broadcast ReceiverNextVulnerability #10: Using Components with Known Vulnerabilities
Last updated

