mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Add support for android:allowBackup default value
The default value of `android:allowBackup` is `true`. Added support for detecting if the default value is used.
This commit is contained in:
@@ -17,4 +17,4 @@ from AndroidApplicationXmlElement androidAppElem
|
||||
where
|
||||
androidAppElem.allowsBackup() and
|
||||
androidAppElem.getFile().(AndroidManifestXmlFile).isInBuildDirectory()
|
||||
select androidAppElem.getAttribute("allowBackup"), "The 'android:allowBackup' attribute is enabled."
|
||||
select androidAppElem, "The 'android:allowBackup' attribute is enabled."
|
||||
|
||||
7
java/ql/src/Security/CWE/CWE-312/AllowBackupEmpty.xml
Normal file
7
java/ql/src/Security/CWE/CWE-312/AllowBackupEmpty.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<manifest ... >
|
||||
<!-- BAD: no 'android:allowBackup' set, defaults to 'true' -->
|
||||
<application>
|
||||
<activity ... >
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
Reference in New Issue
Block a user