allowBackup documentation updates

Make error messages and descriptions clearer about application backups not being disabled, rather than focusing on `android:allowBackup` specifically.

Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
Edward Minnix III
2022-09-09 09:30:49 -04:00
committed by GitHub
parent 83c8e22225
commit 08a17b355e
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
---
category: feature
---
* Added a new predicate, `allowsBackup`, in the `AndroidApplicationXmlElement` class. This predicate detects if the application element has its `android:allowBackup` attribute enabled.
* Added a new predicate, `allowsBackup`, in the `AndroidApplicationXmlElement` class. This predicate detects if the application element does not disable the `android:allowBackup` attribute.

View File

@@ -1,6 +1,6 @@
/**
* @name Android allowBackup attribute enabled
* @description Enabling the `android:allowBackup` attribute may allow an attacker to extract sensitive data.
* @name Application backup allowed
* @description Allowing application backups may allow an attacker to extract sensitive data.
* @kind problem
* @problem.severity recommendation
* @security-severity 7.5
@@ -15,4 +15,4 @@ import semmle.code.xml.AndroidManifest
from AndroidApplicationXmlElement androidAppElem
where androidAppElem.allowsBackup()
select androidAppElem, "The 'android:allowBackup' attribute is enabled."
select androidAppElem, "Backups are allowed in this Android application."