Skip to content

Commit 9bd706a

Browse files
authored
Merge pull request #17375 from github/changedocs-2.18.3-2
Add changelogs up to 2.18.3
2 parents 6c28abd + bd45c1f commit 9bd706a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+621
-366
lines changed

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.10.0.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ C#
7575
* The syntax of the (source|sink|summary)model CSV format has been changed slightly for Java and C#. A new column called :code:`provenance` has been introduced, where the allowed values are :code:`manual` and :code:`generated`. The value used to indicate whether a model as been written by hand (:code:`manual`) or create by the CSV model generator (:code:`generated`).
7676
* All auto implemented public properties with public getters and setters on ASP.NET Core remote flow sources are now also considered to be tainted.
7777

78-
Java
79-
""""
78+
Java/Kotlin
79+
"""""""""""
8080

8181
* The query :code:`java/log-injection` now reports problems at the source (user-controlled data) instead of at the ultimate logging call. This was changed because user functions that wrap the ultimate logging call could result in most alerts being reported in an uninformative location.
8282

@@ -134,8 +134,8 @@ JavaScript/TypeScript
134134
Minor Analysis Improvements
135135
~~~~~~~~~~~~~~~~~~~~~~~~~~~
136136

137-
Java
138-
""""
137+
Java/Kotlin
138+
"""""""""""
139139

140140
* Added a flow step for :code:`String.valueOf` calls on tainted :code:`android.text.Editable` objects.
141141

@@ -162,8 +162,8 @@ Golang
162162

163163
* The :code:`BarrierGuard` class has been deprecated. Such barriers and sanitizers can now instead be created using the new :code:`BarrierGuard` parameterized module.
164164

165-
Java
166-
""""
165+
Java/Kotlin
166+
"""""""""""
167167

168168
* The :code:`BarrierGuard` class has been deprecated. Such barriers and sanitizers can now instead be created using the new :code:`BarrierGuard` parameterized module.
169169

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.10.1.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ C#
4040

4141
* Contextual queries and the query libraries they depend on have been moved to the :code:`codeql/csharp-all` package.
4242

43-
Java
44-
""""
43+
Java/Kotlin
44+
"""""""""""
4545

4646
* Contextual queries and the query libraries they depend on have been moved to the :code:`codeql/java-all` package.
4747

@@ -63,8 +63,8 @@ Ruby
6363
New Queries
6464
~~~~~~~~~~~
6565

66-
Java
67-
""""
66+
Java/Kotlin
67+
"""""""""""
6868

6969
* A new query "Improper verification of intent by broadcast receiver" (:code:`java/improper-intent-verification`) has been added.
7070
This query finds instances of Android :code:`BroadcastReceiver`\ s that don't verify the action string of received intents when registered to receive system intents.
@@ -80,8 +80,8 @@ C/C++
8080

8181
* :code:`AnalysedExpr::isNullCheck` and :code:`AnalysedExpr::isValidCheck` have been updated to handle variable accesses on the left-hand side of the C++ logical "and", and variable declarations in conditions.
8282

83-
Java
84-
""""
83+
Java/Kotlin
84+
"""""""""""
8585

8686
* Added data-flow models for :code:`java.util.Properties`. Additional results may be found where relevant data is stored in and then retrieved from a :code:`Properties` instance.
8787
* Added :code:`Modifier.isInline()`.
@@ -126,7 +126,7 @@ Python
126126
New Features
127127
~~~~~~~~~~~~
128128

129-
Java
130-
""""
129+
Java/Kotlin
130+
"""""""""""
131131

132132
* Added an :code:`ErrorType` class. An instance of this class will be used if an extractor is unable to extract a type, or if an up/downgrade script is unable to provide a type.

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.10.2.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ C/C++
8484
Minor Analysis Improvements
8585
~~~~~~~~~~~~~~~~~~~~~~~~~~~
8686

87-
Java
88-
""""
87+
Java/Kotlin
88+
"""""""""""
8989

9090
* The JUnit5 version of :code:`AssertNotNull` is now recognized, which removes related false positives in the nullness queries.
9191
* Added data flow models for :code:`java.util.Scanner`.
@@ -99,7 +99,7 @@ Ruby
9999
New Features
100100
~~~~~~~~~~~~
101101

102-
Java
103-
""""
102+
Java/Kotlin
103+
"""""""""""
104104

105105
* The QL predicate :code:`Expr::getUnderlyingExpr` has been added. It can be used to look through casts and not-null expressions and obtain the underlying expression to which they apply.

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.10.3.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Query Packs
3737
Major Analysis Improvements
3838
~~~~~~~~~~~~~~~~~~~~~~~~~~~
3939

40-
Java
41-
""""
40+
Java/Kotlin
41+
"""""""""""
4242

4343
* The query :code:`java/sensitive-log` has been improved to no longer report results that are effectively duplicates due to one source flowing to another source.
4444

@@ -55,16 +55,16 @@ Golang
5555

5656
* The query :code:`go/path-injection` no longer considers user-controlled numeric or boolean-typed data as potentially dangerous.
5757

58-
Java
59-
""""
58+
Java/Kotlin
59+
"""""""""""
6060

6161
* The query :code:`java/path-injection` now recognises vulnerable APIs defined using the :code:`SinkModelCsv` class with the :code:`create-file` type. Out of the box this includes Apache Commons-IO functions, as well as any user-defined sinks.
6262

6363
New Queries
6464
~~~~~~~~~~~
6565

66-
Java
67-
""""
66+
Java/Kotlin
67+
"""""""""""
6868

6969
* A new query "Android :code:`WebView` that accepts all certificates" (:code:`java/improper-webview-certificate-validation`) has been added. This query finds implementations of :code:`WebViewClient`\ s that accept all certificates in the case of an SSL error.
7070

@@ -82,8 +82,8 @@ C/C++
8282
Minor Analysis Improvements
8383
~~~~~~~~~~~~~~~~~~~~~~~~~~~
8484

85-
Java
86-
""""
85+
Java/Kotlin
86+
"""""""""""
8787

8888
* Improved analysis of the Android class :code:`AsyncTask` so that data can properly flow through its methods according to the life-cycle steps described here: https://developer.android.com/reference/android/os/AsyncTask#the-4-steps.
8989
* Added a data-flow model for the :code:`setProperty` method of :code:`java.util.Properties`. Additional results may be found where relevant data is stored in and then retrieved from a :code:`Properties` instance.

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.10.4.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ C#
4040
* Added better support for the SQLite framework in the SQL injection query.
4141
* File streams are now considered stored flow sources. For example, reading query elements from a file can lead to a Second Order SQL injection alert.
4242

43-
Java
44-
""""
43+
Java/Kotlin
44+
"""""""""""
4545

4646
* The query :code:`java/static-initialization-vector` no longer requires a :code:`Cipher` object to be initialized with :code:`ENCRYPT_MODE` to be considered a valid sink. Also, several new sanitizers were added.
4747
* Improved sanitizers for :code:`java/sensitive-log`, which removes some false positives and improves performance a bit.
4848

4949
New Queries
5050
~~~~~~~~~~~
5151

52-
Java
53-
""""
52+
Java/Kotlin
53+
"""""""""""
5454

5555
* Added a new query, :code:`java/android/implicitly-exported-component`, to detect if components are implicitly exported in the Android manifest.
5656
* A new query "Use of RSA algorithm without OAEP" (:code:`java/rsa-without-oaep`) has been added. This query finds uses of RSA encryption that don't use the OAEP scheme.
@@ -84,8 +84,8 @@ Ruby
8484
Query Metadata Changes
8585
~~~~~~~~~~~~~~~~~~~~~~
8686

87-
Java
88-
""""
87+
Java/Kotlin
88+
"""""""""""
8989

9090
* The queries :code:`java/redos` and :code:`java/polynomial-redos` now have a tag for CWE-1333.
9191

@@ -121,8 +121,8 @@ Golang
121121
* Fixed data-flow to captured variable references.
122122
* We now assume that if a channel-typed field is only referred to twice in the user codebase, once in a send operation and once in a receive, then data flows from the send to the receive statement. This enables finding some cross-goroutine flow.
123123

124-
Java
125-
""""
124+
Java/Kotlin
125+
"""""""""""
126126

127127
* Added new flow steps for the classes :code:`java.nio.file.Path` and :code:`java.nio.file.Paths`.
128128
* The class :code:`AndroidFragment` now also models the Android Jetpack version of the :code:`Fragment` class (:code:`androidx.fragment.app.Fragment`).
@@ -161,8 +161,8 @@ C#
161161
* Many classes/predicates/modules with upper-case acronyms in their name have been renamed to follow our style-guide.
162162
The old name still exists as a deprecated alias.
163163

164-
Java
165-
""""
164+
Java/Kotlin
165+
"""""""""""
166166

167167
* Many classes/predicates/modules with upper-case acronyms in their name have been renamed to follow our style-guide.
168168
The old name still exists as a deprecated alias.
@@ -204,8 +204,8 @@ C/C++
204204
* Added support for getting the link targets of global and namespace variables.
205205
* Added a :code:`BlockAssignExpr` class, which models a :code:`memcpy`\ -like operation used in compiler generated copy/move constructors and assignment operations.
206206

207-
Java
208-
""""
207+
Java/Kotlin
208+
"""""""""""
209209

210210
* Added a new predicate, :code:`requiresPermissions`, in the :code:`AndroidComponentXmlElement` and :code:`AndroidApplicationXmlElement` classes to detect if the element has explicitly set a value for its :code:`android:permission` attribute.
211211
* Added a new predicate, :code:`hasAnIntentFilterElement`, in the :code:`AndroidComponentXmlElement` class to detect if a component contains an intent filter element.

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.11.0.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Golang
6060

6161
* The alert message of many queries have been changed to make the message consistent with other languages.
6262

63-
Java
64-
""""
63+
Java/Kotlin
64+
"""""""""""
6565

6666
* The Java extractor now populates the :code:`Method` relating to a :code:`MethodAccess` consistently for calls using an explicit and implicit :code:`this` qualifier. Previously if the method :code:`foo` was inherited from a specialised generic type :code:`ParentType<String>`, then an explicit call :code:`this.foo()` would yield a :code:`MethodAccess` whose :code:`getMethod()` accessor returned the bound method :code:`ParentType<String>.foo`, whereas an implicitly-qualified :code:`foo()` :code:`MethodAccess`\ 's :code:`getMethod()` would return the unbound method :code:`ParentType.foo`. Now both scenarios produce a bound method. This means that all data-flow queries may return more results where a relevant path transits a call to such an implicitly-qualified call to a member method with a bound generic type, while queries that inspect the result of :code:`MethodAccess.getMethod()` may need to tolerate bound generic methods in more circumstances. The queries :code:`java/iterator-remove-failure`, :code:`java/non-static-nested-class`, :code:`java/internal-representation-exposure`, :code:`java/subtle-inherited-call` and :code:`java/deprecated-call` have been amended to properly handle calls to bound generic methods, and in some instances may now produce more results in the explicit-\ :code:`this` case as well.
6767
* Added taint model for arguments of :code:`java.net.URI` constructors to the queries :code:`java/path-injection` and :code:`java/path-injection-local`.
@@ -94,8 +94,8 @@ C/C++
9494

9595
* Added a new medium-precision query, :code:`cpp/missing-check-scanf`, which detects :code:`scanf` output variables that are used without a proper return-value check to see that they were actually written. A variation of this query was originally contributed as an `experimental query by @ihsinme <https://github.com/github/codeql/pull/8246>`__.
9696

97-
Java
98-
""""
97+
Java/Kotlin
98+
"""""""""""
9999

100100
* The query "Server-side template injection" (:code:`java/server-side-template-injection`) has been promoted from experimental to the main query pack. This query was originally `submitted as an experimental query by @porcupineyhairs <https://github.com/github/codeql/pull/5935>`__.
101101
* Added a new query, :code:`java/android/backup-enabled`, to detect if Android applications allow backups.
@@ -113,8 +113,8 @@ Golang
113113

114114
* Added the :code:`security-severity` tag and CWE tag to the :code:`go/insecure-hostkeycallback` query.
115115

116-
Java
117-
""""
116+
Java/Kotlin
117+
"""""""""""
118118

119119
* Removed the :code:`@security-severity` tag from several queries not in the :code:`Security/` folder that also had missing :code:`security` tags.
120120

@@ -139,8 +139,8 @@ C#
139139

140140
* Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states.
141141

142-
Java
143-
""""
142+
Java/Kotlin
143+
"""""""""""
144144

145145
* Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states.
146146

@@ -157,8 +157,8 @@ Ruby
157157
Breaking Changes
158158
~~~~~~~~~~~~~~~~
159159

160-
Java
161-
""""
160+
Java/Kotlin
161+
"""""""""""
162162

163163
* The :code:`Member.getQualifiedName()` predicate result now includes the qualified name of the declaring type.
164164

@@ -229,8 +229,8 @@ Ruby
229229
Major Analysis Improvements
230230
~~~~~~~~~~~~~~~~~~~~~~~~~~~
231231

232-
Java
233-
""""
232+
Java/Kotlin
233+
"""""""""""
234234

235235
* The virtual dispatch relation used in data flow now favors summary models over source code for dispatch to interface methods from :code:`java.util` unless there is evidence that a specific source implementation is reachable. This should provide increased precision for any projects that include, for example, custom :code:`List` or :code:`Map` implementations.
236236

@@ -242,8 +242,8 @@ JavaScript/TypeScript
242242
Minor Analysis Improvements
243243
~~~~~~~~~~~~~~~~~~~~~~~~~~~
244244

245-
Java
246-
""""
245+
Java/Kotlin
246+
"""""""""""
247247

248248
* Added new sinks to the query :code:`java/android/implicit-pendingintents` to take into account the classes :code:`androidx.core.app.NotificationManagerCompat` and :code:`androidx.core.app.AlarmManagerCompat`.
249249
* Added new flow steps for :code:`androidx.core.app.NotificationCompat` and its inner classes.
@@ -300,8 +300,8 @@ Golang
300300
* Some classes/modules with upper-case acronyms in their name have been renamed to follow our style-guide.
301301
The old name still exists as a deprecated alias.
302302

303-
Java
304-
""""
303+
Java/Kotlin
304+
"""""""""""
305305

306306
* The predicate :code:`Annotation.getAValue()` has been deprecated because it might lead to obtaining the value of the wrong annotation element by accident. :code:`getValue(string)` (or one of the value type specific predicates) should be used to explicitly specify the name of the annotation element.
307307
* The predicate :code:`Annotation.getAValue(string)` has been renamed to :code:`getAnArrayValue(string)`.
@@ -335,8 +335,8 @@ C/C++
335335

336336
* Added subclasses of :code:`BuiltInOperations` for :code:`__is_same`, :code:`__is_function`, :code:`__is_layout_compatible`, :code:`__is_pointer_interconvertible_base_of`, :code:`__is_array`, :code:`__array_rank`, :code:`__array_extent`, :code:`__is_arithmetic`, :code:`__is_complete_type`, :code:`__is_compound`, :code:`__is_const`, :code:`__is_floating_point`, :code:`__is_fundamental`, :code:`__is_integral`, :code:`__is_lvalue_reference`, :code:`__is_member_function_pointer`, :code:`__is_member_object_pointer`, :code:`__is_member_pointer`, :code:`__is_object`, :code:`__is_pointer`, :code:`__is_reference`, :code:`__is_rvalue_reference`, :code:`__is_scalar`, :code:`__is_signed`, :code:`__is_unsigned`, :code:`__is_void`, and :code:`__is_volatile`.
337337

338-
Java
339-
""""
338+
Java/Kotlin
339+
"""""""""""
340340

341341
* Added a new predicate, :code:`allowsBackup`, in the :code:`AndroidApplicationXmlElement` class. This predicate detects if the application element does not disable the :code:`android:allowBackup` attribute.
342342
* The predicates of the CodeQL class :code:`Annotation` have been improved:

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.11.1.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ C#
6363

6464
* The alert message of many queries have been changed to better follow the style guide and make the message consistent with other languages.
6565

66-
Java
67-
""""
66+
Java/Kotlin
67+
"""""""""""
6868

6969
* The alert message of many queries have been changed to better follow the style guide and make the message consistent with other languages.
7070
* :code:`PathSanitizer.qll` has been promoted from experimental to the main query pack. This sanitizer was originally `submitted as part of an experimental query by @luchua-bc <https://github.com/github/codeql/pull/7286>`__.
@@ -81,8 +81,8 @@ Ruby
8181
New Queries
8282
~~~~~~~~~~~
8383

84-
Java
85-
""""
84+
Java/Kotlin
85+
"""""""""""
8686

8787
* Added a new query, :code:`java/android/webview-debugging-enabled`, to detect instances of WebView debugging being enabled in production builds.
8888

@@ -103,8 +103,8 @@ Golang
103103

104104
* Added support for :code:`BeegoInput.RequestBody` as a source of untrusted data.
105105

106-
Java
107-
""""
106+
Java/Kotlin
107+
"""""""""""
108108

109109
* Added external flow sources for the intents received in exported Android services.
110110

docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.11.2.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ C/C++
114114

115115
* Added a new medium-precision query, :code:`cpp/comma-before-misleading-indentation`, which detects instances of whitespace that have readability issues.
116116

117-
Java
118-
""""
117+
Java/Kotlin
118+
"""""""""""
119119

120120
* Added a new query, :code:`java/android/incomplete-provider-permissions`, to detect if an Android ContentProvider is not protected with a correct set of permissions.
121121
* A new query "Uncontrolled data used in content resolution" (:code:`java/androd/unsafe-content-uri-resolution`) has been added. This query finds paths from user-provided data to URI resolution operations in Android's :code:`ContentResolver` without previous validation or sanitization.
@@ -132,8 +132,8 @@ Language Libraries
132132
Minor Analysis Improvements
133133
~~~~~~~~~~~~~~~~~~~~~~~~~~~
134134

135-
Java
136-
""""
135+
Java/Kotlin
136+
"""""""""""
137137

138138
* Added support for common patterns involving :code:`Stream.collect` and common collectors like :code:`Collectors.toList()`.
139139
* The class :code:`TypeVariable` now also extends :code:`Modifiable`.
@@ -161,15 +161,15 @@ Ruby
161161
Deprecated APIs
162162
~~~~~~~~~~~~~~~
163163

164-
Java
165-
""""
164+
Java/Kotlin
165+
"""""""""""
166166

167167
* Deprecated :code:`ContextStartActivityMethod`. Use :code:`StartActivityMethod` instead.
168168

169169
New Features
170170
~~~~~~~~~~~~
171171

172-
Java
173-
""""
172+
Java/Kotlin
173+
"""""""""""
174174

175175
* Added a new predicate, :code:`hasIncompletePermissions`, in the :code:`AndroidProviderXmlElement` class. This predicate detects if a provider element does not provide both read and write permissions.

0 commit comments

Comments
 (0)