File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
java/ql/src/Security/CWE/CWE-312 Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE qhelp PUBLIC
2+ "-//Semmle//qhelp//EN"
3+ "qhelp.dtd">
4+ <qhelp >
5+ <overview >
6+ <p >The Android manifest file defines configuration settings for Android
7+ applications. In this file, the <code >android:allowBackup</code > attribute of
8+ the <code >application</code > element can be used to define whether or not the
9+ application can have automatic backups.</p >
10+
11+ <p >Enabling backups may allow an attacker to extract sensitive data. Therefore,
12+ it is advised to set <code >android:allowBackup</code > to <code >false</code > if
13+ your application uses any sensitive data.</p >
14+ </overview >
15+
16+ <recommendation >
17+ <p >For Android applications which process sensitive data, set the
18+ <code >android:allowBackup</code > setting to <code >false</code > in the manifest
19+ file.</p >
20+
21+ <p >Note: Since Android 6.0 (Marshmallow), applications default to participating
22+ in automatic backups. Therefore, it is necessary to explicitly disable backups.
23+ </p >
24+ </recommendation >
25+
26+ <example >
27+
28+ <p >In the two examples below, the <code >android:allowBackup</code > setting is enabled:</p >
29+
30+ <sample src =" AllowBackupTrue.xml" />
31+
32+ <sample src =" AllowBackupEmpty.xml" />
33+
34+ <p >A corrected version explicity sets <code >android:allowBackup</code > to <code >false</code >:</p >
35+
36+ <sample src =" AllowBackupFalse.xml" />
37+
38+ </example >
39+ <references >
40+ <li >
41+ Android Documentation:
42+ <a href =" https://developer.android.com/guide/topics/data/autobackup#EnablingAutoBackup" >Back up user data with Auto Backup</a >
43+ </li >
44+ <li >
45+ OWASP Mobile Security Testing Guide:
46+ <a href =" https://github.com/OWASP/owasp-mstg/blob/b7a93a2e5e0557cc9a12e55fc3f6675f6986bb86/Document/0x05d-Testing-Data-Storage.md#backups" >
47+ Android Backups
48+ </a >
49+ </li >
50+ </references >
51+ </qhelp >
You can’t perform that action at this time.
0 commit comments