Skip to content

Commit b924de6

Browse files
Add change note, minor docs improvement
1 parent 594d51e commit b924de6

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

java/ql/src/Security/CWE/CWE-532/SensitiveInfoLog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ public static void main(String[] args) {
1414
String password = "Pass@0rd";
1515

1616
// GOOD: user password is never written to debug log
17+
logger.debug("User password changed")
1718
}
1819
}

java/ql/src/Security/CWE/CWE-532/SensitiveInfoLog.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @kind path-problem
66
* @problem.severity warning
77
* @precision medium
8-
* @id java/sensitiveinfo-in-logfile
8+
* @id java/sensitive-log
99
* @tags security
1010
* external/cwe/cwe-532
1111
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: newQuery
3+
---
4+
* The query "Insertion of sensitive information into log files" (`java/sensitive-logging`) has been promoted from experimental to the main query pack. This query was originally [submitted as an experimental query by @luchua-bc](https://github.com/github/codeql/pull/3090).

0 commit comments

Comments
 (0)