You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sensitive information such as passwords or two-factor authentication (2FA) codes should not be exposed in a system notification.
8
+
Notifications should not be considered secure, as other untrusted applications may be able to use a
9
+
<code>NotificationListenerService</code> to read the contents of notifications.
10
+
</p>
11
+
</overview>
12
+
13
+
<recommendation>
14
+
<p>
15
+
Do not expose sensitive data in notifications.
16
+
</p>
17
+
</recommendation>
18
+
19
+
<example>
20
+
<p>
21
+
In the following sample, the <code>password</code> is sent as part of a notification.
22
+
This can allow another application to read this password.
23
+
</p>
24
+
25
+
<samplesrc="AndroidSensitiveNotifications.java"/>
26
+
</example>
27
+
28
+
<references>
29
+
<li>
30
+
OWASP Mobile Application Security: <ahref="https://mas.owasp.org/MASTG/Android/0x05d-Testing-Data-Storage/#app-notifications">Android Data Storage - Application Notifications</a>
0 commit comments