Skip to content

Commit e97d88c

Browse files
committed
Python: Finalise change notes for 1.24.
1 parent 1ecfa2e commit e97d88c

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

change-notes/1.24/analysis-python.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,31 @@ The following changes in version 1.24 affect Python analysis in all applications
44

55
## General improvements
66

7-
Support for Django version 2.x and 3.x
7+
- Support for Django version 2.x and 3.x
88

9-
## New queries
9+
- Taint tracking now correctly tracks taint in destructuring assignments. For example, if `tainted_list` is a list of tainted tainted elements, then
10+
```python
11+
head, *tail = tainted_list
12+
```
13+
will result in `tail` being tainted with the same taint as `tainted_list`, and `head` being tainted with the taint of the elements of `tainted_list`.
14+
15+
- A large number of libraries and queries have been moved to the new `Value` API, which should result in more precise results.
16+
17+
- The `Value` API has been extended in various ways:
18+
- A new `StringValue` class has been added, for tracking string literals.
19+
- Values now have a `booleanValue` method which returns the boolean interpretation of the given value.
20+
- Built-in methods for which the return type is not fixed are now modeled as returning an unknown value by default.
1021

11-
| **Query** | **Tags** | **Purpose** |
12-
|-----------------------------|-----------|--------------------------------------------------------------------|
1322

1423
## Changes to existing queries
1524

1625
| **Query** | **Expected impact** | **Change** |
1726
|----------------------------|------------------------|------------------------------------------------------------------|
18-
| Uncontrolled command line (`py/command-line-injection`) | More results | We now model the `fabric` and `invoke` pacakges for command execution. |
27+
| Arbitrary file write during tarfile extraction (`py/tarslip`) | Fewer false negatives | Negations are now handled correctly in conditionals that may sanitize tainted values. |
28+
| First parameter of a method is not named 'self' (`py/not-named-self`) | Fewer false positives | `__class_getitem__` is now recognized as a class method. |
29+
| Import of deprecated module (`py/import-deprecated-module) | Fewer false positives | Deprecated modules used for backwards compatibility are no longer reported.|
30+
| Module imports itself (`py/import-own-module`) | Fewer false positives | Imports local to a given package are no longer classified as self-imports. |
31+
| Uncontrolled command line (`py/command-line-injection`) | More results | We now model the `fabric` and `invoke` packages for command execution. |
1932
2033
### Web framework support
2134
@@ -38,3 +51,6 @@ queries:
3851
- py/stack-trace-exposure
3952
4053
## Changes to libraries
54+
### Taint tracking
55+
- The `urlsplit` and `urlparse` functions now propagate taint appropriately.
56+
- HTTP requests using the `requests` library are now modeled.

0 commit comments

Comments
 (0)