-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathDebuggableAttributeTrue.ql
More file actions
22 lines (20 loc) · 995 Bytes
/
DebuggableAttributeTrue.ql
File metadata and controls
22 lines (20 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// TODO: Fix up metadata
/**
* @name Debuggable set to true
* @description The 'debuggable' attribute in the application section of the AndroidManifest.xml file should never be enabled in production builds // TODO: edit to be in-line wth guidelines
* @kind problem
* @problem.severity warning
* @id java/android/debuggable-true // TODO: consider editing
* @tags security // TODO: look into CWEs some more
* external/cwe/cwe-489
* external/cwe/cwe-710
* @precision high // TODO: adjust once review query results and FP ratio
* @security-severity 0.1 // TODO: auto-calculated: https://github.blog/changelog/2021-07-19-codeql-code-scanning-new-severity-levels-for-security-alerts/
*/
import java
import semmle.code.xml.AndroidManifest
from AndroidXmlAttribute androidXmlAttr
where
androidXmlAttr.getName() = "debuggable" and
androidXmlAttr.getValue() = "true"
select androidXmlAttr, "Warning: 'android:debuggable=true' set"