github-actions[bot]
9549e22871
Post-release preparation for codeql-cli-2.17.2
2024-05-02 19:58:53 +00:00
Henry Mercer
8e251ee54f
Merge pull request #16363 from github/release-prep/2.17.2
...
Release preparation for version 2.17.2
2024-04-30 11:29:06 +01:00
github-actions[bot]
5228d94d42
Release preparation for version 2.17.2
2024-04-30 10:25:51 +00:00
Geoffrey White
7d9f78b2de
Merge pull request #16328 from geoffw0/pathinj
...
C++: Reduce duplication from cpp/path-injection
2024-04-30 10:06:40 +01:00
Erik Krogh Kristensen
7e839792da
Merge pull request #16330 from erik-krogh/del-deps-apr-2024
...
All: delete outdated deprecations
2024-04-30 10:43:39 +02:00
Paolo Tranquilli
98106f31c1
Merge pull request #16358 from github/redsun82/registry-override
...
Bazel: add empty registry override
2024-04-30 09:09:46 +02:00
Paolo Tranquilli
a28f87fff0
Bazel: add empty registry override
...
This will unblock work in parallel on two separate PRs that require
patching different modules.
2024-04-29 18:01:09 +02:00
Harry Maclean
607ed2efb4
Merge pull request #16354 from hmac/hmac-incomplete-hostname-fp
...
Ruby: Reduce FPs for rb/incomplete-hostname-regexp
2024-04-29 14:40:44 +01:00
Michael Nebel
a304e2d8d6
Merge pull request #16248 from michaelnebel/csharp/groupsprojectbeforerestore
...
C#: Restore projects and collect dependencies for projects in the same folder sequentially.
2024-04-29 14:05:40 +02:00
yoff
1c611fecde
Merge pull request #16155 from yoff/python/MaD-method-arg-tests
2024-04-29 12:59:57 +02:00
Harry Maclean
51bc8e917e
Ruby: Reduce FPs for rb/incomplete-hostname-regexp
...
Arguments in calls to `match[?]` should only be considered regular
expression interpretations if the `match` refers to the standard library
method, not a method in source code.
2024-04-29 11:19:34 +01:00
Harry Maclean
8ccedd658a
Merge pull request #16349 from hmac/hmac-uri-open
...
Ruby: Add URI.open example to rb/kernel-open qhelp
2024-04-29 09:42:39 +01:00
Michael Nebel
d62e888b86
C#: Code quality improvements.
2024-04-29 09:27:12 +02:00
Harry Maclean
8b23f6db10
Ruby: Add URI.open example to rb/kernel-open qhelp
2024-04-27 09:53:54 +01:00
Mathias Vorreiter Pedersen
3c2206728d
Merge pull request #16333 from MathiasVP/fix-guards-on-pointers
2024-04-26 21:33:08 +01:00
Jeroen Ketema
8c87cb83bb
Merge pull request #16342 from jketema/destructors-cleanup
...
C++: Don't emit destructor calls as part of 'TranslatedResultCopy' as this has already been done in some other 'TranslatedExpr'.
2024-04-26 22:05:00 +02:00
Mathias Vorreiter Pedersen
c9ce642e7a
Merge pull request #16339 from MathiasVP/one-less-stage
...
C++: Remove a stage by properly caching `getResultIRType`
2024-04-26 16:52:16 +01:00
Mathias Vorreiter Pedersen
d18cdee0bc
C++: Accept test changes.
2024-04-26 16:19:33 +01:00
Mathias Vorreiter Pedersen
b78537dd74
C++: Allow comparisons with pointer types in IRGuards.
2024-04-26 16:19:24 +01:00
Mathias Vorreiter Pedersen
e78091e9d0
C++: Sync identical files.
2024-04-26 16:19:02 +01:00
Mathias Vorreiter Pedersen
c10e00d389
C++: Add a subclass for constant instructions with pointer type.
2024-04-26 16:18:52 +01:00
Mathias Vorreiter Pedersen
bf61114284
C++: Add a test with pointer comparisons and float comparisons.
2024-04-26 16:17:45 +01:00
erik-krogh
800d7546fa
change all the change-notes to breaking
2024-04-26 17:17:23 +02:00
Mathias Vorreiter Pedersen
d6c57de650
C++: Convert one of the tests to also test the 'absolute' versions of the GuardCondition predicates.
2024-04-26 16:11:19 +01:00
Mathias Vorreiter Pedersen
6147a38bea
Merge pull request #16337 from MathiasVP/cache-second-level-scope
...
DataFlow: Cache `getSecondLevelScope`
2024-04-26 15:49:11 +01:00
Jeroen Ketema
67fb866efa
C++: Update test results
2024-04-26 16:38:39 +02:00
Mathias Vorreiter Pedersen
4b0a217420
C++: Don't emit destructor calls as part of 'TranslatedResultCopy' as this has already been done in some other 'TranslatedExpr'.
2024-04-26 16:25:05 +02:00
Tamás Vajk
a707e14495
Merge pull request #16338 from tamasvajk/buildless/extractor-timing
...
C#: Store buildless extraction timing information and return in telem…
2024-04-26 15:59:01 +02:00
Tamas Vajk
1d45e3a558
C#: Store buildless extraction timing information and return in telemetry query
2024-04-26 14:59:31 +02:00
Mathias Vorreiter Pedersen
70e9c48a47
C++: Also implement the predicate in the raw stage.
2024-04-26 13:48:13 +01:00
Mathias Vorreiter Pedersen
dcc4ad2550
C++: Sync identical files.
2024-04-26 13:45:15 +01:00
Mathias Vorreiter Pedersen
54cadcfe9b
C++: Forward to a cached predicate in a cached module instead of caching the predicate in 'Instruction.qll' to include it in the cached stage of the other predicates.
2024-04-26 13:44:45 +01:00
Rasmus Lerchedahl Petersen
3716b8c6a0
Python: update test to reflect correct behaviour
...
also add comments
2024-04-26 14:21:15 +02:00
Rasmus Lerchedahl Petersen
9f7edf378e
Python: fix tests
...
The way to expose the `self` arguemnt
is to call an instance method on the class,
not on the instance...
2024-04-26 14:21:15 +02:00
Rasmus Lerchedahl Petersen
4f46ce1133
Python: add test for Argument[0, self, self:] for instance methods
2024-04-26 14:21:15 +02:00
Mathias Vorreiter Pedersen
2482519cd3
DataFlow: Cached second level scope.
2024-04-26 13:09:59 +01:00
Asger F
e44d4c45aa
Merge pull request #16323 from asgerf/js/expose-internal-module-naming
...
JS: Expose InternalModuleNaming
2024-04-26 13:57:26 +02:00
erik-krogh
14d88eb3ce
add change-notes
2024-04-26 12:56:28 +02:00
erik-krogh
0468c5d0bf
delete some tests of the old GVN library
2024-04-26 07:58:35 +02:00
erik-krogh
e55f2c5309
reinroduce GLobalValueNumbering.qll, that one was supposed to stay
2024-04-26 06:52:57 +02:00
erik-krogh
fb376a1cfd
revert the deletion of explorationLimit. It'll be deleted along with the entire class later
2024-04-25 22:31:11 +02:00
erik-krogh
baa31e1469
delete outdated deprecations
2024-04-25 22:19:28 +02:00
Jeroen Ketema
8d962a5c28
Merge pull request #16322 from jketema/child-stmt
...
C++: Print destructors for children of statements that are again statements
2024-04-25 22:17:35 +02:00
Jeroen Ketema
389df35fb7
Merge branch 'main' into child-stmt
2024-04-25 21:47:06 +02:00
Geoffrey White
aa80dd41da
Merge pull request #16329 from geoffw0/multibyte
...
C++: Fix typo.
2024-04-25 17:26:40 +01:00
Geoffrey White
553871678a
C++: Change note.
2024-04-25 16:52:01 +01:00
Geoffrey White
15123a7b40
C++: Reduce duplication.
2024-04-25 16:49:22 +01:00
Geoffrey White
bbd80ec7a4
C++: Add some more test cases.
2024-04-25 16:44:52 +01:00
Florin Coada
1d421b3b28
Merge pull request #16326 from github/changedocs/2.17.1
...
Update codeql-changelog index.rst to include codeql-cli-2.17.1
2024-04-25 16:08:41 +01:00
Michael B. Gale
a87b991d78
Merge pull request #16325 from github/mbg/go/use-parse-instead-of-parselax
2024-04-25 15:20:36 +01:00
Geoffrey White
0fb71e24cb
C++: Fix typo.
2024-04-25 14:52:56 +01:00
Florin Coada
14d04903dc
Update codeql-changelog index.rst to include codeql-cli-2.17.1
2024-04-25 14:40:44 +01:00
Michael Nebel
181a063bb9
C#: Update expected test output.
2024-04-25 15:38:39 +02:00
Michael Nebel
131d0b911f
C#: Inline dependency collection from asset files per group.
2024-04-25 15:35:08 +02:00
Michael Nebel
0124b0749f
C#: Do not run dotnet restore in parallel for projects in the same folder.
2024-04-25 15:35:07 +02:00
Michael Nebel
6daf80cdd0
C#: Add integration test with multiple project files that have disjoint dependencies.
2024-04-25 15:35:07 +02:00
Tamás Vajk
9c139b591f
Merge pull request #16321 from tamasvajk/buildless/log-messages
...
C#: Improve log messages
2024-04-25 15:12:37 +02:00
Michael B. Gale
b8cfff6d19
Go: Use Parse instead of ParseLax, since we need toolchain directives
2024-04-25 14:10:26 +01:00
Michael B. Gale
f33d7ee80d
Go: Add unit tests for hasInvalidToolchainVersion
2024-04-25 14:09:47 +01:00
Michael B. Gale
15a6308c72
Go: Refactor condition for EmitInvalidToolchainVersion into separate function
2024-04-25 14:04:00 +01:00
Tamas Vajk
dd9183c345
Code quality improvements
2024-04-25 14:38:26 +02:00
Asger F
d0c9e3f7ad
JS: Expose InternalModuleNaming
2024-04-25 13:33:17 +02:00
Asger F
9082972842
Merge pull request #16061 from RasmusWL/js-extractor-fix
...
JS: More robust CommonJS/ES2015 detection logic for extractor
2024-04-25 13:26:56 +02:00
Jeroen Ketema
05819a52ef
C++: Print destructors for children of statements that are again statements
2024-04-25 13:25:42 +02:00
Nick Rolfe
116873c9b0
Merge pull request #16314 from github/nickrolfe/rb-sensitive
...
Ruby: do fewer regexp matches in SensitiveActions
2024-04-25 11:56:41 +01:00
Rasmus Wriedt Larsen
290b0fc4ab
Merge pull request #16308 from asgerf/js/model-generation-quote
...
JS: Fix naming issue in generated models
2024-04-25 11:36:36 +02:00
Paolo Tranquilli
332d118d93
Merge pull request #16315 from github/redsun82/buildifier
...
Bazel: introduce buildifier formatting
2024-04-25 10:48:18 +02:00
Owen Mansel-Chan
82bbecc9c4
Merge pull request #16307 from owen-mc/go/fix/incomplete-hostname-regex
...
Go: fix flow through string concatenation in `go/incomplete-hostname-regex`
2024-04-25 09:43:51 +01:00
Tamas Vajk
15c1fd9425
C#: Improve log messages
2024-04-25 10:39:53 +02:00
Rasmus Wriedt Larsen
13ff9412a4
Merge pull request #16252 from RasmusWL/move-dataflow-tests
...
Python: Move dataflow tests out of experimental
2024-04-25 10:05:06 +02:00
Jeroen Ketema
9d24b5afa6
Merge pull request #16319 from jketema/ir-comment-fix
...
C++: Fix comment in IR test
2024-04-25 09:59:58 +02:00
Jeroen Ketema
95ec4e8d26
C++: Fix comment in IR test
2024-04-24 21:47:47 +02:00
Tom Hvitved
17e0cc5648
Merge pull request #16313 from hvitved/dataflow/fix-bad-join3
...
Data flow: Fix bad join
2024-04-24 17:09:14 +02:00
Paolo Tranquilli
196b6d7a1d
CI: simplify reporting
2024-04-24 16:43:38 +02:00
Paolo Tranquilli
9def57250d
CI: make reporting better
2024-04-24 16:35:50 +02:00
Paolo Tranquilli
9af9873e04
CI: add names to steps
2024-04-24 16:20:54 +02:00
Paolo Tranquilli
9f5782b67b
Bazel: introduce buildifier formatting
...
This introduces tooling and enforcement for formatting bazel files.
The tooling is provided as a bazel run target from
[keith/buildifier-prebuilt](https://github.com/keith/buildifier-prebuilt ).
This is used in a [`pre-commit`](https://pre-commit.com/ ) hook for those
having that installed. In turn this is used in a CI check. Relying on a
`pre-commit` action gives us easy checking that buildifying did not
change anything in the files and printing the diff, without having to
hand-roll the check ourselves.
This enforcement will make usage of gazelle easier, as gazelle itself
might reformat files, even outside of `go`. Having them properly
formatted will allow gazelle to leave them unchanged, without needing
to configure awkward exclude directives.
2024-04-24 15:49:48 +02:00
Owen Mansel-Chan
c61177cf42
Add change note
2024-04-24 14:21:59 +01:00
Owen Mansel-Chan
4140942479
Update tests
2024-04-24 14:19:33 +01:00
Owen Mansel-Chan
fd306ed79b
Exclude constant names from sources to avoid duplicate results
2024-04-24 14:19:30 +01:00
Owen Mansel-Chan
8962307291
Add second good go file to tests
2024-04-24 14:19:29 +01:00
Owen Mansel-Chan
0000c72329
Remove attempt at avoiding duplicate alerts
2024-04-24 14:19:26 +01:00
Owen Mansel-Chan
3ef7a0932a
Add flow through string concatenation
2024-04-24 14:19:25 +01:00
Tamás Vajk
f29d2c21bd
Merge pull request #16312 from tamasvajk/fix/buildless/file-lookup
...
C#: Fix `global.json` and `packages.config` lookup
2024-04-24 15:05:55 +02:00
Tamás Vajk
3b44b131b9
Merge pull request #16311 from tamasvajk/fix/resx
...
C#: Do not download `Microsoft.CodeAnalysis.ResxSourceGenerator` when…
2024-04-24 13:49:55 +02:00
Tamas Vajk
4a97f95890
Improve code quality
2024-04-24 13:47:25 +02:00
Tamás Vajk
84ea3a9a2c
Merge pull request #16310 from tamasvajk/buildless/nuget_versions
...
C#: Add integration test with multiple versions of the same nuget pac…
2024-04-24 13:33:27 +02:00
Nick Rolfe
8f2e51faa6
Ruby: do fewer regexp matches in SensitiveActions
2024-04-24 12:32:49 +01:00
Owen Mansel-Chan
f828f8ea65
Merge pull request #16250 from owen-mc/go/rename-untrusted-flow-source
...
Go: Rename `UntrustedFlowSource` to `RemoteFlowSource` to match other language libraries
2024-04-24 11:37:00 +01:00
Tom Hvitved
95d579d9de
Data flow: Fix bad join
...
```
Evaluated relational algebra for predicate _DataFlowImpl::Impl<HardcodedDataInterpretedAsCodeQuery::HardcodedDataInterpretedAsCodeFlow::C>::ret__#count_range@d112335l with tuple counts:
285176 ~2% {3} r1 = SCAN `_DataFlowDispatch::DataFlowCall.getEnclosingCallable/0#dispred#b7b78b19_DataFlowImpl::Impl<Hardcoded__#shared` OUTPUT In.1, In.0, In.2
3265592261 ~3% {5} | JOIN WITH `DataFlowImpl::Impl<HardcodedDataInterpretedAsCodeQuery::HardcodedDataInterpretedAsCodeFlow::C>::returnCallEdge1/4#d02cae42_2301#join_rhs` ON FIRST 2 OUTPUT Lhs.0, Lhs.2, Rhs.2, Lhs.1, Rhs.3
39070 ~8% {6} | JOIN WITH `DataFlowImplCommon::Cached::viableImplInCallContextExt/2#58e931ad` ON FIRST 3 OUTPUT Lhs.0, Lhs.3, Lhs.1, Lhs.2, Lhs.4, _
39070 ~0% {6} | REWRITE WITH Out.5 := 1
return r1
```
2024-04-24 12:22:28 +02:00
Tamas Vajk
f3daba510b
C#: Fix global.json and packages.config lookup
2024-04-24 11:57:45 +02:00
Tamas Vajk
88e67715a1
C#: Do not download Microsoft.CodeAnalysis.ResxSourceGenerator when there are no resx files to process
2024-04-24 11:53:29 +02:00
Tamas Vajk
53eb753346
C#: Add integration test with multiple versions of the same nuget package
2024-04-24 11:50:43 +02:00
Mathias Vorreiter Pedersen
037114b336
Merge pull request #16309 from geoffw0/newtests
...
C++: Add test cases
2024-04-24 10:06:51 +01:00
Nick Rolfe
af72c0848e
Merge pull request #16306 from github/nickrolfe/js-sensitive
...
JS: do fewer regexp matches in SensitiveActions
2024-04-24 09:49:44 +01:00
Tamás Vajk
de58ee5a22
Merge pull request #16225 from tamasvajk/buildless/resx
...
C#: Add resource generator
2024-04-24 10:10:45 +02:00
Tom Hvitved
a1a93c7331
Merge pull request #16304 from hvitved/csharp/fix-bad-join
...
C#: Fix a bad join
2024-04-24 08:11:25 +02:00
Asger F
db07c162e4
JS: Allow generated models to use (package)
2024-04-23 20:25:55 +02:00
Asger F
9d00f660f1
Update ModelGeneration.expected
2024-04-23 20:08:21 +02:00
Owen Mansel-Chan
0311888fd4
Update change note
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2024-04-23 19:07:02 +01:00
Asger F
e4f23b31c6
JS: Add quotes around package name to correct parsing
2024-04-23 20:04:23 +02:00
Geoffrey White
57a53891e9
C++: Effect of recent QL changes.
2024-04-23 18:12:05 +01:00
Geoffrey White
b6703bc25c
C++: Add test cases inspired by QA results differences.
2024-04-23 18:06:12 +01:00
Nick Rolfe
003d208574
JS: do fewer regexp matches in SensitiveActions
2024-04-23 15:31:38 +01:00
Tom Hvitved
d8d7688f88
C#: Fix another bad join
2024-04-23 15:39:59 +02:00
Mathias Vorreiter Pedersen
3592e76269
Merge pull request #16302 from MathiasVP/fieldflowbranchlimit-follow-up-1
...
C++: `fieldFlowBranchLimit` follow-up (1)
2024-04-23 11:35:49 +01:00
Tom Hvitved
6aa4c5c187
C#: Fix a bad join
2024-04-23 11:47:55 +02:00
Michael B. Gale
fb8ee07b43
Merge pull request #16262 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/two-go-mods-not-nested/src/subdir1/golang.org/x/net-0.23.0
2024-04-23 10:44:54 +01:00
Michael B. Gale
4ccff1a630
Merge pull request #16263 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/ninja-sample/src/golang.org/x/net-0.23.0
2024-04-23 10:44:17 +01:00
Michael B. Gale
4b7160d4b2
Merge pull request #16267 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/go-mod-without-version/src/golang.org/x/net-0.23.0
2024-04-23 10:43:43 +01:00
Michael B. Gale
5cce5008a3
Merge pull request #16264 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/single-go-work-not-in-root/src/modules/subdir2/golang.org/x/net-0.23.0
2024-04-23 10:42:53 +01:00
Michael B. Gale
5b6ce56ca2
Merge pull request #16268 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/single-go-mod-not-in-root/src/subdir/golang.org/x/net-0.23.0
2024-04-23 10:42:24 +01:00
Michael B. Gale
2b81b6c323
Merge pull request #16265 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/mixed-layout/src/module/golang.org/x/net-0.23.0
2024-04-23 10:41:50 +01:00
Mathias Vorreiter Pedersen
a39d8b7c7c
C++: Ensure that each node type gets mapped to an instruction by 'getAnInstruction'.
2024-04-23 09:44:30 +01:00
Mathias Vorreiter Pedersen
553c09ada3
Merge pull request #16301 from MathiasVP/proper-coroutine-cfg-support-2
...
C++: Implement proper coroutine support in IR
2024-04-23 09:19:15 +01:00
Anders Schack-Mulligen
b2f09949df
Merge pull request #15599 from aschackmull/dataflow/fieldflowbranchlimit-v2
...
Dataflow: update fieldFlowBranchLimit semantics
2024-04-23 10:08:05 +02:00
Rasmus Wriedt Larsen
1bc085c8f7
Python: Fixup for callGraphConfig
2024-04-23 09:42:35 +02:00
Rasmus Wriedt Larsen
bb00d6919a
Python: Move dataflow TestUtil to importable location
2024-04-23 09:40:59 +02:00
Rasmus Wriedt Larsen
e0e405bb31
Python: replace dataflow-test location in files
2024-04-23 09:40:59 +02:00
Rasmus Wriedt Larsen
ce711f7d2f
Python: Move dataflow tests out of experimental
2024-04-23 09:40:44 +02:00
Rasmus Wriedt Larsen
19974f04c9
Merge pull request #16245 from github/tausbn/python-rename-StrConst-to-StringLiteral
...
Python: Rename `StrConst` to `StringLiteral`
2024-04-23 09:35:24 +02:00
Mathias Vorreiter Pedersen
c1755603a8
Update TranslatedExpr.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2024-04-23 07:25:25 +01:00
Mathias Vorreiter Pedersen
24cf75a37c
C++: Accept test changes.
2024-04-22 21:38:13 +01:00
Mathias Vorreiter Pedersen
8169e7ce68
C++: Add proper translation of 'co_await' and 'co_yield'.
2024-04-22 21:38:13 +01:00
Mathias Vorreiter Pedersen
8383bc1629
C++: Add getters for the other children of 'co_return' and 'co_yield'.
2024-04-22 21:38:13 +01:00
Jeroen Ketema
35d1a9202b
Merge pull request #16298 from jketema/reuse-val
...
C++: Update expected test results after extractor changes
2024-04-22 21:14:42 +02:00
Mathias Vorreiter Pedersen
799c380e5f
Merge pull request #16255 from MathiasVP/fix-more-fps-in-iterator-to-expired-container
...
Fix more FPs in `cpp/iterator-to-expired-container`
2024-04-22 14:25:51 +01:00
Tamas Vajk
f20812d8ad
Code quality improvement
2024-04-22 15:12:01 +02:00
Tamas Vajk
05f3c64172
Fix code review findings
2024-04-22 14:46:24 +02:00
Taus
81246cd41a
Python: Add missing QLDoc for isUnicode
2024-04-22 12:08:53 +00:00
Taus
bab461ffd1
Python: Add change note
2024-04-22 12:00:09 +00:00
Taus
58eaddf627
Python: Update all .expected files
...
I'm beginning to realise why I didn't do the `toString` overriding way
back when. Thankfully, now that all of our tests are in the same place,
this is actually not a terrible ordeal.
2024-04-22 12:00:09 +00:00
Taus
d51fcd4f2a
Python: Change Str to StringLiteral
...
As far as I can tell, this was the only occurrence of `Str` as a type
throughout the entire library.
2024-04-22 12:00:09 +00:00
Taus
b484aee39e
Python: Autoformat everything
...
Of course, `StringLiteral` being much longer than `StrConst` meant a
bunch of files changed formatting.
2024-04-22 12:00:09 +00:00
Taus
1c68c987b0
Python: Change all remaining occurrences of StrConst
...
Done using
```
git grep StrConst | xargs sed -i 's/StrConst/StringLiteral/g'
```
2024-04-22 12:00:09 +00:00
Taus
f6487d7b13
Python: Rename StrConst to StringLiteral
...
Does a few things:
- Renames `StrConst` to `StringLiteral`, and deprecates the former.
- Also deprecates `Str`.
- Adds an override of `StringLiteral::toString` making it output
`"StringLiteral"` rather than the inherited `"Str"`. This ensures that
the AST viewer shows these nodes as the former type, not the latter.
There are a large number of uses of `StrConst` in the codebase. These
will be fixed in a later commit.
2024-04-22 12:00:09 +00:00
Jeroen Ketema
76637b0d03
C++: Update expected test results
2024-04-22 13:01:10 +02:00
Mathias Vorreiter Pedersen
77a7e007e3
Merge branch 'main' into fix-more-fps-in-iterator-to-expired-container
2024-04-22 10:42:06 +01:00
Jeroen Ketema
bea7b94537
Merge pull request #16296 from jketema/test-fix
...
C++: Fix aliased IR test
2024-04-22 11:34:13 +02:00
Jeroen Ketema
19d0d7bbc0
C++: Fix aliased IR test
2024-04-22 11:08:01 +02:00
Jeroen Ketema
c5bdd5bbd7
Merge pull request #16289 from jketema/reuse-improve
...
C++: Improve handling of re-use expressions
2024-04-22 10:34:35 +02:00
Jeroen Ketema
bcde7151e8
C++: Address review comment
2024-04-22 10:23:03 +02:00
Jeroen Ketema
2c76b13451
C++: Improve handling of re-used qualifier in delete expressions
2024-04-21 16:16:24 +02:00
Anders Schack-Mulligen
874d9d14bc
Merge pull request #16290 from aschackmull/java/oscheck-perf
...
Java: Fix join-order.
2024-04-19 16:55:56 +02:00
Mathias Vorreiter Pedersen
bcedf687ff
Merge pull request #16246 from MathiasVP/parameter-nodes-for-functions-without-bodies
...
C++: Add Parameter nodes for functions without bodies
2024-04-19 15:54:38 +01:00
Tom Hvitved
57796d6d02
Merge pull request #16249 from hvitved/csharp/no-compilation-clone
...
C#: Do not call `CSharpCompilation.Clone`
2024-04-19 16:28:23 +02:00
Anders Schack-Mulligen
c45fd4080d
Java: Fix join-order.
...
The TC was being fully materialised but all we need is unary
reachability.
2024-04-19 15:41:35 +02:00
Michael B. Gale
9d83c91deb
Merge pull request #16261 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/single-go-work-not-in-root/src/modules/subdir1/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/single-go-work-not-in-root/src/modules/subdir1
2024-04-19 12:04:56 +01:00
Michael B. Gale
3c22bf4a25
Merge pull request #16260 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/make-sample/src/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/make-sample/src
2024-04-19 12:04:31 +01:00
Michael B. Gale
3c0bb6f4e5
Merge pull request #16259 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/bazel-sample-2/src/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/bazel-sample-2/src
2024-04-19 12:04:05 +01:00
Michael B. Gale
1648b427c2
Merge pull request #16258 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/bazel-sample-1/src/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/bazel-sample-1/src
2024-04-19 12:03:38 +01:00
Michael B. Gale
e443c65c75
Merge pull request #16266 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/two-go-mods-one-failure/src/subdir1/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/two-go-mods-one-failure/src/subdir1
2024-04-19 12:02:45 +01:00
Michael B. Gale
220abc4d36
Merge pull request #16270 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/single-go-mod-in-root/src/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/single-go-mod-in-root/src
2024-04-19 12:02:15 +01:00
Michael B. Gale
7d4ce0a79a
Merge pull request #16269 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/two-go-mods-nested-none-in-root/src/subdir0/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/two-go-mods-nested-none-in-root/src/subdir0
2024-04-19 12:01:48 +01:00
Michael B. Gale
ac9b77a3ac
Merge pull request #16271 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/single-go-mod-and-go-files-not-under-it/src/subdir/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/single-go-mod-and-go-files-not-under-it/src/subdir
2024-04-19 12:01:12 +01:00
Michael B. Gale
abfbb47390
Merge pull request #16276 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/mixed-layout/src/workspace/subdir/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/mixed-layout/src/workspace/subdir
2024-04-19 12:00:37 +01:00
Michael B. Gale
e7e7e4197e
Merge pull request #16274 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/go-mod-sample/src/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/go-mod-sample/src
2024-04-19 12:00:10 +01:00
Michael B. Gale
e9a9f56ea5
Merge pull request #16273 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/two-go-mods-nested-one-in-root/src/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/two-go-mods-nested-one-in-root/src
2024-04-19 11:59:14 +01:00
Michael B. Gale
03d7f5ec73
Merge pull request #16275 from github/dependabot/go_modules/go/ql/integration-tests/all-platforms/go/two-go-mods-nested-none-in-root/src/subdir0/subdir1/golang.org/x/net-0.23.0
...
Bump golang.org/x/net from 0.0.0-20200505041828-1ed23360d12c to 0.23.0 in /go/ql/integration-tests/all-platforms/go/two-go-mods-nested-none-in-root/src/subdir0/subdir1
2024-04-19 11:57:41 +01:00
Mathias Vorreiter Pedersen
ba99d49b61
Merge pull request #16187 from MathiasVP/cfg-for-coroutines
...
C++: Placeholder CFG for coroutines
2024-04-19 11:31:55 +01:00
Owen Mansel-Chan
ea2cf27432
Merge pull request #16234 from owen-mc/go/incorrect-integer-conversion-type-switch-fp
...
Go: Fix FPs in `go/incorrect-integer-conversion` query
2024-04-19 11:26:17 +01:00
dependabot[bot]
bd1731b420
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:03 +00:00
dependabot[bot]
31bea7e0ca
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:03 +00:00
dependabot[bot]
e01e8a0842
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:02 +00:00
dependabot[bot]
6c057ddc81
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:02 +00:00
dependabot[bot]
3c401d3a4f
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:01 +00:00
dependabot[bot]
cf1cddc8ca
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:01 +00:00
dependabot[bot]
2e50d61446
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:01 +00:00
dependabot[bot]
dae187eb0b
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:00 +00:00
dependabot[bot]
7f195d0257
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:00 +00:00
dependabot[bot]
a8162baada
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:00 +00:00
dependabot[bot]
6e50357224
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:46:00 +00:00
dependabot[bot]
ef53184c10
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:59 +00:00
dependabot[bot]
9d38c255f5
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:58 +00:00
dependabot[bot]
4de4525528
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:57 +00:00
dependabot[bot]
b9940f260f
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:57 +00:00
dependabot[bot]
58b0bed7f3
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:56 +00:00
dependabot[bot]
02af978e8d
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:56 +00:00
dependabot[bot]
9609dc4030
Bump golang.org/x/net
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20200505041828-1ed23360d12c to 0.23.0.
- [Commits](https://github.com/golang/net/commits/v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-19 09:45:55 +00:00
Mathias Vorreiter Pedersen
4aee6d506d
C++: Accept test changes
2024-04-19 09:17:37 +01:00
Asger F
ac34b922ec
Merge pull request #16241 from asgerf/js/re-export
...
JS: Improve support for `export * as ...` declarations
2024-04-19 10:03:17 +02:00
Tom Hvitved
18acad516b
Merge pull request #16251 from hvitved/dataflow/fix-bad-join2
...
Data flow: Fix a bad join
2024-04-19 09:49:41 +02:00
Mathias Vorreiter Pedersen
cedc84df8f
C++: Fix FPs by only having one dataflow config. This means we preserve the call context all the way though from the source to the sink.
2024-04-19 08:27:41 +01:00
Mathias Vorreiter Pedersen
2b9c96d7cc
C++: Add testcase.
2024-04-19 08:26:50 +01:00
Anders Schack-Mulligen
595014966a
Dataflow: Add change note.
2024-04-19 08:46:04 +02:00
Tom Hvitved
339c40c2b7
Data flow: Fix bad join
2024-04-18 21:30:32 +02:00
Mathias Vorreiter Pedersen
a108fcd2b4
Merge pull request #16242 from MathiasVP/fix-tostring-on-nodes
...
C++: Fix `toString` on non-`ExprNode`s
2024-04-18 15:47:06 +01:00
Owen Mansel-Chan
79b4890794
Also rename .expected files
2024-04-18 14:17:04 +01:00
Mathias Vorreiter Pedersen
bcda4a1377
C++: Add change note.
2024-04-18 13:02:56 +01:00
Owen Mansel-Chan
dc985c2c98
Add change note
2024-04-18 12:55:59 +01:00
Mathias Vorreiter Pedersen
45b1a5e29b
Merge branch 'main' into fix-tostring-on-nodes
2024-04-18 12:48:25 +01:00
Mathias Vorreiter Pedersen
58832a546a
C++: Accept test changes.
2024-04-18 12:33:27 +01:00
Mathias Vorreiter Pedersen
9f8c9615fc
C++: Use the unconverted expression available for a non-'ExprNode' when one exists.
2024-04-18 12:33:20 +01:00
Owen Mansel-Chan
b6f6bdc6f4
Make RemoteFlowAsSource private
...
`UntrustedFlowAsSource` should have been private. Since we are deprecating them anyway
we may as well make the replacement private (and make it use `instanceof`). The deprecation
comments have been updated.
2024-04-18 12:31:38 +01:00
Mathias Vorreiter Pedersen
b43aae18e0
C++: Accept test changes.
2024-04-18 12:01:01 +01:00
Mathias Vorreiter Pedersen
06f52c2854
C++: Make the new nodes parameter nodes.
2024-04-18 12:01:00 +01:00
Mathias Vorreiter Pedersen
98a3f2da7d
C++: Add new dataflow nodes for parameters without any Instructions associated with them.
2024-04-18 12:01:00 +01:00
Mathias Vorreiter Pedersen
111ad8b525
C++: Refactor parameter nodes into an abstract class that's easier to extend.
2024-04-18 12:01:00 +01:00
Owen Mansel-Chan
a49b43fdf6
Add deprecated version of renamed public classes
2024-04-18 11:49:54 +01:00
Owen Mansel-Chan
317c335269
Rename test query files
2024-04-18 11:49:42 +01:00
Owen Mansel-Chan
db06c08141
Rename UntrustedSource to RemoteSource
...
Including renaming some files (in the experimental folder).
2024-04-18 11:49:30 +01:00
Owen Mansel-Chan
f39301f533
Fix "an remote" and similar
...
Preserve case, allow for "a `Remote" etc.
2024-04-18 11:49:18 +01:00
Owen Mansel-Chan
a6646021d0
Rename Untrusted Flow to Remote Flow
...
Not matching case but preserving original case.
2024-04-18 11:49:05 +01:00
Owen Mansel-Chan
d967b2baa3
Rename UntrustedFlowAsSource to RemoteFlowAsSource
2024-04-18 11:48:04 +01:00
Asger F
decd576a6b
Merge pull request #15386 from asgerf/js/graph-export
...
JS: Add library for exporting graphs as type models
2024-04-18 11:56:17 +02:00
Mathias Vorreiter Pedersen
622f69e1a1
Merge pull request #16238 from MathiasVP/fix-terator-to-expired-container-fp
2024-04-18 10:24:13 +01:00
Asger F
3c885f3969
JS: Fix bug in MkClassInstance use-nodes
...
This only worked when the RHS was a SourceNode, which is not generally the case
2024-04-18 10:06:11 +02:00
Tom Hvitved
3c83262d58
C#: Do no call CSharpCompilation.Clone
2024-04-18 09:45:26 +02:00
Tamás Vajk
77d0df4fb6
Merge pull request #16247 from tamasvajk/feature/adjust-known-types
...
C#: Adjust known type telemetry query
2024-04-18 09:26:09 +02:00
Tamas Vajk
c11adc8c28
C#: Adjust known type telemetry query
2024-04-18 08:49:48 +02:00
Mathias Vorreiter Pedersen
43df0cd5f4
C++: Add a failing test.
2024-04-17 21:47:32 +01:00
Mathias Vorreiter Pedersen
a1267d732e
Merge pull request #16139 from MathiasVP/enable-sound-ir
...
C++: Enable sound IR
2024-04-17 21:46:51 +01:00
Owen Mansel-Chan
a4df20da85
Rename UntrustedFlowSource to RemoteFlowSource
...
Relaxed match case requirement. Again skipped one instance in an old
change note.
2024-04-17 21:40:46 +01:00
Owen Mansel-Chan
81eaa6e327
Rename UntrustedFlowSource to RemoteFlowSource
...
Relaxed whole word requirement. Again skipped one instance in an old
change note.
2024-04-17 21:35:50 +01:00
Owen Mansel-Chan
5fba9895c6
Rename UntrustedFlowSource to RemoteFlowSource
...
Only the whole word. Skipped one instance in an old change note.
2024-04-17 21:27:32 +01:00
Asger F
64321b314f
Merge branch 'main' into js-extractor-fix
2024-04-17 20:55:54 +02:00
Asger F
da33c220a6
JS: Update test output
2024-04-17 20:11:11 +02:00
Owen Mansel-Chan
212a0f27ff
Add change note
2024-04-17 16:32:53 +01:00
Owen Mansel-Chan
2f56ec7fe0
Fix QLDoc
2024-04-17 16:32:49 +01:00
Owen Mansel-Chan
80c3993ddc
Remove redundant test
...
It was introduced in https://github.com/github/codeql-go/pull/718 in
response to https://github.com/github/codeql-go/issues/717 , to check
that we don't have type assertions as sinks. We now have other tests
covering type assertions.
2024-04-17 16:32:41 +01:00
Owen Mansel-Chan
3ad2d90014
Make type switches tranform flow state
2024-04-17 16:32:36 +01:00
Owen Mansel-Chan
611f98bca4
Make type assertions transform the flow state
2024-04-17 16:32:30 +01:00
Owen Mansel-Chan
544660322f
Refactor flow state transforming barriers
2024-04-17 16:32:25 +01:00
Owen Mansel-Chan
f08a598821
Add tests for FPs: type switches, type assertions
2024-04-17 16:32:13 +01:00
Michael Nebel
4d3d07a964
Merge pull request #16215 from michaelnebel/csharp/telemetryissupported
...
C#: Take more sources and sinks into account when reporting in the te…
2024-04-17 15:29:46 +02:00
Tamas Vajk
7b5f2c7d94
Fix expected test result on Windows
2024-04-17 15:12:51 +02:00
Tamás Vajk
dc4cc74cbb
Merge pull request #16240 from tamasvajk/fix/cleanup
...
C#: Fix cleanup logic in dependency manager
2024-04-17 14:53:40 +02:00
Asger F
eab96988bf
JS: Add test for use steps
2024-04-17 14:46:00 +02:00
Asger F
2dcb5fbd16
Ensure props are included in MkMemberLabel
2024-04-17 14:46:00 +02:00
Asger F
3eb4e39251
JS: Also do this for use-steps and exclude pseudo-properties
2024-04-17 14:45:58 +02:00
Tamas Vajk
6f782f3f62
C#: Fix cleanup logic in dependency manager
2024-04-17 14:17:47 +02:00
Asger F
55b9724f59
JS: Add store step into namespace re-export specifier
2024-04-17 14:14:12 +02:00
Asger F
0a7af90454
JS: Add test with ESModule re-exports
2024-04-17 14:14:12 +02:00
Tamas Vajk
41e666c724
Parse and use RootNamespace from project files
2024-04-17 14:01:52 +02:00
Henry Mercer
902f0f91b0
Merge pull request #16218 from github/henrymercer/remove-ml-powered-queries
...
JS: Remove ML-powered queries
2024-04-17 12:54:05 +01:00
Tamas Vajk
88f6e04339
Make Resx extraction opt-in
2024-04-17 13:49:05 +02:00
Tamas Vajk
b560ab1a73
Fix condition for running dotnet source generators
2024-04-17 13:44:03 +02:00
Tamas Vajk
3626c814ac
Run dotnet source generators on files grouped by projects
2024-04-17 13:40:03 +02:00
Asger F
5e7026c6c6
JS: Use AccessPath as parameter type
2024-04-17 13:31:51 +02:00
Alexander Eyers-Taylor
da3fa22cbd
Merge pull request #16228 from github/post-release-prep/codeql-cli-2.17.1
...
Post-release preparation for codeql-cli-2.17.1
2024-04-17 11:24:34 +01:00
Tamas Vajk
bef556e208
Improve log messages
2024-04-17 11:46:27 +02:00
Tamas Vajk
5a5fc79b3b
Fix regex to recognize prerelease version string
2024-04-17 11:46:27 +02:00
Tamas Vajk
9926c817de
Code quality improvements
2024-04-17 11:46:26 +02:00
Tamas Vajk
53902c824d
Fix integration tests
2024-04-17 11:46:26 +02:00
Tamas Vajk
3c5675b3fb
WIP: Hardcode namespace for Resx generation
2024-04-17 11:46:26 +02:00
Mathias Vorreiter Pedersen
592ca06159
C++: Accept test changes.
2024-04-17 10:10:54 +01:00
Mathias Vorreiter Pedersen
96ba3ec88e
C++: Rename predicate.
2024-04-17 10:10:54 +01:00
Mathias Vorreiter Pedersen
eb2790ae63
C++: Fix 'case 2' in 'destroyedToBeginSink' now that we're working with the sink instead of the source.
2024-04-17 10:10:39 +01:00
Mathias Vorreiter Pedersen
d22e2bae8e
C++: Select the post-update node in 'getADestroyedNode'.
2024-04-17 10:10:39 +01:00
Mathias Vorreiter Pedersen
b2974ba1c6
C++: Factor body of isSink into its own predicate.
2024-04-17 10:10:21 +01:00
Tamas Vajk
3154a11b43
List members in resx test
2024-04-17 10:47:44 +02:00
Mathias Vorreiter Pedersen
b201fd0bdd
Merge pull request #16232 from MathiasVP/add-iterator-to-expired-container-fp
...
C++: Add `cpp/iterator-to-expired-container` FP test
2024-04-17 09:44:32 +01:00
Tamas Vajk
1ff4c0daf3
Restore and use Microsoft.CodeAnalysis.ResxSourceGenerator
2024-04-17 10:41:47 +02:00
Michael Nebel
bc0e580683
C#: Address review comments.
2024-04-17 09:34:27 +02:00
Asger F
f78ea26c3b
Merge pull request #16161 from RasmusWL/js/strict-mode
...
JS: Parser: Never run in strict mode
2024-04-17 09:21:29 +02:00
Asger F
93a9c62e29
Merge branch 'main' into js/graph-export
2024-04-17 09:19:59 +02:00
Michael Nebel
7434a58afc
Merge pull request #16236 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-04-17 09:09:48 +02:00
Asger F
ed80e4e284
JS: Change note
2024-04-17 08:41:27 +02:00
Asger F
c4eeda1560
JS: Bump EXTRACTOR_VERSION
2024-04-17 08:34:26 +02:00
github-actions[bot]
7faf3a8b8e
Add changed framework coverage reports
2024-04-17 00:16:33 +00:00
Taus
dd97e70ffc
Merge pull request #16233 from github/tausbn/python-fix-flags-test
2024-04-17 00:35:11 +02:00
Mathias Vorreiter Pedersen
1847a6deb0
Merge pull request #16203 from MathiasVP/break-bigstep-at-store
...
C++: Break dataflow big-step on right-hand side of assignments
2024-04-16 23:04:17 +01:00
Mathias Vorreiter Pedersen
fdddec74d3
Merge branch 'main' into break-bigstep-at-store
2024-04-16 21:08:33 +01:00
Taus
bf8307f78d
Python: Fix flags test
...
In 25cb52aa52 I accidentally introduced an extra `not` where none existed before. Whoops!
2024-04-16 21:17:34 +02:00
Asger F
3335d48154
Sync files
2024-04-16 20:26:41 +02:00
Asger F
c0db40d11a
Merge branch 'js/graph-export' of github.com:asgerf/codeql into js/graph-export
2024-04-16 20:25:11 +02:00
Asger F
be64daf265
Merge branch 'main' into js/graph-export
2024-04-16 20:23:33 +02:00
Asger F
ee5cb6f3d8
Update shared/mad/codeql/mad/dynamic/GraphExport.qll
2024-04-16 20:10:51 +02:00
Asger F
844b29b637
Update shared/mad/codeql/mad/dynamic/GraphExport.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2024-04-16 20:09:26 +02:00
Sid Shankar
5c50ed036c
Merge pull request #16231 from github/tausbn/python-temporarily-remove-crlf-test
...
Python: Remove test with CRLF line endings
2024-04-16 13:54:06 -04:00
Mathias Vorreiter Pedersen
62299dc95a
C++: Add FP test.
2024-04-16 18:19:33 +01:00
Taus
48e367cb11
Python: Remove test with CRLF line endings
...
These were causing `git` to behave strangely, leaving files that were
impossible to reset. In the future we should probably generate these
problematic test files on the fly, so that they don't have to exist in
the repo, but in the short run, it's easier to just remove them so as to
not block other users of the repo.
2024-04-16 17:18:20 +00:00
Mathias Vorreiter Pedersen
8f82db07d3
Merge pull request #16230 from MathiasVP/fix-join-in-global-use-before-init
...
C++: Use interpolation to avoid a bad join order
2024-04-16 18:17:11 +01:00
Mathias Vorreiter Pedersen
ba9267df5b
Merge branch 'main' into break-bigstep-at-store
2024-04-16 17:15:58 +01:00
Cornelius Riemenschneider
4cb0695646
Merge pull request #16229 from github/criemen/rules-pkg
...
Upgrade rules_pkg to 0.10.1.
2024-04-16 18:03:00 +02:00
Mathias Vorreiter Pedersen
c3cf425079
C++: Use interpolation to avoid a bad join order.
2024-04-16 16:24:08 +01:00
Mathias Vorreiter Pedersen
dd656d34be
Merge branch 'main' into break-bigstep-at-store
2024-04-16 15:33:21 +01:00
Taus
c647f30576
Merge pull request #16212 from github/tausbn/python-add-copy-of-internal-tests
...
Python: Add copy of internal tests
2024-04-16 16:32:31 +02:00
Mathias Vorreiter Pedersen
7155af50be
C++: Accept more test changes.
2024-04-16 15:32:24 +01:00
Cornelius Riemenschneider
6ba27dc863
Upgrade rules_pkg to 0.10.1.
2024-04-16 16:29:56 +02:00
github-actions[bot]
622e176a16
Post-release preparation for codeql-cli-2.17.1
2024-04-16 14:21:32 +00:00
Michael Nebel
4a4f9b3942
C#: Update expected test output.
2024-04-16 16:05:16 +02:00
Michael Nebel
e7bfd7df62
C#: Take more sources and sinks into account when reporting in the telemetry queries.
2024-04-16 16:05:16 +02:00
Michael Nebel
543032a3de
C#: Add ParallelSink QL Doc.
2024-04-16 16:05:16 +02:00
Michael Nebel
f69737b407
C#: Move parallelsink to the library qlpack.
2024-04-16 16:05:16 +02:00
Michael Nebel
c720fb2c34
C#: Add HtmlString test, which is supported as it is a known sink defined in QL.
2024-04-16 16:05:16 +02:00
Michael Nebel
4886bb1116
Merge pull request #16227 from michaelnebel/csharp/fixmadid
...
C#: Update MaD id in expected file.
2024-04-16 16:04:47 +02:00
Mathias Vorreiter Pedersen
8888ee9fa8
Merge pull request #16149 from codeqlhelper/main
...
C++: Improvements to reduce false alarms
2024-04-16 15:03:31 +01:00
Chris Smowton
69d8fa6e4a
Merge pull request #16188 from smowton/smowton/admin/maven-buildless-missing-host-tolerance-test
...
Java: add test for a Maven project with an unreachable repository
2024-04-16 14:53:22 +01:00
Michael Nebel
ae0e25e5b1
C#: Update MaD id in expected file.
2024-04-16 15:37:46 +02:00
Mathias Vorreiter Pedersen
2627a3dcb7
Merge pull request #15371 from geoffw0/mad
...
C++: Implement models-as-data
2024-04-16 14:33:12 +01:00
Mathias Vorreiter Pedersen
e1884c193b
C++: Add tests (and fix a missing quote in the alert message).
2024-04-16 14:20:19 +01:00
Mathias Vorreiter Pedersen
6cb5db2387
C++: Improve change note comments.
2024-04-16 13:55:55 +01:00
Mathias Vorreiter Pedersen
439afd97ba
C++: Small performance optimization.
2024-04-16 13:54:58 +01:00
Mathias Vorreiter Pedersen
132bb9f1d6
C++: Address (my own) review comments.
2024-04-16 13:53:27 +01:00
Michael Nebel
58635bdbd6
Merge pull request #16121 from michaelnebel/csharp/modelgenexcludeset
...
C#: Exclude properties with both a getter and setter as candidates for modelling.
2024-04-16 14:49:07 +02:00
Tamas Vajk
79fe5f851b
C#: Add resource generator
2024-04-16 14:30:53 +02:00
Tom Hvitved
e99c78e027
Merge pull request #16226 from hvitved/csharp/exclude-delegate-dynamic-calls-extraction-info
...
C#: Exclude delegate and dynamic calls from extractor telemetry
2024-04-16 14:23:38 +02:00
Tom Hvitved
75b1e14098
Merge pull request #16205 from samgiz/samgiz-tiny-docs-fix
...
Tiny docs fix
2024-04-16 13:57:38 +02:00
Alexander Eyers-Taylor
0daa6c2c1d
Merge pull request #16219 from github/release-prep/2.17.1
...
Release preparation for version 2.17.1
2024-04-16 12:02:14 +01:00
Tom Hvitved
6bf05eb29a
C#: Exclude delegate and dynamic calls from extractor telemetry
2024-04-16 12:53:39 +02:00
Mathias Vorreiter Pedersen
fb9fc14f3d
C++: Accept test changes in paths.
2024-04-16 11:09:22 +01:00
Mathias Vorreiter Pedersen
8630630c45
C++: Use 'asDefinition' instead of checking for a 'Store' instruction.
2024-04-16 11:00:57 +01:00
Mathias Vorreiter Pedersen
54957d6ea4
Merge branch 'main' into enable-sound-ir
2024-04-16 10:46:59 +01:00
Joe Farebrother
f57e0cb71e
Merge pull request #16209 from joefarebrother/csharp-missing-precision
...
C#: Add missing query precision
2024-04-16 10:46:27 +01:00
Rasmus Wriedt Larsen
ec862ebc72
Merge pull request #16196 from michaelnebel/misc/expected-changes-usageinfo
...
Print usage information for accept-expected-changes script in case PR…
2024-04-16 11:38:24 +02:00
Tamás Vajk
9671e05148
Merge pull request #16213 from tamasvajk/buildless/source-generators
...
C#: Move source code generators to dedicated classes
2024-04-16 11:08:28 +02:00
Joe Farebrother
3567c30020
Set precision to high
2024-04-16 09:41:46 +01:00
Tamas Vajk
407837afc4
C#: Refactor dotnet source generator execution
2024-04-16 10:20:23 +02:00
Tom Hvitved
ff55ed84f4
Merge pull request #16181 from hvitved/dynamic/deprecate-csv-models
...
Dynamic languages: Deprecate models-as-data CSV interface
2024-04-16 10:06:30 +02:00
Tamas Vajk
13a71a4f6d
C#: Move source code generators to dedicated classes
2024-04-16 09:28:50 +02:00
Michael Nebel
3105697c7f
Merge pull request #16200 from michaelnebel/csharp/dependencylogging
...
C#: Logging
2024-04-16 08:24:36 +02:00
github-actions[bot]
9bfe4ea90a
Release preparation for version 2.17.1
2024-04-15 17:34:47 +00:00
Henry Mercer
8747438613
JS: Remove ML-powered queries
2024-04-15 17:35:32 +01:00
Alexander Eyers-Taylor
feeaef14be
Merge pull request #16217 from github/alexet/fix-change-note
...
Go: Fix broken changenote metadata
2024-04-15 17:32:20 +01:00
Michael B. Gale
d9bd547f06
Merge pull request #16216 from github/mbg/go/respect-gotoolchain
...
Go: Respect `GOTOOLCHAIN` in `GetEnvGoVersion` if already set
2024-04-15 17:04:27 +01:00
Alexander Eyers-Taylor
43572fe9ae
Go: Fix broken changenote metadata
2024-04-15 16:55:23 +01:00
Michael B. Gale
c0d2b89de0
Go: Respect GOTOOLCHAIN in GetEnvGoVersion if already set
2024-04-15 16:28:24 +01:00
Taus
82057e2e46
Python: Autoformat tests
...
I guess these were never considered back when we switched to
autoformatting everything.
2024-04-15 15:27:21 +00:00
Michael B. Gale
ce73c29962
Merge pull request #16214 from github/mbg/go/use-shared-integration-test-code
...
Go: Use shared integration test code
2024-04-15 16:25:28 +01:00
Taus
25cb52aa52
Python: Fix inefficient string comparison
2024-04-15 15:23:07 +00:00
Michael B. Gale
7a0aad87a4
Go: Use shared library for integration tests
2024-04-15 14:46:53 +01:00
Michael B. Gale
4673fff65b
Go: Add db and runFunction to go_integration_test
2024-04-15 14:46:53 +01:00
Michael B. Gale
caaccb7709
Go: Run go clean -modcache in finally for integration tests
...
This ensures that the temporary GOPATH is cleaned up correctly in case of an integration test failure as well
2024-04-15 14:46:53 +01:00
Anders Schack-Mulligen
3c69f8f607
Java: Count second level scopes for fieldFlowBranchLimit.
2024-04-15 15:17:43 +02:00
Anders Schack-Mulligen
2f0987e980
Dataflow: Add dummy DataFlowSecondLevelScope implementations.
...
These could be an empty type, but Unit was available and it probably
doesn't matter.
2024-04-15 15:16:30 +02:00
Anders Schack-Mulligen
db6d27bd2b
C++: Count return dispatch based on 2nd level scopes.
2024-04-15 15:13:08 +02:00
Anders Schack-Mulligen
9e39be5aea
C++: Update qltest.
2024-04-15 15:13:05 +02:00
Anders Schack-Mulligen
b87b8329a0
Dataflow: Use default fieldFlowBranchLimit in qltests.
2024-04-15 15:13:03 +02:00
Anders Schack-Mulligen
f945687a93
Dataflow: Simplify branch and join.
2024-04-15 15:13:01 +02:00
Anders Schack-Mulligen
82afbbc17b
Dataflow: Adjust fieldFlowBranchLimit count (block less) and adjust return edge condition (block more)
2024-04-15 15:12:58 +02:00
Anders Schack-Mulligen
a99849d897
Merge pull request #16211 from aschackmull/dataflow/alert-provenance-update-change-note
...
Dataflow: Amend change note for alert provenance.
2024-04-15 15:00:49 +02:00
Anders Schack-Mulligen
1389c7220b
Dataflow: Amend change note.
2024-04-15 14:35:39 +02:00
Taus
8ec414d454
Python: Add copy of internal Python 3 tests
...
Again, mostly extractor tests, and a single library test.
2024-04-15 12:30:01 +00:00
Taus
b22b4c5b85
Python: Add copy of internal Python 2 tests
...
These are mostly extractor tests, which now live in `2/extractor-tests`,
and a single library tests that was added to the existing directory.
2024-04-15 12:26:45 +00:00
Taus
e45f6e9b24
Python: Add copy of extractor tests
...
These get to live next to the existing library and query tests, and are
run as part of both the Python 2 and Python 3 language tests.
2024-04-15 12:22:07 +00:00
Michael Nebel
d5073df24c
Merge pull request #16186 from michaelnebel/csharp/suppressnullablefix
...
C#: Fix issue with suppress nullable warning directly on a method call.
2024-04-15 13:11:03 +02:00
Michael Nebel
8915241166
C#: Reduce nuget and razor logging.
2024-04-15 13:01:12 +02:00
Michael Nebel
336a18a1d9
C#: Make Started log as Debug.
2024-04-15 13:01:12 +02:00
Michael Nebel
ddfed6ea65
C#: Changing logging of dotnet commands to Debug except for dotnet --info and friends.
2024-04-15 13:01:12 +02:00
Michael Nebel
72ffcf5f9c
C#: Replace some LogInfo with LogDebug.
2024-04-15 13:01:12 +02:00
Michael Nebel
f7e5fe7040
C#: Inline some calls.
2024-04-15 13:01:03 +02:00
Tamás Vajk
611cf231a7
Merge pull request #16195 from tamasvajk/depManager/refactoring
...
C#: Split `DependencyManager` into multiple classes
2024-04-15 10:25:08 +02:00
Geoffrey White
1c66e26e92
C++: Autoformat.
2024-04-15 09:06:49 +01:00
Joe Farebrother
6e130d24cd
C#: Add missing query precision
2024-04-15 08:42:26 +01:00
Tamas Vajk
69c43094ba
Fix review findings
2024-04-15 09:32:18 +02:00
Zigmas Bitinas
5125468307
Tiny docs fix
...
Noticed the mistake when browsing the docs [here](https://codeql.github.com/codeql-standard-libraries/ruby/codeql/ruby/security/CodeInjectionCustomizations.qll/module.CodeInjectionCustomizations$CodeInjection$FlowState.html )
2024-04-13 21:18:36 +01:00
Mathias Vorreiter Pedersen
f3a5ce5efc
C++: Accept more test changes.
2024-04-13 11:03:15 +01:00
Mathias Vorreiter Pedersen
6f08790065
C++: Accept test changes.
2024-04-13 01:00:48 +01:00
Mathias Vorreiter Pedersen
2cbc59b7a1
C++: Always show the right-hand side of assignment in paths.
2024-04-13 01:00:38 +01:00
Geoffrey White
9302b167d8
C++: Fix further merge conflicts.
2024-04-12 19:38:38 +01:00
Mathias Vorreiter Pedersen
0bed22178c
Merge pull request #16201 from MathiasVP/add-consistency
...
C++: Add new AST consistency check
2024-04-12 17:46:48 +01:00
Geoffrey White
e13b3ed5e7
C++ and Swift: Fix merge conflicts.
2024-04-12 17:30:46 +01:00
Mathias Vorreiter Pedersen
aac1070aca
C++: Consistent naming.
2024-04-12 17:00:46 +01:00
Mathias Vorreiter Pedersen
413d3abbd7
C++: Add new AST consistency check.
2024-04-12 16:57:19 +01:00
Mathias Vorreiter Pedersen
116664588b
Merge pull request #16125 from MathiasVP/destructors-for-unconditional-unnamed
...
C++: Generate IR for destruction of unconditionally constructed temporaries
2024-04-12 16:26:03 +01:00
Paolo Tranquilli
3614d3d52b
Merge pull request #16199 from github/redsun82/add-shared-triggers-to-swift-ci
...
Swift: add `shared/**` to CI triggers
2024-04-12 16:00:18 +02:00
Paolo Tranquilli
de4ffbb552
Swift: add shared/** to CI triggers
...
Not being triggered by changes in shared was making it possible to not
notice changes in `shared` having effect on Swift tests. For example
[this PR](https://github.com/github/codeql/pull/15501 ) introduced a
test change that was fixed [here](https://github.com/github/codeql/pull/16197 ).
2024-04-12 15:46:01 +02:00
Paolo Tranquilli
67946614e3
Merge pull request #16197 from github/redsun82/accept-swift-tests
...
Swift: accept new test results
2024-04-12 15:34:00 +02:00
Geoffrey White
e29ce5f5d5
Merge branch 'main' into mad
2024-04-12 14:30:44 +01:00
Geoffrey White
1df1f0dbc2
C++: Use 'concat' in the variable.ql test.
2024-04-12 14:22:21 +01:00
Geoffrey White
0235e9962e
C++: Accept test changes (related to getAQlClass).
2024-04-12 14:19:37 +01:00
Tamas Vajk
e3fe9f7ca5
Move Nuget restore logic from DependencyManager to dedicated class
2024-04-12 15:04:45 +02:00
Asger F
3949ae4123
Update shared/mad/codeql/mad/dynamic/GraphExport.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2024-04-12 15:00:24 +02:00
Asger F
330229c463
Update javascript/ql/lib/semmle/javascript/frameworks/data/ModelsAsData.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2024-04-12 15:00:17 +02:00
Paolo Tranquilli
70e72aadd5
Swift: accept new test results
2024-04-12 14:57:59 +02:00
Michael Nebel
52be6579b7
Print usage information for accept-expected-changes script in case PR auto detection fails.
2024-04-12 14:31:25 +02:00
Michael Nebel
1c8298ae08
C#: Update expected test output.
2024-04-12 14:24:30 +02:00
Tamas Vajk
5406fac834
C#: Move all file lookup to separate class
2024-04-12 13:58:49 +02:00
Michael Nebel
d88a813038
C#: Re-generate .NET models.
2024-04-12 13:49:26 +02:00
Michael Nebel
254c6c3344
C#: Address review comments.
2024-04-12 13:48:13 +02:00
Tom Hvitved
e7dc120456
Add deprecation comments
2024-04-12 13:40:15 +02:00
Tom Hvitved
ceb5b4c56e
Python: No longer use models-as-data CSV interface
2024-04-12 13:40:15 +02:00
Tom Hvitved
9d8b93ed45
JS: No longer use models-as-data CSV interface
2024-04-12 13:40:15 +02:00
Tom Hvitved
fdb77457b3
Sync files
2024-04-12 13:40:14 +02:00
Tom Hvitved
04de315e0e
Ruby: Deprecate models-as-data CSV interface
2024-04-12 13:40:14 +02:00
Michael Nebel
dc34cb0aae
C#: Update all MaD ids in the tests.
2024-04-12 13:24:18 +02:00
Tamás Vajk
91f2ea572c
Merge pull request #16164 from tamasvajk/buildless/nuget-feed-fallback-feed-check
...
C#: Check fallback nuget feeds before trying to use them in the fallb…
2024-04-12 13:17:06 +02:00
Chris Smowton
bdd6fba06a
Java: add test for a Maven project with an unreachable repository
2024-04-12 12:03:38 +01:00
Asger F
15eabb42ef
JS: Address review comments
2024-04-12 11:35:34 +02:00
Michael Nebel
f799962146
C#: Update expected test output.
2024-04-12 11:35:08 +02:00
Michael Nebel
cb3a59446c
C#: Remove redundant neutral summaries for ProcessStartInfo.
2024-04-12 11:31:59 +02:00
Michael Nebel
e70a49a771
C#: Add some manual models for ProcessStartInfo.
2024-04-12 11:31:59 +02:00
Michael Nebel
db48461ebc
C#: Add change note.
2024-04-12 11:31:59 +02:00
Michael Nebel
ac2769c142
C#: Update the Telemetry queries such that properties with both get and set are no longer interesting.
2024-04-12 11:31:59 +02:00
Michael Nebel
829557fdda
C#: Update expected test output.
2024-04-12 11:31:59 +02:00
Michael Nebel
c12c2a534c
C#: Update the model editor code to disregard properties in case both a getter and a setter is present.
2024-04-12 11:31:58 +02:00
Michael Nebel
5323af33d2
C#: Update flow summaries expected test output.
2024-04-12 11:31:58 +02:00
Michael Nebel
96ef6809a7
C#: Update .NET Runtime models.
2024-04-12 11:31:58 +02:00
Michael Nebel
312b96aa8b
C#: Update expected test output.
2024-04-12 11:31:57 +02:00
Michael Nebel
8cc4f86e7d
C#: Only attempt to generate models for properties that does not both have a get and a set accessor.
2024-04-12 11:31:57 +02:00
Michael Nebel
32595b92a2
C#: Add some property test cases.
2024-04-12 11:31:57 +02:00
Michael Nebel
cbb5d433b1
C#: Add change note.
2024-04-12 11:23:16 +02:00
Michael Nebel
a2bb3dd78b
C#: Update expected test output.
2024-04-12 11:23:03 +02:00
Joe Farebrother
5cebcadc56
Merge pull request #15987 from joefarebrother/ruby-mass-reassignment
...
Ruby: Add query for insecure mass assignment
2024-04-12 10:18:41 +01:00
Michael Nebel
19b7574c9c
C#: Fix issue with suppress nullable warning directly on a method call.
2024-04-12 11:16:37 +02:00
Michael Nebel
1e59def89d
C#: Add some suppress nullable warning testcases and update expected output.
2024-04-12 11:16:37 +02:00
Anders Schack-Mulligen
854dfb35c1
Merge pull request #15501 from aschackmull/dataflow/alert-provenance
...
Dataflow: Support alert provenance
2024-04-12 11:14:20 +02:00
Anders Schack-Mulligen
b4e23d9487
Dataflow: Address review comments
2024-04-12 09:20:45 +02:00
Anders Schack-Mulligen
31a86574bb
Dataflow: Add change note.
2024-04-12 09:20:42 +02:00
Anders Schack-Mulligen
b7ee5597a0
Swift: Update expected output (interesting).
2024-04-12 09:20:40 +02:00
Anders Schack-Mulligen
2c43d0c5a4
Ruby: Update expected output (interesting).
2024-04-12 09:20:38 +02:00
Anders Schack-Mulligen
7cc8fd00aa
Ruby: Update expected output (uninteresting).
2024-04-12 09:20:35 +02:00
Anders Schack-Mulligen
cbcdf1f8b5
Python: Update expected output (interesting).
2024-04-12 09:20:33 +02:00
Anders Schack-Mulligen
bfcfedab8c
Python: Update expected output (uninteresting).
2024-04-12 09:20:30 +02:00
Anders Schack-Mulligen
f85ff9defc
Java: Update expected output (interesting).
2024-04-12 09:20:28 +02:00
Anders Schack-Mulligen
c2f5731e8d
Java: Update expected output (uninteresting).
2024-04-12 09:20:26 +02:00
Anders Schack-Mulligen
20e91f9cac
Go: Update expected output (uninteresting).
2024-04-12 09:20:23 +02:00
Anders Schack-Mulligen
c3946a92ff
C#: Update expected output (interesting)
2024-04-12 09:20:21 +02:00
Anders Schack-Mulligen
647f9aba82
C#: Update some expected output (uninteresting).
2024-04-12 09:20:18 +02:00
Anders Schack-Mulligen
c355737d30
C++: Update expected output.
2024-04-12 09:20:16 +02:00
Anders Schack-Mulligen
fdfb4a1a18
JS: Adapt to shared ApiGraphModels.qll changes.
2024-04-12 09:20:13 +02:00
Anders Schack-Mulligen
44147b9520
JS: Sync.
2024-04-12 09:20:11 +02:00
Anders Schack-Mulligen
a8fc100108
Python: Add alert provenance plumbing.
2024-04-12 09:20:08 +02:00
Anders Schack-Mulligen
f202661912
C++: Add alert provenance plumbing.
2024-04-12 09:20:06 +02:00
Anders Schack-Mulligen
6991f5452f
Ruby: Add alert provenance plumbing.
2024-04-12 09:20:04 +02:00
Anders Schack-Mulligen
82e6fbbd22
Swift: Add alert provenance plumbing.
2024-04-12 09:20:01 +02:00
Anders Schack-Mulligen
ba6039946b
Go: Add alert provenance plumbing.
2024-04-12 09:19:59 +02:00
Anders Schack-Mulligen
004bda1ee0
C#: Add alert provenance plumbing.
2024-04-12 09:19:56 +02:00
Anders Schack-Mulligen
eafc0075fd
Legacy dataflow: Sync.
2024-04-12 09:19:54 +02:00
Anders Schack-Mulligen
2925e45434
Java/Dataflow: Propagate MaD-id/model-id to PathGraph.
2024-04-12 09:19:51 +02:00
Joe Farebrother
06d7b3ce80
Use cfg nodes
2024-04-11 22:30:41 +01:00
Sid Shankar
1015ee9872
Merge pull request #16189 from github/sidshank/check-python-executable-name-option-on-win
...
Python: Modifies check for py launcher
2024-04-11 16:16:23 -04:00
Aditya Sharad
790ee4a906
Merge pull request #16163 from github/mbg/docs/macos14
...
Docs: Add macOS 14 to list of supported operating systems
2024-04-11 11:26:39 -07:00
Sid Shankar
e33c5706f8
Modifies check for py launcher
...
This commit modifies the check for the "py" launcher on windows. We now look for the launcher only if the python_executable_name extractor option is not specified.
2024-04-11 12:59:41 -04:00
Geoffrey White
13100b19bc
C++: Fix unintentionally changing the type of AdditionalCallTarget.viableTarget.
2024-04-11 17:07:20 +01:00
Geoffrey White
66f88d9c71
C++: Restrict the AST cases in TReturnKind.
2024-04-11 16:52:15 +01:00
Mathias Vorreiter Pedersen
477322d21d
C++: Accept test changes.
2024-04-11 15:44:44 +01:00
Mathias Vorreiter Pedersen
846eac8be9
C++: Add a placeholder for 'getOpcode'.
2024-04-11 15:44:33 +01:00
Mathias Vorreiter Pedersen
8842b974f0
C++: Accept test changes.
2024-04-11 15:34:34 +01:00
Mathias Vorreiter Pedersen
65b69fe353
C++: Mark 'CoYieldExpr' as a unary expression in IR construction.
2024-04-11 15:34:29 +01:00
Mathias Vorreiter Pedersen
2a914770ea
C++: Accept test changes.
2024-04-11 15:27:45 +01:00
Mathias Vorreiter Pedersen
d030f0b5d2
C++: Add a placeholder for 'getOpcode'.
2024-04-11 15:27:38 +01:00
Mathias Vorreiter Pedersen
33364a8ab6
C++: Accept test changes.
2024-04-11 14:28:44 +01:00
Mathias Vorreiter Pedersen
d8bd18f369
C++: IR translation of 'co_return' statements.
2024-04-11 14:28:15 +01:00
Michael B. Gale
f7262b7e6d
Merge pull request #16184 from github/mbg/go/integration-tests-lib
...
Go: Add integration test library
2024-04-11 14:26:03 +01:00
Ian Lynagh
3c1286385d
Merge pull request #16177 from igfoo/igfoo/kt2.0.0-rc1
...
Kotlin: Add 2.0.0-RC1 support (and remove 2.0.0-Beta4)
2024-04-11 14:01:58 +01:00
Tamas Vajk
c004f92365
Apply code review findings
2024-04-11 14:47:20 +02:00
Tamas Vajk
da91cea153
Add unit tests for dotnet nuget list source calls
2024-04-11 14:45:43 +02:00
Tamas Vajk
743e77d0d4
Improve logging, expose inherited feeds in integration test
2024-04-11 14:45:43 +02:00
Tamas Vajk
8d0856f97e
Fix failing test
2024-04-11 14:45:36 +02:00
Tamas Vajk
0f7fc90fe0
C#: Check fallback nuget feeds before trying to use them in the fallback restore process
2024-04-11 14:43:32 +02:00
Mathias Vorreiter Pedersen
3e1359b92e
C++: Accept test changes.
2024-04-11 13:31:48 +01:00
Mathias Vorreiter Pedersen
4c4d2415e9
C++: Mark 'CoAwaitExpr' as a unary expression in IR construction.
2024-04-11 13:30:33 +01:00
Mathias Vorreiter Pedersen
161f586510
Merge pull request #16097 from MathiasVP/add-coroutine-tests
...
C++: Add coroutine tests
2024-04-11 13:11:26 +01:00
Mathias Vorreiter Pedersen
aa94ee5b96
C++: Accept test changes.
2024-04-11 12:27:33 +01:00
Michael B. Gale
9c26cdd0bb
Go: Add integration test library
2024-04-11 12:27:31 +01:00
Erik Krogh Kristensen
c00e2075a4
Merge pull request #16111 from erik-krogh/rb-url
...
RB: Improve QHelp for `rb/url-redirect`, and fix an FP.
2024-04-11 13:03:35 +02:00
Mathias Vorreiter Pedersen
3a18da730e
Merge branch 'main' into add-coroutine-tests
2024-04-11 11:59:07 +01:00
Ian Lynagh
58f825fcb8
Kotlin: Drop our 2.0.255-SNAPSHOT version
...
It's now older than 2.0.0-RC1
2024-04-11 11:58:59 +01:00
Ian Lynagh
9c573dbee3
Kotlin: Update expected result for kotlin-version-too-new test
2024-04-11 11:58:59 +01:00
Ian Lynagh
7ce7685b91
Kotlin: FirMetadataSource.File.files has been removed
...
In new versions, but not old versions, we want FirMetadataSource.File.fir
instead.
2024-04-11 11:58:59 +01:00
Ian Lynagh
1698ccff9a
Kotlin: Add 2.0.0-RC1 support (and remove 2.0.0-Beta4)
2024-04-11 11:58:59 +01:00
Tom Hvitved
982765ced3
Merge pull request #16176 from hvitved/csharp/adjust-conditional-locations
...
C#: Adjust conditional access locations
2024-04-11 12:47:51 +02:00
Owen Mansel-Chan
d4bb4d4faa
Merge pull request #16120 from owen-mc/go/fix/type-switch-control-flow
...
Go: Fix data flow through variable defined in type switch guard
2024-04-11 11:39:40 +01:00
Owen Mansel-Chan
1e8315d797
Merge pull request #16180 from owen-mc/go/tweak-go-tainted-path-additions
...
Go: Tweak go tainted path additions
2024-04-11 11:17:30 +01:00
Mathias Vorreiter Pedersen
736d59c42d
Merge branch 'main' into destructors-for-unconditional-unnamed
2024-04-11 09:53:31 +01:00
Mathias Vorreiter Pedersen
34a0c02f70
Merge branch 'main' into enable-sound-ir
2024-04-11 09:48:45 +01:00
Joe Farebrother
ec973ac1f3
Use not exists
2024-04-11 09:38:41 +01:00
Tony Torralba
e6fdc75450
Merge pull request #16129 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-04-11 10:21:13 +02:00
Owen Mansel-Chan
a7c5e849f4
Expand ReplaceAll in sanitizer
2024-04-11 07:35:56 +01:00
Owen Mansel-Chan
c3fefa8f69
Add extra sanitizer Part.FileName()
2024-04-11 07:35:45 +01:00
Owen Mansel-Chan
21189af294
Improve QLDoc and refactor QL
2024-04-11 07:34:58 +01:00
github-actions[bot]
c4c81b77cf
Add changed framework coverage reports
2024-04-11 00:16:51 +00:00
Mathias Vorreiter Pedersen
5c4e02a1da
Merge branch 'main' into enable-sound-ir
2024-04-10 23:56:16 +01:00
Mathias Vorreiter Pedersen
0e610ba535
Merge pull request #16179 from MathiasVP/delete-noisy-test
2024-04-10 23:53:50 +01:00
Joe Farebrother
0a3d73d902
Add flow steps and sanitizers for permit calls
2024-04-10 21:47:07 +01:00
Erik Krogh Kristensen
844e78dce5
remove redundant cast
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2024-04-10 20:02:49 +02:00
Mathias Vorreiter Pedersen
313501aa29
C++: Delete a noisy test that's not very helpful.
2024-04-10 18:54:50 +01:00
Mathias Vorreiter Pedersen
21bc8c4324
C++: Accept test changes.
2024-04-10 18:32:15 +01:00
Geoffrey White
19b14e166d
C++: Reduce code duplication.
2024-04-10 17:44:55 +01:00
Mathias Vorreiter Pedersen
3d96206783
Merge branch 'main' into enable-sound-ir
2024-04-10 17:39:13 +01:00
Mathias Vorreiter Pedersen
7172e2f445
Merge branch 'main' into destructors-for-unconditional-unnamed
2024-04-10 17:34:08 +01:00
Geoffrey White
959300f963
C++: Fixes for internals that are now private.
2024-04-10 17:32:10 +01:00
Geoffrey White
41ce4ffe4b
C++: Fix some QLDoc holes.
2024-04-10 17:21:48 +01:00
Geoffrey White
eca112c3bc
C++: More autoformatting.
2024-04-10 17:21:05 +01:00
Geoffrey White
250cb30c05
Swift: Autoformat.
2024-04-10 17:21:02 +01:00
Geoffrey White
dd96095a30
Apply suggestions from code review
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-04-10 17:20:35 +01:00
Paolo Tranquilli
85968e343a
Merge pull request #16178 from github/redsun82/swift-deps-extension-all
...
Bazel: `swift/third_party/load.bzl` cleanup and `bazel mod tidy` enablement
2024-04-10 17:59:51 +02:00
Mathias Vorreiter Pedersen
33f6b6a940
Merge pull request #16175 from MathiasVP/more-iterator-models
...
C++: Add alias and side-effect models for more iterator functions
2024-04-10 16:55:10 +01:00
Jeroen Ketema
b9b2aa3580
Merge pull request #16138 from jketema/coroutine3
...
C++: Update expected test results
2024-04-10 17:48:48 +02:00
Rasmus Wriedt Larsen
d5160927f5
Merge branch 'main' into js/strict-mode
2024-04-10 17:33:01 +02:00
Rasmus Wriedt Larsen
c4e674b8d2
Merge pull request #16173 from RasmusWL/remove-lib-stubs
...
Python: Remove deprecated stubs for points-to tests
2024-04-10 17:12:16 +02:00
Erik Krogh Kristensen
d33e8adae4
Merge pull request #16174 from erik-krogh/no-arr-ruby-shell
...
RB: don't mention arrays in the qhelp for rb/shell-command-constructed-from-input
2024-04-10 17:08:24 +02:00
Owen Mansel-Chan
1c0ef90e96
Merge pull request #15865 from owen-mc/go/extractor/no-intermediate-string-values
...
Go: extractor: do not store intermediate values in long string concatenations
2024-04-10 15:31:51 +01:00
Michael Nebel
b79d738f64
Merge pull request #15993 from michaelnebel/csharp/assemblycachefiltering
...
C#: Exclude Semmle.* dlls when using the executing runtime.
2024-04-10 16:22:22 +02:00
Tom Hvitved
1c344d6735
C#: Adjust conditional access locations
2024-04-10 16:21:58 +02:00
Geoffrey White
925ee825ff
C++: Add change notes.
2024-04-10 15:18:43 +01:00
Owen Mansel-Chan
dc3ea6c418
Merge pull request #11703 from Kwstubbs/go-taintedpath-additions
...
Go: Add and Modify Sanitizers For TaintedPath
2024-04-10 15:13:13 +01:00
Paolo Tranquilli
05f5879a2c
Bazel: swift/third_party/load.bzl cleanup and bazel mod tidy enablement
2024-04-10 16:11:20 +02:00
Mathias Vorreiter Pedersen
0ed0731024
C++: Reduce comment duplication.
2024-04-10 15:04:29 +01:00
Geoffrey White
36db493723
C++: Autoformat.
2024-04-10 15:02:19 +01:00
Geoffrey White
cbab24ba45
C++: Sort Models.qll.
2024-04-10 14:59:13 +01:00
Geoffrey White
e0f866f19d
Merge branch 'main' into mad
2024-04-10 14:58:52 +01:00
Mathias Vorreiter Pedersen
9c9ed13ede
C++: More comments.
2024-04-10 14:57:40 +01:00
Mathias Vorreiter Pedersen
1ae22d0781
C++: Improve comment based on PR feedback.
2024-04-10 14:55:29 +01:00
Owen Mansel-Chan
5ec3934ac8
Merge branch 'main' into go/extractor/no-intermediate-string-values
2024-04-10 14:51:22 +01:00
Tom Hvitved
7c43ca7001
C#: Add more conditional access tests
2024-04-10 15:25:00 +02:00
Mathias Vorreiter Pedersen
a7c98e3d94
C++: Accept test changes.
2024-04-10 14:19:06 +01:00
Mathias Vorreiter Pedersen
d98ed2d3cf
C++: Add alias and side effect models for more iterator functions.
2024-04-10 14:19:06 +01:00
Michael Nebel
ef68e33449
C#: Address review comments.
2024-04-10 14:48:02 +02:00
erik-krogh
4ae25c2d34
don't mention arrays in the qhelp for rb/shell-command-constructed-from-input, because there are no array
2024-04-10 14:26:00 +02:00
Owen Mansel-Chan
0e67aa5baa
Merge pull request #16172 from owen-mc/go/perf/synth-location
...
Go: Avoid magic in `TSynthLocation` definition
2024-04-10 13:02:18 +01:00
Owen Mansel-Chan
f45305ec3f
Merge pull request #16170 from owen-mc/go/add-comments-in-extractor
...
Go: Add comments in extractor with link to online documentation
2024-04-10 12:50:18 +01:00
Michael Nebel
ff498f616a
C#: Some renaming.
2024-04-10 13:20:57 +02:00
Rasmus Wriedt Larsen
9615e2ded9
Python: Remove deprecated stubs for points-to tests
...
I grep'ed through all our options files, and couldn't find any tests
that relies on these anymore 👍
2024-04-10 13:12:36 +02:00
Rasmus Wriedt Larsen
78ca691912
Python: remove deprecated points-to test for zope
2024-04-10 13:12:17 +02:00
Rasmus Wriedt Larsen
3db560158a
Merge pull request #16169 from RasmusWL/mad-remoteflowsource
...
Python: Fix `RemoteFlowSourceFromCsv`
2024-04-10 13:06:42 +02:00
Mathias Vorreiter Pedersen
59936c8642
Merge pull request #16151 from MathiasVP/use-shared-typeflow-lib
...
C++: Use the shared typeflow library
2024-04-10 12:02:03 +01:00
Michael Nebel
3b42dc25a1
C#: Also use AssemblyLookupLocation for framework dlls.
2024-04-10 12:56:48 +02:00
Owen Mansel-Chan
a18a4fb62e
Avoid magic in TSynthLocation definition
...
This improves performance, because in this case magic is not beneficial.
2024-04-10 11:47:13 +01:00
Michael Nebel
99f0ed26e9
C#: Make the assembly lookup case insensitive on the dll file extension and log if no dlls are found in a directory.
2024-04-10 12:45:28 +02:00
Michael Nebel
9eb13833fa
C#: Code quality improvements.
2024-04-10 12:45:18 +02:00
Michael Nebel
2bea927d43
C#: Update expected test output.
2024-04-10 12:41:39 +02:00
Michael Nebel
d04bf6b6d6
C#: Don't include Semmle.* dlls, if the executing runtime is used as framework.
2024-04-10 12:41:39 +02:00
Michael Nebel
646b272b4e
C#: Move the AssemblyPath class to its own file.
2024-04-10 12:41:39 +02:00
Michael Nebel
6299d9cecd
C#: Introduce AssemblyPath and re-factor AssemblyCache to use this instead of strings.
2024-04-10 12:41:29 +02:00
Michael Nebel
bee54e4247
C#: Add desktop runtime dependencies integration test.
2024-04-10 12:35:52 +02:00
Owen Mansel-Chan
b4829addf7
Add comments with link to online doc
2024-04-10 10:48:23 +01:00
Rasmus Wriedt Larsen
4fed3cf12d
Python: Fix RemoteFlowSourceFromCsv
2024-04-10 11:31:34 +02:00
Joe Farebrother
976ca48317
Review suggestions - rename sink class and add barrier out
2024-04-10 10:17:19 +01:00
Dave Bartolomeo
996f535f0b
Merge pull request #16103 from github/dbartol/javadoc-record
...
Allow `@param` tags to apply to record parameters
2024-04-09 14:21:45 -04:00
Geoffrey White
138975e4a8
C++: Add ZMQ summary models.
2024-04-09 18:10:15 +01:00
Geoffrey White
783ce48538
C++: Add test cases for ZMQ summary models.
2024-04-09 18:08:56 +01:00
Mathias Vorreiter Pedersen
8a92a4250f
C++: Autoformat.
2024-04-09 17:53:33 +01:00
Dave Bartolomeo
b9cfeaf614
Add test case
2024-04-09 12:41:32 -04:00
Taus
3656376cc4
Merge pull request #16064 from github/max-schaefer/fix-unexploitable-types
...
Automodel: Filter unexploitable types in application mode.
2024-04-09 17:14:53 +02:00
Mathias Vorreiter Pedersen
a53ef495ee
C++: Simplify 'hasExactBufferType' and add comments.
2024-04-09 16:04:20 +01:00
Felicity Chapman
5253c96aa2
Merge pull request #16162 from github/felicitymay/threat-models-csharp
...
Make duplicated content clear
2024-04-09 15:47:44 +01:00
Mathias Vorreiter Pedersen
291cc0a671
C++: Anonymous namespaces provide internal linkage.
2024-04-09 15:25:13 +01:00
Owen Mansel-Chan
5e4a5c1571
Merge pull request #16160 from owen-mc/java/delete-jdk-internal-models
...
Java: Delete models for JDK internal packages
2024-04-09 15:01:16 +01:00
Mathias Vorreiter Pedersen
2a7420ce11
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TypeFlow.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2024-04-09 15:00:23 +01:00
Geoffrey White
1264e6e292
C++: Fit the function pointer tests better with what is and isn't working.
2024-04-09 14:57:15 +01:00
Max Schaefer
deb78b248b
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2024-04-09 14:38:17 +01:00
Tom Hvitved
6c9a0e4a9a
Merge pull request #16154 from hvitved/ruby/redundant-implicit-read
...
Ruby: Remove two redundant `allowImplicitRead` predicates
2024-04-09 15:38:05 +02:00
Jeroen Ketema
46c44b4dc0
C++: Update QLDoc of IRDeclarationEntry to reflect current reality
2024-04-09 15:15:41 +02:00
Jeroen Ketema
e821a62b44
C++: Update expected test results
2024-04-09 15:15:41 +02:00
Rasmus Wriedt Larsen
6f1a9d4574
Merge pull request #16159 from RasmusWL/fix-integration-tests
...
Python: Fixup integration tests after no dep inst
2024-04-09 15:08:20 +02:00
Michael B. Gale
0c3c20ece1
Docs: Add macOS 14 to list of supported operating systems
2024-04-09 14:06:24 +01:00
Felicity Chapman
e6d63b980d
Make duplicated content clear
2024-04-09 14:05:42 +01:00
Mathias Vorreiter Pedersen
e9cd2dc9e1
C++: Implement 'lambdaCreation' and 'lambdaCall' for models-as-data.
2024-04-09 14:05:32 +01:00
Rasmus Wriedt Larsen
16e2ac898f
JS: Parser: Remove direct this.strict assignment
2024-04-09 14:58:14 +02:00
Geoffrey White
4d5f158652
C++: Pivot ReturnKind solution to derive types from SSA + AST, rather than SSA + MAD.
2024-04-09 13:49:21 +01:00
Rasmus Wriedt Larsen
6ce38be3cc
Merge pull request #16112 from github/tausbn/python-various-extractor-fixups
...
Python: Various extractor fixups
2024-04-09 14:46:23 +02:00
Asger F
f5355cfa98
Dynamic: Sync ApiGraphModels.qll
2024-04-09 14:37:20 +02:00
Rasmus Wriedt Larsen
1985dd629d
JS: Parser: Never run in strict mode
...
This initial change is a bit of a hacky way to achieve our goals (since
it doesn't rewrite all the uses of this.strict), but it is easy to
understand is correct. Let's accept test changes NOW, and ensure that
later changes don't change things further.
2024-04-09 14:37:07 +02:00
Asger F
82101434fd
Dynamic: Add hasPrettyName()
2024-04-09 14:32:59 +02:00
Asger F
8cb80d6014
JS: Switch from hasLocationInfo to Location
2024-04-09 14:32:59 +02:00
Asger F
81b96a8041
JS: Ensure MkClassInstance exists for base classes
2024-04-09 14:32:58 +02:00
Asger F
29a61458e0
JS: Add test case showing problem with chains going through internal classes
2024-04-09 14:32:58 +02:00
Asger F
56ebe6c727
JS: More re-export logic to handle subclass export
2024-04-09 14:32:58 +02:00
Asger F
f2ea88aa4c
JS: Add test showing missing re-export of base class relationship
2024-04-09 14:32:58 +02:00
Asger F
9313564e64
JS: Add subclassing test and fix lack of subclassing handling
2024-04-09 14:32:58 +02:00
Asger F
ef7767b6cd
JS: Add partial test for subclassing
2024-04-09 14:32:58 +02:00
Asger F
3022c59654
JS: Add access path alias test
2024-04-09 14:32:58 +02:00
Asger F
ab3c03d2d6
JS: Add test where root export object is a function
2024-04-09 14:32:58 +02:00
Asger F
f4e05cc621
JS: Add tests with semi-internal class problem
2024-04-09 14:32:58 +02:00
Asger F
946f0b4dc4
JS: Add test for class with aliases
2024-04-09 14:32:58 +02:00
Asger F
348c95ebe1
JS: Add a test case with fluent flow
2024-04-09 14:32:58 +02:00
Asger F
c55e03c588
Dynamic/JS: Add support for re-exporting type models
2024-04-09 14:32:58 +02:00
Asger F
acef9b7111
Dynamic/JS: Add library for exporting models
2024-04-09 14:32:58 +02:00
Michael Nebel
bd1de179b3
Merge pull request #15887 from michaelnebel/csharp/qualifiedname
...
C#: Fully qualified name.
2024-04-09 14:26:36 +02:00
Owen Mansel-Chan
ae8240a695
Delete models for JDK internal packages
2024-04-09 13:23:03 +01:00
Rasmus Wriedt Larsen
e9e7ccddce
Python: delete force-enable-library-extraction integration test
2024-04-09 14:02:34 +02:00
Rasmus Wriedt Larsen
a0d6324f68
Python: Fix ignore-venv integration test
...
Now that we no longer support the fallback option
(https://github.com/github/codeql/pull/16127 )
2024-04-09 14:01:10 +02:00
Rasmus Wriedt Larsen
bb4952f557
Revert "Python: Disable failing integration tests"
...
This reverts commit 8c2455fc11 .
2024-04-09 14:00:25 +02:00
Owen Mansel-Chan
322d9fe105
Update change note wording
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-04-09 12:46:26 +01:00
Paolo Tranquilli
7b2dc325ec
Merge pull request #16153 from github/redsun82/setup-swift-fix
...
CI: apply `setup-swift` workaround
2024-04-09 13:15:39 +02:00
Taus
29b843f772
Merge pull request #16158 from github/tausbn/python-disable-failing-integration-tests
...
Python: Disable failing integration tests
2024-04-09 13:12:48 +02:00
Geoffrey White
13734d4e62
C++: Improve indirectionForModelledFunction.
2024-04-09 12:06:03 +01:00
Geoffrey White
70bb29581d
C++: Test failures.
2024-04-09 11:53:33 +01:00
Taus
8c2455fc11
Python: Disable failing integration tests
...
These failures were likely caused by
https://github.com/github/codeql/pull/16127
My guess is that they can probably be deleted altogether, but as the
failures are blocking other development, I have opted to simply disable
them for the time being.
2024-04-09 10:49:30 +00:00
Tamás Vajk
239776ba21
Merge pull request #16124 from tamasvajk/buildless/nuget-feed-precheck
...
C#: Validate all nuget feeds to respond in reasonable time
2024-04-09 12:12:06 +02:00
Owen Mansel-Chan
a65b02eb28
Update test expectations
2024-04-09 10:59:06 +01:00
Owen Mansel-Chan
f89fb8eb57
Add change note
2024-04-09 10:59:00 +01:00
Owen Mansel-Chan
6ae07a2c43
Add location for implicitly declared variables
2024-04-09 10:58:55 +01:00
Owen Mansel-Chan
ffdb610d93
Add new IR::Instruction MkTypeSwitchImplicitVariable
...
It represents the implicit declaration of a variable at the beginning of a case clause
2024-04-09 10:58:49 +01:00
Owen Mansel-Chan
4ffc4f5c62
Add test for dataflow through switches
2024-04-09 10:58:42 +01:00
Owen Mansel-Chan
0ed330056d
Add extra CFG test for type switch
2024-04-09 10:55:52 +01:00
Owen Mansel-Chan
8df23522f0
Delete redundant test
2024-04-09 10:55:40 +01:00
Mathias Vorreiter Pedersen
448a9015c0
C++: Compute the number of indirections from MaD using a new predicate.
2024-04-09 10:33:06 +01:00
Mathias Vorreiter Pedersen
21592563cb
C++: Define 'ReturnKind's in terms of SSA instead of 'Function'.
2024-04-09 10:32:31 +01:00
Tom Hvitved
5f8eb7b138
Merge pull request #16110 from hvitved/dataflow/param-flow-no-expects-content
...
Data flow: Block flow at `expectsContents` nodes in `parameterValueFlow`
2024-04-09 11:26:24 +02:00
yoff
1048cf7c5e
Merge pull request #15711 from RasmusWL/tt-content
...
Python: Add type tracking for content
2024-04-09 10:37:43 +02:00
Mathias Vorreiter Pedersen
c325a79206
C++: Ensure 'isConditionalTemporaryDestructorCall' only holds when the reused expression is a temporary.
2024-04-09 09:32:54 +01:00
Michael Nebel
10d96ee02f
C#: Address review comments.
2024-04-09 10:31:48 +02:00
Mathias Vorreiter Pedersen
17c8fa3e84
Update cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2024-04-09 09:27:44 +01:00
Tom Hvitved
e6984aa865
Ruby: Remove two redundant allowImplicitRead predicates
2024-04-09 10:10:25 +02:00
Tamas Vajk
80995ec1d7
Improve comments on environment variable names
2024-04-09 09:51:45 +02:00
codeqlhelper
ac7a25734b
Merge branch 'main' into main
2024-04-09 15:42:58 +08:00
Paolo Tranquilli
e3d676f91b
CI: apply tentative setup-swift fix
2024-04-09 09:37:21 +02:00
Erik Krogh Kristensen
44fba68015
Merge pull request #16128 from erik-krogh/java-info
...
Java: add link to the source variable in the alert-message for `java/implicit-cast-in-compound-assignment`
2024-04-09 08:55:09 +02:00
Mathias Vorreiter Pedersen
386580fc94
C++: Accept test changes.
2024-04-08 21:26:12 +01:00
Mathias Vorreiter Pedersen
b2002a981a
C++: Use the shared typeflow library to determine whether a pointer points to a buffer or an object.
2024-04-08 21:25:05 +01:00
Mathias Vorreiter Pedersen
c389611e5c
C++: Add spurious dataflow test.
2024-04-08 21:24:59 +01:00
erik-krogh
8cb6598f50
fixing that I put a type on the wrong thing in the alert-message
2024-04-08 20:51:19 +02:00
codeqlhelper@gmail.com
334c0d0449
...
2024-04-09 02:06:06 +08:00
codeqlhelper
fc26e148fd
Create 2024-04-09-reduce-FP.md
2024-04-09 02:00:52 +08:00
Geoffrey White
e3ce7c608b
C++: Fix indirection ambiguity in the test.
2024-04-08 18:27:51 +01:00
Geoffrey White
087d689997
C++: Additional test cases.
2024-04-08 18:18:30 +01:00
codeqlhelper
af2a7eadc3
Reduce false alarms of InconsistentNullnessTesting.ql
...
We should ignore `checked` in a macro to avoid too many false alarms,
2024-04-09 00:07:40 +08:00
codeqlhelper
fb15a4ea11
Reduce the false alarms of GlobalUseBeforeInit.ql
2024-04-09 00:03:05 +08:00
Geoffrey White
c0c1ab7006
C++: Fix code scanning warnings.
2024-04-08 16:05:55 +01:00
Geoffrey White
31a246b554
Swift: Remove similar non-functional case from Swift as well.
2024-04-08 16:05:50 +01:00
Geoffrey White
06d369ba11
C++: Remove untested PostUpdateNode code for now, and field cases that don't work anyway.
2024-04-08 16:05:18 +01:00
Geoffrey White
b2b2c2016c
C++: Update more QLDoc.
2024-04-08 16:04:23 +01:00
Mathias Vorreiter Pedersen
4fa53b63ae
Merge branch 'main' into destructors-for-unconditional-unnamed
2024-04-08 15:42:35 +01:00
Mathias Vorreiter Pedersen
9c25ce4079
C++: Add testcase with two destructor calls without a temporary object expression at the top-level.
2024-04-08 15:35:33 +01:00
Mathias Vorreiter Pedersen
e08790d21e
Merge pull request #16146 from MathiasVP/missing-destructor-for-parameter
...
C++: Add example with missing destructor call on parameter
2024-04-08 15:33:00 +01:00
Mathias Vorreiter Pedersen
b581a9ba04
C++: Add example with missing destructor calls on parameters passed by value.
2024-04-08 13:49:05 +01:00
Asger F
f08e8b1d5e
Merge pull request #16136 from asgerf/js/instance-to-subclasses
...
JS: Make getInstance() propagate to subclasses
2024-04-08 14:37:42 +02:00
Jeroen Ketema
ad1139d3af
Merge pull request #16116 from jketema/cpp-version-in-doc
...
C++: Update supported compiler versions based on frontend documentation
2024-04-08 14:09:40 +02:00
Mathias Vorreiter Pedersen
febd06063a
C++: Add testcase where two destructor calls are remapped to a temporary object expression.
2024-04-08 13:03:51 +01:00
Michael Nebel
fc689efd1b
C#: Add debug version of the getFullyQualifiedName predicate.
2024-04-08 13:47:59 +02:00
Michael Nebel
8fbfafc1d7
C#: Dont cache the deprecated getFullyQualifiedName predicate.
2024-04-08 13:46:45 +02:00
Michael Nebel
b677e89f35
C#: Deprecate getFullyQualifiedNameWithTypes.
2024-04-08 13:46:45 +02:00
Michael Nebel
8fa9191434
C#: Deprecate the getFullyQualifiedName predicate.
2024-04-08 13:46:44 +02:00
Michael Nebel
2fb9c2db6f
C#: Remove deprecated qualifiedName predicates.
2024-04-08 13:46:44 +02:00
Tamas Vajk
d7f8b96158
Improve logging
2024-04-08 13:15:33 +02:00
Tamas Vajk
95896bc95f
Make sure diagnostic directory exists
2024-04-08 13:15:32 +02:00
Tamas Vajk
6a5520c85d
Add integration test for unreachable nuget feeds
2024-04-08 13:15:32 +02:00
Tamas Vajk
7051db5e1c
Fix code review findings
2024-04-08 13:15:32 +02:00
Tamas Vajk
9aa85f2d13
C#: Validate all nuget feeds to respond in reasonable time
2024-04-08 13:15:20 +02:00
Geoffrey White
ec515f967d
C++: Update QLDoc.
2024-04-08 11:57:35 +01:00
erik-krogh
642a134035
add tests for the fixes in the qhelp, and fix an FP that appeared
2024-04-08 12:00:27 +02:00
erik-krogh
59c72b683c
update the url-redirect QHelp
2024-04-08 12:00:27 +02:00
Tom Hvitved
aa24c29395
Merge pull request #16122 from hvitved/ruby/cfg-may-raise-issue
...
Ruby: Fix CFG for nodes that may raise
2024-04-08 11:20:49 +02:00
Mathias Vorreiter Pedersen
9917c3c5ba
C++: Add change note.
2024-04-08 10:10:31 +01:00
Mathias Vorreiter Pedersen
fae002fbb7
C++: Accept test changes.
2024-04-08 10:10:31 +01:00
Mathias Vorreiter Pedersen
4831ee65b6
C++: Enable sound IR.
2024-04-08 10:10:31 +01:00
Mathias Vorreiter Pedersen
b8e6632bf1
Merge pull request #16140 from MathiasVP/alias-model-for-fopen
...
C++: Add alias models for `fopen` and friends
2024-04-08 10:09:54 +01:00
Rasmus Wriedt Larsen
dfe2f1a52b
Merge pull request #16127 from RasmusWL/remove-dep-inst-fallback
...
Python: Extractor: Remove dependency installation fallback
2024-04-08 10:43:50 +02:00
Asger F
ad9838d0fe
JS: Add change note
2024-04-08 10:02:28 +02:00
Asger F
6e931000c2
JS: Rewrite docs for API::Node#getInstance()
2024-04-08 10:02:22 +02:00
Asger F
d829dd435f
JS: Update docs
2024-04-08 10:00:06 +02:00
erik-krogh
018b066b95
autoformat
2024-04-08 07:15:33 +02:00
erik-krogh
ca4f667053
add fallback if I can't easily determine the variable
2024-04-08 07:14:48 +02:00
erik-krogh
8b220cc1b3
also get the variable for array accesses
2024-04-08 07:14:48 +02:00
erik-krogh
795b767b6e
add link to the source variable in the alert-message for java/implicit-cast-in-compound-assignment
2024-04-08 07:14:48 +02:00
Mathias Vorreiter Pedersen
d40fa4cfba
C++: Accept test changes.
2024-04-07 15:50:16 +01:00
Mathias Vorreiter Pedersen
8a6a60e59b
C++: Also handle destructor calls on converted expressions in PrintAST.
2024-04-07 15:49:50 +01:00
Mathias Vorreiter Pedersen
fcd0e9999c
C++: Accept test changes.
2024-04-07 15:49:27 +01:00
Mathias Vorreiter Pedersen
89eaadd76f
C++: Move destructor calls from expressions with a temporary object conversion to the temporary object conversion.
2024-04-07 15:48:38 +01:00
Mathias Vorreiter Pedersen
a0de95dc44
C++: Add testcases that produces an 'missingOperandType' and 'missingPhiOperand' consistency errors.
2024-04-07 14:26:30 +01:00
Mathias Vorreiter Pedersen
557555eb71
C++: Make Code Scanning happy.
2024-04-05 19:03:03 +01:00
Mathias Vorreiter Pedersen
777755a241
C++: Add alias models for 'fopen'.
2024-04-05 19:02:23 +01:00
Mathias Vorreiter Pedersen
45e71543b4
C++: Accept test changes.
2024-04-05 18:08:25 +01:00
Mathias Vorreiter Pedersen
54e4103e71
C++: Fix another multiple parents problem.
2024-04-05 18:07:53 +01:00
Mathias Vorreiter Pedersen
955f9c735c
C++: Add a failing testcase.
2024-04-05 18:05:30 +01:00
Mathias Vorreiter Pedersen
2256c4c008
Merge pull request #15728 from MathiasVP/shared-typeflow-library
...
Java/Shared: Refactor `TypeFlow.qll` into a shared library
2024-04-05 16:24:17 +01:00
Mathias Vorreiter Pedersen
c85db2a026
Merge pull request #16137 from MathiasVP/swift-5.10-support-fix
...
Docs: Remove Swift version in footnote
2024-04-05 14:59:39 +01:00
Mathias Vorreiter Pedersen
d114d09d73
Docs: Remove Swift version in footnote.
2024-04-05 14:52:19 +01:00
Mathias Vorreiter Pedersen
4c01c06f0c
C++: Accept test changes.
2024-04-05 14:49:22 +01:00
Mathias Vorreiter Pedersen
f1d2dac648
C++: Fix a bug where the destructor attached to a 'new' expression would
...
have multiple parents (the 'new' expression, the call to 'operator new',
and the size expression). This happens because the latter two are
'TranslatedExpr's that return the 'new' expression as their expression
even though they don't technically represent the translation of this
expression.
To prevent this bug we tell the IR construction that the latter two
handle their destructors explicitly which means that IR construction
doesn't try to synthesize them.
2024-04-05 14:46:27 +01:00
Mathias Vorreiter Pedersen
b042366c8e
C++: Add a failing testcase.
2024-04-05 14:41:11 +01:00
Asger F
cd84fa4bee
JS: Make getInstance() propagate to subclasses
2024-04-05 15:12:02 +02:00
Mathias Vorreiter Pedersen
27688bf154
Shared: Rename 'joinStep' to 'joinStepNotNull' to prevent name clashes. Rename 'sccJoinStep' to 'sccJoinStepNotNull' to match the new name.
2024-04-05 13:25:29 +01:00
Mathias Vorreiter Pedersen
bae633ad24
Shared: Make 'erasedHaveIntersection' more identical to the Java version.
2024-04-05 13:19:21 +01:00
Mathias Vorreiter Pedersen
9deeb67af4
Update shared/typeflow/codeql/typeflow/internal/TypeFlowImpl.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-04-05 13:10:08 +01:00
Mathias Vorreiter Pedersen
ba347bdcf2
Merge pull request #16133 from MathiasVP/swift-5.10-support-docs
...
Docs: Mark Swift version 5.10 as supported
2024-04-05 13:07:09 +01:00
Mathias Vorreiter Pedersen
bffa262a2c
Shared: Make 'getAStrictAncestor' private.
2024-04-05 13:04:26 +01:00
Mathias Vorreiter Pedersen
96e205a4a6
Docs: Mark Swift 5.10 as supported.
2024-04-05 12:59:07 +01:00
Mathias Vorreiter Pedersen
a2c29fe094
Shared: nomagicify 'getASourceSupertype'.
2024-04-05 12:57:11 +01:00
Mathias Vorreiter Pedersen
3f6967829e
Update shared/typeflow/codeql/typeflow/internal/TypeFlowImpl.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-04-05 12:53:23 +01:00
Mathias Vorreiter Pedersen
1775bdee5f
Java: Remove redundant qualifiers.
2024-04-05 12:52:04 +01:00
Mathias Vorreiter Pedersen
26cf8df8d6
Update java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-04-05 12:50:26 +01:00
Mathias Vorreiter Pedersen
3f63d3a865
Update java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-04-05 12:49:40 +01:00
Mathias Vorreiter Pedersen
1acbb84444
Shared/Java: Make the 'isNull' interface slightly prettier.
2024-04-05 11:58:43 +01:00
Pierre
e5b7957e4a
Merge pull request #16130 from github/sitedocs/2.17.0
...
Add changelog for 2.17.0
2024-04-05 12:46:45 +02:00
Taus
ef9f99b3be
Python: Remove unparse.py
2024-04-05 12:30:40 +02:00
Taus
599f573a4a
Python: Preserve comments and docstrings in extractor
2024-04-05 12:30:40 +02:00
Taus
752d28c1b9
Python: Update repinning instructions
...
This aligns us better with the corresponding instructions for
the Ruby extractor.
2024-04-05 12:30:40 +02:00
Taus
7bec41096c
Python: Rename tsg-build target to tsp-build
...
The latter makes more sense, as it's actually building
`tree-sitter-python`.
2024-04-05 12:30:40 +02:00
Mathias Vorreiter Pedersen
bb2c690bdd
C++: Accept test changes.
2024-04-05 09:49:38 +01:00
Mathias Vorreiter Pedersen
d279e3f17a
C++: Suppress destructor calls for the right-hand side of logical operations since these are also conditional.
2024-04-05 09:47:11 +01:00
Mathias Vorreiter Pedersen
e63a607eb3
C++: Add another test with conditional construction.
2024-04-05 09:41:50 +01:00
Pierre
268141822d
Merge branch 'main' into sitedocs/2.17.0
2024-04-05 09:39:18 +02:00
Pierre
9e49c5f185
Add changelogs for 2.16.6 (to this branch) and 2.17.0 (new)
2024-04-05 09:34:27 +02:00
Pierre
0604b4cc14
Changelog mergeback for versions prior to 2.17.0
2024-04-05 09:33:51 +02:00
Owen Mansel-Chan
e10333bf2b
Merge pull request #14919 from github/java/jdk-model-autogeneration
...
Java: add dataflow-generated models for JDK17
2024-04-04 21:12:55 +01:00
Owen Mansel-Chan
32ea94e625
Merge pull request #16123 from owen-mc/go/misc-trivial-fixes
...
Go: miscellaneous trivial fixes
2024-04-04 21:09:15 +01:00
Mathias Vorreiter Pedersen
b6ddb97e40
C++: Accept test changes.
2024-04-04 20:02:02 +01:00
Mathias Vorreiter Pedersen
f098b8eb82
C++: Make sure the edge kind out of a throw is an 'ExceptionEdge' even if destructors are called.
2024-04-04 20:01:52 +01:00
Geoffrey White
bdc3d10cdb
C++: QLDoc SummaryCall, SourceCallable and SummarizedCallable.
2024-04-04 17:13:59 +01:00
Geoffrey White
49ef677b1d
C++: Additional test case for function pointers.
2024-04-04 16:53:29 +01:00
Geoffrey White
144c19db74
C++: Add a test of SummaryCalls, SummarizedCallables and sourceCallables.
2024-04-04 16:50:50 +01:00
Mathias Vorreiter Pedersen
587ae07579
C++: Accept query test changes.
2024-04-04 16:23:41 +01:00
Mathias Vorreiter Pedersen
8f11cb64ec
C++: Accept test changes.
2024-04-04 16:03:06 +01:00
Mathias Vorreiter Pedersen
180888616b
C++: Properly handle the case where a TranslatedElement has no children.
2024-04-04 16:02:01 +01:00
Mathias Vorreiter Pedersen
805b4d6465
C++: Add a failing testcase.
2024-04-04 16:01:25 +01:00
Rasmus Wriedt Larsen
4faff83aa0
Python: Extractor: Remove dependency installation fallback
2024-04-04 16:49:55 +02:00
Dave Bartolomeo
2336e14627
Remove expectation of spurious diagnostic
2024-04-04 10:31:05 -04:00
Mathias Vorreiter Pedersen
774efb5f3f
Merge branch 'main' into destructors-for-unconditional-unnamed
2024-04-04 15:04:34 +01:00
Asger F
b8b8e2b991
Merge pull request #16054 from asgerf/js/call-graph-improvement2
...
JS: more implied receiver steps
2024-04-04 15:54:06 +02:00
Mathias Vorreiter Pedersen
0b7070feec
C++: Accept test changes.
2024-04-04 14:51:16 +01:00
Mathias Vorreiter Pedersen
73602dca92
C++: Also suppress destructor calls on throwing ternary expressions.
2024-04-04 14:51:11 +01:00
Mathias Vorreiter Pedersen
a6a0e20176
C++: Accept test changes.
2024-04-04 14:45:20 +01:00
Mathias Vorreiter Pedersen
796fcfec6c
C++: Handle conversions in 'isInConditionalEvaluation'.
2024-04-04 14:44:16 +01:00
Erik Krogh Kristensen
0cfac605bd
Merge pull request #16100 from erik-krogh/fix-js-rb-typo
...
RB: fix language specifier typo in qhelp for rb/multi-char-san
2024-04-04 15:42:45 +02:00
Mathias Vorreiter Pedersen
56a132fa8e
C++: Accept test changes.
2024-04-04 14:41:24 +01:00
Mathias Vorreiter Pedersen
a756f14e77
C++: Only report implicit destructors if we need to translate them.
2024-04-04 14:41:23 +01:00
Tamas Vajk
e42639852c
C#: Move nuget related DependencyManager methods to separate file
2024-04-04 14:25:09 +02:00
Tom Hvitved
ce3b359813
Ruby: Fix CFG for nodes that may raise
2024-04-04 13:27:29 +02:00
Tom Hvitved
6d2d9654b5
Ruby: Add CFG test
2024-04-04 13:27:29 +02:00
Mathias Vorreiter Pedersen
d4e2d37311
C++: Add a simple test that fails.
2024-04-04 11:29:25 +01:00
Mathias Vorreiter Pedersen
cf996f8600
C++: Accept test changes.
2024-04-04 11:28:33 +01:00
Robert Marsh
17e8c95e7f
C++: suppress destructors on conditional temporaries
2024-04-04 11:28:10 +01:00
Mathias Vorreiter Pedersen
894d934de8
C++: Accept test changes.
2024-04-04 11:28:01 +01:00
Owen Mansel-Chan
7fc5265168
Misc small tidy-ups mostly suggested by linter
2024-04-04 10:51:22 +01:00
Owen Mansel-Chan
68321dd9ec
Use nil for optional argument to packages.Visit
2024-04-04 10:51:13 +01:00
Owen Mansel-Chan
d9fe39d5ae
Extractor: add comment about tw.Package.TypesInfo.Defs
2024-04-04 10:37:31 +01:00
Owen Mansel-Chan
720961787b
Improve QLDoc for CaseClause
2024-04-04 10:37:25 +01:00
Jeroen Ketema
a8f27af6d8
Merge pull request #16119 from jketema/coroutine2
...
C++: Add more missing variable declaration tests
2024-04-04 11:35:52 +02:00
Robert Marsh
75c453fd30
C++: Unsuppress temporary destructors in IR
2024-04-04 10:29:59 +01:00
Jeroen Ketema
70491c4a8d
C++: Add more missing variable declaration tests
2024-04-04 10:54:09 +02:00
Tom Hvitved
c03b74545d
Merge pull request #16115 from hvitved/dataflow/fix-bad-join
...
Data flow: Fix bad join
2024-04-04 10:51:22 +02:00
Jeroen Ketema
55d1f43239
C++: Update supported compiler versions based on frontend documentation
2024-04-04 10:18:56 +02:00
Tom Hvitved
79440f6734
Data flow: Fix bad join
...
```
Evaluated relational algebra for predicate DataFlowImpl::Impl<PolynomialReDoSQuery::PolynomialReDoSFlow::C>::storeEx/5#34133ef9@0425e0m7 with tuple counts:
2209132 ~1% {6} r1 = SCAN `DataFlowImpl::Impl<PolynomialReDoSQuery::PolynomialReDoSFlow::C>::storeExUnrestricted/5#3a86a98e` OUTPUT In.1, In.0, In.1, In.2, In.3, In.4
4338565685 ~1% {6} | JOIN WITH `DataFlowPublic::ContentSet.getAReadContent/0#dispred#e4acf74e_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
34811200 ~1428% {5} | JOIN WITH `project#DataFlowImpl::Impl<PolynomialReDoSQuery::PolynomialReDoSFlow::C>::readSetEx/3#35ac556a` ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5
return r1
```
2024-04-04 10:02:02 +02:00
Tom Hvitved
c2f91a5ccf
Merge pull request #16104 from hvitved/csharp/more-compiler-generated
...
C#: Mark more expressions as compiler generated
2024-04-04 09:09:16 +02:00
Tom Hvitved
fc02938687
Merge pull request #16088 from hvitved/csharp/library-property-store
...
C#: Include all non-source-code properties in data flow
2024-04-04 09:04:00 +02:00
Tamás Vajk
7beb73729d
Merge pull request #16036 from tamasvajk/autobuilder/disposable
...
C#: Properly dispose diagnostic writer objects
2024-04-04 08:21:11 +02:00
Tom Hvitved
813f5b99e7
C#: Update PrintAST query
2024-04-03 20:03:02 +02:00
Tom Hvitved
d93d6585d9
C#: Mark more expressions as compiler generated
2024-04-03 20:03:02 +02:00
Tom Hvitved
c2d771b334
Ruby: Reduce alerts produced by MassAssignment.ql
2024-04-03 19:58:51 +02:00
Tom Hvitved
3c96bf6b22
Fix bad join
2024-04-03 19:41:37 +02:00
Erik Krogh Kristensen
35f61d9de4
Merge pull request #16107 from erik-krogh/fix-log-injection-typo
...
RB: Tiny fixes to log-injection QHelp
2024-04-03 18:29:37 +02:00
Tom Hvitved
2d4cf55c87
Merge pull request #15985 from hvitved/ruby/phi-barrier-guards
...
Ruby: Extend barrier guards to handle phi inputs
2024-04-03 15:22:39 +02:00
Tom Hvitved
7871fb8ce6
Data flow: Block flow at expectsContents nodes in parameterValueFlow
2024-04-03 15:19:34 +02:00
Tom Hvitved
137594cf36
Ruby: Add regression test
2024-04-03 15:19:34 +02:00
Geoffrey White
a8742ea111
C++: PascalCase and US spelling fixes.
2024-04-03 14:17:55 +01:00
Owen Mansel-Chan
fe24710c96
Improve QLDoc of Entity.getDeclaration
2024-04-03 14:09:37 +01:00
Owen Mansel-Chan
c7f2e991ed
Improve QLDoc for TypeAssertExpr
...
Include information about the type assert `x.(type)` used in type switches.
2024-04-03 13:59:04 +01:00
Owen Mansel-Chan
698debfa20
Extractor: explicitly deal with extracting x.(type) in type switches
2024-04-03 13:58:58 +01:00
Tamás Vajk
9be2b9cbdb
Merge pull request #16108 from tamasvajk/cleanup/utils
...
C#: Remove unused classes from `Util` project
2024-04-03 14:24:58 +02:00
Tamás Vajk
362a109e04
Remove redundant implemented interface
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-04-03 14:23:36 +02:00
Tom Hvitved
8b78463f25
Merge pull request #16087 from hvitved/dataflow/store-step-exploration
...
Data flow: Do not require stores to have matching reads in flow exploration
2024-04-03 14:10:28 +02:00
Tom Hvitved
550e251d68
Data flow: Do not require stores to have matching reads in flow exploration
2024-04-03 13:28:24 +02:00
Tamas Vajk
75894d581c
C#: Remove unused classes from Util project
2024-04-03 12:15:37 +02:00
Tom Hvitved
1dc13cc169
Merge pull request #15923 from hvitved/shared-xml-impl
...
Properly shared `XML.qll` implementation
2024-04-03 11:39:50 +02:00
Tom Hvitved
64e82bb00e
C#: Include all non-source-code properties in data flow
2024-04-03 10:22:36 +02:00
Tom Hvitved
cccb11f697
Merge pull request #16091 from hvitved/csharp/system-diagnostics-modules
...
C#: Neutralize some `System.Diagnostics` generated models
2024-04-03 10:21:56 +02:00
Tamas Vajk
fbec197d4a
Move TSP diagnostics related classes to separate files
2024-04-03 10:13:44 +02:00
Tamas Vajk
305fa84186
Change IDiagnosticsWriter to implement IDisposable
2024-04-03 10:08:46 +02:00
Tamas Vajk
0f980e2b97
C#: Properly dispose diagnostic writer objects
2024-04-03 09:47:24 +02:00
erik-krogh
ec32bdce63
fix unsanitized -> sanitized typo, and don't add a new variable just to remove newlines
2024-04-03 09:19:18 +02:00
Tamás Vajk
d7e514913f
Merge pull request #16039 from tamasvajk/fix/buildless-references
...
C#: Reword public mentions of C# buildless
2024-04-03 09:19:13 +02:00
Dave Bartolomeo
ce98353d22
Allow @param tags to apply to record parameters
2024-04-02 15:15:11 -04:00
Chuan-kai Lin
1f27eb3658
Merge pull request #16102 from github/post-release-prep/codeql-cli-2.17.0
...
Post-release preparation for codeql-cli-2.17.0
2024-04-02 11:47:23 -07:00
github-actions[bot]
19797fdd27
Post-release preparation for codeql-cli-2.17.0
2024-04-02 18:20:44 +00:00
Chuan-kai Lin
839ca60f90
Merge pull request #16099 from github/release-prep/2.17.0
...
Release preparation for version 2.17.0
2024-04-02 11:07:43 -07:00
erik-krogh
572d3ba542
fix language specifier typo in qhelp for rb/multi-char-san
2024-04-02 19:40:46 +02:00
github-actions[bot]
c511de2eae
Release preparation for version 2.17.0
2024-04-02 17:15:41 +00:00
Chuan-kai Lin
b87cf3c41a
Merge pull request #16098 from github/revert-16085-release-prep/2.17.0
...
Revert "Release preparation for version 2.17.0"
2024-04-02 10:11:15 -07:00
Chuan-kai Lin
6c649c898e
Revert "Release preparation for version 2.17.0"
2024-04-02 10:06:20 -07:00
Mathias Vorreiter Pedersen
4baa9ad8c8
C++: Accept test changes.
2024-04-02 18:02:43 +01:00
Mathias Vorreiter Pedersen
baa508d336
C++: Add some simple coroutine tests.
2024-04-02 18:02:43 +01:00
Geoffrey White
db60360293
C++: Add a test case where a function has a MAD model *and* an implementation.
2024-04-02 17:50:00 +01:00
Geoffrey White
9c4567bd6d
Swift: Additional models-as-data doc change I missed out in the other PR - neither CPP nor Swift support 'Parameter' with no argument in an access path.
2024-04-02 16:18:25 +01:00
Geoffrey White
f2ef4ad6ac
C++: Update for the provenance changes.
2024-04-02 16:15:08 +01:00
Geoffrey White
57beb73bf7
C++: Update for the dataflow hasLocationInfo -> getLocation change made on main.
2024-04-02 16:15:06 +01:00
Geoffrey White
f1ead2554f
C++: Trivial merge fixes.
2024-04-02 16:15:05 +01:00
Geoffrey White
33164c8a43
Merge branch 'main' into mad
2024-04-02 16:14:53 +01:00
Michael B. Gale
48f93438d8
Merge pull request #16096 from github/mbg/go/revert-auto-version-fixing
...
Go: Revert `go version` call in `LoadGoModules`
2024-04-02 16:01:45 +01:00
Geoffrey White
11acb499bb
Merge pull request #16042 from geoffw0/maddoc
...
Remove [potentially] untrue claims about models-as-data
2024-04-02 16:01:31 +01:00
Rasmus Wriedt Larsen
a22b9947c0
Python: Revert IterableSequenceNode as LocalSourceNode
...
When looking things over a bit more, we could actually exclude the steps
that would never be used instead. A much more involved solution, but
more performance oriented and clear in terms of what is supported (at
least until we start supporting type-tracking with more than depth 1
access-path, if that ever happens)
2024-04-02 16:51:00 +02:00
Michael B. Gale
55fa245194
Go: Revert go version call in LoadGoModules
2024-04-02 15:20:56 +01:00
Mathias Vorreiter Pedersen
0bf742b82d
Merge pull request #16089 from MathiasVP/fix-double-free-join
...
C++: Fix join order in 'cpp/double-free'.
2024-04-02 14:15:51 +01:00
Asger F
2feb00bb2e
Merge pull request #13303 from asgerf/js/use-server-and-client
...
JS: Move Directive subclasses into module and support "use client/server"
2024-04-02 15:13:45 +02:00
Michael Nebel
c378d6a661
Merge pull request #16027 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-04-02 14:08:09 +02:00
Tom Hvitved
368a500d93
C#: Neutralize some System.Diagnostics generated models
2024-04-02 13:58:55 +02:00
Felicity Chapman
75eee04f3e
Merge pull request #15890 from intrigus-lgtm/patch-9
...
[cpp-docs] Fix 404 link in guards library doc.
2024-04-02 12:49:03 +01:00
Rasmus Wriedt Larsen
8707a63edb
Python: Add comments around storeStepCommon
2024-04-02 13:26:26 +02:00
Rasmus Wriedt Larsen
20202aba90
Python: Deprecate AttributeName
2024-04-02 13:21:46 +02:00
Ian Lynagh
e610573411
Merge pull request #16078 from igfoo/igfoo/exprs_changes
...
Kotlin 2: Accept more changes
2024-04-02 12:19:17 +01:00
Ian Lynagh
e5999f76b0
Merge pull request #16079 from igfoo/igfoo/del
...
Kotlin 2: Accept some more location changes
2024-04-02 12:18:58 +01:00
Harry Maclean
409f46ef7b
Merge pull request #14308 from hmac/hmac-rb-csrf-not-enabled
...
Ruby: Add a query for CSRF protection not enabled
2024-04-02 11:30:36 +01:00
Jeroen Ketema
3c8c45872e
Merge pull request #16060 from jketema/qual-fix
...
C++: Output destructor calls for delete expressions
2024-04-02 11:49:51 +02:00
Henry Mercer
9409d7fdca
Merge pull request #16066 from github/henrymercer/ql-run-diagnostics
...
QL: Run diagnostics and summary metrics in code scanning
2024-04-02 10:45:50 +01:00
Mathias Vorreiter Pedersen
352e7de07d
C++: Accept test changes.
2024-04-02 10:43:10 +01:00
Jeroen Ketema
01183800a6
C++: Fix formatting
2024-04-02 11:38:19 +02:00
Jeroen Ketema
9190bf25ce
C++: Add example to QLDoc
2024-04-02 11:35:43 +02:00
Rasmus Wriedt Larsen
f33222c83b
JS: Add change-note
2024-04-02 11:10:53 +02:00
Mathias Vorreiter Pedersen
bd0ddec630
C++: Fix join order in 'cpp/double-free'.
2024-04-02 09:59:53 +01:00
Jeroen Ketema
a5d4fad806
C++: Output destructor calls for delete expressions
2024-04-02 10:32:03 +02:00
Tom Hvitved
a8dac17aec
Merge pull request #16016 from hvitved/csharp/remove-lgtm-autobuilder-options
...
C#: Remove support for legacy LGTM options in autobuilder
2024-04-02 10:03:10 +02:00
Erik Krogh Kristensen
332c1e3b8a
Merge pull request #16026 from erik-krogh/htmlSafeSan
...
RB: Add barrier guard for `.html_safe?` to the XSS queries
2024-04-02 07:54:19 +02:00
Erik Krogh Kristensen
0fd89549da
Merge pull request #16033 from github/dependabot/cargo/ql/regex-1.10.4
...
Bump regex from 1.10.3 to 1.10.4 in /ql
2024-04-02 07:52:17 +02:00
Erik Krogh Kristensen
58bf0b709f
Merge pull request #16077 from github/dependabot/cargo/ql/chrono-0.4.37
...
Bump chrono from 0.4.35 to 0.4.37 in /ql
2024-04-02 07:51:49 +02:00
github-actions[bot]
55987d9c1f
Add changed framework coverage reports
2024-04-02 00:16:19 +00:00
Chuan-kai Lin
0bc9318400
Merge pull request #16086 from github/post-release-prep/codeql-cli-2.17.0
...
Post-release preparation for codeql-cli-2.17.0
2024-04-01 08:41:39 -07:00
github-actions[bot]
8e61c6625b
Post-release preparation for codeql-cli-2.17.0
2024-04-01 15:27:42 +00:00
Chuan-kai Lin
6475034b09
Merge pull request #16085 from github/release-prep/2.17.0
...
Release preparation for version 2.17.0
2024-04-01 06:53:52 -07:00
github-actions[bot]
ec97d9a304
Release preparation for version 2.17.0
2024-04-01 13:46:57 +00:00
Owen Mansel-Chan
fdafaa2ff4
Change note: update numbers of models added
2024-04-01 14:04:01 +01:00
Owen Mansel-Chan
e3fb40a842
Adjust change note
2024-04-01 14:03:53 +01:00
Owen Mansel-Chan
a5979e209a
Add change note
2024-04-01 14:03:47 +01:00
Owen Mansel-Chan
fa614df3f4
Tests fixed by model for CharBuffer.wrap(char[])
2024-04-01 14:03:42 +01:00
Owen Mansel-Chan
2d24fe011b
Accept that lots of sinks are now summaries as well
2024-04-01 14:03:36 +01:00
Owen Mansel-Chan
9067a337b0
Test fixed by model for BasicAttributes(String, Object)
2024-04-01 14:03:30 +01:00
Owen Mansel-Chan
776c9d9eb2
Accept changes to top jdk apis test
2024-04-01 14:03:23 +01:00
Owen Mansel-Chan
52e6ea30e7
Accept more capture summary models
...
This line is added because `FileOutputStream`'s constructor is now modeled as propagating taint, not just as a sink.
| p;PrivateFlowViaPublicInterface$SPI;true;openStream;();;Argument[this];ReturnValue;taint;df-generated |
2024-04-01 14:03:00 +01:00
Owen Mansel-Chan
919436efbb
Remove df-gen models we have deliberately modeled
...
Manual models always take precedence over generated models, so there is
no point in keeping the generated models.
These manual models were deliberately written to take precedence over
the corresponding df-gen models.
2024-04-01 13:59:36 +01:00
Jami
d889e3cf98
Merge pull request #14854 from jcogs33/jcogs33/unsafe-url-forward-promotion
...
Java: Promote Unsafe URL Forward query from experimental
2024-03-29 16:34:06 -04:00
Geoffrey White
fa26b55452
C++: Add models-as-data models for ZMQ networking library + wiring.
2024-03-28 21:50:07 +00:00
Geoffrey White
16f9ad06ef
C++: Add a test for ZMQ network library sources as well.
2024-03-28 21:50:07 +00:00
Geoffrey White
891f05c5ae
C++: Add a test for simple sinks involving ZMQ networking library.
2024-03-28 21:50:07 +00:00
Geoffrey White
5618001c3f
C++: More QLDoc refinement.
2024-03-28 21:50:07 +00:00
Jami
2f8c4df309
docs wording updates
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-03-28 16:15:05 -04:00
James Fletcher
5b1cae5fc2
Merge pull request #16076 from github/jf205-patch-1
...
Make customizing-library-models-for-javascript.rst visible to search and the docs TOC
2024-03-28 17:05:32 +00:00
Calum Grant
ef2e2e4067
Merge pull request #16071 from github/calumgrant/cpp-analysis
...
Add C++ analysis in separate workflow
2024-03-28 17:53:53 +01:00
Ian Lynagh
3acdc73f22
Kotlin 2: Accept some more location changes
2024-03-28 16:15:37 +00:00
Ian Lynagh
568fba6940
Kotlin 2: Accept some more test changes
2024-03-28 15:28:36 +00:00
Ian Lynagh
0fdc71bf57
Kotlin 2: Accept a test change
...
For
if(r != null) {
val r2: Rectangle = r
in Kotlin 2 mode, there is no IMPLICIT_NOTNULL check in Kotlin 2 mode:
then: BLOCK type=kotlin.Unit origin=null
VAR name:r2 type:java.awt.Rectangle [val]
- TYPE_OP type=java.awt.Rectangle origin=IMPLICIT_NOTNULL typeOperand=java.awt.Rectangle
- GET_VAR 'val r: @[FlexibleNullability] java.awt.Rectangle? [val] declared in <root>.foo' type=@[FlexibleNullability] java.awt.Rectangle? origin=null
+ GET_VAR 'val r: @[FlexibleNullability] java.awt.Rectangle? [val] declared in <root>.foo' type=@[FlexibleNullability] java.awt.Rectangle? origin=null
VAR name:height type:kotlin.Int [val]
GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:height type:kotlin.Int visibility:public' type=kotlin.Int origin=null
receiver: GET_VAR 'val r2: java.awt.Rectangle [val] declared in <root>.foo' type=java.awt.Rectangle origin=null
2024-03-28 15:23:27 +00:00
Ian Lynagh
96723b1a8f
Kotlin 2: Accept some loc changes
2024-03-28 15:11:19 +00:00
Ian Lynagh
24c4c3e068
Kotlin 2: Accept a test change
...
With:
open class Root {}
class Subclass1: Root() {}
fun typeTests(x: Root, y: Subclass1) {
val y1: Subclass1 = if (x is Subclass1) { x } else { y }
}
we now get a slightly different AST, which means we no longer need to
insert a StmtExpr:
BRANCH
if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.Subclass1
GET_VAR 'x: <root>.Root declared in <root>.typeTests' type=<root>.Root origin=null
- then: TYPE_OP type=<root>.Subclass1 origin=IMPLICIT_CAST typeOperand=<root>.Subclass1
- BLOCK type=<root>.Root origin=null
+ then: BLOCK type=<root>.Subclass1 origin=null
+ TYPE_OP type=<root>.Subclass1 origin=IMPLICIT_CAST typeOperand=<root>.Subclass1
GET_VAR 'x: <root>.Root declared in <root>.typeTests' type=<root>.Root origin=null
2024-03-28 15:07:30 +00:00
Michael B. Gale
73f71d8ace
Merge pull request #15979 from github/mbg/go/deal-with-incorrect-versions
2024-03-28 14:16:14 +00:00
Michael B. Gale
f6c22d466f
Update toolchain_test.go
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-03-28 13:32:02 +00:00
Sid Shankar
aeacfb82c1
Merge pull request #16073 from hmac/ruby-re-add-mad-docs
...
Ruby: Re-add MaD docs
2024-03-28 09:18:04 -04:00
Paolo Tranquilli
2fa2a5a53c
Merge pull request #15984 from github/alexdenisov/swift-5.10
...
Swift: upgrade to 5.10
2024-03-28 13:58:39 +01:00
Geoffrey White
03d0d984e3
C++: Remove duplicate TDataFlowCallable's and fix three places where we assumed a source callable (two of them would have caused lost results).
2024-03-28 11:39:43 +00:00
Michael B. Gale
977ac71b26
Update toolchain_test.go
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-03-28 11:15:30 +00:00
Ian Lynagh
5dcd635403
Merge pull request #15961 from igfoo/igfoo/MissingEnumInSwitch
...
Java: Limit the amount of results that MissingEnumInSwitch produces per switch
2024-03-28 11:13:45 +00:00
Paolo Tranquilli
a34bb2608d
Swift: fix ql format
2024-03-28 11:57:33 +01:00
Paolo Tranquilli
ece0d1f477
Swift: add upgrade/downgrade scripts
2024-03-28 11:54:18 +01:00
Paolo Tranquilli
bfce01cef6
Swift: add change note for Swift 5.10 upgrade
2024-03-28 11:38:39 +01:00
James Fletcher
d57e8efaf2
Update codeql-for-javascript.rst
2024-03-28 10:28:37 +00:00
Geoffrey White
a55f07ac68
C++: QLDoc FlowSummaryNode.
2024-03-28 10:17:39 +00:00
Jeroen Ketema
3d8ac1441a
Merge pull request #16074 from jketema/reuse-val-cat
...
C++: Add value category column to the expr_reuse relation
2024-03-28 10:14:32 +01:00
dependabot[bot]
07f9614dc2
Bump chrono from 0.4.35 to 0.4.37 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.35 to 0.4.37.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.35...v0.4.37 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-28 03:07:21 +00:00
Jeroen Ketema
9eb51a9b9e
C++: Add value category column to the expr_reuse relation
2024-03-27 22:49:40 +01:00
Jeroen Ketema
9e47909208
Merge pull request #16065 from geoffw0/codeowners
...
C++: Divide CODEOWNERS responsibilities.
2024-03-27 22:22:15 +01:00
Harry Maclean
3690f294da
Ruby: add MaD doc to TOC tree
2024-03-27 21:02:25 +00:00
Ian Lynagh
b6a1266ade
Java: Accept test changes for MissingEnumInSwitch Oxford commas
2024-03-27 18:48:22 +00:00
Harry Maclean
ce0edcc265
Ruby: Make MaD doc visible to search
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2024-03-27 17:29:18 +00:00
James Fletcher
04edd6ec69
Update docs/codeql/codeql-language-guides/codeql-for-javascript.rst
2024-03-27 17:08:47 +00:00
James Fletcher
121fed63a0
Update codeql-for-javascript.rst
2024-03-27 17:06:31 +00:00
James Fletcher
fbc0f57280
Update customizing-library-models-for-javascript.rst
2024-03-27 16:58:11 +00:00
Paolo Tranquilli
e9957aa4a6
Swift: make result a child in ThenStmt
2024-03-27 17:53:36 +01:00
Geoffrey White
103932fec8
C++: Resolve discussed TODO comment.
2024-03-27 16:44:50 +00:00
Geoffrey White
507ada1951
C++: Sort out the localFlow / simpleLocalFlow confusion (and the same for taint).
2024-03-27 16:05:35 +00:00
Harry Maclean
f6e2e1319b
Ruby: Link to MaD docs from Ruby doc page
...
Also remove an internal link from the docs.
2024-03-27 15:30:05 +00:00
Harry Maclean
e6ba0a34f4
Revert "Ruby: remove customizing-library-models-for-ruby.rst"
...
This reverts commit 5b46256fdb .
2024-03-27 15:24:30 +00:00
Michael B. Gale
45b41bb506
Go: Mirror stdout/stderr output in InstallVersion
2024-03-27 15:18:24 +00:00
Michael B. Gale
6b1d1d427c
Go: Add integration test for incorrect version format logic
2024-03-27 15:16:32 +00:00
Michael B. Gale
6ea99825be
Go: Add unit test to sanity check HasGoVersion
2024-03-27 15:15:40 +00:00
Michael B. Gale
ab255d70b5
Go: Fix semver-related logic bugs
2024-03-27 15:15:20 +00:00
Ian Lynagh
fda3c92612
Java: Add a changenote for the MissingEnumInSwitch change
2024-03-27 15:12:55 +00:00
Ian Lynagh
59ae6dd5f5
Java: Add a couple of Oxford commas
2024-03-27 15:07:58 +00:00
Michael B. Gale
86bf4fbbc0
Go: Make diagnostic names static
2024-03-27 14:22:58 +00:00
Jami Cogswell
40c932a5f9
Java: move UrlForward.qll code to UrlForwardQuery.qll
2024-03-27 10:12:28 -04:00
Max Schaefer
5b07e14fb3
Merge pull request #16055 from github/max-schaefer/go-open-redirect-qhelp
...
Go: Improve QHelp for `go/unvalidated-url-redirection`.
2024-03-27 13:56:48 +00:00
Paolo Tranquilli
0243d9f2b9
Swift: accept explicit any in existential type name
2024-03-27 13:49:15 +01:00
Jami Cogswell
2391fe7d89
Java: use InlineFlowTest instead of InlineExpectationsTest
2024-03-27 08:44:17 -04:00
Paolo Tranquilli
d9c40488bb
Swift: add ThenStmt to control flow
2024-03-27 13:37:24 +01:00
Paolo Tranquilli
b8e38288e3
Swift: add extraction of ThenStmt
...
These are currently added implicitly by the compiler in the context of
`if`/`switch` expressions. In the future, there might be explicit
`then <expr>` statement useful for cases where one would like to add
more than one statement in the branch, to mark what value to actually
use.
See https://forums.swift.org/t/pitch-multi-statement-if-switch-do-expressions/68443
2024-03-27 13:26:04 +01:00
Max Schaefer
32ebd4eebb
Automodel: Filter unexploitable types in application mode.
...
We already did this in framework mode.
2024-03-27 12:22:24 +00:00
Arthur Baars
ba89f1b6b1
Merge pull request #15896 from github/aibaars/java-update-output
...
Java: update expected output
2024-03-27 13:19:52 +01:00
Jami Cogswell
121b24ea7c
Java: remove parentheses
2024-03-27 08:16:06 -04:00
Owen Mansel-Chan
311512c768
Remove df-gen models for incidentally modelled APIs
...
Manual models always take precedence over generated models, so there is
no point in keeping the generated models.
These APIs happened to have been modelled between model generation and
merging this PR.
2024-03-27 12:15:08 +00:00
Owen Mansel-Chan
f03a56f7e0
Run generation script
...
The command line was:
python3 /Users/owen-mc/workspace/codeql-home/codeql/java/ql/src/utils/modelgenerator/GenerateFlowModel.py /Users/owen-mc/db/java/openjdk17 --with-summaries --with-neutrals
2024-03-27 12:15:00 +00:00
Jami Cogswell
35fbc95cc7
Java: remove redundant line
2024-03-27 08:09:40 -04:00
Mathias Vorreiter Pedersen
7bb2b57394
Merge pull request #15964 from rdmarsh2/rdmarsh2/cpp/temp-destructors-extended
...
C++: IR translation for destruction of temporaries with extended lifetimes
2024-03-27 11:58:48 +00:00
Calum Grant
03bf804a68
Add C++ analysis in separate workflow
2024-03-27 11:44:58 +00:00
Mathias Vorreiter Pedersen
8711232a38
Merge pull request #16069 from jketema/var-templ
...
C++: Add `VariableTemplateInstantiation` class
2024-03-27 11:31:35 +00:00
Paolo Tranquilli
2382f76317
Swift: ignore experimental ThenStmt
2024-03-27 12:23:37 +01:00
Paolo Tranquilli
f9d10cec08
Swift: fix DeclTranslator.cpp compile errors
2024-03-27 12:21:28 +01:00
Ian Lynagh
6cd94cf253
Merge pull request #16059 from igfoo/igfoo/exprs
...
Kotlin 2: Accept more location changes
2024-03-27 11:17:07 +00:00
Jeroen Ketema
050682c477
C++: Update expected test results
2024-03-27 12:03:37 +01:00
Paolo Tranquilli
8e9b4336da
Merge branch 'main' into alexdenisov/swift-5.10
2024-03-27 11:35:14 +01:00
Jeroen Ketema
27c6e2421c
C++: Add VariableTemplateInstantiation class
...
This adds some uniformity, as we already had `FunctionTemplateInstantiation` and
`ClassTemplateInstantiation` classes.
2024-03-27 11:35:13 +01:00
Tony Torralba
b617667b0e
Merge pull request #16062 from atorralba/atorralba/java/more-neutrals
...
Java: Add more neutrals and improve `java.net.URL` models
2024-03-27 10:41:38 +01:00
Geoffrey White
30c9ec1926
C++: Adjust following discussion.
2024-03-27 09:23:48 +00:00
Tony Torralba
7a0446740b
Update java/ql/lib/ext/java.net.model.yml
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-03-27 09:09:48 +01:00
Henry Mercer
568442d5f8
QL: Run diagnostics and summary metrics in code scanning
...
Add diagnostics and summary metric queries to the code scanning suite.
2024-03-26 18:11:50 +00:00
Arthur Baars
497325455a
Java: update expected output
2024-03-26 18:40:22 +01:00
Geoffrey White
b4a6f75ad7
C++: Divide CODEOWNERS responsibilities.
2024-03-26 17:35:07 +00:00
Mathias Vorreiter Pedersen
3e9602854a
Merge pull request #16063 from MathiasVP/taint-inheriting-content-for-cpp
...
C++: Add `TaintInheritingContent`
2024-03-26 17:28:52 +00:00
Mathias Vorreiter Pedersen
3bfaab9182
C++: Remove debugging conjunct.
2024-03-26 17:01:06 +00:00
Mathias Vorreiter Pedersen
6a8c592900
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/FlowSteps.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-03-26 16:59:18 +00:00
Mathias Vorreiter Pedersen
d610d721a4
C++: Add file QLDoc.
2024-03-26 16:47:39 +00:00
Mathias Vorreiter Pedersen
e3744c435a
C++: Add change note.
2024-03-26 16:44:16 +00:00
Mathias Vorreiter Pedersen
ec3d041c8d
C++: Accept test changes.
2024-03-26 16:40:18 +00:00
Mathias Vorreiter Pedersen
bd2ecd3346
C++: Add test.
2024-03-26 16:38:28 +00:00
Mathias Vorreiter Pedersen
2075716df7
C++: Add 'TaintInheritingContent'.
2024-03-26 16:37:22 +00:00
Tony Torralba
d786ea90a4
Java: Add more neutrals
...
Adds more neutral models to help the model generator ignore certain callables.
Also improves the precision of certain URL models by using synthetic fields so that the parts of a URL are tainted separately.
2024-03-26 17:31:11 +01:00
Rasmus Wriedt Larsen
df463e51c1
JS: Extractor: Fix experimental flag value for NodeJSDetectorTests
2024-03-26 17:02:47 +01:00
Rasmus Wriedt Larsen
60944a9bcb
JS: Accept new trap files
...
As I see it, these all seem to have invalid code initially anyway, but
this is definitely something a JS expert should review :)
2024-03-26 17:01:57 +01:00
Rasmus Wriedt Larsen
1d51d182ec
JS: Extractor: Explain how to make replaceExpectedOutput work now with bazel
2024-03-26 17:01:57 +01:00
Rasmus Wriedt Larsen
04a0740ccb
JS: Extractor: More robust ES2015 checking
...
Created shared AbstractDetector to not duplicate all the tedious logic
;)
I took inspiration from the tests in `javascript/extractor/tests/esnext/input/dynamic-import.js`
2024-03-26 17:01:57 +01:00
Rasmus Wriedt Larsen
cd84500c56
JS: Extractor: Separate base detector logic into own file
...
Should hopefully make it easier to review these changes to have it split into its' own commit :)
2024-03-26 17:01:57 +01:00
Henry Mercer
2de62dfcdd
Merge pull request #16058 from github/henrymercer/merge-back-rc-3.13
...
Merge `rc/3.13` back to `main`
2024-03-26 14:57:31 +00:00
Ian Lynagh
c5604c97bd
Kotlin 2: Accept more location changes
2024-03-26 14:10:28 +00:00
Henry Mercer
0646744928
Merge branch 'main' into henrymercer/merge-back-rc-3.13
2024-03-26 12:59:12 +00:00
Michael B. Gale
cf9e2dcea1
Merge pull request #16056 from github/mbg/go/changenote-for-dependency-improvement
...
Go: Add changenote for `CODEQL_EXTRACTOR_GO_FAST_PACKAGE_INFO` change
2024-03-26 12:50:19 +00:00
Henry Mercer
f89109df7c
Merge pull request #16048 from github/post-release-prep/codeql-cli-2.16.6
...
Post-release preparation for codeql-cli-2.16.6
2024-03-26 12:23:11 +00:00
Geoffrey White
8fbbc2b6d8
C++: Improve QLDoc.
2024-03-26 11:21:25 +00:00
Max Schaefer
d7258f76d3
Go: Improve QHelp for go/unvalidated-url-redirection.
...
The example showed a different (and better) fix from what the help claimed, but the suggestion also had a subtle bug that I fixed at the same time.
2024-03-26 10:57:36 +00:00
Michael B. Gale
f84609dbc4
Go: Add changenote for CODEQL_EXTRACTOR_GO_FAST_PACKAGE_INFO change
2024-03-26 10:51:57 +00:00
Tamás Vajk
0c5ea975a4
Merge pull request #16021 from tamasvajk/feature/add-buildless-telemetry
...
C#: Add high level diagnostic messages for buildless extraction (star…
2024-03-26 11:03:20 +01:00
Asger F
22b56a4a40
JS: More implied receiver steps
2024-03-26 10:23:08 +01:00
Asger F
f2939bd05b
JS: Add test case
2024-03-26 10:23:08 +01:00
Asger F
f8641dd82d
JS: Fix use of deprecated alias
2024-03-26 09:39:39 +01:00
Asger F
a0b49b23f5
JS: Add UseServer and UseClient directives
2024-03-26 09:39:39 +01:00
Asger F
1d22e65851
JS: Move Directive subclasses into Directive module
2024-03-26 09:39:37 +01:00
Dave Bartolomeo
a950de36a0
Merge pull request #16050 from github/dbartol/more-test-fixes
...
Remove unused data extension in test
2024-03-25 20:50:09 -04:00
Dave Bartolomeo
c11b8f9d51
Remove unused data extension in test
2024-03-25 19:14:54 -04:00
Max Schaefer
ff23f572d0
Merge pull request #16038 from github/max-schaefer/string-break-qhelp
...
Go: Improve QHelp for `go/unsafe-quoting`.
2024-03-25 20:10:02 +00:00
Max Schaefer
5bc710b406
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2024-03-25 19:48:56 +00:00
Dave Bartolomeo
98bf5269a0
Merge pull request #16040 from github/dbartol/qltest-model
...
Use correct model pack name in qltest data extension
2024-03-25 15:29:16 -04:00
Chris Smowton
f5ebd3d501
Merge pull request #16047 from github/smowton/admin/update-java-supported-version
...
Update Java version supported to 22
2024-03-25 18:42:35 +00:00
Geoffrey White
ce52cbb428
C++: Disambiguate *n1..n2 doc.
2024-03-25 18:22:28 +00:00
github-actions[bot]
f67b5f9158
Post-release preparation for codeql-cli-2.16.6
2024-03-25 18:17:15 +00:00
Geoffrey White
76780d74d9
C++: Unify four implementations of repeatStars. Note that the recursive approach is faster for very large strings (well over 100 stars), while the concat approach appears to be faster for short strings and does not require an upper bound.
2024-03-25 18:10:21 +00:00
Geoffrey White
95db7aa776
C++: Clean up argument / parameter position logic.
2024-03-25 18:10:21 +00:00
Chris Smowton
757b9bb5fa
Update Java version supported to 22
2024-03-25 18:01:30 +00:00
Chris Smowton
6fc99e3ad6
Merge pull request #16023 from smowton/smowton/feature/jdk22-support
...
Java: support Java 22 language features
2024-03-25 17:58:50 +00:00
Geoffrey White
58737b1d7e
C++: We *could* support .Argument with no index, but I'm not convinced we can do so efficiently, so lets not.
2024-03-25 17:08:15 +00:00
Geoffrey White
0a33a6e79b
C++: Another test case - Arguments with no specified index.
2024-03-25 17:00:46 +00:00
Henry Mercer
3d82318839
Merge pull request #16045 from github/release-prep/2.16.6
...
Release preparation for version 2.16.6
2024-03-25 16:59:13 +00:00
github-actions[bot]
71ab804274
Release preparation for version 2.16.6
2024-03-25 16:58:08 +00:00
Geoffrey White
cf35fd4dee
C++: Improve ExternalFlow.qll doc.
2024-03-25 16:52:09 +00:00
Geoffrey White
cdafb26423
C++: Fix test failures.
2024-03-25 16:51:36 +00:00
Chris Smowton
dcebcc35b6
Rename getPatternAtIndex
2024-03-25 16:36:38 +00:00
Chris Smowton
568bddc4a9
Add test cases for cases falling directly out of switch blocks
2024-03-25 16:31:40 +00:00
Chris Smowton
17193ac11b
Distinguish record patterns that do or don't declare identifiers
2024-03-25 16:31:40 +00:00
Chris Smowton
a4401963f5
Use getAPattern
2024-03-25 16:31:39 +00:00
Chris Smowton
f347784ec2
autoformat
2024-03-25 16:31:39 +00:00
Chris Smowton
3d9bc6fc89
Note pattern-cases may be missing some type-accesses
2024-03-25 16:31:39 +00:00
Chris Smowton
5e0961b348
Account for new possible child index gap
2024-03-25 16:31:39 +00:00
Chris Smowton
9fa2f19990
Add test for guards in the presence of fall-through between pattern and constant cases
2024-03-25 16:31:39 +00:00
Chris Smowton
c48e64e536
Add tests for the combination of anonymous labels and a guard
2024-03-25 16:31:39 +00:00
Chris Smowton
1e0766dffa
Add tests for case statement type test dominance against anonymous labels and fall-through
2024-03-25 16:31:39 +00:00
Chris Smowton
f2ff6c476a
Add printast tests for anonymous variables
2024-03-25 16:31:38 +00:00
Chris Smowton
5cb5ee026c
Fix pretty-printing of anonymous vars and multiple patterns; add test
2024-03-25 16:31:38 +00:00
Chris Smowton
f317f782ae
Add test for control-flow with mixed patterns, constants and fall-through
2024-03-25 16:31:38 +00:00
Chris Smowton
6cf956d07a
Add CFG test for anonymous variables and fall-throughs with pattern cases
2024-03-25 16:31:38 +00:00
Chris Smowton
cc8dcf63b0
Convert test to use an anonymous local
2024-03-25 16:31:38 +00:00
Chris Smowton
ee36e3b72b
autoformat
2024-03-25 16:31:38 +00:00
Chris Smowton
403e86878c
Don't mistake a rule case for a fall-through edge
2024-03-25 16:31:37 +00:00
Chris Smowton
5243a62a41
Accept test changes
2024-03-25 16:31:37 +00:00
Chris Smowton
c0874ab04b
Fix pattern-case variable pretty-printer
2024-03-25 16:31:37 +00:00
Chris Smowton
f66811048d
Fix next-normal-statement predicate
2024-03-25 16:31:37 +00:00
Chris Smowton
bc0724e2b3
Add change note
2024-03-25 16:31:37 +00:00
Chris Smowton
d5443b3f10
Remove dead code
2024-03-25 16:31:37 +00:00
Chris Smowton
29e93edf90
Dataflow: restrict pattern-case flow to unique patterns.
2024-03-25 16:31:37 +00:00
Chris Smowton
00c7dd5f92
Fix a stray use of getPattern
2024-03-25 16:31:36 +00:00
Chris Smowton
e59487a324
Don't regard cases with multiple patterns as conducting a type test
2024-03-25 16:31:36 +00:00
Chris Smowton
c7cb885e71
Add missing javadoc and getUniquePattern predicate
2024-03-25 16:31:36 +00:00
Chris Smowton
f44becea7f
Implement multiple pattern case and fall-through pattern case support
2024-03-25 16:31:36 +00:00
Chris Smowton
c283894b4b
Fix typo
2024-03-25 16:31:36 +00:00
Chris Smowton
33b807f3bb
Parameters and local variables: add isAnonymous predicate
2024-03-25 16:31:36 +00:00
Joe Farebrother
fb19288981
Address review comments - Fix docs typo and add a reference
2024-03-25 15:46:45 +00:00
Geoffrey White
b2a301c206
Swift: Remove claims about 'Annotated'.
2024-03-25 15:45:37 +00:00
Geoffrey White
4a4c77e81d
Remove claims about models-as-data that require you to select a parameter from non-Java languages. We believe this is only possible in Java.
2024-03-25 15:41:00 +00:00
Edward Minnix III
7377cbb46e
Merge pull request #15930 from egregius313/egregius313/csharp/mad/database/dapper-sources
...
C#: Sources for the `Dapper` database library
2024-03-25 11:21:51 -04:00
Rasmus Wriedt Larsen
d516db6abc
Merge pull request #15903 from yoff/python/test-MaD-keyword-argument
...
Python: test MaD syntax for keyword argument
2024-03-25 15:51:49 +01:00
Dave Bartolomeo
d805bbcd27
Use correct model pack name in qltest data extension
2024-03-25 10:31:11 -04:00
Tamas Vajk
78912d5eea
C#: Reword public mentions of C# buildless
2024-03-25 14:33:51 +01:00
Max Schaefer
120fb93c23
Go: Improve QHelp for go/unsafe-quoting.
2024-03-25 13:32:51 +00:00
Paolo Tranquilli
dea922958b
Merge pull request #16034 from github/redsun82/swift-move-integration-tests-to-internal
...
Swift: prepare integration tests for internal running
2024-03-25 14:08:47 +01:00
Paolo Tranquilli
9c9f4b956e
Swift: fix db in diagnostics_test_utils.py
2024-03-25 13:53:27 +01:00
Tamas Vajk
2f0b54c801
Refactor buildless telemetry logging
2024-03-25 12:48:27 +01:00
Geoffrey White
88ea9197d9
C++: Add more tests for uncommon cases.
2024-03-25 11:40:15 +00:00
Ian Lynagh
55226c48a6
Merge pull request #16022 from igfoo/igfoo/k2_exprs
...
Kotlin 2: Accept more location changes
2024-03-25 11:38:15 +00:00
Tamas Vajk
b94d33d78d
Add buildless failed diagnostic
2024-03-25 12:27:36 +01:00
Paolo Tranquilli
7f53509022
Merge branch 'main' into redsun82/swift-move-integration-tests-to-internal
2024-03-25 12:22:00 +01:00
Geoffrey White
46b8e3be66
C++: Fix another mistake in the test.
2024-03-25 11:20:55 +00:00
Geoffrey White
dec5fc0f48
C++: Switch MAD syntax from *Argument[0] style to Argument[*0] style.
2024-03-25 11:20:55 +00:00
Geoffrey White
40270e1f70
C++: Fix mistake in test model.
2024-03-25 11:20:55 +00:00
Geoffrey White
b598b4ac45
C++: Fix for field content indirection (1-based).
2024-03-25 11:20:55 +00:00
Geoffrey White
73e95d67b9
C++: Implement Field indirection.
2024-03-25 11:20:55 +00:00
Geoffrey White
393bd7277c
C++: Add some negative test cases for indirection.
2024-03-25 11:20:55 +00:00
Geoffrey White
af4320df50
C++: Modify a summary test case to only test the summary model, not a source model as well.
2024-03-25 11:20:55 +00:00
Geoffrey White
14deb06e80
C++: Implement Argument + Parameter indirection.
2024-03-25 11:20:55 +00:00
Paolo Tranquilli
6707fc3a7c
Swift: remove wrong flag in runner.py
2024-03-25 12:20:13 +01:00
Geoffrey White
638bfff09d
C++: Implement ReturnValue indirection (this version only worked with a small change to the shared library parsing to permit '*' in the token name; we no longer need this, so I rebased it out).
2024-03-25 11:20:09 +00:00
Paolo Tranquilli
148033e020
Swift: fix assertion diagnostics test
2024-03-25 12:05:22 +01:00
Tamas Vajk
5ab5244171
Change public messages to not include 'buildless'
2024-03-25 11:59:29 +01:00
Chris Smowton
10afb1cd93
Merge pull request #16030 from smowton/smowton/admin/buildless-wording-update
...
Java: Update buildless test expectations
2024-03-25 10:57:56 +00:00
Paolo Tranquilli
ca5d85c57e
Merge branch 'main' into redsun82/swift-move-integration-tests-to-internal
2024-03-25 11:56:48 +01:00
Paolo Tranquilli
0fa40af131
Swift: fix last references to old integration test location
2024-03-25 11:49:19 +01:00
Rasmus Wriedt Larsen
0515b12305
JS: Add example of bad NodeJS detection
...
Notice the TRAP lines
```
is_module(#20001 )
is_es2015_module(#20001 )
```
2024-03-25 11:36:21 +01:00
Max Schaefer
ffbe3e6ed4
Merge pull request #16020 from github/max-schaefer/go-path-injection-qhelp
...
Go: Update query help for `go/path-injection` to include example fixes.
2024-03-25 10:25:36 +00:00
Owen Mansel-Chan
f2db9ce312
Merge pull request #16028 from owen-mc/java/sensitive-log-whitelist-tokenimage
...
Java: whitelist variable name `tokenImage` for `java/sensitive-log` as it's used in code generated by JavaCC
2024-03-25 10:02:19 +00:00
Paolo Tranquilli
5a771ad2cf
Swift: bump python version
2024-03-25 10:42:16 +01:00
Tamás Vajk
d6374f65e4
Merge pull request #15957 from tamasvajk/feature/limit-message-extraction
...
C#: Limit extracted compilation and extraction messages
2024-03-25 10:30:10 +01:00
Paolo Tranquilli
762b4ce42e
Swift: prepare integration tests for internal running
...
This harmonizes Swift integration tests with the rest of the repository,
to prepare for the internal integration test runner to run them. The
stripped down runner is kept compatible, so that current CI can still
use it now. Maybe it will be kept for developer use.
This PR includes:
* moving the integration tests inside `ql`
* editing `qlpack.yml` so that the internal runner can use it
* change database directory to be `test-db` rather than `db`
2024-03-25 10:17:55 +01:00
dependabot[bot]
0c73340e47
Bump regex from 1.10.3 to 1.10.4 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.3...1.10.4 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-25 03:31:03 +00:00
Owen Mansel-Chan
ac6c4add14
Apply suggestions from code review
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-03-24 20:20:37 +00:00
Chris Smowton
d8686e02a8
Update test expectations
2024-03-24 17:57:27 +00:00
Owen Mansel-Chan
821f399193
Add change note
2024-03-23 23:51:52 +00:00
Owen Mansel-Chan
f4b3bae88b
Add test for ParseException use of tokenImage
2024-03-23 23:48:16 +00:00
Owen Mansel-Chan
4832dc51ed
Whitelist variable name tokenImage
2024-03-23 21:33:02 +00:00
Owen Mansel-Chan
63a04c056a
Add test with tokenImage as used in JavaCC
2024-03-23 21:30:33 +00:00
erik-krogh
051120e958
add qldoc for ReflectedXssSanitizers
2024-03-22 17:58:25 +01:00
erik-krogh
c60cec36d4
add calls to .html_safe? as a shared XSS sanitizer
2024-03-22 17:46:39 +01:00
Aditya Sharad
1a8932bc28
Merge pull request #16024 from github/changedocs/2.16.5
...
Update CodeQL CLI to version 2.16.5
2024-03-22 09:32:52 -07:00
Erik Krogh Kristensen
45ce988943
Merge pull request #16002 from erik-krogh/tarBlank
...
JS: change the precision of the `js/unsafe-external-link` query to `low`
2024-03-22 17:12:58 +01:00
Florin Coada
c653f1ce8c
Add CodeQL 2.16.5 changelog
2024-03-22 15:28:54 +00:00
Joe Farebrother
592acb94d2
Add missing .s to qldoc
2024-03-22 15:28:34 +00:00
Max Schaefer
034ed17227
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-03-22 15:24:29 +00:00
Jeroen Ketema
d9b0a5918c
Merge pull request #16018 from jketema/tls-precision
...
C++: Add precision to `cpp/boost/tls-settings-misconfiguration` and `cpp/boost/use-of-deprecated-hardcoded-security-protocol`
2024-03-22 16:17:34 +01:00
Jeroen Ketema
453cdfa513
C++: Add change note
2024-03-22 15:52:52 +01:00
Joe Farebrother
a6ee19ca2d
Fix query id
2024-03-22 14:36:47 +00:00
Ian Lynagh
63e34c4dec
Kotlin 2: Accept more location changes
2024-03-22 14:09:20 +00:00
Joe Farebrother
01f712476b
Add change note and update severity
2024-03-22 14:07:11 +00:00
Joe Farebrother
b74145349b
Add test cases
2024-03-22 14:07:11 +00:00
Joe Farebrother
507a6102a2
Reorganise into Custimizations file + add some more sinks on ActiveRecord methods
2024-03-22 14:07:04 +00:00
Joe Farebrother
a8aac318d0
Add qhelp
2024-03-22 14:04:52 +00:00
Joe Farebrother
89838981b7
Add test cases
2024-03-22 14:04:52 +00:00
Joe Farebrother
0f45a53adc
Add mass assignment query
2024-03-22 14:04:52 +00:00
Edward Minnix III
1785086ccb
Merge pull request #15784 from egregius313/egregius313/csharp/dataflow/sources/file
...
C#: Add source models for `file` threat model/source kind for .NET standard library
2024-03-22 09:50:30 -04:00
Michael Nebel
a07ee8e961
C#: Update the AsList model to a value flow model.
2024-03-22 14:40:25 +01:00
Tamas Vajk
178a45af25
C#: Add high level diagnostic messages for buildless extraction (start, success)
2024-03-22 14:27:36 +01:00
Max Schaefer
bc9396e0e6
Address suggestions from review.
2024-03-22 13:19:36 +00:00
Michael B. Gale
f48e295f4a
Merge pull request #16019 from p-/p--weak-enc-ecb-qhelp
...
C#: add hint regarding ECB to weak encryption QHelp
2024-03-22 13:09:08 +00:00
Michael Nebel
ca72b0583d
C#: Update source and sink expected test output.
2024-03-22 13:59:47 +01:00
Erik Krogh Kristensen
7d968184fd
improve the change-note
...
Co-authored-by: Asger F <asgerf@github.com >
2024-03-22 13:58:34 +01:00
Ed Minnix
4b13ad1310
Fix flow summary tests
2024-03-22 13:46:20 +01:00
Ed Minnix
9ed8ca27a1
Fix test and model
2024-03-22 13:46:19 +01:00
Ed Minnix
1f04229def
Fix typo
2024-03-22 13:46:19 +01:00
Ed Minnix
73b4e8fe6a
Add WithElement identifier to AsList method
2024-03-22 13:46:19 +01:00
Ed Minnix
9b23bfa038
Execute methods which return objects
...
The `Execute` method returns `int` for "number of rows affected". But
some of the other `Execute*` methods return objects.
2024-03-22 13:46:19 +01:00
Ed Minnix
5885938eaf
Use wildcard signatures for Query methods
2024-03-22 13:46:19 +01:00
Ed Minnix
8223781978
Fix FlowSummaries tests
2024-03-22 13:46:19 +01:00
Ed Minnix
5ca6b40c34
Change note
2024-03-22 13:46:18 +01:00
Ed Minnix
23aeb1d878
Add tests
2024-03-22 13:46:18 +01:00
Ed Minnix
98285b5171
Add AsList summary
2024-03-22 13:46:18 +01:00
Ed Minnix
87ad170067
Dapper source models
2024-03-22 13:46:18 +01:00
Ian Lynagh
01475fd8ba
Merge pull request #16011 from igfoo/igfoo/legacy_vars
...
Java/Kotlin: Remove references to legacy ODASA_SNAPSHOT env var
2024-03-22 12:38:37 +00:00
Max Schaefer
4e4cd52f63
Go: Update query help for go/path-injection to include example fixes.
2024-03-22 11:45:59 +00:00
Peter Stöckli
d62d68a40b
C#: add hint regarding ECB to weak encryption QHelp
2024-03-22 12:08:30 +01:00
Rasmus Wriedt Larsen
69f6e1e263
Merge pull request #16010 from RasmusWL/perf
...
Python: Two small join-order fixes
2024-03-22 11:36:17 +01:00
Jeroen Ketema
adfb3c3d50
C++: Simplify cpp/boost/tls-settings-misconfiguration
2024-03-22 11:22:11 +01:00
yoff
c520cb6d58
Merge branch 'main' into python/test-MaD-keyword-argument
2024-03-22 10:56:08 +01:00
Rasmus Lerchedahl Petersen
eef60c9ad2
python: add test for "ReturnValue.TupleElement[0,1]"
...
also synchronise files
2024-03-22 10:54:12 +01:00
Jeroen Ketema
fb4ed39d89
Merge pull request #16017 from jketema/destructors21
...
C++: Add destructor test cases for AV Rule 114
2024-03-22 10:50:27 +01:00
Jeroen Ketema
a770bddff0
C++: Add precision to cpp/boost/tls-settings-misconfiguration and cpp/boost/use-of-deprecated-hardcoded-security-protocol
...
Also clean up the names of the queries while here.
2024-03-22 10:48:18 +01:00
Jeroen Ketema
3f0ce98ccb
C++: Add destructor test cases for AV Rule 114
2024-03-22 10:25:47 +01:00
Tom Hvitved
9d124197e8
C#: Remove support for legacy LGTM options in autobuilder
2024-03-22 10:09:24 +01:00
Tamas Vajk
205d6a3bc5
Extract total number of diagnostic per ID and compilation
2024-03-22 08:55:41 +01:00
Tamas Vajk
fa7f437e71
Code quality improvement
2024-03-22 08:16:11 +01:00
Jeroen Ketema
eca6c00003
Merge pull request #16014 from jketema/destructors20
...
C++: Handle destructors of range-based for-loop, if, and switch initializer statements
2024-03-21 21:04:23 +01:00
Ed Minnix
c7a746e3dc
Flow summary tests
2024-03-21 13:15:45 -04:00
Ed Minnix
3e3eceea5f
Typo
2024-03-21 13:06:34 -04:00
Ed Minnix
e2c2d574f8
Add FileInfo::OpenText
2024-03-21 13:06:33 -04:00
Ed Minnix
46a9bb9804
Change note
2024-03-21 13:06:31 -04:00
Ed Minnix
08611f0c9c
Fix flow summary tests
2024-03-21 13:06:30 -04:00
Ed Minnix
e14e47cd73
Fix Stream::Read(Span<byte>) model
2024-03-21 13:06:28 -04:00
Ed Minnix
d6f085373e
System.IO.Stream::ReadExactly models
2024-03-21 13:06:27 -04:00
Ed Minnix
2a73677fd2
Missing Stream::ReadAsync overload
2024-03-21 13:06:26 -04:00
Ed Minnix
a698684fec
System.IO.Stream::ReadAtLeast
2024-03-21 13:06:24 -04:00
Ed Minnix
3e29a8d2a1
System.IO files test
2024-03-21 13:06:23 -04:00
Ed Minnix
d387e6d068
Fix flow-summary tests
2024-03-21 13:06:21 -04:00
Ed Minnix
9232fafde1
Add System.IO.Stream::Read(Span<Byte>) model
2024-03-21 13:06:20 -04:00
Ed Minnix
a8c5e4e0f2
FileInfo source models
2024-03-21 13:06:18 -04:00
Ed Minnix
bb9b0eabf2
Add BufferedStream summary models
2024-03-21 13:06:17 -04:00
Ed Minnix
a5b801b31f
Add File reading methods
2024-03-21 13:06:15 -04:00
Arthur Baars
c219b1a3c7
Merge pull request #16013 from github/rc/3.13
...
Merge rc/3.13 into main
2024-03-21 16:04:58 +01:00
Rasmus Wriedt Larsen
93f940aa9c
Python: Join-order improvement for DataFlowDispatch::TrackAttrReadInput
...
I was surprised to see that this predicate actually gets evaluated 3 times
- Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@c15596yu was evaluated in 74 iterations totaling 165ms (delta sizes total: 113119).
- Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@3459ejws was evaluated in 30 iterations totaling 76ms (delta sizes total: 32555).
- Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@5ac22jwq was evaluated in 30 iterations totaling 108ms (delta sizes total: 32555).
It does however fit with it being used in exactly 3 places: https://github.com/search?q=repo%3Agithub%2Fcodeql+%2FattrReadTracker%5C%28%2F&type=code -- so I assume it's because each use forces a new evaluation. Although that's something we could look into solving, for now I'm just trying to fix the join-order.
Initial
```
Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@3459ejws was evaluated in 30 iterations totaling 76ms (delta sizes total: 32555).
7068090 ~0% {2} r1 = SCAN Attributes::AttrRead#class#f6c3f431 OUTPUT In.0, In.0
{2} | AND NOT `DataFlowDispatch::TrackAttrReadInput::start/2#67f26627#prev`(FIRST 2)
3901178 ~5% {2} | SCAN OUTPUT In.1, In.1
3901178 ~0% {3} | JOIN WITH `Attributes::AttrRef.getObject/0#dispred#d7cd0a97` ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Lhs.1
13615 ~1% {2} r2 = JOIN r1 WITH `DataFlowDispatch::classTracker/1#d11f2237#reorder_1_0#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
94 ~2% {2} r3 = JOIN r1 WITH `DataFlowDispatch::superCallTwoArgumentTracker/2#d18be99f#reorder_2_0_1#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
18846 ~1% {2} r4 = JOIN r1 WITH `DataFlowDispatch::classInstanceTracker/1#d73ecef4#prev_delta_1#join_rhs` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
32555 ~1% {2} r5 = r2 UNION r3 UNION r4
return r5
```
==>
```
Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@f2517jwq was evaluated in 30 iterations totaling 12ms (delta sizes total: 32704).
186719 ~121% {1} r1 = SCAN `DataFlowDispatch::classInstanceTracker/1#d73ecef4#prev_delta` OUTPUT In.1
164342 ~158% {1} r2 = SCAN `DataFlowDispatch::classTracker/1#d11f2237#reorder_1_0#prev_delta` OUTPUT In.0
96 ~0% {1} r3 = SCAN `DataFlowDispatch::superCallTwoArgumentTracker/2#d18be99f#reorder_2_0_1#prev_delta` OUTPUT In.0
351157 ~80% {1} r4 = r1 UNION r2 UNION r3
88074 ~14% {1} | JOIN WITH `Attributes::AttrRef.getObject/0#dispred#d7cd0a97_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
41789 ~18% {2} | JOIN WITH Attributes::AttrRead#class#f6c3f431 ON FIRST 1 OUTPUT Lhs.0, Lhs.0
{2} | AND NOT `DataFlowDispatch::TrackAttrReadInput::start/2#67f26627#prev`(FIRST 2)
32883 ~2% {2} | SCAN OUTPUT In.1, In.1
return r4
```
AND
initial
```
Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@c15596yu was evaluated in 74 iterations totaling 165ms (delta sizes total: 113119).
17434622 ~0% {2} r1 = SCAN Attributes::AttrRead#class#f6c3f431 OUTPUT In.0, In.0
{2} | AND NOT `DataFlowDispatch::TrackAttrReadInput::start/2#67f26627#prev`(FIRST 2)
9483976 ~4% {2} | SCAN OUTPUT In.1, In.1
9483976 ~0% {3} | JOIN WITH `Attributes::AttrRef.getObject/0#dispred#d7cd0a97` ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Lhs.1
19258 ~1% {2} r2 = JOIN r1 WITH `DataFlowDispatch::classInstanceTracker/1#d73ecef4#reorder_1_0#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
1654 ~1% {2} r3 = JOIN r1 WITH `DataFlowDispatch::superCallNoArgumentTracker/1#0a2e8a06#reorder_1_0#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
1314 ~4% {2} r4 = JOIN r1 WITH `DataFlowDispatch::clsArgumentTracker/1#47339327#reorder_1_0#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
94 ~2% {2} r5 = JOIN r1 WITH `DataFlowDispatch::superCallTwoArgumentTracker/2#d18be99f#reorder_2_0_1#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
77217 ~0% {2} r6 = JOIN r1 WITH `DataFlowDispatch::selfTracker/1#f157aa27#reorder_1_0#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
13632 ~1% {2} r7 = JOIN r1 WITH `DataFlowDispatch::classTracker/1#d11f2237#reorder_1_0#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
113169 ~0% {2} r8 = r2 UNION r3 UNION r4 UNION r5 UNION r6 UNION r7
return r8
```
==>
```
Pipeline standard for DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@d732e6yt was evaluated in 74 iterations totaling 31ms (delta sizes total: 113129).
186719 ~150% {1} r1 = SCAN `DataFlowDispatch::classInstanceTracker/1#d73ecef4#reorder_1_0#prev_delta` OUTPUT In.0
1669 ~0% {1} r2 = SCAN `DataFlowDispatch::superCallNoArgumentTracker/1#0a2e8a06#reorder_1_0#prev_delta` OUTPUT In.0
3425 ~15% {1} r3 = SCAN `DataFlowDispatch::clsArgumentTracker/1#47339327#prev_delta` OUTPUT In.1
96 ~0% {1} r4 = SCAN `DataFlowDispatch::superCallTwoArgumentTracker/2#d18be99f#reorder_2_0_1#prev_delta` OUTPUT In.0
123310 ~0% {1} r5 = SCAN `DataFlowDispatch::selfTracker/1#f157aa27#reorder_1_0#prev_delta` OUTPUT In.0
164342 ~581% {1} r6 = SCAN `DataFlowDispatch::classTracker/1#d11f2237#reorder_1_0#prev_delta` OUTPUT In.0
479561 ~94% {1} r7 = r1 UNION r2 UNION r3 UNION r4 UNION r5 UNION r6
169424 ~2% {1} | JOIN WITH `Attributes::AttrRef.getObject/0#dispred#d7cd0a97_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
116290 ~0% {2} | JOIN WITH Attributes::AttrRead#class#f6c3f431 ON FIRST 1 OUTPUT Lhs.0, Lhs.0
{2} | AND NOT `DataFlowDispatch::TrackAttrReadInput::start/2#67f26627#prev`(FIRST 2)
113160 ~0% {2} | SCAN OUTPUT In.1, In.1
return r7
```
2024-03-21 15:55:58 +01:00
Jeroen Ketema
98de4e209b
C++: Handle destructors of if and switch initializer statements
2024-03-21 15:47:11 +01:00
Jeroen Ketema
9cc287dff1
C++: Handle destructors of range-based for-loop initializer statements
2024-03-21 15:47:11 +01:00
Cornelius Riemenschneider
be245dd4b2
Merge pull request #16012 from github/criemen/swift-linux-sandbox
...
Swift genrule: Replace local with no-sandbox.
2024-03-21 15:06:47 +01:00
Rasmus Wriedt Larsen
bfa8515b28
Python: Apply suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-21 14:51:45 +01:00
Cornelius Riemenschneider
79094e4b89
Swift genrule: Replace local with no-sandbox.
...
This allows the bazel cache to cache this genrule invocation.
It shouldn't depend on system-specific binaries, so
I believe this is correct.
This is the only part of our build where we otherwise
need to recompute parts after pulling in a full cache.
2024-03-21 13:51:22 +00:00
Ian Lynagh
1b3605754f
Java: Add a changenote for dropping ODASA_SNAPSHOT support
2024-03-21 13:38:54 +00:00
Tamás Vajk
0aa7de295b
Merge pull request #16004 from tamasvajk/feature/adjust-incorrect-compare-to
...
C#: Simplify the output of `cs/wrong-compareto-signature` to remove e…
2024-03-21 14:38:54 +01:00
Ian Lynagh
33fe5abf94
Kotlin: Remove references to legacy ODASA_SNAPSHOT env var
2024-03-21 13:29:40 +00:00
Henry Mercer
4e3a6e2140
Merge pull request #15874 from github/henrymercer/mark-loc-as-telemetry
...
Show lines of code data in debug mode only
2024-03-21 12:20:09 +00:00
Rasmus Wriedt Larsen
cff63ad5d5
Python: Fix small join-order problem for call-graph
...
problem is:
```
14294 ~33% {1} r23 = r21 UNION r22
13626 ~0% {2} | JOIN WITH `DataFlowPublic::Node.getEnclosingCallable/0#dispred#be95825a` ON FIRST 1 OUTPUT Rhs.1, Lhs.0
11871493 ~2% {2} | JOIN WITH `DataFlowPublic::Node.getEnclosingCallable/0#dispred#be95825a_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
6810938 ~3% {2} | JOIN WITH num#DataFlowPublic::TCfgNode#2cd2fb22_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
0 ~0% {4} | JOIN WITH `DataFlowDispatch::resolveMethodCall/4#3067f1f1#reorder_0_3_1_2#prev` ON FIRST 2 OUTPUT Rhs.3, Lhs.1, Lhs.0, Rhs.2
0 ~0% {4} | JOIN WITH num#DataFlowDispatch::CallTypeClassMethod#3508c3e5 ON FIRST 1 OUTPUT Lhs.3, Lhs.2, Lhs.0, Lhs.1
0 ~0% {4} | JOIN WITH `DataFlowDispatch::resolveCall/3#454c02d8#reorder_1_0_2#prev` ON FIRST 3 OUTPUT Lhs.3, Lhs.1, Lhs.0, Lhs.2
0 ~0% {5} | JOIN WITH num#DataFlowDispatch::TSelfArgumentPosition#de6d64b8 CARTESIAN PRODUCT OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.0, Rhs.0
```
that is, it does cartesian product of DataFlowPublic::Node.getEnclosingCallable
After fix
```
14294 ~33% {1} r23 = r21 UNION r22
0 ~0% {4} | JOIN WITH `DataFlowDispatch::resolveMethodCall/4#3067f1f1#reorder_3_0_1_2#prev` ON FIRST 1 OUTPUT Rhs.3, Lhs.0, Rhs.1, Rhs.2
0 ~0% {4} | JOIN WITH num#DataFlowDispatch::CallTypeClassMethod#3508c3e5 ON FIRST 1 OUTPUT Lhs.3, Lhs.2, Lhs.0, Lhs.1
0 ~0% {4} | JOIN WITH `DataFlowDispatch::resolveCall/3#454c02d8#reorder_1_0_2#prev` ON FIRST 3 OUTPUT Lhs.1, Lhs.3, Lhs.0, Lhs.2
0 ~0% {5} | JOIN WITH num#DataFlowPublic::TCfgNode#2cd2fb22 ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0, Lhs.2, Lhs.3
0 ~0% {5} | JOIN WITH `DataFlowPublic::Node.getEnclosingCallable/0#dispred#be95825a` ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.2, Lhs.3, Lhs.4
0 ~0% {4} | JOIN WITH `DataFlowPublic::Node.getEnclosingCallable/0#dispred#be95825a` ON FIRST 2 OUTPUT Lhs.0, Lhs.2, Lhs.3, Lhs.4
0 ~0% {5} | JOIN WITH num#DataFlowDispatch::TSelfArgumentPosition#de6d64b8 CARTESIAN PRODUCT OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.0, Rhs.0
```
Overall stats
(old)
Pipeline standard for DataFlowDispatch::getCallArg/5#21589076@b30c7vxg was evaluated in 51 iterations totaling 54ms (delta sizes total: 38247).
==>
(new)
Pipeline standard for DataFlowDispatch::getCallArg/5#21589076@c1559vxu was evaluated in 51 iterations totaling 28ms (delta sizes total: 38247).
2024-03-21 12:31:58 +01:00
Jeroen Ketema
ccc5a80d93
Merge pull request #16008 from jketema/destructors19
...
C++: Handle `getInitializingExpr` in PrintAST
2024-03-21 12:22:48 +01:00
Rasmus Wriedt Larsen
2aa5ae41fb
Python: Fix join-order problem in SqlAlchemy
...
No major performance impact, more of a learning example for myself (had +3000 join order badness).
Initial tuple counts
```
Evaluated recursive predicate SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0@594cfx2g in 1ms on iteration 1 (delta size: 4).
Evaluated relational algebra for predicate SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0@594cfx2g on iteration 1 running pipeline base with tuple counts:
37793 ~0% {3} r1 = JOIN `ApiGraphs::API::Node.getACall/0#dispred#312deb92_10#join_rhs` WITH DataFlowPublic::CallCfgNode#b8ddbf81 ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Rhs.1
0 ~0% {2} | JOIN WITH `SqlAlchemy::SqlAlchemy::Connection::classRef/0#565fc3ad` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
30 ~0% {5} r2 = JOIN DataFlowPublic::CallCfgNode#b8ddbf81 WITH `DataFlowPublic::MethodCallNode.calls/2#dispred#1dd1e0f4#ffb` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1, Rhs.2, _
{4} | REWRITE WITH NOT [NOT [Tmp.4 := "begin", TEST InOut.3 = Tmp.4], NOT [Tmp.4 := "connect", TEST InOut.3 = Tmp.4]] KEEPING 4
21 ~0% {3} | SCAN OUTPUT In.2, In.0, In.1
4 ~0% {2} | JOIN WITH `SqlAlchemy::SqlAlchemy::Engine::instance/0#1828baef` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
4 ~0% {2} r3 = r1 UNION r2
return r3
```
which is fixed by the only_bind_out
```
Evaluated recursive predicate SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0@49effxtg in 0ms on iteration 1 (delta size: 0).
Evaluated relational algebra for predicate SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0@49effxtg on iteration 1 running pipeline base with tuple counts:
0 ~0% {1} r1 = JOIN `SqlAlchemy::SqlAlchemy::Connection::classRef/0#565fc3ad` WITH `ApiGraphs::API::Node.getACall/0#dispred#312deb92` ON FIRST 1 OUTPUT Rhs.1
0 ~0% {2} | JOIN WITH DataFlowPublic::CallCfgNode#b8ddbf81 ON FIRST 1 OUTPUT Lhs.0, Rhs.1
return r1
```
We also had this initial problem
```
Evaluated recursive predicate SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0@594cfx2g in 1ms on iteration 4 (delta size: 0).
Evaluated relational algebra for predicate SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0@594cfx2g on iteration 4 running pipeline standard with tuple counts:
48722 ~6% {2} r1 = DataFlowPublic::CallCfgNode#b8ddbf81 AND NOT SqlAlchemy::SqlAlchemy::Connection::ConnectionConstruction#45e716e0#prev(FIRST 2)
48722 ~3% {3} r2 = SCAN r1 OUTPUT In.0, _, In.1
48722 ~1% {3} | REWRITE WITH Out.1 := "connect"
16 ~0% {3} | JOIN WITH `DataFlowPublic::MethodCallNode.calls/2#dispred#1dd1e0f4#ffb_021#join_rhs` ON FIRST 2 OUTPUT Rhs.2, Lhs.0, Lhs.2
0 ~0% {2} | JOIN WITH `SqlAlchemy::SqlAlchemy::Connection::instance/0#5ed87c17#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
48722 ~3% {3} r3 = SCAN r1 OUTPUT In.0, _, In.1
48722 ~2% {3} | REWRITE WITH Out.1 := "execution_options"
9 ~0% {3} | JOIN WITH `DataFlowPublic::MethodCallNode.calls/2#dispred#1dd1e0f4#ffb_021#join_rhs` ON FIRST 2 OUTPUT Rhs.2, Lhs.0, Lhs.2
0 ~0% {2} | JOIN WITH `SqlAlchemy::SqlAlchemy::Connection::instance/0#5ed87c17#prev_delta` ON FIRST 1 OUTPUT Lhs.1, Lhs.2
0 ~0% {2} r4 = r2 UNION r3
return r4
```
which is fixed by `connectionConstruction_helper`
```
Evaluated recursive predicate SqlAlchemy::SqlAlchemy::Connection::helper/0#62cfc178#b@4f295yef in 1ms on iteration 4 (delta size: 0).
Evaluated relational algebra for predicate SqlAlchemy::SqlAlchemy::Connection::helper/0#62cfc178#b@4f295yef on iteration 4 running pipeline standard with tuple counts:
4 ~0% {1} r1 = JOIN `SqlAlchemy::SqlAlchemy::Connection::instance/1#029b4c87#prev_delta` WITH `TypeTrackingImpl::TypeTracker::end/0#2ac2cfd4` ON FIRST 1 OUTPUT Lhs.1
16 ~0% {1} | JOIN WITH `LocalSources::Cached::hasLocalSource/2#8b3ee0ec_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1
0 ~0% {3} | JOIN WITH `DataFlowPublic::MethodCallNode.calls/2#dispred#1dd1e0f4#ffb_102#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Rhs.2, _
0 ~0% {2} | REWRITE WITH NOT [NOT [Tmp.2 := "connect", TEST InOut.1 = Tmp.2], NOT [Tmp.2 := "execution_options", TEST InOut.1 = Tmp.2]] KEEPING 2
0 ~0% {1} | JOIN WITH DataFlowPublic::CallCfgNode#b8ddbf81 ON FIRST 1 OUTPUT Lhs.0
0 ~0% {1} | AND NOT `SqlAlchemy::SqlAlchemy::Connection::helper/0#62cfc178#b#prev`(FIRST 1)
return r1
```
2024-03-21 11:55:49 +01:00
Jeroen Ketema
4c4ebd907e
C++: Update more expected test results
2024-03-21 11:54:29 +01:00
Jeroen Ketema
a3ae304dfe
C++: Handle getInitializingExpr in PrintAST
2024-03-21 11:32:23 +01:00
Jeroen Ketema
33c524d9fd
Merge pull request #16003 from jketema/destructors18
...
C++: Add tests showing missing destructors for initialization statements
2024-03-21 11:28:54 +01:00
Tamas Vajk
9d655520cc
Code quality improvement
2024-03-21 11:26:45 +01:00
Mathias Vorreiter Pedersen
dc5ee7c8b4
Merge pull request #16007 from MathiasVP/fix-tls-settings-misconfiguration
...
C++: Fix `cpp/boost/tls-settings-misconfiguration` FPs
2024-03-21 10:16:37 +00:00
Mathias Vorreiter Pedersen
7fb64268bd
Merge pull request #15997 from MathiasVP/simplify-guard-in-missing-check-scanf
...
C++: Simplify use of guard conditions in `cpp/missing-check-scanf`
2024-03-21 10:16:12 +00:00
Tamas Vajk
d0c09f43a9
Add change note
2024-03-21 11:13:42 +01:00
Paolo Tranquilli
eb7f07dc3f
Merge pull request #15967 from github/redsun82/test
...
Swift: add `-headerpad_max_install_names` to link options
2024-03-21 11:11:53 +01:00
Tom Hvitved
c0f80ecd2f
Merge pull request #15994 from hvitved/csharp/no-trap-stack-in-buildless
...
C#: Avoid using TRAP stack in buildless mode
2024-03-21 10:46:08 +01:00
erik-krogh
54a1c25276
change the precision of the js/unsafe-external-link query to low
2024-03-21 10:32:15 +01:00
Tamas Vajk
9da8cb1165
C#: Simplify the output of cs/wrong-compareto-signature to remove entity locations
2024-03-21 10:27:55 +01:00
Jeroen Ketema
06313b9bb6
Merge pull request #15998 from MathiasVP/simplify-guard-in-incorrectly-check-scanf
...
C++: Simplify use of guard conditions in `cpp/incorrectly-checked-scanf`
2024-03-21 10:10:03 +01:00
Jeroen Ketema
84646cd795
C++: Add tests showing missing destructors for initialization statements
...
Incidentially this also shows that for contructs like `if (char x = ...)`, so
there is an initialization but not initializer statement, the initialization
is not displayed in the AST, although the IR does contain the initialization.
2024-03-21 09:40:00 +01:00
Michael Nebel
6619be3137
Merge pull request #15940 from michaelnebel/csharp/sourcesinktests
...
C#: Source- and sink tests.
2024-03-21 08:12:16 +01:00
Jeroen Ketema
ec071cde51
Merge pull request #15991 from jketema/destructors17
...
C++: Handle destruction of temporaries in expressions with a `thow` at the root
2024-03-21 07:47:09 +01:00
Jeroen Ketema
9300b04def
C++: Update test results
2024-03-21 00:05:30 +01:00
Henry Mercer
a76832f4e0
Mark LOC queries as debug instead
2024-03-20 21:18:55 +00:00
Tom Hvitved
8f56edea80
Merge pull request #15966 from hvitved/treesitter-split-up-node-info-table
...
Tree-sitter: Split up `ast_node_info` table into two tables
2024-03-20 20:38:18 +01:00
Mathias Vorreiter Pedersen
0ef8c7d87f
C++: Accept test changes.
2024-03-20 18:05:14 +00:00
Mathias Vorreiter Pedersen
1330c885c8
C++: Use 'asIndirectExpr' in the sink of 'ExistsAnyFlowConfig.
2024-03-20 18:04:59 +00:00
Mathias Vorreiter Pedersen
f31bb1391d
C++: Simplify 'checkedForEof'.
2024-03-20 16:59:39 +00:00
Mathias Vorreiter Pedersen
5476f42d2c
C++: Simplify use of 'GuardCondition's in 'cpp/missing-check-scanf'.
2024-03-20 16:44:43 +00:00
Mathias Vorreiter Pedersen
e3be2057d3
Merge pull request #15996 from MathiasVP/missing-check-scanf-path-problem
...
Make `cpp/missing-check-scanf` a `path-problem` query
2024-03-20 16:42:47 +00:00
Mathias Vorreiter Pedersen
96cd259eda
C++: Add change note.
2024-03-20 14:56:39 +00:00
Mathias Vorreiter Pedersen
14aff5c94c
C++: Convert 'cpp/missing-check-scanf' to a path-problem query.
2024-03-20 14:54:53 +00:00
Mathias Vorreiter Pedersen
0fe3072a65
Merge pull request #15988 from MathiasVP/clean-up-missing-check-scanf
...
C++: Rewrite 'cpp/missing-check-scanf' to use standard dataflow configs
2024-03-20 14:50:08 +00:00
Mathias Vorreiter Pedersen
ebac171b2b
Java/Shared: Rename 'joinStep0' to 'joinStep'.
2024-03-20 14:40:16 +00:00
Mathias Vorreiter Pedersen
6a65c46b2e
Java/Shared: Share more 'isNull' computations.
2024-03-20 14:36:12 +00:00
Mathias Vorreiter Pedersen
90fbacc7bf
Java/Shared: Use getLocation instead of hasLocationInfo.
2024-03-20 14:29:48 +00:00
Michael Nebel
969676975d
C#: Address review comments.
2024-03-20 15:28:56 +01:00
Michael B. Gale
616015fddf
Merge pull request #15935 from github/mbg/go/speed-up-dependencies
2024-03-20 14:26:46 +00:00
Tom Hvitved
79dc7fcc04
C#: Avoid using TRAP stack in buildless mode
2024-03-20 15:21:36 +01:00
Taus
1d38ca371b
Merge pull request #15845 from github/tausbn/python-extractor-fix-build
...
Python: Build external extractor
2024-03-20 15:18:59 +01:00
Michael B. Gale
648543f2fb
Merge pull request #15989 from github/mbg/docs/go-1.22
...
Docs: Add Go 1.22 to supported versions range
2024-03-20 14:04:26 +00:00
Michael B. Gale
c74d6348f9
Go: Run go with a valid toolchain version if we have found an invalid one
2024-03-20 13:55:37 +00:00
Michael B. Gale
0d527b2f75
Go: Keep track of all installed toolchains that we know of
2024-03-20 13:52:06 +00:00
Jeroen Ketema
1fd11928eb
Merge pull request #15978 from jketema/destructors16
...
C++: Handle destructors at temporary object lifetime expressions
2024-03-20 14:24:10 +01:00
Ian Lynagh
9086ec8b13
Merge pull request #15973 from igfoo/igfoo/exprs
...
Kotlin 2: Accept more test changes
2024-03-20 13:13:56 +00:00
Michael B. Gale
96a6dd72cd
Go: Move go version command construction into its own function
2024-03-20 13:08:59 +00:00
Michael B. Gale
c71ba0361e
Docs: Add Go 1.22 to supported versions range
2024-03-20 12:12:20 +00:00
Mathias Vorreiter Pedersen
c9dbb7c5a9
C++: Rewrite 'cpp/missing-check-scanf' to use standard dataflow configurations.
2024-03-20 12:01:57 +00:00
Michael B. Gale
06134467e9
Go: Make CODEQL_EXTRACTOR_GO_FAST_PACKAGE_INFO true by default
2024-03-20 12:01:49 +00:00
Ian Lynagh
3fa7532b43
Kotlin 2: Accept more test changes
2024-03-20 11:46:58 +00:00
Cornelius Riemenschneider
8fbd743e9e
Merge pull request #15971 from github/criemen/bazel-7-1
...
Upgrade to bazel 7.1
2024-03-20 12:27:03 +01:00
Mathias Vorreiter Pedersen
7ff2998c88
Merge pull request #15980 from MathiasVP/guards-lt
...
C++: Support `<` reasoning for `switch` statements in Guards library
2024-03-20 10:40:39 +00:00
Mathias Vorreiter Pedersen
3a7b80da47
C++: Respond to review comments.
2024-03-20 10:12:29 +00:00
Mathias Vorreiter Pedersen
9179f0bda6
Merge pull request #15969 from MathiasVP/disable-some-constant-folding
...
C++: Disable _some_ constant folding in IR
2024-03-20 09:25:06 +00:00
Arthur Baars
1d956e1039
Merge pull request #15974 from github/dbartol/rc3.13-mergeback
...
Mergeback from `rc/3.13`
2024-03-20 10:13:32 +01:00
erik-krogh
db3bf0e482
use the sanitizers from ReflectedXSS in unsafe-html-construction
2024-03-20 10:11:07 +01:00
Jeroen Ketema
3ee965f2b9
C++: Update test results
2024-03-20 10:05:35 +01:00
Tom Hvitved
90779f4413
Ruby: Extend barrier guards to handle phi inputs
2024-03-20 10:02:20 +01:00
Tom Hvitved
0f0acc0428
Ruby: Add barrier guard flow tests
2024-03-20 09:25:20 +01:00
Alex Denisov
1cfde49297
Swift: remove unused patches
2024-03-20 09:24:25 +01:00
Alex Denisov
589a5039c8
Swift: update Swift 5.10 dependencies
2024-03-20 09:23:12 +01:00
Tony Torralba
0bb86fc087
Merge pull request #15983 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-20 09:00:34 +01:00
Paolo Tranquilli
10efcc2bb4
Swift: add -headerpad_max_install_names to link options
2024-03-20 08:35:33 +01:00
github-actions[bot]
f6f7073520
Add changed framework coverage reports
2024-03-20 00:15:31 +00:00
Mathias Vorreiter Pedersen
97aa301ac9
C++: Accept more test changes.
2024-03-19 17:33:23 +00:00
Mathias Vorreiter Pedersen
88bfb81b1f
C++: Add change note.
2024-03-19 17:14:07 +00:00
Taus
d12ac1e7ce
Python: Use tsp instead of tree-sitter-python
2024-03-19 17:11:40 +00:00
Taus
38169a981d
Python: Shorten tree-sitter-python directory name
...
The current name results in a path that is more than 260 characters long,
and this causes issues for the build on Windows.
2024-03-19 17:11:40 +00:00
Taus
6f388acdd8
Python: Rename tsg_python_crate_index to py_deps
...
This aligns us a bit more with Ruby.
2024-03-19 17:11:40 +00:00
Taus
04c9ed37a7
Python: Fix reference in unit test
...
The referenced file lives in the internal repo, so this is perhaps a bit
of a hack, but I think it should be fine in the short run.
2024-03-19 17:11:40 +00:00
Taus
cac5a8236e
Python: Fix CLI integration tests
...
Two issues:
- Tests relying on existing query machinery (i.e. `import python`) were not resolving
correctly due to a bad `qlpack.yml` file.
- The diagnostics output tests needed an updated import to account for their new location.
2024-03-19 17:11:40 +00:00
Taus
0550c46766
Python: Fix Bazel build
2024-03-19 17:11:40 +00:00
Taus
5fed8bc57b
Python: Add codeql-extractor.yml
2024-03-19 17:11:40 +00:00
Taus
016aedab0a
Python: Move Python language pack tooling to external repo
...
This is essentially the contents of `language-packs/python/tools` with some minor
modifications to account for the changed location.
Of note: we explicitly exclude the `recorded-call-graph-metrics` director that
was already present in `python/tools`. When we revisit this directory for some
cleanup (e.g. to get rid of the `lgtm` references), we'll probably want to switch
to an explicit list of sources to include.
2024-03-19 17:11:40 +00:00
Taus
cdc879ee89
Python: Fix up some bazel references
2024-03-19 17:11:40 +00:00
Mathias Vorreiter Pedersen
1411ee5b26
C++: Extend tests to also test the new predicates and accept test changes.
2024-03-19 17:09:22 +00:00
Mathias Vorreiter Pedersen
a78080cc0e
C++: Implement less-than logic for guard conditions when comparing to constants.
2024-03-19 17:06:26 +00:00
Mathias Vorreiter Pedersen
8b85735cdc
C++: Generalize predicates from booleans to abstract values.
2024-03-19 17:03:59 +00:00
Dave Bartolomeo
bf46fa27d6
Merge remote-tracking branch 'origin/main' into dbartol/rc3.13-mergeback
2024-03-19 13:02:15 -04:00
Mathias Vorreiter Pedersen
aeb667c6ca
Merge pull request #15976 from MathiasVP/guards-eq-follow-up
...
C++: Fix interface for `GuardCondition.comparesEq` and `GuardCondition.ensuresEq`
2024-03-19 16:45:38 +00:00
Mathias Vorreiter Pedersen
6bf1611f10
C++: Fix comments.
2024-03-19 16:26:37 +00:00
Michael B. Gale
be027e217e
Go: Emit diagnostic for invalid toolchain versions
2024-03-19 16:26:06 +00:00
Mathias Vorreiter Pedersen
357a2ba733
C++: Sync identical files.
2024-03-19 16:24:11 +00:00
Mathias Vorreiter Pedersen
458ee13345
C++: Add constant analysis for bitwise operations now that these are no longer constant folded by IR construction.
2024-03-19 16:23:57 +00:00
yoff
ee411cc53a
Merge pull request #15936 from yoff/python/test-conflicting-summaries
...
Python: No `fieldFlowBranchLimit` for `SummarizedCallable`s
2024-03-19 16:56:56 +01:00
Robert Marsh
467f4e11a1
C++: Change note for IR translation of destruction of temporaries with extended lifetimes
2024-03-19 15:55:36 +00:00
Robert Marsh
5a30ad162a
C++: Add a comment for ReusedExpr IR translation
2024-03-19 15:54:52 +00:00
Robert Marsh
3d4f7d880d
C++: unsuppress destructoion of temporaries with extended lifetimes
2024-03-19 15:54:42 +00:00
Robert Marsh
ba10ea8121
C++: ReuseExpr IR translation
2024-03-19 15:50:28 +00:00
Michael Nebel
d3aa2eed64
C#: Fix test.
2024-03-19 16:30:24 +01:00
Jeroen Ketema
f5fed84bb2
Merge pull request #15968 from jketema/destructors15
...
C++: Fabricate destructors for temporaries that occur in dynamic initializations
2024-03-19 16:16:43 +01:00
Owen Mansel-Chan
b8608a1b1c
Merge pull request #15946 from owen-mc/java/more-manual-models
...
Java: more manual models
2024-03-19 15:00:27 +00:00
Mathias Vorreiter Pedersen
c640bd67e9
C++: Fix tests for guards.
2024-03-19 14:43:16 +00:00
Mathias Vorreiter Pedersen
6ce3f35ef5
C++: Fix API for guards.
2024-03-19 14:43:10 +00:00
Dave Bartolomeo
311ba8ea1b
Merge from main to resolve conflicts
2024-03-19 10:41:31 -04:00
Harry Maclean
219cd4e415
Merge pull request #14426 from hmac/hmac-ar-scopes
...
Ruby: Track flow into ActiveRecord scopes
2024-03-19 14:19:14 +00:00
Chris Smowton
f8124222cc
Merge pull request #15959 from smowton/smowton/admin/jdk22-test-changes
...
JDK22 upgrade test changes
2024-03-19 14:02:46 +00:00
Harry Maclean
7e479e3c8e
Ruby: Fix Hash#keys flow summary
2024-03-19 13:47:45 +00:00
Tom Hvitved
ee3e38f0eb
Simplify test interface in FlowSummaryImpl.qll
2024-03-19 14:35:00 +01:00
Owen Mansel-Chan
7371f5e508
Provenance should be "df-manual"
2024-03-19 13:33:49 +00:00
Mathias Vorreiter Pedersen
597f0082e7
Merge pull request #15958 from MathiasVP/ir-guards-from-switch-statements-2
...
C++: Implement guards logic for switch statements
2024-03-19 13:21:45 +00:00
Michael Nebel
70c6744944
Java/Go/Swift: Sync changes.
2024-03-19 14:20:43 +01:00
Michael Nebel
d24f032d97
C#: Update other tests.
2024-03-19 14:20:43 +01:00
Michael Nebel
b39842501a
C#: Update sink test expected output.
2024-03-19 14:20:42 +01:00
Michael Nebel
e32902ad47
C#: Update source expected test output.
2024-03-19 14:20:42 +01:00
Michael Nebel
5b37ee4ec7
Re-factor TestOutput into a param module.
2024-03-19 14:20:42 +01:00
Mathias Vorreiter Pedersen
54262a53c3
Revert "C++: Accept test changes."
...
This reverts commit f36b48346e .
2024-03-19 13:18:01 +00:00
Mathias Vorreiter Pedersen
a88d8b260d
C++: Only ignore constant folding for certain binary operations.
2024-03-19 13:17:49 +00:00
Mathias Vorreiter Pedersen
a97891cbc1
C++: Add QLDoc to 'getNumberOfBinaryOperands' (and rename it to 'getNumberOfNestedBinaryOperands').
2024-03-19 12:56:15 +00:00
Mathias Vorreiter Pedersen
f36b48346e
C++: Accept test changes.
2024-03-19 12:50:43 +00:00
Harry Maclean
df1845379a
Merge pull request #15965 from hmac/hmac-symbol-constant
...
Ruby: remove isString from TSymbol
2024-03-19 12:50:27 +00:00
Michael Nebel
90db9b330f
C#: Add MaD source and sink test query to shared library.
2024-03-19 13:45:38 +01:00
Cornelius Riemenschneider
42c5066cae
Upgrade to bazel 7.1
2024-03-19 13:40:45 +01:00
Harry Maclean
22ddf2129b
Ruby: remove isString from TSymbol
2024-03-19 12:27:34 +00:00
Tom Hvitved
2e370e2ded
Python: Switch to shared XML.qll implementation
2024-03-19 13:17:53 +01:00
Tom Hvitved
61ef9e2e5c
JS: Switch to shared XML.qll implementation
2024-03-19 13:17:50 +01:00
Tom Hvitved
a6c147134a
Java: Switch to shared XML.qll implementation
2024-03-19 13:15:45 +01:00
Tom Hvitved
754b491d09
C++: Switch to shared XML.qll implementation
2024-03-19 13:14:42 +01:00
Tom Hvitved
529e901fb1
C#: Switch to shared XML.qll implementation
2024-03-19 13:14:42 +01:00
Tom Hvitved
7055cd8239
Make XML.qll a parameterized module
2024-03-19 13:14:42 +01:00
Tom Hvitved
ccfbd2956c
Copy existing XML.qll into new a new codeql/xml pack
2024-03-19 13:14:42 +01:00
Tom Hvitved
31e04631d1
QL4QL: Regenerate DB scheme and stats
2024-03-19 13:04:12 +01:00
Tom Hvitved
865026f22b
Ruby: Add up/downgrade scripts (sigh)
2024-03-19 13:04:12 +01:00
Tom Hvitved
72ff494739
Ruby: Regenerate dbscheme and stats
2024-03-19 13:04:07 +01:00
Mathias Vorreiter Pedersen
1af1ba48a9
C++: Accept test changes.
2024-03-19 11:46:51 +00:00
Mathias Vorreiter Pedersen
4d3076ae7e
C++: Don't constant fold small binary operations.
2024-03-19 11:46:51 +00:00
Mathias Vorreiter Pedersen
e16e1c7e83
C++: Add tests.
2024-03-19 11:26:32 +00:00
Jeroen Ketema
06dbb4e9ef
Merge pull request #15937 from jketema/destructors14
...
C++: Handle destructors of temporaries with extended lifetimes
2024-03-19 12:07:05 +01:00
Mathias Vorreiter Pedersen
d7afd7b2e1
C++: Accept test changes.
2024-03-19 10:54:35 +00:00
Mathias Vorreiter Pedersen
350b239ed6
C++: Fix cartesian product in 'simple_comparison_eq'.
2024-03-19 10:29:43 +00:00
Jeroen Ketema
d47e2690b8
C++: Update test results after extractor changes
2024-03-19 11:18:36 +01:00
Jeroen Ketema
fd49871b9a
C++: Handle destructors of temporaries with extended lifetimes
2024-03-19 10:56:44 +01:00
Tom Hvitved
cee6f003fd
Tree-sitter: Split up ast_node_info table into two tables
2024-03-19 10:52:37 +01:00
Mathias Vorreiter Pedersen
0c3d9f75f4
C++: Add change note.
2024-03-19 09:41:58 +00:00
yoff
f025430431
Merge pull request #15319 from Sim4n6/main
...
[Python] Add Unicode DoS (qhelp, tests and the query)
2024-03-19 10:00:30 +01:00
Rasmus Wriedt Larsen
d78efdb67b
Merge pull request #15883 from RasmusWL/js-cg-tests
...
JS: show test changes after #15823
2024-03-19 09:58:20 +01:00
Harry Maclean
dde148ee7e
Ruby: add changenote
2024-03-19 08:40:30 +00:00
Harry Maclean
32b80f8cb1
Ruby: Add tests for hash flow
2024-03-19 08:38:14 +00:00
Tom Hvitved
5ab1047b14
Merge pull request #15882 from hvitved/js/dataflow-node-get-location
...
JS: Add `DataFlow::Node.getLocation`
2024-03-19 09:21:00 +01:00
Chris Smowton
9a8ec36a4f
Accept test changes
2024-03-19 07:55:08 +00:00
Mathias Vorreiter Pedersen
aa1d5c5e41
Merge pull request #15960 from MathiasVP/unitialized-local-as-path
...
C++: Convert `cpp/uninitialized-local` to a `path-problem` query
2024-03-18 21:18:17 +00:00
Erik Krogh Kristensen
a3da6c886b
Merge pull request #15895 from erik-krogh/url-java-qhelp
...
Java: update the url-redirection in the same style as the C# qhelp
2024-03-18 21:10:07 +01:00
yoff
44ab36f238
Merge pull request #15729 from yoff/python/hardcoded-credentials-without-pointsto
...
python: Rewrite `HardcodedCredentials` away from `PointsTo`
2024-03-18 20:48:30 +01:00
Tom Hvitved
fc55567d90
Merge pull request #15853 from hvitved/dataflow/get-location
...
Data flow: Replace `hasLocationInfo` with `getLocation`
2024-03-18 20:21:46 +01:00
Tom Hvitved
8899d66132
Merge pull request #15734 from hvitved/dataflow/hidden-subpath
...
Data flow: Account for hidden `subpath` wrappers
2024-03-18 20:17:16 +01:00
Michael B. Gale
3649af3f05
Go: Add test for go/autobuilder/invalid-go-toolchain-version diagnostic
2024-03-18 17:56:59 +00:00
Harry Maclean
187a68bf76
Ruby: Add flow summary for Hash#keys
2024-03-18 17:56:10 +00:00
Harry Maclean
e895f96a3a
Ruby: Taint flow to second block param in map
...
When `map` is called on a hash, the values in the hash are passed to the
second parameter of the block.
2024-03-18 17:55:02 +00:00
Mathias Vorreiter Pedersen
b66b8785c4
Merge branch 'main' into unitialized-local-as-path
2024-03-18 17:42:53 +00:00
Chris Smowton
35a309fd40
Merge pull request #15897 from smowton/smowton/admin/test-for-gradle-wrapper-without-gradle
...
Java: add test for partial gradle wrapper without gradle on the path
2024-03-18 17:07:20 +00:00
Owen Mansel-Chan
764e99bda7
Fix model for java.util.Scanner#findall(String)
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-18 16:56:20 +00:00
Owen Mansel-Chan
e10ce8875f
Merge pull request #15947 from owen-mc/java/fix-model-provenance-to-df-manual
...
Fix model provenance to df-manual
2024-03-18 16:54:39 +00:00
Mathias Vorreiter Pedersen
9c2b2160ce
Merge pull request #15939 from MathiasVP/experimental-surprising-lifetimes-for-range-based-for-loop
...
C++: Add an experimental query for surprising lifetimes from range-based for loops
2024-03-18 16:43:11 +00:00
Mathias Vorreiter Pedersen
40dbc6fdd9
C++: Accept test changes.
2024-03-18 16:27:18 +00:00
Mathias Vorreiter Pedersen
032678a367
C++: Extend tests to also test the new predicates.
2024-03-18 16:27:10 +00:00
Mathias Vorreiter Pedersen
dbd47b387a
C++: Add AST wrappers for the new predicates.
2024-03-18 16:26:36 +00:00
Mathias Vorreiter Pedersen
decede51dc
C++: Use the new predicate in 'ScanfChecks.qll'.
2024-03-18 16:07:57 +00:00
Mathias Vorreiter Pedersen
44045d3eed
C++: Add guards logic for constant comparisons.
2024-03-18 16:07:57 +00:00
Mathias Vorreiter Pedersen
a21eea4ee0
C++: Generalize more predicates from booleans to abstract values.
2024-03-18 16:07:57 +00:00
Arthur Baars
e812682991
Merge pull request #15955 from github/post-release-prep/codeql-cli-2.16.5
...
Post-release preparation for codeql-cli-2.16.5
2024-03-18 16:58:01 +01:00
Mathias Vorreiter Pedersen
b944f3b411
C++: Fix FP.
2024-03-18 15:57:20 +00:00
Mathias Vorreiter Pedersen
e373341f62
C++: Add more tests.
2024-03-18 15:57:17 +00:00
Ian Lynagh
60b5e49905
Java: Limit the amount of results that MissingEnumInSwitch produces per switch
...
The tool status page warns:
An analysis file contained multiple alerts that included more related
locations than our allowed limit of 100.
These alerts correspond to the rule java/missing-case-in-switch.
Only 100 locations were stored for these alerts.
2024-03-18 15:56:21 +00:00
Ian Lynagh
916b1e959e
Java: Add a test for MissingEnumInSwitch
2024-03-18 15:56:10 +00:00
Chris Smowton
af7b1bc425
Java: add test for partial gradle wrapper without gradle on the path
...
Note I had to mimic the actual absence of Gradle by testing the case where it fails, but have manually verified a missing binary works too.
2024-03-18 15:37:39 +00:00
Mathias Vorreiter Pedersen
668239f355
C++: Convert tabs to spaces.
2024-03-18 15:16:10 +00:00
Mathias Vorreiter Pedersen
bd0969b87b
C++: Add change note.
2024-03-18 15:04:19 +00:00
Mathias Vorreiter Pedersen
4a55b6fbdf
C++: Make 'cpp/uninitialized-local' a path-problem query.
2024-03-18 15:02:33 +00:00
Harry Maclean
80ae017aa1
Ruby: Track flow into ActiveRecord scopes
2024-03-18 15:01:37 +00:00
Tom Hvitved
0cecbf5239
Update 2024-02-28-hidden-subpaths.md
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-18 15:36:01 +01:00
Joe Farebrother
4177c38ed4
Merge pull request #15907 from joefarebrother/ruby-uploaded-file
...
Ruby: Model ActiveDispatch::Http::UploadedFile
2024-03-18 14:02:33 +00:00
Tamas Vajk
322fb6c507
Change integration test to return stable results
2024-03-18 14:53:49 +01:00
Tom Hvitved
7a3b8ebb3a
Address review comments
2024-03-18 14:49:35 +01:00
Tom Hvitved
40089e8088
Add change note
2024-03-18 14:49:35 +01:00
Tom Hvitved
e53357d376
Update expected test output
2024-03-18 14:49:32 +01:00
Tom Hvitved
d7c9bfa08b
Data flow: Account for hidden subpath wrappers
2024-03-18 14:47:11 +01:00
Sim4n6
1af8167354
updated the .expected file
2024-03-18 13:26:20 +00:00
Tamas Vajk
d749335f54
C#: Limit extracted compilation and extraction messages
2024-03-18 14:24:34 +01:00
Tom Hvitved
d83500de5d
Address review comments
2024-03-18 14:24:07 +01:00
Tamas Vajk
e8e1dc0390
C#: Add integration test with extraction and compilation messages
2024-03-18 14:23:40 +01:00
github-actions[bot]
aebe9f6992
Post-release preparation for codeql-cli-2.16.5
2024-03-18 12:16:26 +00:00
Rasmus Wriedt Larsen
c82f5dad56
JS: show test changes after #15823
2024-03-18 13:09:37 +01:00
Rasmus Wriedt Larsen
28c3d35e9b
Merge commit '7c35309732dd2aa4dc0b4e2949922272ad448854' into js-cg-tests
2024-03-18 13:08:46 +01:00
Rasmus Wriedt Larsen
f9309cec0b
JS: Add tests before #15823 changes
2024-03-18 13:08:39 +01:00
Mathias Vorreiter Pedersen
7b6accd33a
Update cpp/ql/src/experimental/Security/CWE/CWE-416/IteratorToExpiredContainer.ql
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-03-18 12:01:51 +00:00
Mathias Vorreiter Pedersen
457d71d7bc
Update cpp/ql/src/experimental/Security/CWE/CWE-416/IteratorToExpiredContainer.ql
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-03-18 12:01:44 +00:00
Arthur Baars
dbf16827bf
Merge pull request #15951 from github/aibaars/changenotes-fixes
...
Fix minor formatting issues in changenotes
2024-03-18 12:56:50 +01:00
Tamás Vajk
7429fa7b96
Merge pull request #15952 from tamasvajk/buildless/impr1
...
C#: Add logging for source file parsing
2024-03-18 12:27:27 +01:00
Tamás Vajk
f63c9fa07f
Merge pull request #15953 from tamasvajk/buildless/impr2
...
C#: Iterate text files only once
2024-03-18 12:26:38 +01:00
Ian Lynagh
d2bb951ecd
Merge pull request #15943 from igfoo/igfoo/k2locs
...
Kotlin 2: Accept more location changes
2024-03-18 11:26:08 +00:00
Owen Mansel-Chan
7fb05f4a76
Fix duplicate "df-" in "df-df-manual"
2024-03-18 11:17:55 +00:00
Mathias Vorreiter Pedersen
575af1a5f9
Merge branch 'main' into experimental-surprising-lifetimes-for-range-based-for-loop
2024-03-18 11:11:32 +00:00
Mathias Vorreiter Pedersen
1d12e0c9d9
Merge pull request #15941 from MathiasVP/ir-guards-from-switch-statements
...
C++: Handle `switch` statements in the guards library
2024-03-18 11:07:10 +00:00
Mathias Vorreiter Pedersen
e0476b555d
Merge pull request #15934 from MathiasVP/ir-models-for-iterators
...
C++: Add alias and side-effect models to `begin` and `end` functions
2024-03-18 11:06:59 +00:00
Arthur Baars
769e3469a4
Merge pull request #15954 from github/release-prep/2.16.5
...
Release preparation for version 2.16.5
2024-03-18 11:56:14 +01:00
Mathias Vorreiter Pedersen
0be329dbdc
C++: Delete duplicated code.
2024-03-18 10:33:40 +00:00
github-actions[bot]
0a6243d07b
Release preparation for version 2.16.5
2024-03-18 10:14:07 +00:00
Mathias Vorreiter Pedersen
51db2b0bc4
C++: Convert tabs to spaces in ir.cpp.
2024-03-18 10:11:37 +00:00
Tamas Vajk
881c426631
C#: Iterate text files only once
2024-03-18 11:06:44 +01:00
Tamas Vajk
3a8d468983
C#: Add logging for source file parsing
2024-03-18 11:02:29 +01:00
Arthur Baars
a810165e35
Fix minor formatting issues in changenotes
2024-03-18 10:57:05 +01:00
Tom Hvitved
a13391bda1
Merge pull request #15802 from hvitved/dataflow/variable-capture-overlapping-paths
...
Variable capture: Avoid overlapping and false-positive data flow paths
2024-03-18 10:45:55 +01:00
Rasmus Lerchedahl Petersen
2a0c451d2d
python: No fieldFlowBranchLimit for SummarizedCallables
...
Like https://github.com/github/codeql/pull/15689 for Ruby.
2024-03-18 10:29:36 +01:00
Rasmus Lerchedahl Petersen
45c65b48aa
python: make it a real package
...
so python2 also respects it
2024-03-18 08:49:31 +01:00
Jami Cogswell
a8eb1d10f6
Java: remove experimental tests
2024-03-17 22:35:27 -04:00
Jami Cogswell
658fffeac1
Java: remove experimental files
2024-03-17 22:03:59 -04:00
Owen Mansel-Chan
754d4cd959
Fix model provenance to df-manual
2024-03-17 14:36:47 +00:00
Owen Mansel-Chan
23a58a0835
Add df-manual models related to existing df-manual models
2024-03-17 14:21:05 +00:00
Owen Mansel-Chan
fc367042ef
Fix df-manual model with wrong parameter type
2024-03-17 14:21:01 +00:00
Ian Lynagh
a53d5d832d
Kotlin 2: Accept more loc changes
2024-03-15 18:08:53 +00:00
Ian Lynagh
c4c843968e
Kotlin 2: Accept more loc changes
2024-03-15 18:07:39 +00:00
Ian Lynagh
57d17d85f2
Kotlin 2: Accept more loc changes
2024-03-15 18:07:12 +00:00
Ian Lynagh
6c0885c24d
Kotlin 2: Accept more loc changes
2024-03-15 18:06:45 +00:00
Jami Cogswell
55f7369df0
Java: performance fix
2024-03-15 14:06:36 -04:00
Ian Lynagh
5580daf60e
Kotlin 2: Accept more loc changes
2024-03-15 18:06:13 +00:00
Ian Lynagh
1d2b31f0be
Kotlin 2: Accept more loc changes
2024-03-15 18:05:46 +00:00
Ian Lynagh
5552fe3c34
Kotlin 2: Accept more loc changes
2024-03-15 18:05:09 +00:00
Ian Lynagh
28f98d0344
Kotlin 2: Accept more location changes
2024-03-15 18:04:28 +00:00
Ian Lynagh
354cdf44aa
Kotlin 2: Accept more location changes
2024-03-15 18:03:55 +00:00
Ian Lynagh
f4542f6160
Kotlin2 : Accept some more location changes
2024-03-15 18:02:54 +00:00
Mathias Vorreiter Pedersen
e23e3d7fb4
C++: Run tests without the extractor and analysis changes.
2024-03-15 17:35:47 +00:00
Mathias Vorreiter Pedersen
a8718f99a1
C++: Add qhelp for 'cpp/iterator-to-expired-container'.
2024-03-15 17:35:47 +00:00
Mathias Vorreiter Pedersen
3a8db49573
C++: Add tests for 'cpp/iterator-to-expired-container'.
...
NOTE: This is with the yet-to-be-merged changes to the extractor and IR generation.
2024-03-15 17:35:17 +00:00
Mathias Vorreiter Pedersen
f4f417c3f9
C++: Fix QLoc.
2024-03-15 17:19:36 +00:00
Mathias Vorreiter Pedersen
b5e59492bf
C++: Add change note.
2024-03-15 17:17:05 +00:00
Mathias Vorreiter Pedersen
fb218150e1
C++: Change the testcase so that it outputs the controlling values for switch statements as well.
2024-03-15 17:05:42 +00:00
Mathias Vorreiter Pedersen
07ebbb0591
C++: Accept test changes.
2024-03-15 17:04:27 +00:00
Mathias Vorreiter Pedersen
34decd3cf1
C++: Add more general public predicates to work with abstract values.
2024-03-15 17:03:45 +00:00
Mathias Vorreiter Pedersen
f4eb5f5a2d
C++: Convert 'getBranchSuccessor' to use abstract values.
2024-03-15 17:03:45 +00:00
Mathias Vorreiter Pedersen
b7292fbc67
C++: Introduce 'AbstractValue' similar to what C# has.
2024-03-15 17:03:45 +00:00
Mathias Vorreiter Pedersen
2af68d37d0
C++: Include 'SwitchInstruction's as 'IRGuardCondition's.
2024-03-15 17:03:45 +00:00
Mathias Vorreiter Pedersen
704f1fad46
C++: Add switches as testcases for guard conditions.
2024-03-15 17:02:32 +00:00
Max Schaefer
daee22d38c
Merge pull request #15933 from github/max-schaefer/go-incomplete-hostname-regex
...
Go: Mention raw string iterals in QHelp for `go/incomplete-hostname-regexp`.
2024-03-15 15:07:10 +00:00
Edward Minnix III
8ae64e992c
Merge pull request #15929 from egregius313/egregius313/csharp/mad/source-node-clases-for-models
...
C#: Add classes extending `SourceNode` for local and stored source models
2024-03-15 11:06:14 -04:00
Joe Farebrother
8c5fff2d11
Update names and qldoc for params taint predicates
2024-03-15 14:43:29 +00:00
Mathias Vorreiter Pedersen
23cf99734a
C++: Add a new experimental query ' cpp/iterator-to-expired-container'.
2024-03-15 14:29:29 +00:00
Mathias Vorreiter Pedersen
f7c29e6bfb
C++: Expose some previously private classes from our models so they can be used in queries.
2024-03-15 14:21:39 +00:00
Rasmus Lerchedahl Petersen
cfbc3f73ec
Pyhton: add test for conflicting summaries
...
We noticed that when
- a function has more than one summary (with different charpred)
- one summary is subsumed by a subpath (or something happens around the function being extracted)
- the function is called multiple times(we needed at least three)
one of the summaries would no longer lead to flow.
2024-03-15 15:13:39 +01:00
Sim4n6
3acdd3382c
Update the expected file
2024-03-15 14:17:23 +01:00
Sim4n6
26a16b7857
use of a single var "op" of type Cmpop
2024-03-15 14:17:23 +01:00
Sim4n6
a717bf1b9d
Fix p tag in UnicodeDoS.qhelp
2024-03-15 14:17:23 +01:00
Sim4n6
af19a0342e
Fix UnicodeDoS vulnerability in CWE-770 code
2024-03-15 14:17:23 +01:00
Sim4n6
085d803b14
Fix UnicodeDoS vulnerability in CWE-770
2024-03-15 14:17:23 +01:00
Sim4n6
31dc542111
Update request parameter name in good_1() function
2024-03-15 14:17:23 +01:00
Sim4n6
70ebc58b4c
Refactor Unicode normalization code
2024-03-15 14:17:23 +01:00
Sim4n6
3d8868a6c3
Add routes for bad_5 and bad_6, and fix routes for good_3 and good_4
2024-03-15 14:17:23 +01:00
Sim4n6${{7*'7'}}
658b88e62f
Update python/ql/src/experimental/Security/CWE-770/UnicodeDoS.ql
...
update the Config API
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-03-15 14:17:23 +01:00
Sim4n6
1f767b887e
Add some comments and docs
2024-03-15 14:17:23 +01:00
Sim4n6
5cc9170249
Add UnicodeDoS sink for werkzeug secure_filename
2024-03-15 14:17:23 +01:00
Sim4n6
342465057c
Add Unicode DoS (CWE-770)
2024-03-15 14:17:23 +01:00
Mathias Vorreiter Pedersen
19c9ea7e20
C++: Implement alias and side effect models for iterators.
2024-03-15 12:13:43 +00:00
Mathias Vorreiter Pedersen
a51fe4a00e
C++: Make the vector and iterator classes in 'ir.cpp' more realistic. This matches the one we use for dataflow tests.
2024-03-15 12:10:48 +00:00
Max Schaefer
d3e0a90ae5
Go: Mention raw string iterals in QHelp for go/incomplete-hostname-regexp.
2024-03-15 11:22:40 +00:00
Tom Hvitved
693c28a821
Merge pull request #15931 from hvitved/ql/remove-missing-override-query
...
QL4QL: Remove `MissingOverride` query
2024-03-15 11:28:41 +01:00
Owen Mansel-Chan
8e52483beb
Add df-manual models in manually modeled classes
2024-03-15 10:10:23 +00:00
Tom Hvitved
80649786c3
QL4QL: Remove MissingOverride query
2024-03-15 11:06:15 +01:00
Tom Hvitved
e7b00a7b42
Ruby: Add post-update argument nodes for string constants
2024-03-15 10:47:39 +01:00
Rasmus Wriedt Larsen
7eb4419342
Python: Restrict type-tracking content to only be precise
...
At least for now :)
2024-03-15 10:24:57 +01:00
Rasmus Wriedt Larsen
6babb2ff90
Python: Accept .expected for typetracking-summaries
2024-03-15 10:24:33 +01:00
Rasmus Wriedt Larsen
00f2a6a65e
Python: Update ssa-compute test expectations
2024-03-15 10:14:45 +01:00
Tony Torralba
171ff4d161
Merge pull request #15928 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-15 09:24:57 +01:00
Ed Minnix
71cf948650
Classes extending SourceNode for local and stored source models
...
Queries such as `cs/sql-injection` cast their source to a `SourceNode`
in order to describe them. For example:
```ql
import semmle.code.csharp.security.dataflow.flowsources.FlowSources
string getSourceType(DataFlow::Node source) {
result = source.(SourceNode).getSourceType()
}
```
Models as data source models are not included in `SourceNode` by
default, they must be wrapped with a class extending `SourceNode`.
This adds such classes, which wrap the
`sourceNode(DataFlow::Node,string)` predicate and assigns a
`getSourceType`.
2024-03-14 22:23:54 -04:00
github-actions[bot]
7f05743212
Add changed framework coverage reports
2024-03-15 00:16:16 +00:00
Joe Farebrother
f464f1b94e
Accept test output + fix qldoc typo
2024-03-14 22:25:37 +00:00
Joe Farebrother
b4ed77343b
Add change note + fix qldoc
2024-03-14 22:25:36 +00:00
Joe Farebrother
3e61be1b6a
Add test cases
2024-03-14 22:25:36 +00:00
Joe Farebrother
5333c75919
Model additional string attributes
2024-03-14 22:25:36 +00:00
Joe Farebrother
8c31b612ca
Model UploadedFile original_filename and read
2024-03-14 22:25:35 +00:00
Mathias Vorreiter Pedersen
6dddae0154
Merge pull request #15925 from MathiasVP/rename-dataflowutil-class
...
C++: Follow-up to #15918
2024-03-14 18:15:14 +00:00
Tony Torralba
ee3efbadae
Merge pull request #15924 from atorralba/atorralba/go/hardcoded-credentials-fix
...
Go: Consider more strings as hardcoded credentials
2024-03-14 16:52:34 +01:00
Tamás Vajk
945121de1b
Merge pull request #15922 from tamasvajk/buildless/namespace-extraction
...
C#: Handle namespace resolution error more gracefully
2024-03-14 16:19:48 +01:00
Michael Nebel
2280469564
Merge pull request #15902 from michaelnebel/csharp/uncontrolledformatstring
...
C#: Remove hard-coded local sources from the uncontrolled-format-string query.
2024-03-14 15:21:31 +01:00
Mathias Vorreiter Pedersen
7fdea27d33
C++: Rename 'IndirectTemporaryExpr' to 'IndirectOperandExprNode'.
2024-03-14 11:46:15 +00:00
Owen Mansel-Chan
2bd08838d4
Add manual neutral models for java.lang.ClassLoader
2024-03-14 11:40:06 +00:00
Owen Mansel-Chan
5b734c76b6
Add manual neutral models for java.util.Locale and its subclasses
2024-03-14 11:39:59 +00:00
Tony Torralba
20691e409c
Add change note
2024-03-14 11:56:43 +01:00
Mathias Vorreiter Pedersen
9aefdca7a7
Merge pull request #15875 from MathiasVP/bring-back-type-barriers-in-non-constant-format
...
C++: Clean up `cpp/non-constant-format`
2024-03-14 10:51:23 +00:00
Tony Torralba
30d906d42a
Merge pull request #15906 from atorralba/atorralba/java/jdk-neutrals
...
Java: Add more neutral JDK models
2024-03-14 11:07:06 +01:00
Geoffrey White
19cc620f18
C++: Effect of 'Fix dataflow node <> expression problem on prvalues' from main.
2024-03-14 09:47:38 +00:00
Rasmus Wriedt Larsen
7a3ee0f5f8
Python: Make IterableSequenceNode LocalSourceNode
...
We do this to remove the inconsistencies, and to be ready for a future
where type-tracking support content tracker of depth > 1.
It works because targets of loadSteps needs to be LocalSourceNodes
predicate loadStep(Node nodeFrom, LocalSourceNode nodeTo, Content content) {
2024-03-14 10:46:29 +01:00
Geoffrey White
f208594067
Merge branch 'main' into mad
2024-03-14 09:44:45 +00:00
Rasmus Wriedt Larsen
6ffaad1bc8
Python: Expand type-tracking tests with nested tuples
...
I was initially surprised to see that this didn't work, until I
remembered that type-tracking only works with content of depth 1.
2024-03-14 10:44:25 +01:00
Rasmus Wriedt Larsen
af8cef5b53
Python: Fixup deprecated type-tracker API
2024-03-14 10:43:28 +01:00
Rasmus Wriedt Larsen
2b09b084e0
Python: Add change-note
2024-03-14 10:43:28 +01:00
Rasmus Wriedt Larsen
7de304bf16
Python: Add proper type-tracking tests for content
...
Instead of just relying on the call-graph tests
2024-03-14 10:43:28 +01:00
Rasmus Wriedt Larsen
fa0c4e18fc
Python: Expand dict-content tt test even more
...
While it might be useful to track content to any lookup, it's not
something we do right now.
2024-03-14 10:43:28 +01:00
Rasmus Wriedt Larsen
4d78762ba8
Python: Ignore consistency failure
2024-03-14 10:43:28 +01:00
Rasmus Wriedt Larsen
8a7ffac19c
Python: Accept consistency failure
2024-03-14 10:43:28 +01:00
Rasmus Wriedt Larsen
92729dbbd6
Python: Support iterable unpacking in type-tracking
2024-03-14 10:42:38 +01:00
Rasmus Wriedt Larsen
0cf3fe4a4c
Python: Expand dict update tests
2024-03-14 10:42:38 +01:00
Rasmus Wriedt Larsen
dac2b57bb0
Python: type-track through dict-updates
2024-03-14 10:42:38 +01:00
Rasmus Wriedt Larsen
73fe596753
Python: type-tracking through dictionary construction
2024-03-14 10:42:38 +01:00
Rasmus Wriedt Larsen
ece8245a4b
Python: type-track through tuple content
2024-03-14 10:42:38 +01:00
Rasmus Wriedt Larsen
a95bb7c86b
Python: Expand function reference in content test
2024-03-14 10:42:38 +01:00
Rasmus Wriedt Larsen
7721fb3331
Python: Setup shared read/store steps
2024-03-14 10:42:37 +01:00
Rasmus Wriedt Larsen
636cf611ae
Python: Allow general content in type-tracker
...
This should not result in many changes, since store/load steps are still
only implemented for attributes.
2024-03-14 10:42:37 +01:00
Rasmus Wriedt Larsen
fc8caa66c8
Python: Prepare for general content in type-tracker
...
Due to the char-pred of Content, this change should keep exactly the
same behavior as before.
2024-03-14 10:42:37 +01:00
Mathias Vorreiter Pedersen
dacf7d73d9
Merge pull request #15918 from MathiasVP/fix-as-expr-for-temps
...
C++: Fix dataflow node <> expression problem on prvalues
2024-03-14 09:38:46 +00:00
Tony Torralba
87b2dcc892
Adjust test expectations
2024-03-14 10:25:04 +01:00
Mathias Vorreiter Pedersen
a24432bacc
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
2024-03-14 09:23:33 +00:00
Mathias Vorreiter Pedersen
c375497fa5
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
2024-03-14 09:16:04 +00:00
Tony Torralba
d8c0ab8e1f
Go: Consider more strings as hardcoded credentials
2024-03-14 10:11:39 +01:00
Tony Torralba
9d44045e6f
Adjust test expectations
2024-03-14 09:41:34 +01:00
Tony Torralba
eecab9122a
Recognize the model generator involvement in the models' provenances
2024-03-14 08:56:23 +01:00
Tony Torralba
5b88b8a3ed
A few more neutrals
2024-03-14 08:53:58 +01:00
Tony Torralba
36f6a6fb10
Model more EnumSet methods as neutrals
2024-03-14 08:46:43 +01:00
Tamas Vajk
b5f349bd2c
C#: Handle namespace resolution error more gracefully
2024-03-14 08:37:22 +01:00
Jeroen Ketema
b2e0485c94
Merge pull request #15908 from jketema/destructors12
...
C++: suppress destructors with reuse expressions until proper support is added
2024-03-14 07:41:59 +01:00
Mathias Vorreiter Pedersen
a839c92979
C++: Fix mapping issue between dataflow nodes and expressions when the expression is a prvalue.
2024-03-13 22:59:09 +00:00
Mathias Vorreiter Pedersen
2fc0922b29
Merge branch 'main' into bring-back-type-barriers-in-non-constant-format
2024-03-13 22:46:35 +00:00
Mathias Vorreiter Pedersen
d1c253b519
C++: Accept test changes.
2024-03-13 22:41:32 +00:00
Mathias Vorreiter Pedersen
61597f5ac7
C++: This commit does two things:
...
1. It fixes a logic error in the cannotContainString predicate.
2. It reverts the changes to the `isSource` predicate that required the external
function to be within the source root.
The change to `isSource` was meant to fix the a performance problem that occurred
because of the logic error in the cannotContainString predicate. However, now that
the logic error is fixed this is no longer necessary 🎉
2024-03-13 22:40:06 +00:00
erik-krogh
ef8368cfc4
fix typo
2024-03-13 22:37:13 +01:00
Jami Cogswell
1b01f26d09
Java: adjust BarrierPrefix to handle prepended chars
2024-03-13 16:28:45 -04:00
Jami Cogswell
5ac453eb38
Java: add spurious test case for StringBuilder.append
2024-03-13 16:28:45 -04:00
Jami Cogswell
04d27f2d65
Java: adjust prefix barriers
2024-03-13 16:28:44 -04:00
Jami Cogswell
e99cea340b
Java: update UrlPathBarrier to include FollowsBarrierPrefix
2024-03-13 16:28:44 -04:00
Jami Cogswell
c5a59d6c51
Java: add QLDoc
2024-03-13 16:28:44 -04:00
Jami Cogswell
7310c155e2
Java: rename SpringUrlForwardSink
2024-03-13 16:28:44 -04:00
Jami Cogswell
a002674587
Java: clean up comments on test cases
2024-03-13 16:28:44 -04:00
Jami Cogswell
a8075969d8
Java: add QLDocs to UrlPathBarrier code
2024-03-13 16:28:44 -04:00
Jami Cogswell
042dcf9cd9
Java: some updates to UrlPathBarrier code
2024-03-13 16:28:44 -04:00
Jami Cogswell
052452b186
Java: create UrlDecodeMethod
2024-03-13 16:28:44 -04:00
Jami Cogswell
d220b3a298
Java: some updates to test cases
2024-03-13 16:28:43 -04:00
Jami Cogswell
d9772c1880
Java: update change note
2024-03-13 16:28:43 -04:00
Jami Cogswell
43b49628fc
Java: use new 'SimpleTypeSanitizer', and update some non-extending subtype relationships
2024-03-13 16:28:43 -04:00
Jami Cogswell
2708e53c7f
Java: remove redundant imports
2024-03-13 16:28:43 -04:00
Jami Cogswell
f573032b2e
Java: remove todo comments from ext files
2024-03-13 16:28:43 -04:00
Jami Cogswell
911a61df22
Java: initial update of barrier and test cases to remove FN
2024-03-13 16:28:42 -04:00
Jami Cogswell
c8ec301793
Java: add change note
2024-03-13 16:28:42 -04:00
Jami Cogswell
e75c96c0f9
Java: combine test cases; add test for StaplerResponse.forward
2024-03-13 16:28:41 -04:00
Jami Cogswell
5fa63ab5c2
Java: update/add some TODO comments
2024-03-13 16:28:41 -04:00
Jami Cogswell
c331393cfd
Java: update qhelp
2024-03-13 16:28:41 -04:00
Jami Cogswell
09bc21dbd3
Java: rename 'UnsafeUrlForward' to 'UrlForward'
2024-03-13 16:28:41 -04:00
Jami Cogswell
6e7c05467b
Java: update query metadata and alert message
2024-03-13 16:28:41 -04:00
Jami Cogswell
5a9d7552b3
Java: add some comments and minor code reorg
2024-03-13 16:28:41 -04:00
Jami Cogswell
1da1e896cb
Java: convert SpringModelAndViewSink to MaD
2024-03-13 16:28:41 -04:00
Jami Cogswell
8d66097483
Java: switch StaplerResponse.forward from request-forgery sink to url-forward sink
2024-03-13 16:28:41 -04:00
Jami Cogswell
42e3825ea3
Java: convert RequestDispatcherSink to MaD
2024-03-13 16:28:40 -04:00
Jami Cogswell
4ff884e26c
Java: remove more path-injection related classes (will maybe add some of these back in a separate PR)
2024-03-13 16:28:40 -04:00
Jami Cogswell
2a682995ae
Java: move MaD models to correct files, delete ones that already exist
2024-03-13 16:28:40 -04:00
Jami Cogswell
915e106ab3
Java: remove path-injection related models and tests for now
2024-03-13 16:28:40 -04:00
Jami Cogswell
35a083ae9e
Java: update test cases to use inline expectations
2024-03-13 16:28:40 -04:00
Jami Cogswell
2793f28428
Java: move config to Query.qll file
2024-03-13 16:28:40 -04:00
Jami Cogswell
0d38a9625e
Java: copy files from experimental
2024-03-13 16:28:39 -04:00
Jeroen Ketema
866a3934d4
C++: suppress destructors with reuse expressions until proper support is added
2024-03-13 20:17:00 +01:00
Tom Hvitved
54fa8181da
Address review comment
2024-03-13 20:03:01 +01:00
Jeroen Ketema
67b3670d06
Merge pull request #15901 from jketema/destructors11
...
C++: Introduce re-use expressions in the database scheme
2024-03-13 18:27:28 +01:00
Geoffrey White
8d3fc735ea
C++: Fix compilation issue in UseAfterFree.qll.
2024-03-13 17:03:00 +00:00
Geoffrey White
f52b6e0449
C++: Add more test cases for taint through qualifier fields.
2024-03-13 16:20:12 +00:00
Geoffrey White
6019a38266
C++: Add more test cases for indirection (4).
2024-03-13 16:20:08 +00:00
Geoffrey White
23da0c16c7
C++: Add more test cases for indirection (3).
2024-03-13 16:20:04 +00:00
Geoffrey White
7c4927c2e3
C++: Add more test cases for indirection (2).
2024-03-13 16:19:58 +00:00
Tony Torralba
039bea1625
Java: Add more neutral JDK models
...
This is similar to https://github.com/github/codeql/pull/15766 , in the sense that it adds neutral models to prevent the model generator from generating summaries for them. These models were spotted while evaluating https://github.com/github/codeql/pull/14919 .
2024-03-13 16:59:38 +01:00
Geoffrey White
fcda0c9819
C++: Add more test cases for indirection (1).
2024-03-13 15:35:28 +00:00
Geoffrey White
c17a36ec07
C++: Add more test cases for taint through qualifiers.
2024-03-13 15:30:13 +00:00
Mathias Vorreiter Pedersen
b638d4d0ba
Merge pull request #15900 from MathiasVP/glib-alloc-and-dealloc
...
C++: Add models for `GLib` allocation and deallocation
2024-03-13 15:29:46 +00:00
Geoffrey White
92d57ab504
C++: Correct some existing cases that are in fact indirect.
2024-03-13 15:26:21 +00:00
Erik Krogh Kristensen
bd121b98ae
Merge pull request #15893 from erik-krogh/more-filter-taint
...
JS: allow more flow through .filter()
2024-03-13 16:19:28 +01:00
Rasmus Lerchedahl Petersen
533b63743b
Python: test MaD syntax for keyword argument
...
use the combined positional/keyword syntax as
that is what we will probably mostly use.
2024-03-13 15:28:34 +01:00
Tom Hvitved
6c0ed28e6b
Python: Implement new data flow interface
2024-03-13 14:41:57 +01:00
Tom Hvitved
02ae2d1520
Java: Implement new data flow interface
2024-03-13 14:41:57 +01:00
Tom Hvitved
e4a4c18166
Go: Implement new data flow interface
2024-03-13 14:41:57 +01:00
Michael Nebel
560b355e0c
C#: Remove hard-coded local sources from the uncontrolled-format-string query.
2024-03-13 14:26:30 +01:00
Erik Krogh Kristensen
53502a8662
Merge pull request #15510 from yoff/ts-54
...
JS: Add support for TS 5.4
2024-03-13 14:22:24 +01:00
Jeroen Ketema
8d5eab401d
C++: Introduce re-use expressions in the database scheme
2024-03-13 13:28:27 +01:00
Tom Hvitved
16cef92106
JS: Add DataFlow::Node.getLocation
2024-03-13 13:06:16 +01:00
Mathias Vorreiter Pedersen
8d504d8b32
Merge pull request #15899 from jketema/destructors10
...
C++: Add IR tests for the destruction of temporaries
2024-03-13 11:56:04 +00:00
Mathias Vorreiter Pedersen
465c3c18e3
C++: Add change note.
2024-03-13 11:49:26 +00:00
Asger F
c5a02dae2b
Merge pull request #15768 from asgerf/js/amd-pseudo-deps
...
JS: Do not treat AMD pseudo-dependencies as imports
2024-03-13 12:49:17 +01:00
Mathias Vorreiter Pedersen
3ea39a2553
C++: Add some query tests.
2024-03-13 11:39:34 +00:00
Mathias Vorreiter Pedersen
bcd36b1994
C++: Recognize glib allocations and deallocations.
2024-03-13 11:39:15 +00:00
Geoffrey White
9aad43f649
C++: Add indirect test models.
2024-03-13 11:34:36 +00:00
Ian Lynagh
adefdfd59f
Merge pull request #15889 from igfoo/igfoo/k2exprs
...
Kotlin 2: Accept more changes in the exprs test
2024-03-13 11:34:10 +00:00
erik-krogh
129286aa1c
allow more flow through .filter()
2024-03-13 12:03:00 +01:00
Jeroen Ketema
3ef1ab49ea
C++: Add IR tests for the destruction of temporaries
2024-03-13 12:00:02 +01:00
erik-krogh
013ed7adb3
Java: update the url-redirection in the same style as the C# qhelp
2024-03-13 11:58:16 +01:00
yoff
b5c0fbb827
Merge pull request #15776 from RasmusWL/tt-consistency
...
Python: Add type-tracking consistency query
2024-03-13 11:11:07 +01:00
Tom Hvitved
4085c8ec8f
Merge pull request #15866 from hvitved/ruby/orm-tracking-ap-limit
...
Ruby: Lower access path limit to 1 for `OrmTracking`
2024-03-13 10:57:09 +01:00
Harry Maclean
806f42ef72
Ruby: Update change note
2024-03-13 09:54:17 +00:00
Harry Maclean
dd5eb982ec
Merge pull request #15524 from hmac/hmac-process-spawn
...
Ruby: Add some more command injection sinks
2024-03-13 09:53:10 +00:00
Tony Torralba
2fd2b4c874
Merge pull request #15891 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-13 09:51:22 +01:00
github-actions[bot]
cff2cdb9e4
Add changed framework coverage reports
2024-03-13 00:15:53 +00:00
Edward Minnix III
c190dd21db
Merge pull request #15877 from egregius313/egregius313/csharp/mad/sources/windows-registry
...
C#: Add source models for values from the Windows registry
2024-03-12 16:41:42 -04:00
Edward Minnix III
d54489931c
Merge pull request #15869 from egregius313/egregius313/java/fix/parcelfiledescriptor-open-sink
...
Java: Add path-injection sink for `ParcelFileDescriptor::open`
2024-03-12 16:39:20 -04:00
intrigus-lgtm
f70a39e72f
[cpp-docs] Fix 404 link in guards library doc.
2024-03-12 19:59:26 +01:00
Erik Krogh Kristensen
863e3f79e5
Merge pull request #15731 from erik-krogh/java-url
...
Java: More sanitizers for request-forgery
2024-03-12 19:31:52 +01:00
Geoffrey White
cbacd51337
C++: Make Argument[-1] refer to *this rather than this.
2024-03-12 17:51:43 +00:00
Geoffrey White
22d5e9bbfb
C++: Add test cases involving pointer qualifiers.
2024-03-12 17:47:11 +00:00
Ian Lynagh
0e94aa0eb5
Kotlin 2: Accept more changes in the exprs test
2024-03-12 16:42:37 +00:00
Ian Lynagh
8d1ee10981
Merge pull request #15876 from igfoo/igfoo/buildless-java-complete
...
Java: Accept test changes
2024-03-12 16:12:58 +00:00
Tamás Vajk
be2ce17376
Merge pull request #15881 from tamasvajk/buildless/fix-fallback
...
C#: Deduplicate not yet restored package names
2024-03-12 16:08:16 +01:00
Mathias Vorreiter Pedersen
ab6e2f9364
C++: Accept test regression.
2024-03-12 15:04:49 +00:00
erik-krogh
f613823047
add explicit QLDoc that any method named "contains" is matched
2024-03-12 15:25:27 +01:00
Geoffrey White
900c8b71d8
C++: Complete the SummaryCall class.
2024-03-12 14:23:00 +00:00
erik-krogh
35aae0a981
move changenote to src/
2024-03-12 15:22:57 +01:00
Erik Krogh Kristensen
b53ae77c56
expand change-note
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-03-12 15:22:17 +01:00
Mathias Vorreiter Pedersen
51f5740707
C++: Exclude functions that aren't declared inside the source root. This fixes performance on ImageMagick.
2024-03-12 14:20:16 +00:00
Mathias Vorreiter Pedersen
6a563c161e
C++: Simplify the definition of 'isNonConst'. On ImageMagick I get the same exact sources before and after.
2024-03-12 14:20:09 +00:00
Mathias Vorreiter Pedersen
179a7d500e
C++: Handle 'wchar_t' types that may be defined as unsigned short in C. This brings back SAMATE results.
2024-03-12 14:19:48 +00:00
Geoffrey White
a27949cffa
C++: Set certain = true in storeStepImpl.
2024-03-12 14:08:20 +00:00
Tamas Vajk
b07b0762f2
Adjust based on code review feedback
2024-03-12 15:07:58 +01:00
erik-krogh
74876ff49b
add change-note
2024-03-12 15:07:36 +01:00
erik-krogh
52f71e4553
small fixes based on review
2024-03-12 15:07:29 +01:00
Ian Lynagh
c2aa334465
Java: Accept test changes
2024-03-12 14:03:02 +00:00
Tom Hvitved
695e728ed5
Ruby: Lower access path limit to 1 for OrmTracking
2024-03-12 14:58:29 +01:00
Tom Hvitved
dddba3228b
Merge pull request #15867 from hvitved/dataflow/ap-limit
...
Data flow: Add `ConfigSig::accessPathLimit`
2024-03-12 14:57:51 +01:00
erik-krogh
6be0ed1dc3
narrow the version specifier used for TypeScript
2024-03-12 13:42:58 +01:00
Tom Hvitved
d7790faece
Address review comments
2024-03-12 13:34:55 +01:00
erik-krogh
95a5ec7f27
add test that the new Object.groupBy method has a type
2024-03-12 13:22:11 +01:00
Owen Mansel-Chan
33c17313b4
Add test for not extracting values for intermediate string concatenations
2024-03-12 11:59:10 +00:00
Michael Nebel
50851210ea
Merge pull request #15794 from michaelnebel/csharp/removecil
...
C#: Delete the CIL extractor.
2024-03-12 12:48:41 +01:00
Mathias Vorreiter Pedersen
1a42e55095
Merge pull request #15820 from MathiasVP/add-type-confusion-query
...
C++: Add a new query for detecting type confusion vulnerabilities
2024-03-12 10:29:22 +00:00
Tom Hvitved
0e0b73a5e6
Address review comment
2024-03-12 11:22:04 +01:00
Michael Nebel
eb62c033aa
C#: Remove the cil extractor option.
2024-03-12 11:12:56 +01:00
Michael Nebel
f59aaf1d75
C#: Add change note.
2024-03-12 11:12:55 +01:00
Michael Nebel
2e5155d1f8
C#: Remove all CIL related tests.
2024-03-12 11:12:55 +01:00
Michael Nebel
af06202241
C#: Cleanup implementation.
2024-03-12 11:12:55 +01:00
Michael Nebel
bf27f203d5
C#: Remove CIL extractor projects.
2024-03-12 11:12:55 +01:00
Tamas Vajk
1633673cc2
C#: Deduplicate not yet restored package names
2024-03-12 09:22:38 +01:00
Kevin Stubbings
5acc15bfff
fix grammar
2024-03-11 20:13:08 -07:00
Kevin Stubbings
30fe4168e3
Removed filepath.base sanitizer
2024-03-11 15:08:10 -07:00
Angela P Wen
ca12348ecb
Merge pull request #15880 from github/sitedocs/2.16.4-2
...
Add changelog for 2.16.4
2024-03-11 14:59:53 -07:00
Kevin Stubbings
c4c0b22bc7
Formattinga and change notes
2024-03-11 14:54:30 -07:00
Kevin Stubbings
c9b49d3760
resolve feedback
2024-03-11 14:54:28 -07:00
Kevin Stubbings
530c76ca8b
Add New Sanitizers and Modify Old Ones
2024-03-11 14:53:29 -07:00
Pierre
d1f8336be6
Add changelog for 2.16.4
2024-03-11 22:21:25 +01:00
Ed Minnix
7745c2c2b7
Change note
2024-03-11 17:00:12 -04:00
Tom Hvitved
8d767862dc
Swift: Implement new data flow interface
2024-03-11 20:56:38 +01:00
Tom Hvitved
1c57e99686
C++: Implement new data flow interface
2024-03-11 20:56:38 +01:00
Tom Hvitved
257686eb9a
C#: Implement new data flow interface
2024-03-11 20:56:38 +01:00
Tom Hvitved
4291290277
Ruby: Implement new data flow interface
2024-03-11 20:56:38 +01:00
Tom Hvitved
e82e3180f0
Data flow: Replace hasLocationInfo with getLocation
2024-03-11 20:56:38 +01:00
Mathias Vorreiter Pedersen
9854ed4b89
C++: Delete comment.
2024-03-11 18:54:53 +00:00
Mathias Vorreiter Pedersen
2345907a52
C++: Reintroduce the 'cannotContainString' optimization that was removed in #15516 .
2024-03-11 18:49:03 +00:00
Mathias Vorreiter Pedersen
f97b6e2848
C++: Stop conflating pointers and indirections in the query.
2024-03-11 18:48:19 +00:00
Mathias Vorreiter Pedersen
32e532ff3c
C++: Some cleanup to avoid conflating the case of a function returning something as a return value, and a function updating one of its arguments.
2024-03-11 18:42:42 +00:00
Ed Minnix
bc745dfd5e
Windows registry sources
2024-03-11 13:55:34 -04:00
erik-krogh
9f410eb2d6
Merge branch 'main' into ts-54
2024-03-11 18:07:52 +01:00
Joe Farebrother
9c51514bd9
Merge pull request #15857 from joefarebrother/ruby-activerecord-from
...
Ruby: Model second argument of `ActiveRecord` `from`
2024-03-11 16:49:52 +00:00
Henry Mercer
c325ff8a23
Mark lines of code queries as telemetry queries
...
The new file coverage metrics are available in all supported GHES
versions. This PR tags lines of code queries as telemetry queries. Lines
of code information will still be available in the SARIF file, but it
will no longer be displayed in the logging output of the CLI.
The one exception is the metric queries for Java/Kotlin that provides
separate lines of code information for Java and Kotlin. I've kept these
since separate file coverage information for languages like Java and
Kotlin is only available for GHES 3.12 and later.
2024-03-11 16:40:31 +00:00
Rasmus Lerchedahl Petersen
d73f43477f
update ts to released version 54
2024-03-11 16:32:19 +01:00
Tony Torralba
04436208ab
Merge pull request #15843 from atorralba/atorralba/go/uncontrolled-allocation-size
...
Go: Promote `go/uncontrolled-allocation-size` from experimental
2024-03-11 16:12:27 +01:00
Michael Nebel
5749fdbc46
Merge pull request #15868 from michaelnebel/csharp/csharp12releasenote
...
C#: Overall change note for C# 12 / .NET 8 support.
2024-03-11 16:08:24 +01:00
Tony Torralba
ff2d78d2c8
Update go/ql/src/Security/CWE-770/UncontrolledAllocationSize.ql
2024-03-11 15:53:40 +01:00
Ed Minnix
76aeee2820
Change note
2024-03-11 10:34:15 -04:00
Ed Minnix
61dbe26858
Add sinks for android.os.ParcelFileDescriptor
2024-03-11 10:31:51 -04:00
Mathias Vorreiter Pedersen
7b0df57d7a
C++: Remove the two configurations that depend on flow state to speed up performance on ChakraCore.
2024-03-11 13:56:22 +00:00
Michael Nebel
f571ebdaf4
C#: Overall change note for C# 12 / .NET 8 support.
2024-03-11 14:43:14 +01:00
Rasmus Wriedt Larsen
800351c7b7
Merge branch 'main' into tt-consistency
2024-03-11 14:12:09 +01:00
yoff
e6e6a4e9c8
Merge pull request #15841 from RasmusWL/missing-use-use2
...
Python: Add example of missing use-use flow
2024-03-11 13:59:57 +01:00
yoff
adbcbefaa9
Merge pull request #15551 from yoff/python/avoid-duplicate-model-inclusions
...
python: Remove `TaintStepFromSummary`
2024-03-11 13:52:20 +01:00
Geoffrey White
026a13b4db
C++: Change Node/Node0.getEnclosingCallable back to returning Declaration.
2024-03-11 12:22:55 +00:00
Tom Hvitved
da66281fef
Sync files
2024-03-11 13:02:04 +01:00
Tom Hvitved
7a39f077d9
Data flow: Add ConfigSig::accessPathLimit
2024-03-11 13:01:58 +01:00
Rasmus Wriedt Larsen
4ac8dd72a7
Merge pull request #15855 from yoff/python/add-MaD-test-tuple-output
...
Python: Add test for `ReturnValue.TupleElement[n]`
2024-03-11 12:05:31 +01:00
Owen Mansel-Chan
da8cc13506
go extractor: avoid long string concatenations
...
When we see "a" + "b" + "c" + "d", do not add a
row to the constvalues table for the intermiediate
strings "ab" and "abc". We still have entries for
the string literals ("a", "b", "c", and "d") and
the whole string concatenation ("abcd").
2024-03-11 10:53:26 +00:00
Mathias Vorreiter Pedersen
73c4fe08fa
Merge pull request #15835 from MathiasVP/initial-def-of-addresses
...
C++: Provide an initial SSA definition of the address of a variable
2024-03-11 10:42:01 +00:00
Geoffrey White
4bc272da73
C++: Doc correction and TODOs for interpretOutput, interpretInput.
2024-03-11 10:16:46 +00:00
Erik Krogh Kristensen
00c228540e
Merge pull request #15836 from github/dependabot/cargo/ql/chrono-0.4.35
...
Bump chrono from 0.4.34 to 0.4.35 in /ql
2024-03-11 11:13:15 +01:00
Tamás Vajk
35a8e7cbf0
Merge pull request #15854 from tamasvajk/buildless/change-assembly-id
...
C#: Change ID of buildless output assembly
2024-03-11 10:03:40 +01:00
Rasmus Wriedt Larsen
42acd9c22c
Merge pull request #15695 from github/tausbn/python-add-copy-method-as-copy-step
...
Python: Add `.copy()` method call as copy step
2024-03-11 09:43:34 +01:00
Michael Nebel
6485dcc0fc
Merge pull request #15859 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-11 09:10:52 +01:00
Tony Torralba
a09eb9f4c5
Update go/ql/src/Security/CWE-770/UncontrolledAllocationSize.ql
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-03-11 08:58:59 +01:00
Edward Minnix III
7fe378e831
Merge pull request #15756 from egregius313/egregius313/csharp/dataflow/threat-model/remove-addlocalsource
...
C#: Remove `AddLocalSource` classes from queries
2024-03-10 22:56:28 -04:00
Ed Minnix
3fdc7e95df
Add local models to CodeInjection tests
2024-03-10 22:20:54 -04:00
Ed Minnix
8187b00562
Change note
2024-03-10 22:20:52 -04:00
Ed Minnix
d300736c7e
Remove AddLocalSource classes
2024-03-10 22:20:51 -04:00
Edward Minnix III
58f2777532
Merge pull request #15629 from egregius313/egregius313/csharp/dataflow/threat-modeling/remove-stored-query-variants
...
C#: Remove `Stored` variants of queries
2024-03-10 22:17:03 -04:00
github-actions[bot]
589a34241c
Add changed framework coverage reports
2024-03-11 00:16:32 +00:00
Owen Mansel-Chan
820c14577a
Merge pull request #13553 from am0o0/amammad-go-bombs
...
Go: Decompression Bombs
2024-03-10 13:48:04 +00:00
Edward Minnix III
e7852f520f
Merge pull request #15605 from egregius313/egregius313/csharp/dataflow/sources/commandargs-and-environment
...
C#: Add more `environment` and `commandargs` sources for the C# Standard Library
2024-03-08 14:10:09 -05:00
Geoffrey White
e8d0f1fa3e
C++: Comments.
2024-03-08 18:25:01 +00:00
Edward Minnix III
5440dbf70d
Merge pull request #15758 from egregius313/egregius313/csharp/docs/threat-modeling-in-mad-docs
...
C#: Add references to threat modeling to C# Models-as-Data documentation
2024-03-08 11:50:51 -05:00
am0o0
43df6a2c07
add comments for already implemented io.Read and io.WriteTo Sinks.
...
remove some sinks about `"decompressor"` which was added wrongly.
change `GeneralReadIoSink` type from module to class.
separate `KlauspostGzipAndPgzip` `KlauspostPgzip` and `KlauspostGzip`.
2024-03-08 20:05:46 +04:00
am0o0
66130d208e
convert abstract predicate isAdditionalFlowStep to non-abstract
2024-03-08 19:30:41 +04:00
Joe Farebrother
dbd33d1cf0
Model Argument[1] of ActiveRecord from
2024-03-08 14:04:01 +00:00
Tamas Vajk
9b5cfc9026
Change assembly population in buildless
2024-03-08 15:02:30 +01:00
Rasmus Lerchedahl Petersen
3601773856
python: support encoding lower bound
2024-03-08 14:59:28 +01:00
Rasmus Wriedt Larsen
adf5a4b1e4
Python: Fix internal consistency failures
2024-03-08 14:13:47 +01:00
Tom Hvitved
9ee2314ef6
Merge pull request #15847 from hvitved/ruby/orm-field-as-source-no-args
...
Ruby: Exclude calls with arguments from `OrmFieldAsSource`
2024-03-08 13:52:34 +01:00
Asger F
7c35309732
Merge pull request #15823 from asgerf/js/lift-cg-restriction
...
JS: Call graph improvements
2024-03-08 13:40:38 +01:00
Rasmus Wriedt Larsen
87b6592dbc
Python: Accept inconsistency for missing use-use flow
...
At least until we have a proper fix
2024-03-08 13:34:26 +01:00
Rasmus Wriedt Larsen
8fe483d9d8
Python: Add example of missing use-use flow
...
(see PR for more detailed description)
2024-03-08 13:26:01 +01:00
Asger F
245cd5c0b5
Merge pull request #15760 from asgerf/js/summarised-tt-store-steps
...
JS: Summarise store steps for type tracking
2024-03-08 13:16:25 +01:00
Asger F
ac4601cb8f
Update javascript/ql/lib/semmle/javascript/dataflow/internal/CallGraphs.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2024-03-08 13:01:38 +01:00
Ian Lynagh
a9bab18804
Merge pull request #15848 from igfoo/igfoo/deleg2
...
Kotlin 2: Accept some more loc changes in exprs test
2024-03-08 11:49:11 +00:00
Michael Nebel
36a775502f
Merge pull request #15851 from microsoft/54-csharp-add-missing-mad-for-httprequestmessage-upstream
...
csharp update MaD for HttpRequestMessage
2024-03-08 12:39:08 +01:00
Michael Nebel
7c46e9fcf4
Merge pull request #15838 from michaelnebel/csharp/deleteirqueries
...
C#: Remove IR queries.
2024-03-08 11:29:23 +01:00
Tamas Vajk
33eb69164c
C#: Change ID of buildless output assembly
2024-03-08 11:20:04 +01:00
Rasmus Lerchedahl Petersen
6d8d106d91
Python: add test for ReturnValue.TupleElement[n]
2024-03-08 11:18:51 +01:00
Asger F
546b0a9a89
Merge pull request #15763 from asgerf/js/escaping-instance-detection
...
JS: Improve detection of classes with escaping instances
2024-03-08 11:13:50 +01:00
Asger F
fc5b9e2796
JS: Expand test case
2024-03-08 10:34:39 +01:00
Tom Hvitved
24e35f6f3d
Update expected test output
2024-03-08 10:00:43 +01:00
Tom Hvitved
63bb772ef9
Variable capture: Avoid overlapping and false-positive data flow paths
2024-03-08 10:00:42 +01:00
Tom Hvitved
e793a1e9fe
Ruby: Add variable capture spurious flow test
2024-03-08 10:00:42 +01:00
Tom Hvitved
2896bfbd9f
Merge pull request #15821 from hvitved/dataflow/clears-content-store
...
Data flow: Allow for direct stores into nodes with `clearsContent`
2024-03-08 09:59:29 +01:00
Ed Minnix
7f950d8e0d
Fix ExpandEnvironmentVariables test case
2024-03-07 21:48:05 -05:00
Lindsay Simpkins
7dd175d938
change note
2024-03-07 17:16:17 -08:00
Mathias Vorreiter Pedersen
761f6d3a7e
C++: Disable field flow from the 'cpp/type-confusion' query to fix performance on ChakraCore.
2024-03-07 15:24:04 -08:00
Lindsay Simpkins
feb1ca29cc
csharp update MaD for HttpRequestMessage
2024-03-07 15:00:05 -08:00
Chris Smowton
e4f680d476
Merge pull request #15778 from smowton/smowton/admin/test-multi-release-jars
...
Java: Add tests for multi-release jars under Java 11 and 17
2024-03-07 22:59:35 +00:00
Mathias Vorreiter Pedersen
a548316747
C++: Accept test changes.
2024-03-07 13:55:31 -08:00
Mathias Vorreiter Pedersen
4f9bdca4f0
C++: Optimize.
2024-03-07 13:08:26 -08:00
Chris Smowton
2321eecb9e
Add tests for multi-release jars under Java 11 and 17
2024-03-07 21:07:49 +00:00
Mathias Vorreiter Pedersen
cedbfbe7ea
C++: Use a more generous definition of compatible types.
2024-03-07 10:50:20 -08:00
Ian Lynagh
e74606eba3
Kotlin 2: Accept some more loc changes
2024-03-07 18:40:59 +00:00
Ian Lynagh
79c5ad93b0
Kotlin 2: Accept a loc change
...
This is a bit of an odd location for the IrVariableImpl as it includes a
comment, but the comment is already included in the corrresponding
IrLocalDelegatedPropertyImpl so it's not clearly wrong:
Element: 16 59 (2:4 - 2:47) class org.jetbrains.kotlin.ir.declarations.impl.IrLocalDelegatedPropertyImpl
-Element: 29 42 (2:17 - 2:30) class org.jetbrains.kotlin.ir.declarations.impl.IrVariableImpl
+Element: 16 59 (2:4 - 2:47) class org.jetbrains.kotlin.ir.declarations.impl.IrVariableImpl
So just accept the change.
2024-03-07 18:37:00 +00:00
Michael Nebel
f2e467d8ea
C#: Cleanup identical-files.
2024-03-07 19:22:47 +01:00
Michael Nebel
5b48bc4a3e
C#: Delete the experimental IR queries.
2024-03-07 19:22:47 +01:00
Michael Nebel
48fcec82d6
Merge pull request #15736 from michaelnebel/csharp/disconnectfromdotnet
...
C#: Deprecate dotnet and CIL in QL.
2024-03-07 19:17:05 +01:00
Ed Minnix
608a3f907c
Add type signature for methods with no overloads
2024-03-07 12:32:06 -05:00
Ed Minnix
1f64f5f8c9
Change note
2024-03-07 12:32:05 -05:00
Ed Minnix
f8c805de6b
Microsoft.Extensions.Configuration models
2024-03-07 12:32:04 -05:00
Ed Minnix
ec6e17360d
Replace Main-method parameters with ThreatModelFlowSource
2024-03-07 12:30:08 -05:00
Ed Minnix
a3f6bfe1df
commandargs sources
2024-03-07 12:30:06 -05:00
Ed Minnix
51afe12ae1
Environment variable sources
2024-03-07 12:20:48 -05:00
Ed Minnix
b0eb0e1f1e
Move common source kinds to "shared"
2024-03-07 12:20:45 -05:00
Tom Hvitved
85782ff1d4
Ruby: Exclude calls with arguments from OrmFieldAsSource
2024-03-07 17:34:01 +01:00
Mathias Vorreiter Pedersen
9e77b89885
Update TypeConfusion.qhelp
...
Co-authored-by: hubwriter <hubwriter@github.com >
2024-03-07 08:33:49 -08:00
Tamás Vajk
1fa151db7c
Merge pull request #15844 from tamasvajk/buildless/sdk-version-parsing
...
C#: Improve `global.json` file parsing
2024-03-07 17:03:12 +01:00
Tom Hvitved
76564edc93
Address review comment
2024-03-07 16:50:28 +01:00
Edward Minnix III
92b086d36f
Merge pull request #15798 from egregius313/egregius313/csharp/mad/fix-textreader-models
...
C#: Change `System.IO.TextReader` models to transfer taint to out parameter
2024-03-07 10:40:28 -05:00
Chris Smowton
c9474050c8
Merge pull request #15839 from smowton/smowton/admin/jdk22-extractor-upgrade-test-changes
...
Java: Explicitly import Lock class
2024-03-07 15:05:50 +00:00
Tamas Vajk
ea38bf5ebc
C#: Improve global.json file parsing
2024-03-07 15:35:10 +01:00
Tony Torralba
138ce42cf6
Fix qhelp
2024-03-07 15:22:46 +01:00
Tony Torralba
7d74125508
Go: Promote go/uncontrolled-allocation-size
2024-03-07 15:17:49 +01:00
Taus
5202792163
Merge pull request #15754 from github/tausbn/python-copy-extractor-to-external-repo
...
Python: Copy Python extractor to `codeql` repo
2024-03-07 15:15:28 +01:00
Geoffrey White
b71b43a2fb
Merge pull request #15705 from geoffw0/qldoc3
...
Shared: Fill some QLDoc holes
2024-03-07 14:12:51 +00:00
Taus
4b0689b6ba
Python: Add warnOnImplicitThis: true to qlpack.yml
2024-03-07 13:59:16 +00:00
Taus
6dec323cfc
Python: Copy Python extractor to codeql repo
2024-03-07 13:59:16 +00:00
Rasmus Wriedt Larsen
4dd8f6e618
Python: Add example of missing use-use flow
...
(see PR for more detailed description)
2024-03-07 14:25:55 +01:00
Asger F
81b04863b2
JS: Change note
2024-03-07 13:35:50 +01:00
Tom Hvitved
22b168beee
Data flow: Allow for direct stores into nodes with clearsContent
2024-03-07 12:47:12 +01:00
Ian Lynagh
67612e60b5
Merge pull request #15829 from igfoo/igfoo/expr-del-2
...
Kotlin 2: Accept more loc changes in exprs test
2024-03-07 11:18:03 +00:00
Ian Lynagh
7bbc18f114
Merge pull request #15799 from igfoo/igfoo/kotlin-upper-bound
...
Kotlin: Docs: Give upper bound as 1.9.2x rather than 1.9.20
2024-03-07 11:17:51 +00:00
Asger F
c7295a09cd
JS: Benign test output update
2024-03-07 11:55:56 +01:00
Anders Schack-Mulligen
f3a381f10d
Merge pull request #15822 from aschackmull/dataflow/perf-fixes
...
Dataflow: Misc performance fixes
2024-03-07 11:47:36 +01:00
Chris Smowton
dae20ca50c
Explicitly import Lock
2024-03-07 09:54:17 +00:00
Tamás Vajk
6d5fd3c9de
Merge pull request #15827 from tamasvajk/buildless/impr-progress-reporting
...
C#: Improve buildless progress reporting
2024-03-07 10:00:06 +01:00
Michael Nebel
73040bd30f
C#: Use fully qualified name with types instead of label in IR queries.
2024-03-07 09:40:34 +01:00
Michael Nebel
990dec67d0
C#: Address more review comments.
2024-03-07 09:40:34 +01:00
Michael Nebel
43ee62ad64
C#: Update the NoDisposeCallOnLocalIDisposable and expected output.
2024-03-07 09:40:34 +01:00
Michael Nebel
eda345a5b8
C#: Address review comments.
2024-03-07 09:40:34 +01:00
Michael Nebel
e3380aa545
C#: Add change note.
2024-03-07 09:40:34 +01:00
Michael Nebel
7f6c84dda8
C#: Fix bad join order.
2024-03-07 09:40:34 +01:00
Michael Nebel
35b93063f9
C#: Deprecate dotnet and cil.
2024-03-07 09:40:34 +01:00
Michael Nebel
16375b0fe7
C#: Remove CIL dataflow tests.
2024-03-07 09:40:34 +01:00
Michael Nebel
37677142b9
C#: Update QL tests.
2024-03-07 09:40:33 +01:00
Michael Nebel
58a1353ddc
C#: Clean up implementation and remove CIL dataflow implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
1638183d18
C#: Copy dotnet.Variable implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
6178acc070
C#: Copy dotnet.Type implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
81ce8dc02d
C#: Copy dotnet.Parameterizable implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
92447dc743
C#: Copy dotnet.Namespace implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
7ba25b23a5
C#: Copy dotnet.Generics implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
eb5cb2a7bf
C#: Copy dotnet.Expr implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
215808d7e9
C#: Copy dotnet.Declaration implementation.
2024-03-07 09:40:33 +01:00
Michael Nebel
cdf3d47031
C#: Copy dotnet.Element implementation.
2024-03-07 09:40:32 +01:00
Michael Nebel
c606ab09a5
C#: Copy dotnet.Callable implementation.
2024-03-07 09:40:32 +01:00
Michael Nebel
d7dc73e18b
C#: Remove the CIL related parts of the Disposal tests.
2024-03-07 09:40:32 +01:00
Mathias Vorreiter Pedersen
b876117ecc
C++: Add more QLDoc.
2024-03-06 22:25:04 -08:00
Mathias Vorreiter Pedersen
01fc7432cb
C++: Add more tests.
2024-03-06 22:17:33 -08:00
Mathias Vorreiter Pedersen
bf84f3a936
C++: Add FN.
2024-03-06 21:19:17 -08:00
Mathias Vorreiter Pedersen
3295d5cb9f
C++: Add more QLDoc.
2024-03-06 21:17:57 -08:00
Mathias Vorreiter Pedersen
fc9919a5b6
C++: Add a test that exercise the 'last field' check.
2024-03-06 21:17:55 -08:00
Mathias Vorreiter Pedersen
c2db5f490e
C++: Add more FNs and FPs to show examples of where the 'successor typing' strategy fails.
2024-03-06 21:16:51 -08:00
Mathias Vorreiter Pedersen
cd57cd0d8a
C++: Add qhelp reference.
2024-03-06 21:15:27 -08:00
Mathias Vorreiter Pedersen
cf4c8eb517
C++: Add more tests.
2024-03-06 21:15:25 -08:00
Mathias Vorreiter Pedersen
6dc0fa515d
C++: Add change note.
2024-03-06 21:11:36 -08:00
Mathias Vorreiter Pedersen
8ae6fa5366
C++: Add a new query 'cpp/type-confusion' for detecting type confusion vulnerabilities.
2024-03-06 21:11:32 -08:00
dependabot[bot]
f0a5183a3f
Bump chrono from 0.4.34 to 0.4.35 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.34 to 0.4.35.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.34...v0.4.35 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-07 03:59:07 +00:00
Angela P Wen
31f1f50a64
Merge pull request #15834 from github/post-release-prep/codeql-cli-2.16.4
...
Post-release preparation for codeql-cli-2.16.4
2024-03-06 18:40:08 -08:00
Mathias Vorreiter Pedersen
4c9876b008
C++: Accept test changes.
2024-03-06 18:18:36 -08:00
Mathias Vorreiter Pedersen
cf162aa412
C++: Add an explicit definition of the address of an IRVariable.
2024-03-06 18:18:33 -08:00
Mathias Vorreiter Pedersen
84797b9091
C++: Refactor the address out of 'DefImpl' and into a new abstract class 'OperandBasedDef'.
2024-03-06 18:15:52 -08:00
Mathias Vorreiter Pedersen
cc754858c6
C++: Add a testcase with missing flow out of the address of 'a' and to the argument of 'sink'.
2024-03-06 18:15:49 -08:00
Mathias Vorreiter Pedersen
a60afef923
C++: Add a local flow test file for IR dataflow.
2024-03-06 18:10:08 -08:00
github-actions[bot]
dc9092c9ec
Post-release preparation for codeql-cli-2.16.4
2024-03-06 22:19:33 +00:00
Angela P Wen
2daf50500c
Merge pull request #15833 from github/release-prep/2.16.4
...
Release preparation for version 2.16.4
2024-03-06 13:00:06 -08:00
github-actions[bot]
2f058ffb4d
Release preparation for version 2.16.4
2024-03-06 20:56:51 +00:00
Angela P Wen
711c474049
Merge pull request #15832 from github/revert-15814-release-prep/2.16.4
...
Revert "Release preparation for version 2.16.4"
2024-03-06 12:53:52 -08:00
Angela P Wen
ce31f8641a
Revert "Release preparation for version 2.16.4"
2024-03-06 12:07:33 -08:00
Ian Lynagh
e58b6e86b2
Kotlin 2: Accept more loc changes in exprs test
2024-03-06 17:57:44 +00:00
Geoffrey White
23fd3f62ac
C++: Add models-as-data case to allowParameterReturnInSelf.
2024-03-06 16:12:46 +00:00
Geoffrey White
26ef1bc249
Swift: comment models-as-data implementation.
2024-03-06 16:12:46 +00:00
Geoffrey White
18d9573b6a
C++: Add summaryLocalStep as well.
2024-03-06 16:12:46 +00:00
Geoffrey White
0edfafeb06
Shared: Correct and clarify doc for SemBound.getExpr.
2024-03-06 16:00:36 +00:00
Ed Minnix
a87df5459f
Fix flow summary tests
2024-03-06 10:39:32 -05:00
Ed Minnix
527041348e
Add comment about Memory<T>
2024-03-06 10:39:31 -05:00
Ed Minnix
e065390185
Add .Element modifier to Memory<T> arguments in MaD models
2024-03-06 10:39:30 -05:00
Ed Minnix
27ba51cf9d
Change note
2024-03-06 10:39:28 -05:00
Ed Minnix
94a941115f
Fix FlowSummaries test results
2024-03-06 10:39:27 -05:00
Ed Minnix
ca55b92281
Change System.IO.TextReader models to transfer taint to out parameter instead of return value
...
Some of the `System.IO.TextReader` models transfered taint to
`ReturnValue`, when there is a more relevant out-parameter/array.
2024-03-06 10:39:25 -05:00
Owen Mansel-Chan
0ebe045cd8
Merge pull request #15819 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-06 15:35:14 +00:00
Tamas Vajk
c4f2bbda2a
Simplify task counter incrementing
2024-03-06 16:12:14 +01:00
Tamas Vajk
34308eee8d
C#: Improve buildless progress reporting
2024-03-06 16:11:19 +01:00
Geoffrey White
8c0f02ac4b
C++: Add summary jumpStep, readStep, storeStep.
2024-03-06 14:51:48 +00:00
Owen Mansel-Chan
4e5a6d770a
Merge branch 'main' into workflow/coverage/update
2024-03-06 13:43:05 +00:00
Owen Mansel-Chan
f1115af146
Merge pull request #15130 from Malayke/main
...
Go: new query for detect DOS vulnerability
2024-03-06 11:32:57 +00:00
Tony Torralba
f4c2e65614
Merge pull request #15812 from atorralba/atorralba/go/squirrel-sinks
...
Go: Add SQLi sinks for Squirrel
2024-03-06 12:09:19 +01:00
Asger F
a54a73c9a2
JS: Detect more FunctionStyleClasses
2024-03-06 11:37:20 +01:00
Anders Schack-Mulligen
caa45058ae
Dataflow: Improve join-order.
...
Join with the functional getApprox before filtering with revFlow as this
is always better.
2024-03-06 11:29:08 +01:00
Anders Schack-Mulligen
55e6255e05
Dataflow: Extend the first join to also include argApa.
...
Improves from
2024-03-04 13:29:20] Evaluated non-recursive predicate DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::flowThroughIntoCall/6#b44155c7@6dd478n9 in 126ms (size: 398332).
Evaluated relational algebra for predicate DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::flowThroughIntoCall/6#b44155c7@6dd478n9 with tuple counts:
1 ~0% {2} r1 = SCAN `DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::TAccessPathApproxNone#dom#04382804` OUTPUT _, _
1 ~0% {0} | REWRITE WITH Tmp.0 := true, Tmp.1 := false, TEST Tmp.0 != Tmp.1 KEEPING 0
83798 ~0% {4} | JOIN WITH `project#DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::returnFlowsThrough/8#ffafcf14` CARTESIAN PRODUCT OUTPUT Rhs.0, Rhs.3, Rhs.1, Rhs.2
4044102 ~3% {7} | JOIN WITH `project#DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::flowIntoCallApaTaken/6#d989a8d1#cpe#12346_2013#join_rhs` ON FIRST 1 OUTPUT Rhs.2, Lhs.2, Lhs.3, Rhs.3, Lhs.1, Lhs.0, Rhs.1
398332 ~3% {6} | JOIN WITH `project#DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::fwdFlow/9#00ae2fc8#2` ON FIRST 4 OUTPUT Lhs.6, Lhs.0, Lhs.5, _, Lhs.2, Lhs.4
398332 ~1% {6} | REWRITE WITH Out.3 := true
return r1
to
[2024-03-04 15:20:26] Evaluated non-recursive predicate DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::flowThroughIntoCall/6#b44155c7@97bd358u in 35ms (size: 398332).
Evaluated relational algebra for predicate DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::flowThroughIntoCall/6#b44155c7@97bd358u with tuple counts:
83798 ~0% {7} r1 = SCAN `project#DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::returnFlowsThrough/9#53894c55` OUTPUT In.0, In.1, In.2, In.3, In.4, _, _
{5} | REWRITE WITH Tmp.5 := true, Tmp.6 := false, TEST Tmp.5 != Tmp.6 KEEPING 5
83798 ~3% {5} | SCAN OUTPUT In.0, In.3, In.4, In.1, In.2
416847 ~2% {7} | JOIN WITH `project#DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::flowIntoCallApaTaken/6#d989a8d1#cpe#12346_2301#join_rhs` ON FIRST 2 OUTPUT Rhs.3, Lhs.3, Lhs.4, Lhs.1, Lhs.2, Lhs.0, Rhs.2
398332 ~3% {6} | JOIN WITH `project#DataFlowImpl::Impl<TaintedPath::TaintedPath::C>::Stage5::fwdFlow/9#00ae2fc8#2` ON FIRST 4 OUTPUT Lhs.6, Lhs.0, Lhs.5, _, Lhs.2, Lhs.4
398332 ~1% {6} | REWRITE WITH Out.3 := true
return r1
2024-03-06 11:29:08 +01:00
Owen Mansel-Chan
316273c7f3
Merge branch 'main' into workflow/coverage/update
2024-03-06 10:14:46 +00:00
Jeroen Ketema
66d2a8499d
Merge pull request #15816 from MathiasVP/remove-ssa-pruning-stage
...
C++: Remove the pruning stage from dataflow SSA
2024-03-06 11:04:05 +01:00
Malayke
02bab4c15a
Update go/ql/src/experimental/CWE-770/DenialOfService.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-03-06 17:57:20 +08:00
Anders Schack-Mulligen
0dbe8c3d8a
Merge pull request #15140 from hvitved/dataflow/pruned-ctx-sensitivity
...
Data flow: prune context-sensitivity relations
2024-03-06 10:04:48 +01:00
Jeroen Ketema
d13ea0b6c9
Merge pull request #15817 from github/rdmarsh2/suppress-expr-destructors
...
C++: Suppress implicit destructors on expr in preparation for destructors on temporaries
2024-03-06 09:54:50 +01:00
Jeroen Ketema
6972f9b31d
C++: Update syntax-zoo expected test results
2024-03-06 09:34:47 +01:00
Harry Maclean
350dab4621
Merge pull request #15722 from hmac/mad-sinks
2024-03-06 08:18:19 +00:00
Edward Minnix III
6ba6b12b9f
Docs review suggestion
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-03-05 22:31:25 -05:00
github-actions[bot]
b71074f9c4
Add changed framework coverage reports
2024-03-06 00:16:26 +00:00
Robert Marsh
fbbd57b34f
C++: Suppress epxr destructors in preparation for temporaries
2024-03-05 21:12:12 +00:00
Mathias Vorreiter Pedersen
f400228037
C++: Remove the pruning stage from SSA.
2024-03-05 12:55:55 -08:00
Angela P Wen
727a38a409
Merge pull request #15814 from github/release-prep/2.16.4
...
Release preparation for version 2.16.4
2024-03-05 10:16:21 -08:00
github-actions[bot]
661e68dab5
Release preparation for version 2.16.4
2024-03-05 18:13:58 +00:00
Geoffrey White
3657269d3e
C++: Autoformat.
2024-03-05 17:35:05 +00:00
Geoffrey White
d1fc700735
C++: Fill out some QLDoc.
2024-03-05 17:34:48 +00:00
Geoffrey White
7675f153ce
C++: Add SummaryOutNode class.
2024-03-05 17:32:54 +00:00
Angela P Wen
7e2a775a2a
Merge pull request #15813 from github/revert-15801-release-prep/2.16.4
...
Revert "Release preparation for version 2.16.4"
2024-03-05 09:20:42 -08:00
Joe Farebrother
dcc6f83d3b
Merge pull request #15782 from joefarebrother/ruby-typhoeus
...
Ruby: Model `Typhoeus::Request.new`
2024-03-05 16:55:38 +00:00
Angela P Wen
967963a653
Revert "Release preparation for version 2.16.4"
2024-03-05 08:53:33 -08:00
Joe Farebrother
7027b7fe82
Apply review suggestions: Use getInstance and clarify predicate name/qldoc. Also fix changenote formatting.
2024-03-05 16:34:48 +00:00
Tamás Vajk
b4fdd4e222
Merge pull request #15808 from tamasvajk/buildless/package-source-telemetry
...
C#: Add package source error count to DB
2024-03-05 17:20:38 +01:00
Michael B. Gale
eaef544a26
Merge pull request #15810 from github/mbg/go/fix-initialised-module-names
2024-03-05 15:34:07 +00:00
Tony Torralba
e78e71c875
List Squirrel builders explicitly
2024-03-05 16:05:22 +01:00
Michael B. Gale
40ff75db07
Go: Update list of expected files for single-go-mod-and-go-files-not-under-it test
2024-03-05 14:56:51 +00:00
Ian Lynagh
edd383afc1
Merge pull request #15803 from igfoo/igfoo/del1
...
Kotlin 2: Accept more location changes
2024-03-05 14:41:05 +00:00
Tony Torralba
a264ea23c6
Go: Add SQLi sinks for Squirrel
2024-03-05 15:35:34 +01:00
Tamas Vajk
2b99b83857
C#: Add package source error count to DB
2024-03-05 15:32:08 +01:00
Michael B. Gale
a8d240dd72
Go: Add integration test for mixed layout project
2024-03-05 14:08:16 +00:00
Michael B. Gale
ac394dc80c
Go: Better check for path prefixes
2024-03-05 13:46:33 +00:00
Owen Mansel-Chan
8e43c5c683
Merge pull request #15811 from owen-mc/go/limit-password-heuristics
...
Go: Only check strings of length <= 100 for dummy password with <= 2 unique characters
2024-03-05 13:42:26 +00:00
Michael B. Gale
b1e0bc03ab
Go: Fix check for whether it is safe to initialise a go.mod file in a given directory
2024-03-05 12:48:21 +00:00
Michael B. Gale
367ecf75d5
Go: Use import path for auto-generated Go module names
2024-03-05 12:48:21 +00:00
Michael B. Gale
2aa093c95c
Go: Move getImportPath to shared util package
2024-03-05 12:48:19 +00:00
Owen Mansel-Chan
4dde1fb117
Only check strings of length <= 100 for dummy password with <= 2 unique characters
2024-03-05 11:45:17 +00:00
Harry Maclean
148241183a
Ruby: update changenote
2024-03-05 10:20:25 +00:00
Harry Maclean
91cb2a37fd
Ruby: Model Process.exec
2024-03-05 10:19:22 +00:00
Tom Hvitved
bd7b2c4cc6
Update expected output
2024-03-05 10:44:13 +01:00
Tom Hvitved
d5c34264ad
Data flow: Prune call-context sensitivity relations
2024-03-05 10:44:12 +01:00
Harry Maclean
179aaa1342
Ruby: model Open4.popen4ext
2024-03-05 09:35:18 +00:00
Tom Hvitved
5be75e91fc
Merge pull request #15796 from hvitved/csharp/variable-capture-follow-up
...
C#: Variable capture follow-up
2024-03-05 09:58:23 +01:00
Harry Maclean
87f3b43576
Ruby: remove deprecated private class
2024-03-05 08:28:16 +00:00
Tony Torralba
a78e04eb34
Merge pull request #15795 from atorralba/atorralba/go/macaron-sources
...
Go: Add Macaron sources
2024-03-05 09:08:58 +01:00
Tony Torralba
05aaf2bb67
Merge pull request #15805 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-05 08:53:41 +01:00
github-actions[bot]
84f3771cdd
Add changed framework coverage reports
2024-03-05 00:15:54 +00:00
Robert Marsh
28e1e3a13a
C++: remove skeleton for IR destructors on expressions
2024-03-04 21:54:18 +00:00
Ian Lynagh
6e09dcc16a
Kotlin 2: Accept more loc changes in exprs
2024-03-04 19:06:32 +00:00
Ian Lynagh
22e6c676c3
Kotlin 2: Accept loc change for a string literal in expr test
2024-03-04 19:02:40 +00:00
Ian Lynagh
b7d2e54bbd
Kotlin 2: exprs test: Accept loc change for ClassWithDelegate
2024-03-04 19:00:40 +00:00
Ian Lynagh
00ab1a3129
Kotlin 2: exprs test: Accept loc change for MyClass
2024-03-04 19:00:38 +00:00
Angela P Wen
92e91f596f
Merge pull request #15801 from github/release-prep/2.16.4
...
Release preparation for version 2.16.4
2024-03-04 10:57:55 -08:00
Tom Hvitved
a92e394a7c
C#: Variable capture follow-up
2024-03-04 19:36:30 +01:00
github-actions[bot]
a67218a027
Release preparation for version 2.16.4
2024-03-04 17:42:08 +00:00
Angela P Wen
19539ab6d8
Merge pull request #15800 from github/angelapwen/fix-ruby-changenotes
...
Fix Markdown formatting on Ruby changenotes
2024-03-04 08:52:13 -08:00
Angela P Wen
2b2ea597ce
Fix formatting on changenotes
2024-03-04 16:42:38 +00:00
Tony Torralba
7286f56718
Change tests to inline expectations
2024-03-04 17:29:12 +01:00
Owen Mansel-Chan
331f308997
Merge pull request #13692 from Marcono1234/patch-1
...
Mention needed imports at top of "Analyzing data flow in Java"
2024-03-04 15:32:18 +00:00
Ian Lynagh
97275157e6
Kotlin: Docs: Give upper bound as 1.9.2x rather than 1.9.20
...
I think that this will be clearer.
2024-03-04 15:21:05 +00:00
Owen Mansel-Chan
e124b07611
Merge branch 'main' into patch-1
2024-03-04 14:44:23 +00:00
Owen Mansel-Chan
dcc2b2c50d
Merge pull request #15057 from aydinnyunus/main
...
Web Cache Deception Vulnerability on Go Frameworks
2024-03-04 14:36:39 +00:00
Owen Mansel-Chan
c0974934bc
Fix test expectations again
2024-03-04 14:05:04 +00:00
Owen Mansel-Chan
39a802fb98
Add new columns to test expectations
2024-03-04 13:45:54 +00:00
yoff
00e77a3ddb
Merge pull request #15720 from RasmusWL/nosql-precision
...
Python: Add precision to NoSQL query
2024-03-04 14:44:46 +01:00
yoff
569bb991d4
Merge pull request #15775 from RasmusWL/scope-consistency
...
Python: Add consistency check for `PhaseDependentFlow`
2024-03-04 14:43:13 +01:00
Owen Mansel-Chan
6a1bb9bfb0
Merge branch 'main' into main
2024-03-04 13:42:53 +00:00
Tom Hvitved
357638baa8
C#: Update variable capture test
2024-03-04 14:39:48 +01:00
Owen Mansel-Chan
0bf0c069c6
Fix formatting
2024-03-04 13:39:44 +00:00
yoff
a9ce2e10ad
Merge pull request #15781 from RasmusWL/dict-update
...
Python: Fix missing DictionaryElementContents
2024-03-04 14:37:34 +01:00
Tony Torralba
fc12537699
Go: Add Macaron sources
2024-03-04 14:29:56 +01:00
Ian Lynagh
ab288d0d4c
Merge pull request #15712 from igfoo/igfoo/k2ref
...
Kotlin 2: Accept changes in library-tests/reflection
2024-03-04 13:19:56 +00:00
Michael B. Gale
e5de4f2d67
Merge pull request #15789 from github/mbg/go/autobuilder-review-comments
2024-03-04 13:19:29 +00:00
Ian Lynagh
73fe20f33b
Merge pull request #15713 from igfoo/igfoo/past
...
Kotlin 2: Accept some PrintAst changes in library-tests/exprs
2024-03-04 13:12:49 +00:00
Max Schaefer
1f3a3492ae
Merge pull request #15792 from github/max-schaefer-patch-1
...
Java: Fix sink type in hudson.model.yml
2024-03-04 13:08:47 +00:00
Owen Mansel-Chan
910725939f
Update QLDoc
2024-03-04 13:06:23 +00:00
Ian Lynagh
9bad1e60db
Merge pull request #15765 from igfoo/igfoo/deleg
...
Kotlin 2: Accept loc changes in library-tests/exprs/delegatedProperties
2024-03-04 13:02:34 +00:00
Michael B. Gale
9b5bf519a1
Update go/extractor/project/project.go
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-03-04 12:25:40 +00:00
Owen Mansel-Chan
279605b486
Merge pull request #15786 from owen-mc/java/sensitive-logging-query-exclude-null-in-variable-name
...
Java: sensitive logging query exclude null in variable name
2024-03-04 12:14:42 +00:00
Michael B. Gale
acf2f761a6
Go: Improve log message for InitGoModForLegacyProject
2024-03-04 12:14:24 +00:00
Michael B. Gale
1a13a0e4c9
Go: Log discovered Go modules in case workspace files can't be read/parsed
2024-03-04 12:14:24 +00:00
Michael B. Gale
52b273ae23
Go: Include workspace count in success message
2024-03-04 12:14:24 +00:00
Michael B. Gale
8055c5d9e3
Go: Avoid extra loop to track unsuccessfulProjects
2024-03-04 12:14:23 +00:00
Michael B. Gale
020eb4aed7
Go: Use slices.Concat for bazelPaths
2024-03-04 12:14:23 +00:00
Michael B. Gale
040a288bb3
Go: Update comment to replace Go.mod with go.mod
2024-03-04 12:14:23 +00:00
Michael B. Gale
37212737fb
Go: Delete unused AnyGoFilesOutsideDirs
2024-03-04 12:14:22 +00:00
Michael B. Gale
ac484e5a04
Merge pull request #15793 from github/mbg/go/autobuilder-refactor-changelog
...
Go: Add changenote for autobuilder refactor
2024-03-04 12:10:24 +00:00
Michael B. Gale
a8ae2e2525
Go: Add changenote for autobuilder refactor
2024-03-04 12:02:51 +00:00
Geoffrey White
50ad45944c
Update shared/dataflow/codeql/dataflow/DataFlow.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-04 12:02:01 +00:00
Geoffrey White
5def2887e7
Shared: Add an example for SemBound.getExpr.
2024-03-04 11:59:52 +00:00
Max Schaefer
52a36ce41c
Java: Fix sink type in hudson.model.yml
2024-03-04 11:53:37 +00:00
Michael B. Gale
4dd23d4767
Merge pull request #15791 from github/mbg/go/use-1.22-for-extractor
...
Go: Use Go 1.22 for the extractor
2024-03-04 11:53:37 +00:00
Michael B. Gale
726e0928ed
Merge pull request #15790 from github/mbg/go/allow-1.22
...
Go: Allow 1.22 as a supported version
2024-03-04 11:49:33 +00:00
Chris Smowton
83cef78200
Merge pull request #15783 from github/smowton/fix/extractor-information-fractional-percentage
...
Java: extractor information: tolerate fractional percentages
2024-03-04 11:09:42 +00:00
Michael B. Gale
0e9a7c84d1
Go: Update go.work.sum
2024-03-04 10:59:23 +00:00
Michael B. Gale
ff82eb95f5
Go: Use 1.22 in go.mod
2024-03-04 10:58:51 +00:00
Michael B. Gale
6563414370
Go: Allow 1.22 as a supported version
2024-03-04 10:56:03 +00:00
Rasmus Wriedt Larsen
fbf6727809
Python: Add change-note
2024-03-04 11:46:38 +01:00
Rasmus Wriedt Larsen
16cb6c2044
Python: Fix validTest expectations
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-03-04 11:41:47 +01:00
Rasmus Wriedt Larsen
85a45b0155
Python: Fix comment
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-03-04 11:40:17 +01:00
Michael B. Gale
0c93641b54
Merge pull request #15361 from github/mbg/go/legacy-gopath-mode-deprecated
...
Go: Update autobuilder to deal with the upcoming deprecation of the legacy GOPATH mode
2024-03-04 10:23:37 +00:00
Harry Maclean
ce1d0d2375
Merge pull request #15780 from p-/p--method-injection
...
Ruby: sinks for code injection via calls to `method`
2024-03-04 10:02:40 +00:00
Joe Farebrother
31687afd5d
Fix performance
2024-03-04 09:47:12 +00:00
Asger F
4ab7acedb6
JS: Do not track instance methods
2024-03-04 10:36:13 +01:00
Owen Mansel-Chan
038afc4008
Merge pull request #15772 from owen-mc/java/model-generator-exclude-tostring
...
Java: do not generate models for `toString` and lambda flow methods
2024-03-04 07:57:48 +00:00
Owen Mansel-Chan
037c76d840
Update change note
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-03-04 07:49:18 +00:00
Michael Nebel
11142df4d0
Merge pull request #15764 from michaelnebel/csharp/csharptracerrunapp
...
C#: Don't inject compiler flags when dotnet is used to execute an application.
2024-03-04 08:13:11 +01:00
Owen Mansel-Chan
7a96b11a0a
Add change note
2024-03-03 21:41:05 +00:00
Owen Mansel-Chan
19ac9e089a
Add test
2024-03-03 21:03:41 +00:00
Owen Mansel-Chan
c7efde3b7a
Remove variables with "null" in their name as sources
2024-03-03 20:55:04 +00:00
Merdan Aziz
72e6853792
address the review comments
2024-03-03 20:36:43 +08:00
Michael B. Gale
9c2322dd82
Merge pull request #15362 from github/mbg/go/add-go-work
2024-03-03 11:59:18 +00:00
Malayke
7072ab9364
Update go/ql/src/experimental/CWE-770/DenialOfServiceGood.go
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-03-03 18:09:33 +08:00
Owen Mansel-Chan
114c17ad57
Add more methods of java.util.Comparator
2024-03-02 20:55:30 +00:00
Chris Smowton
040395485e
Update ExtractorInformation.expected
2024-03-02 10:20:45 +00:00
Owen Mansel-Chan
bf22c6dae0
Merge pull request #15766 from owen-mc/java/add-neutral-models
...
Java: add neutral models
2024-03-02 06:00:33 +00:00
Asger F
f5d014baa5
JS: Remove allocation site restriction in CG
2024-03-01 23:20:35 +01:00
Ed Minnix
59b14f6a69
Fix test expectations (merge conflict)
2024-03-01 12:52:03 -05:00
Ed Minnix
45e1be875c
Fix test expectations
2024-03-01 12:52:00 -05:00
Ed Minnix
4dc605354c
Second-order SQL injection
2024-03-01 12:51:59 -05:00
Ed Minnix
1ba3efb111
Change note updates
2024-03-01 12:51:58 -05:00
Ed Minnix
e84a509976
Modify test cases
2024-03-01 12:51:56 -05:00
Ed Minnix
c3671c7625
Fix change note
2024-03-01 12:51:55 -05:00
Ed Minnix
be3c1ed0be
Change note
2024-03-01 12:51:53 -05:00
Ed Minnix
c95abd47ce
Remove stored variants of queries
2024-03-01 12:51:51 -05:00
Geoffrey White
cb1c68260e
Shared: QLDoc for ContentApprox and getContentApprox.
2024-03-01 17:36:53 +00:00
Geoffrey White
c663809cc7
Update shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-01 17:06:48 +00:00
Geoffrey White
0e24ed14da
Apply suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-01 17:04:34 +00:00
Chris Smowton
0bb6a64e81
Java: extractor information: tolerate fractional percentages
2024-03-01 16:49:29 +00:00
Owen Mansel-Chan
0a8dfbafe4
Accept suggestion to put models under the right heading
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-03-01 16:05:28 +00:00
Geoffrey White
d1a2048134
C++: Add SummaryPostUpdateNode class.
2024-03-01 16:03:37 +00:00
Geoffrey White
340a17dd74
C++: Attempt to QLDoc OutNode better.
2024-03-01 16:03:37 +00:00
Geoffrey White
dbf0b98791
C++: Add some test cases involving function pointers.
2024-03-01 15:56:44 +00:00
Geoffrey White
f649939d78
C++: Allow flow through (previously missing) summary taint steps.
2024-03-01 15:56:44 +00:00
Ian Lynagh
fd82a06b93
Merge pull request #15777 from igfoo/igfoo/label-kot
...
CI: Kotlin: Label Kotlin test changes as "Kotlin"
2024-03-01 15:38:01 +00:00
Joe Farebrother
5a1c0f60e6
Fix qldoc typo
2024-03-01 15:12:16 +00:00
Peter Stöckli
4adc373dfe
Ruby: more test cases for code injection via method
2024-03-01 16:01:07 +01:00
Joe Farebrother
4b1626c83a
Add change note
2024-03-01 14:59:24 +00:00
Peter Stöckli
3418ec8a81
Ruby: Update method code injection sinks change note
...
Co-authored-by: Harry Maclean <hmac@github.com >
2024-03-01 15:54:58 +01:00
Michael B. Gale
bda8a804ec
Go: Add go.work file
2024-03-01 14:50:00 +00:00
Joe Farebrother
65b30c1dff
Add tests and qldoc
2024-03-01 14:46:55 +00:00
Rasmus Wriedt Larsen
d99a763ef7
Python: add change-note
2024-03-01 15:24:33 +01:00
Joe Farebrother
a08b292099
Add models for Typhoeus::Request
2024-03-01 14:23:24 +00:00
Owen Mansel-Chan
5399d88d15
Accept test change: slight change in gen vs man modelgen stats
2024-03-01 14:22:00 +00:00
Rasmus Wriedt Larsen
eeda4355f1
Python: Fix missing DictionaryElementContent
2024-03-01 15:21:13 +01:00
Peter Stöckli
e43c368222
Ruby: change note for methode code injection sinks
2024-03-01 15:20:32 +01:00
Rasmus Wriedt Larsen
30b7fadbb8
Python: Add test
2024-03-01 15:19:56 +01:00
Owen Mansel-Chan
6e63df9e32
Accept test change: toString method no longer generated
2024-03-01 14:16:14 +00:00
Owen Mansel-Chan
0e1c45e84b
Accept test change: some more APIs have manual models now
2024-03-01 14:08:42 +00:00
Owen Mansel-Chan
df64e0bc5f
Add neutral summary models for java.security.MessageDigest#digest
2024-03-01 14:08:31 +00:00
Owen Mansel-Chan
f89fedcbaf
Add some neutral models for java.util
2024-03-01 14:07:45 +00:00
Peter Stöckli
a693c6d9b4
Ruby: sinks for code injection via calls to method
2024-03-01 14:42:22 +01:00
Michael Nebel
a97510a2fc
Merge pull request #15419 from github/egregius313/csharp/dataflow/threat-modeling/refactor-to-threatmodelflowsource
...
C#: Refactor C# queries to use `ThreatModelFlowSource` instead of `RemoteFlowSource`
2024-03-01 14:40:40 +01:00
Tom Hvitved
15d1105d8d
Merge pull request #15779 from hvitved/csharp/build-mode-none
...
C#: Add `build_modes: none` to `codeql-extractor.yml`
2024-03-01 14:34:08 +01:00
Rasmus Wriedt Larsen
7c60562132
Python: Ignore IterableSequenceNode inconsistencies
2024-03-01 14:22:18 +01:00
Rasmus Wriedt Larsen
7e3e5db3db
Python: Add example of consistency failure
2024-03-01 14:21:16 +01:00
Rasmus Wriedt Larsen
bcd5c08ebd
Python: Ignore match-related inconsistencies
2024-03-01 14:15:32 +01:00
Rasmus Wriedt Larsen
5d212514c6
Python: Add example of consistency failure
2024-03-01 14:07:08 +01:00
Mathias Vorreiter Pedersen
9133a13fc7
Merge pull request #15628 from microsoft/cpp-non-constant-format-as-path-query
...
Cpp non constant format as path query
2024-03-01 13:05:44 +00:00
Rasmus Wriedt Larsen
1658a1cb80
Python: Ignore SynthDictSplatArgumentNode failures
2024-03-01 14:00:06 +01:00
Rasmus Wriedt Larsen
bff95c4c1b
Python: Add example of consistency failure
2024-03-01 13:58:33 +01:00
Tom Hvitved
6d9f3d4a3e
C#: Add build_modes: none to codeql-extractor.yml
2024-03-01 13:54:57 +01:00
Owen Mansel-Chan
10f6329b3e
Add manual neutral models for java.util.stream
...
See comment in java/ql/src/Metrics/Summaries/TopJdkApis.qll
* Note: the following top JDK APIs are not modeled with MaD:
* `java.util.stream.Collectors#joining(CharSequence)`: cannot be modeled completely without a model for `java.util.stream.Stream#collect(Collector)` as well
* `java.util.stream.Collectors#toMap(Function,Function)`: specialized collectors flow
* `java.util.stream.Stream#collect(Collector)`: handled separately on a case-by-case basis as it is too complex for MaD
2024-03-01 12:32:04 +00:00
Owen Mansel-Chan
f907fd21ad
Add manual neutral models for java.text.Format and java.text.MessageFormat
...
See comment in java/ql/src/Metrics/Summaries/TopJdkApis.qll
* Note: the following top JDK APIs are not modeled with MaD:
* `java.text.Format#format(Object)`: similar issue as `Object.toString`; depends on the object being passed as the argument
* `java.text.MessageFormat#format(String,Object[])`: similar issue as `Object.toString`; depends on the object being passed as the argument
2024-03-01 12:31:59 +00:00
Owen Mansel-Chan
0e95f41900
Add manual neutral models for java.lang
...
See comment in java/ql/src/Metrics/Summaries/TopJdkApis.qll
* Note: the following top JDK APIs are not modeled with MaD:
* `java.lang.System#getProperty(String)`: needs to be modeled by regular CodeQL matching the get and set keys to reduce FPs
* `java.lang.System#setProperty(String,String)`: needs to be modeled by regular CodeQL matching the get and set keys to reduce FPs
2024-03-01 12:31:49 +00:00
Michael Nebel
ac4ad0cbc0
C#: Add test where build should not be interpreted as a SDK sub command.
2024-03-01 13:24:04 +01:00
Michael Nebel
24572848f3
C#: Move helper function to other repo to allow sharing.
2024-03-01 13:24:04 +01:00
Michael Nebel
07fc84de8c
C#: Don't inject compiler flags when dotnet is used to execute an application.
2024-03-01 13:24:04 +01:00
Tom Hvitved
cb128da5aa
Merge pull request #15762 from hvitved/csharp/fetch-dotnet-dependency-fetching
...
C#: Fetch .NET in dependency manager instead of autobuilder
2024-03-01 13:19:20 +01:00
Owen Mansel-Chan
bb97df1d71
do not generate models for lambda flow methods
2024-03-01 12:11:40 +00:00
Tom Hvitved
20ff7def73
Address review comment
2024-03-01 12:54:47 +01:00
Ian Lynagh
86b4f27d12
CI: Kotlin: Label Kotlin test changes as "Kotlin"
2024-03-01 11:26:56 +00:00
Geoffrey White
1fece75f15
Apply suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-03-01 11:10:26 +00:00
Mathias Vorreiter Pedersen
a7547d516a
Merge branch 'main' into cpp-non-constant-format-as-path-query
2024-03-01 11:08:58 +00:00
Florin Coada
1719fd8acb
Merge pull request #15769 from github/coadaflorin/changelog-2.16.3-updates
...
Match changelog updates with public unified changelog
2024-03-01 10:57:02 +00:00
Joe Farebrother
0f1106b2f6
Merge pull request #15753 from joefarebrother/ruby-i18n-translation
...
Ruby: Model Rails translation methods
2024-03-01 10:35:12 +00:00
Geoffrey White
2e5f7dc8fc
C++: QLDoc (mostly placeholder).
2024-03-01 09:59:31 +00:00
Geoffrey White
8faad92cfd
C++: Define DataFlowCallable.getUnderlyingCallable and use it to fix some issues.
2024-03-01 09:59:31 +00:00
Owen Mansel-Chan
bbf3fa7506
do not generate models for toString
2024-03-01 09:59:27 +00:00
Joe Farebrother
abdae2c437
Apply reveiw suggestion - update change note
...
Co-authored-by: Harry Maclean <hmac@github.com >
2024-03-01 09:57:28 +00:00
Joe Farebrother
bf2174ffce
Add change note
2024-03-01 09:57:28 +00:00
Joe Farebrother
0b7b7ea1b8
Add test cases and improve controller model
2024-03-01 09:57:24 +00:00
Joe Farebrother
ef0a1d2873
Implement models for translation methods
2024-03-01 09:52:53 +00:00
Rasmus Wriedt Larsen
ff5f794750
Python: Exclude synth preupdate nodes from tt-consistency
...
... and that should be it 👍 (so that's why I'm allowing the tests to
run on all data-flow nodes again)
2024-03-01 10:27:29 +01:00
Tony Torralba
e0515269c5
Merge pull request #15774 from atorralba/atorralba/java/mapentry-copyof-provenance
...
Java: Fix provenance of Map.Entry.copyOf models
2024-03-01 10:26:22 +01:00
Mathias Vorreiter Pedersen
4e913592fa
Merge branch 'main' into cpp-non-constant-format-as-path-query
2024-03-01 09:26:00 +00:00
Mathias Vorreiter Pedersen
2eb8d13439
C++: Accept test changes.
2024-03-01 09:25:25 +00:00
Rasmus Wriedt Larsen
bbe8c6dcaa
Python: Remove synth postupdate nodes from tt-consistency
2024-03-01 10:23:50 +01:00
Rasmus Wriedt Larsen
9f01ea68f7
Python: Add type-tracking consistency query
...
For now I'm only ignoring stdlib nodes, so it's easy for reviewer to see
why we need to have more excludes :)
2024-03-01 10:19:49 +01:00
Florin Coada
a8816a6d1c
Update java/ql/src/change-notes/released/0.8.9.md
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-03-01 09:18:22 +00:00
Florin Coada
d54e3d73ab
Update java/ql/src/CHANGELOG.md
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-03-01 09:18:14 +00:00
Rasmus Wriedt Larsen
d182eae868
Python: Add consistency check for PhaseDependentFlow
...
This would have found the problem in
https://github.com/github/codeql/pull/15755 .
As highlighted in the comment in the code, it's not a perfect solution
since we don't have an automatic way to ensure we don't introduce a new
PhaseDependentFlow use with a new step relation and forget to add it to
this consistency check... but I think this consistency check still adds
value!
2024-03-01 10:01:08 +01:00
Tony Torralba
664dac6b28
Merge pull request #15773 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-03-01 09:22:47 +01:00
Tony Torralba
dd1dbdf4ec
Java: Fix provenance of Map.Entry.copyOf models
2024-03-01 09:00:13 +01:00
github-actions[bot]
148bc26b09
Add changed framework coverage reports
2024-03-01 00:17:57 +00:00
Owen Mansel-Chan
54031a8187
Merge pull request #15767 from owen-mc/java/add-summary-models
...
Java: add a few summary models
2024-02-29 21:21:23 +00:00
Tom Hvitved
a8468a6178
C#: Better handle multiple global.json files
2024-02-29 20:27:52 +01:00
Mathias Vorreiter Pedersen
1466f11a92
C++: Add change note.
2024-02-29 18:39:59 +00:00
Geoffrey White
a499919239
Shared: More helpful QLDoc for simpleLocalFlowStep.
2024-02-29 17:13:40 +00:00
Paolo Tranquilli
6d90877c52
Merge pull request #15536 from github/redsun82/bazel-cmake
...
Bazel/CMake: auto detect all `cc_binary`/`cc_test` targets
2024-02-29 18:13:40 +01:00
Geoffrey White
f834768720
Shared: Improve QLDoc for forceHighPrecision.
2024-02-29 17:09:31 +00:00
Geoffrey White
9d2dc7a3cc
Shared: Format.
2024-02-29 17:09:16 +00:00
Ed Minnix
f488f23a48
Add LocalFlowSource back to UncontrolledFormatString
2024-02-29 12:06:59 -05:00
Geoffrey White
88e3bc6865
Update shared/dataflow/codeql/dataflow/DataFlow.qll
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-02-29 17:03:30 +00:00
Edward Minnix III
89bdb7f437
Remove discussion of local flow in change note
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-02-29 12:03:19 -05:00
Ed Minnix
86ceeebd89
Change handling of LocalSource in queries
...
1. Change `LocalSource` to extend `DataFlow::Node`, thus removed from
the definiton of `Source`
2. Add a private class `AddLocalSource` which extends `Source`. This
allows us to currently preserve the inclusion of local sources, while
making it easier to remove it in the future.
2024-02-29 12:03:17 -05:00
Ed Minnix
3563c7ef03
Modify deprecated RemoteSource classes to extend DataFlow::Node directly.
...
Since `ThreatModelFlowSource` contains `RemoteFlowSource` by default, we
can safely remove the `RemoteSource` from the default of the queries.
2024-02-29 12:03:16 -05:00
Ed Minnix
e64826db1b
Add threat-model configuration for UncontrolledFormatString test
2024-02-29 12:03:14 -05:00
Ed Minnix
af749e221b
Remove commented out code
2024-02-29 12:03:13 -05:00
Ed Minnix
f237d2aeda
Refactor to use ThreatModelFlowSource
2024-02-29 12:03:12 -05:00
Ed Minnix
5198f52351
Add references to changed queries in change note
2024-02-29 12:03:11 -05:00
Ed Minnix
22e8da2928
Update change note date
2024-02-29 12:03:09 -05:00
Ed Minnix
eb81946adc
Change note changes to mention local sources as well
2024-02-29 12:03:08 -05:00
Ed Minnix
b4dabee770
Remove unnecessary flowsources.Remote imports
...
Since `FlowSources` now re-exports `Remote`, these can be safely removed.
2024-02-29 12:03:07 -05:00
Ed Minnix
434fa20646
Refactor to using ThreatModelFlowSource
2024-02-29 12:03:05 -05:00
Ed Minnix
1086abca63
Refactor to using ThreatModelFlowSource
2024-02-29 12:03:04 -05:00
Ed Minnix
b76795fd28
Refactor to using ThreatModelFlowSource
2024-02-29 12:03:03 -05:00
Ed Minnix
fd3738b10e
Refactor to using SourceNode::getSourceType
2024-02-29 12:03:01 -05:00
Ed Minnix
31d4d0ca57
Move getSourceType to SourceNode
2024-02-29 12:03:00 -05:00
Ed Minnix
75772664f2
Change note
2024-02-29 12:02:58 -05:00
Ed Minnix
f388a0f10c
Deprecate direct uses of RemoteFlowSource and replace with ThreatModelFlowSource
2024-02-29 12:02:57 -05:00
Ed Minnix
bd0137a721
Deprecated direct use of RemoteFlowSource and use ThreatModelFlowSource instead
2024-02-29 12:02:55 -05:00
Chris Smowton
051d63a5a9
Merge pull request #15740 from smowton/smowton/feature/call-and-type-telemetry
...
Java: add extraction quality telemetry; improve stringification of some erroneous expressions
2024-02-29 16:51:51 +00:00
Tony Torralba
47bf556223
Merge pull request #15709 from atorralba/atorralba/java/enable-widget-taint-steps
...
Java: Re-enable Widget.qll flow steps
2024-02-29 17:33:05 +01:00
Owen Mansel-Chan
7b5f51b1e2
Change summary models to neutral models for javax.crypto.Cipher
2024-02-29 16:22:27 +00:00
Geoffrey White
445b82b4e1
Shared: Explain 'guard'.
2024-02-29 16:07:20 +00:00
Geoffrey White
70465b22c7
Shared: Remove @ annotations.
2024-02-29 16:00:43 +00:00
Geoffrey White
98289b52d6
Shared: Explain SsaPhiNode a bit more.
2024-02-29 15:45:43 +00:00
Geoffrey White
8151f3024d
Shared: Pinch better doc for isEquality from a related Guards class in csharp.
2024-02-29 15:41:51 +00:00
Chris Smowton
ef9544cbef
Adjust test expectations now signature type-accesses are named
2024-02-29 15:33:29 +00:00
Chris Smowton
903e4f59f0
Exclude error types from contradictory-type-check query
2024-02-29 14:59:46 +00:00
Chris Smowton
140c3189e3
Adjust test expectations
2024-02-29 14:59:46 +00:00
Chris Smowton
3bd0c3b2c2
Switch test to using a qlref to the real telemetry query
2024-02-29 14:59:46 +00:00
Chris Smowton
ef82ea7541
Add change note
2024-02-29 14:59:46 +00:00
Chris Smowton
551006c15e
Make predicate private
2024-02-29 14:59:46 +00:00
Chris Smowton
ffa998eb4a
Autoformat
2024-02-29 14:59:45 +00:00
Chris Smowton
b6507e795a
Add test for a buildless project that doesn't compile cleanly
2024-02-29 14:59:45 +00:00
Chris Smowton
5d55265910
Add telemetry for untyped expressions and missing call targets
2024-02-29 14:59:45 +00:00
Chris Smowton
1fd459e8fc
Improve stringification of some erroneous expressions
2024-02-29 14:59:45 +00:00
Alexander Eyers-Taylor
6c8105fd1c
Merge pull request #15568 from github/alexet/kotlin-jdk-change
...
Kotlin: Compile tests using the same jdk as the java tests.
2024-02-29 14:48:03 +00:00
Paolo Tranquilli
0a137c7b02
Bazel/Cmake: share build options
2024-02-29 15:35:21 +01:00
Florin Coada
8d1965db59
match changelog to unified changelog
2024-02-29 14:33:14 +00:00
Florin Coada
cfdf163b40
Update changelog to match unified changelog
2024-02-29 14:32:57 +00:00
Paolo Tranquilli
81facd2fd6
Merge branch 'main' into redsun82/bazel-cmake
2024-02-29 14:28:00 +01:00
Mathias Vorreiter Pedersen
e620bfa9c6
Merge pull request #15761 from MathiasVP/fewer-variablenodes
...
C++: Restrict `VariableNode`s to only be global-like variables
2024-02-29 13:12:20 +00:00
Asger F
13e3a5158e
JS: Fix qldoc
2024-02-29 13:59:25 +01:00
Alex Eyers-Taylor
d892a04506
Kotlin: Compile tests using the same jdk as the java tests.
2024-02-29 12:23:56 +00:00
Owen Mansel-Chan
939d6f973f
Add summary models for javax.crypto.Cipher
2024-02-29 12:20:47 +00:00
Owen Mansel-Chan
65bc62c10a
Add summary model for Map$Entry#copyOf
2024-02-29 12:20:43 +00:00
Ian Lynagh
b0a13fb661
Kotlin 2: Accept loc changes in library-tests/exprs/delegatedProperties
2024-02-29 12:11:07 +00:00
Mathias Vorreiter Pedersen
4474b54662
C++: Add more QLDoc.
2024-02-29 12:09:50 +00:00
Mathias Vorreiter Pedersen
46b47db78e
C++: Rename IPA branch.
2024-02-29 12:02:13 +00:00
yoff
7beafc933d
Merge pull request #15755 from RasmusWL/it-fix
...
Python: Fix module level flow for iterable unpacking
2024-02-29 12:52:44 +01:00
Tom Hvitved
0e93f5ac1a
Merge pull request #15733 from hvitved/ruby/desugar-hidden
...
Ruby: Rework hidden synthetic data-flow nodes
2024-02-29 11:24:01 +01:00
Tom Hvitved
62382fc5a2
C#: Fetch .NET in dependency manager instead of autobuilder
2024-02-29 11:23:36 +01:00
Asger F
6a0adff1dc
JS: More precise detection of classes with escaping instances
2024-02-29 11:15:37 +01:00
Asger F
eeaa2bcc55
JS: Add test for class instance escaping into dependency
2024-02-29 11:14:23 +01:00
Florin Coada
840ca9118e
Merge pull request #15750 from github/changedocs/2.16.3
...
Codeql 2.16.3 changelogs
2024-02-29 09:46:31 +00:00
Michael Nebel
a3b39c8210
Merge pull request #15752 from michaelnebel/csharp/updatesupportedlanguages
...
C#: Claim suppport for C# 12 / .NET 8.
2024-02-29 10:41:42 +01:00
Asger F
853397361f
JS: Do not treat AMD pseudo-dependencies as file paths
2024-02-29 10:23:28 +01:00
Asger F
052a8e7f81
JS: Avoid spurious recursion in AMD
2024-02-29 10:23:28 +01:00
Asger F
f384afbaf6
JS: Also summarize loadStore steps
2024-02-29 10:11:16 +01:00
Asger F
3ad83cc098
JS: Summarise store steps for type tracking
2024-02-29 10:10:39 +01:00
Asger F
7cd84c8f0a
JS: Add type-tracking test
2024-02-29 10:10:07 +01:00
Michael Nebel
14d046ef18
Merge pull request #15710 from michaelnebel/csharp/refreadonlyparameters
...
C# 12: Ref readonly parameters.
2024-02-29 09:59:12 +01:00
Tom Hvitved
c6426d8858
C#: Move BuildScript.cs and friends to Semmle.Util
2024-02-29 08:49:20 +01:00
Ed Minnix
6b310bb825
Fix reference
2024-02-28 21:39:16 -05:00
Florin Coada
0d017a9343
Update docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.16.3.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2024-02-28 22:07:04 +00:00
Florin Coada
62f4d8e53e
Update docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.16.3.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2024-02-28 22:06:46 +00:00
Florin Coada
b1deeaff05
Update docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.16.3.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2024-02-28 22:06:29 +00:00
Ed Minnix
2a70437a12
Add references to threat modeling
2024-02-28 14:34:01 -05:00
Mathias Vorreiter Pedersen
a7f0966fcb
C++: Restrict 'VariableNode's to only be global-like variables (which is the only place where use them for).
2024-02-28 19:12:38 +00:00
Ed Minnix
4b9340816c
Add threat-modeling section to C# MaD docs
2024-02-28 13:27:19 -05:00
Ed Minnix
9ab3837cdc
Make threat model beta notice more general
2024-02-28 13:26:01 -05:00
Mathias Vorreiter Pedersen
2fd57f6ee7
Shared: Remove cached annotation.
2024-02-28 16:24:21 +00:00
Felicity Chapman
ca1a27dc75
Merge pull request #15748 from github/13332-codeql-model-editor-csharp
...
Minor updates to CodeQL for VS Code docs for expansion of support for model editing
2024-02-28 15:56:32 +00:00
Rasmus Wriedt Larsen
8079788a5f
Python: Add change-note
2024-02-28 16:44:25 +01:00
Rasmus Wriedt Larsen
cdf4dd16f0
Python: Fix module level flow for iterable unpacking
...
(and for * patterns in match)
Since `PhaseDependentFlow` uses the following predicate, that relies on
.getScope() to be present for there to be any importTimeFlow (flow at
toplevel scope), it's important that data-flow nodes implement `.getScope`.
```
private predicate isTopLevel(Node node) { node.getScope() instanceof Module }
```
By implementing getScope, we can now rely on default implementation of
`getEnclosingCallable` in DataFlow::Node:
```
/** Gets the enclosing callable of this node. */
DataFlowCallable getEnclosingCallable() { result = getCallableScope(this.getScope()) }
```
2024-02-28 16:39:08 +01:00
Felicity Chapman
377ef59c3a
Merge branch 'main' into 13332-codeql-model-editor-csharp
2024-02-28 15:33:27 +00:00
Felicity Chapman
efff0149d0
Update formatting of 'tip'
2024-02-28 15:33:07 +00:00
Koen Vlaswinkel
ab11068d6d
Merge pull request #15749 from github/koesie10/update-testing-vscode-docs
...
Update documentation for testing CodeQL queries in VS Code
2024-02-28 16:29:54 +01:00
Rasmus Wriedt Larsen
e4699e092d
Python: Add test for iterable unpacking on module level
...
Currently doesn't work :O
2024-02-28 16:10:29 +01:00
Koen Vlaswinkel
6aeef17f99
Rename Test Explorer to Testing view
2024-02-28 16:00:15 +01:00
Tom Hvitved
297a17975d
Merge pull request #15665 from hvitved/csharp/variable-capture
...
C#: Adopt shared variable capture library
2024-02-28 15:13:03 +01:00
Michael Nebel
9563705eb3
C#: Add change note.
2024-02-28 14:53:15 +01:00
Michael Nebel
bb282b94dd
C#: Claim suppport for C# 12 / .NET 8.
2024-02-28 14:41:38 +01:00
Michael Nebel
f6b1d1f235
C#: Add upgrade and downgrade scripts.
2024-02-28 14:09:59 +01:00
Florin Coada
b76449714a
codeql 2.16.3 changelogs
2024-02-28 13:07:48 +00:00
Koen Vlaswinkel
5226c77abf
Update documentation for testing CodeQL queries in VS Code
2024-02-28 13:47:11 +01:00
Michael Nebel
00d311205b
C#: Update expected test output.
2024-02-28 13:44:28 +01:00
Michael Nebel
794bc44a41
C#: Add test query predicate for ref readonly parameters.
2024-02-28 13:44:28 +01:00
Michael Nebel
692d7036a0
C#: Add extractor and QL library support for ref readonly parameters.
2024-02-28 13:44:28 +01:00
Michael Nebel
a86de9de2f
C#: Update comment in DB Scheme.
2024-02-28 13:44:28 +01:00
Michael Nebel
18c7e73805
C#: Add test for parameter modifiers.
2024-02-28 13:44:28 +01:00
Michael Nebel
d8bff14365
C#: Adjust locations for the parameter default value tests.
2024-02-28 13:44:28 +01:00
Michael Nebel
4bbaf687ad
Merge pull request #15723 from michaelnebel/csharp/experimentalattribute
...
C# 12: Experimental attribute.
2024-02-28 13:06:09 +01:00
Jeroen Ketema
ae97a23c27
Merge pull request #15213 from jketema/frontend-update
...
C++: Accept test changes after frontend upgrade
2024-02-28 13:00:02 +01:00
Felicity Chapman
c247dee11a
Delete docs/codeql/reusables/beta-note-model-packs-java.rst
...
This was accidentally reintroduced during merge conflict resolution.
2024-02-28 11:49:50 +00:00
Felicity Chapman
053e172d94
Merge branch 'main' into 13332-codeql-model-editor-csharp
2024-02-28 11:43:02 +00:00
Felicity Chapman
897786dc99
Minor updates to model editor article
2024-02-28 11:28:59 +00:00
Michael Nebel
65ec80967e
Merge pull request #15696 from michaelnebel/csharp/compilergeneratedstmt
...
C#: Compiler generated statements.
2024-02-28 12:06:39 +01:00
Jeroen Ketema
00ad7854dc
C++: Accept test changes after frontend upgrade
...
* The `specifiers2` tests have a different result now due to the implementation
of CWG 2387.
* The `special_members/generated_copy` has improved results as the frontend has
improved support for deleted copy constructors.
2024-02-28 11:29:57 +01:00
Michael Nebel
3c15b21385
C#: Add change note.
2024-02-28 11:25:23 +01:00
Michael Nebel
7535a15fda
C#: Add tests and update expected test output.
2024-02-28 11:22:12 +01:00
Michael Nebel
95dc2f71d3
C#: Add ExperimentalAttribute class.
2024-02-28 11:20:43 +01:00
Mathias Vorreiter Pedersen
7be76405f5
Merge pull request #15741 from MathiasVP/fix-ir-inconsistencies-from-returning-routine-types
...
C++: Fix IR inconsistencies from routine types
2024-02-28 09:13:53 +00:00
Erik Krogh Kristensen
0358e81117
Merge pull request #15746 from github/dependabot/cargo/ql/rayon-1.9.0
...
Bump rayon from 1.8.1 to 1.9.0 in /ql
2024-02-28 10:11:50 +01:00
dependabot[bot]
cc178ab58f
Bump rayon from 1.8.1 to 1.9.0 in /ql
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.8.1 to 1.9.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/main/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.8.1...rayon-core-v1.9.0 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-28 03:24:58 +00:00
Edward Minnix III
a743683d4f
Merge pull request #15563 from egregius313/egregius313/csharp/docs/mad-docs
...
C#: Models as Data Documentation
2024-02-27 13:45:09 -05:00
Mathias Vorreiter Pedersen
b8c141f292
C++: Accept test changes.
2024-02-27 17:58:52 +00:00
Mathias Vorreiter Pedersen
ddd5113c02
C++: Ensure that we can construct an 'IRType' from a 'RoutineType'.
2024-02-27 17:58:52 +00:00
Mathias Vorreiter Pedersen
892f97cd7a
C++: Add testcase with invalid IR from constructing a 'RoutineType'.
2024-02-27 17:58:52 +00:00
Mathias Vorreiter Pedersen
0335a4f4ce
Merge pull request #15735 from MathiasVP/ir-for-vacuous-destructor-calls
...
C++: IR construction for `VacuousDestructorCall`s
2024-02-27 17:58:30 +00:00
Geoffrey White
0df10bda0c
C++: Post-merge fixup.
2024-02-27 17:32:59 +00:00
Geoffrey White
1da611cc02
Merge branch 'main' into mad
2024-02-27 17:29:45 +00:00
Geoffrey White
bc42e2bc35
C++: Workaround to get the tests passing again.
2024-02-27 17:28:38 +00:00
Felicity Chapman
f9c2b4d23c
MVP changes for C# library expansion support
2024-02-27 16:47:13 +00:00
Chris Smowton
7c7c10ea11
Merge pull request #15739 from github/smowton-patch-1
...
Add change note for https://github.com/github/codeql/pull/15646
2024-02-27 16:07:29 +00:00
Max Schaefer
f2935caa5c
Merge pull request #15732 from github/max-schaefer/more-sink-types
...
Automodel: Add four more sink types.
2024-02-27 15:52:45 +00:00
Mathias Vorreiter Pedersen
bba152da13
Merge branch 'main' into ir-for-vacuous-destructor-calls
2024-02-27 15:42:46 +00:00
Chris Smowton
9f84653283
Merge pull request #15613 from smowton/smowton/fix/golang-map-range-read-dataflow
...
Golang: fix flow from a map value via a range statement
2024-02-27 15:42:43 +00:00
Chris Smowton
aedd3badf7
Add change note for https://github.com/github/codeql/pull/15646
2024-02-27 15:41:43 +00:00
Chris Smowton
5ea30e95a5
Merge pull request #15646 from smowton/smowton/fix/notice-self-sufficient-mvnw
...
Java: Add tests for Maven wrapper
2024-02-27 15:29:50 +00:00
Mathias Vorreiter Pedersen
f7b2de800b
Merge pull request #15506 from rdmarsh2/rdmarsh2/cpp/ir-synthetic-destructors
...
C++: Add implicit destructors for named variables to the IR
2024-02-27 15:12:46 +00:00
Tom Hvitved
914a605a87
Ruby: Rework hidden synthetic data-flow nodes
2024-02-27 15:33:58 +01:00
Tom Hvitved
994d990f37
Ruby: Add another data flow test
2024-02-27 15:33:58 +01:00
Mathias Vorreiter Pedersen
dc3b78dd7c
C++: Accept more test changes.
2024-02-27 14:30:19 +00:00
Chris Smowton
a6480a4ca1
Autoformat again / tabify
2024-02-27 13:55:26 +00:00
Mathias Vorreiter Pedersen
4a501e5b3c
C++: Accept test changes.
2024-02-27 13:53:43 +00:00
Mathias Vorreiter Pedersen
9eaa4e19ad
C++: Add IR construction for vacuous destructor calls.
2024-02-27 13:53:42 +00:00
Chris Smowton
74448c092a
Autoformat / uglify
2024-02-27 13:49:12 +00:00
Chris Smowton
e62a0805db
Add test for map literal
2024-02-27 13:44:52 +00:00
Mathias Vorreiter Pedersen
fbb0ffcadd
C++: Add testcase with invalid IR from vacuous destructor call.
2024-02-27 12:53:46 +00:00
Joe Farebrother
3ab6f222d0
Merge pull request #15718 from joefarebrother/ruby-arel-sqlliteral
...
Ruby: Model Arel::Nodes::SqlLiteral.new
2024-02-27 12:43:47 +00:00
Anders Schack-Mulligen
df5e753ee0
Merge pull request #15570 from aschackmull/java/cache-interpretelement
...
Java: Cache interpretElement.
2024-02-27 13:39:56 +01:00
Geoffrey White
540c20e143
Merge pull request #15700 from geoffw0/extensions
...
Swift: Workaround for TypeDecl.getFullName issue.
2024-02-27 11:14:33 +00:00
Harry Maclean
d0e7fbc871
Ruby: Add changenote
2024-02-27 09:47:51 +00:00
Anders Schack-Mulligen
699dddcfbe
Merge pull request #15725 from aschackmull/dataflow/summary-join-fix
...
Dataflow: Prevent bad join in FlowSummaryImpl::Private::Steps::summaryLocalStep.
2024-02-27 10:32:38 +01:00
erik-krogh
b4b5ae2a2c
add some request-forgery sanitizers, inspired from C#
2024-02-27 10:05:26 +01:00
Tom Hvitved
bbeee8f38d
Merge pull request #15717 from hvitved/csharp/view-cfg
...
Shared `View CFG` implementation
2024-02-27 09:13:18 +01:00
Chris Smowton
f7cdcd4981
Force Maven wrapper tests to run sequentially
2024-02-26 22:28:55 +00:00
Chris Smowton
03f01a0121
Add tests for Maven wrapper
2024-02-26 22:28:55 +00:00
Robert Marsh
a513598a4d
C++: Change note for IR named destructors.
2024-02-26 19:41:56 +00:00
Geoffrey White
408a550467
Merge pull request #15727 from geoffw0/qldoc4
...
C++: Mark internal files in the old dataflow library as deprecated
2024-02-26 17:45:05 +00:00
Mathias Vorreiter Pedersen
690fdc076d
Shared: Add change note.
2024-02-26 17:13:32 +00:00
Mathias Vorreiter Pedersen
1d4c889ab8
Java: Use the shared type-flow library.
2024-02-26 17:13:32 +00:00
Mathias Vorreiter Pedersen
9ec17e6338
Shared: Pull out the shared parts of Java's type flow library into a shared module.
2024-02-26 17:13:27 +00:00
Geoffrey White
2e66392353
C++: Update deprecated note to respect identical files.
2024-02-26 16:38:27 +00:00
Rasmus Lerchedahl Petersen
3eb9491cb4
python: rewrite HardcodedCredentials away from PointsTo
...
- `ModuleValue.attr` and `ClassValue.lookup` are approximated by `Function.getName`
- `ClassValue.getName` is apprximated by `Class.getName`
- `Module::named` is approximated by `Module.getName`
- `Value::named` is approximated by `Builtins::likelyBuiltin`
- `FunctionValue.getNamedArgumentForCall` is approximated by `ArgumentNode.argumentOf`
2024-02-26 17:18:40 +01:00
Joe Farebrother
cb733dcf85
Simplify model defenition
2024-02-26 14:59:03 +00:00
Cornelius Riemenschneider
4bb725cbf5
Merge pull request #15656 from github/criemen/ruby-bazel
...
Ruby: Start building the language pack using bazel.
2024-02-26 15:52:28 +01:00
Cornelius Riemenschneider
234623ec0d
Merge pull request #15726 from github/criemen/js
...
JS: Remove empty build target.
2024-02-26 15:50:31 +01:00
Geoffrey White
5c4543f167
C++: Mark internal files in the old dataflow library as deprecated (the public imports already are).
2024-02-26 14:49:10 +00:00
Cornelius Riemenschneider
e9b5394cd5
JS: Remove empty build target.
...
The `resources` folder never existed, this was probably introduced
as a copy-paste mistake. Remove the rule.
2024-02-26 15:26:44 +01:00
Harry Maclean
6ff0054e52
Merge pull request #13431 from am0o0/amammad-ruby-YAMLunsafeLoad
...
Ruby: add seperate additional steps between `YAML.parse*` methods and `to_ruby`
2024-02-26 13:40:48 +00:00
Tom Hvitved
f92c106972
Merge pull request #15724 from hvitved/csharp-change-note
...
C#: Add change note
2024-02-26 14:35:38 +01:00
Harry Maclean
8212f5de1b
Ruby: Update test
2024-02-26 13:10:27 +00:00
Harry Maclean
b86643fab2
Ruby: doc fixes
2024-02-26 12:57:21 +00:00
Michael Nebel
cba247788a
C#: Add change note.
2024-02-26 13:51:07 +01:00
Michael Nebel
f9934ed5e7
C#: Add downgrade script.
2024-02-26 13:51:07 +01:00
Michael Nebel
4dd368f7a6
C#: Add upgrade script.
2024-02-26 13:51:07 +01:00
Michael Nebel
80513d846d
C#: Update PrintAst test expected outputs.
2024-02-26 13:51:07 +01:00
Michael Nebel
ff32cf90fd
C#: Add a test for compiler generated statements.
2024-02-26 13:51:06 +01:00
Michael Nebel
e6f4263eff
C#: Do not print compiler generated statements.
2024-02-26 13:51:06 +01:00
Michael Nebel
bf4e3a7d1c
C#: Merge expr_compiler_generated and compiler_generated and add compiler generated statements.
2024-02-26 13:51:06 +01:00
Tom Hvitved
dd0c721e8c
C#: Add change note
2024-02-26 13:48:19 +01:00
Anders Schack-Mulligen
20bb631456
Dataflow: Prevent bad join.
2024-02-26 13:45:19 +01:00
Tom Hvitved
606a8fed0c
Merge pull request #15406 from hvitved/csharp/no-stats-experiment
...
C#: Remove all DB stats
2024-02-26 13:40:37 +01:00
Harry Maclean
8a670fe9a2
Ruby: formatting
2024-02-26 12:26:04 +00:00
Michael Nebel
e5e0b4c537
C#: Add some examples of uses of the Experimental attribute and update the expected test output.
2024-02-26 13:15:55 +01:00
Michael Nebel
bc98712da5
C#: Add one more using statement to the attributes test file.
2024-02-26 13:14:03 +01:00
amammad
32f5667bb6
revert YAML.qll and yaml sinks to previous PR, make a separate experimental query only for yaml
2024-02-26 12:12:03 +00:00
amammad
c582ea626d
update expected test file
2024-02-26 12:10:04 +00:00
amammad
1c1a6f13df
fix QLDoc style
2024-02-26 12:05:35 +00:00
amammad
9c5c8c8362
fix test file
2024-02-26 12:05:35 +00:00
amammad
464e2e4291
fix qldoc and test files
2024-02-26 12:04:52 +00:00
amammad
18fa91bde4
add transform method that is an alias for to_ruby
2024-02-26 11:59:41 +00:00
amammad
a75a004942
add more additional steps, change parse* sinks to reciever of them
2024-02-26 11:59:41 +00:00
amammad
474a4f8abd
thanks @asgerf for informing me that Successor wants to be deprecated and thank him that providing the solution
2024-02-26 11:59:41 +00:00
amammad
1410574f76
make seperate steps for YAML.parse* and use getAsuccessor*() to reach final to_ruby method call, All parts have Rewritten with API graphs exclusively
2024-02-26 11:59:35 +00:00
Harry Maclean
f7b8e8af41
Ruby: Include request forgery sinks from MaD
2024-02-26 11:34:11 +00:00
Harry Maclean
8bed3fbed4
Ruby: Add basic model for Terrapin library
2024-02-26 11:32:41 +00:00
Harry Maclean
9d13a1ff51
Ruby: Add model for Process.spawn
2024-02-26 11:26:38 +00:00
Harry Maclean
d1847566b6
Ruby: Ql4QL fix
2024-02-26 11:26:38 +00:00
Harry Maclean
beef9965cc
Ruby: Model Open4 library
...
Also remove duplicate modeling of Process.spawn.
2024-02-26 11:26:38 +00:00
Harry Maclean
a03c06802e
Ruby: Add some more command injection sinks
2024-02-26 11:26:38 +00:00
Cornelius Riemenschneider
1657b314c1
Re-pin ruby extractor deps.
2024-02-26 11:21:23 +00:00
Cornelius Riemenschneider
688b9955a0
Address review, start accomodating bzlmod.
2024-02-26 11:21:23 +00:00
Cornelius Riemenschneider
b82ffd40e7
Fix windows CI build.
...
As we're now checking out the `codeql` repo in a sub-path,
we need to enable long paths on Windows.
2024-02-26 11:21:23 +00:00
Cornelius Riemenschneider
fd85c44129
Ruby: Start building the language pack using bazel.
...
This PR introduces a bazel and `rules_rust`-based build system
for the ruby extractor and language pack.
This replacese the existing, `cargo` and `cross`-based build system.
For local development, nothing changes, and the existing `cargo`-based
build still keeps working as-is.
We no longer need to use `cross` to compile our Linux binaries,
as we now can link against our hermetic C++ toolchain, which ships
with an old enough glibc, so that we don't run into symbol version issues
when deploying the binaries to older systems.
Besides the one change in dependency (explained in detail in `Cargo.toml`
and in https://github.com/github/codeql/pull/15595 ), nothing ought to
change in how we build the extractor.
2024-02-26 11:21:22 +00:00
Joe Farebrother
386defc3c7
Update test output
2024-02-26 11:21:03 +00:00
Anders Schack-Mulligen
c22cbf5b01
Merge pull request #15721 from aschackmull/workflows/format-check-shared
...
Workflows: Run format check on shared.
2024-02-26 12:12:29 +01:00
Joe Farebrother
fb06e9f6b2
Merge pull request #15719 from joefarebrother/ruby-changenote-formatting
...
Ruby: Fix change note formatting
2024-02-26 11:12:01 +00:00
Harry Maclean
dd092fd18f
Ruby: Fix CSRF test
2024-02-26 11:02:54 +00:00
Jeroen Ketema
acf3a99dff
Merge pull request #15716 from jketema/command-line-options
...
C++: Update test after extractor changes
2024-02-26 12:01:03 +01:00
Rasmus Wriedt Larsen
4ede553b21
Merge pull request #15365 from RasmusWL/lgtm_index_filter_handling
...
Tree sitter extractor: Proper handling of `LGTM_INDEX_FILTERS`
2024-02-26 11:59:45 +01:00
Tom Hvitved
5f5bcf686d
Update csharp/ql/lib/semmle/code/csharp/AnnotatedType.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-02-26 11:35:28 +01:00
Anders Schack-Mulligen
dab8e237e6
Workflows: Run format check on shared.
2024-02-26 11:33:00 +01:00
Tom Hvitved
5b1fb8789a
C#: Implement View CFG query
2024-02-26 11:23:49 +01:00
Tom Hvitved
5b6e76c030
Move View CFG implementation from Ruby/Swift into shared library
2024-02-26 11:23:49 +01:00
Rasmus Wriedt Larsen
1cfac50749
Python: Add precision to NoSQL query
...
Due to this, it was not part of any query suite :O
2024-02-26 11:23:43 +01:00
Joe Farebrother
403a1ac483
Fix change note formatting
2024-02-26 10:21:26 +00:00
Joe Farebrother
2257df5c6f
Model Arel::Nodes::SqlLiteral.new
2024-02-26 10:09:33 +00:00
Tom Hvitved
8fbe62ccae
Swift: Implement getExtension and getStem
2024-02-26 10:33:57 +01:00
Jeroen Ketema
788100d475
C++: Update test after extractor changes
2024-02-26 10:04:42 +01:00
Tom Hvitved
03a125de38
Merge pull request #15562 from Marcono1234/patch-2
...
Ruby: Fix formatting in changelog
2024-02-26 10:03:29 +01:00
Tom Hvitved
4bd79c0eb3
Add change note
2024-02-26 09:58:23 +01:00
Rasmus Wriedt Larsen
07223031e8
Merge branch 'main' into lgtm_index_filter_handling
2024-02-26 09:56:02 +01:00
Tom Hvitved
acd52192d1
C#: Adopt shared variable capture library
2024-02-26 09:53:30 +01:00
Tom Hvitved
7197c64e2d
C#: Add more variable capture tests
2024-02-26 09:53:29 +01:00
erik-krogh
0056067a17
Merge branch 'main' into ts-54
2024-02-25 21:20:43 +01:00
erik-krogh
083f56921c
update to 5.4.1-rc
2024-02-25 21:20:41 +01:00
Tom Hvitved
2683e40038
Merge pull request #15708 from hvitved/share-ide-contextual
...
Share `getFileBySourceArchiveName` implementation
2024-02-23 19:56:33 +01:00
Chris Smowton
12213a0a08
Add test
2024-02-23 18:39:16 +00:00
Ian Lynagh
bfea40fca0
Kotlin 2: Accept some PrintAst changes in library-tests/exprs
2024-02-23 18:39:06 +00:00
Chris Smowton
d57160db5c
Direct map stores via a post-update node
2024-02-23 16:37:26 +00:00
Robert Marsh
da5e3d64ac
C++: autoformat
2024-02-23 16:20:42 +00:00
Robert Marsh
dd97584eff
C++: fix for duplicated parent of ReturnVoid statements
2024-02-23 16:19:34 +00:00
Ian Lynagh
1abd81ec34
Kotlin 2: Accept loc changes in library-tests/reflection
2024-02-23 13:52:05 +00:00
Ian Lynagh
f43e929d1a
Kotlin: More generated elements in Kotlin 2 in library-tests/reflection
2024-02-23 13:45:58 +00:00
Paolo Tranquilli
6b63492d6b
Merge pull request #15699 from github/criemen/bazel7-2
...
Upgrade to bazel 7.0.2.
2024-02-23 14:15:00 +01:00
Tamás Vajk
72f73553ca
Merge pull request #15692 from tamasvajk/buildless/no-dotnet-sdk
...
C#: Download latest dotnet SDK when missing
2024-02-23 13:24:46 +01:00
Tony Torralba
759b74791c
Java: Re-enable Widget.qll flow steps
...
The library Widget.qll was accidentally removed from the global context when its sources were migrated to models-as-data in #13136 . This re-adds it so that its flow steps are enabled again.
2024-02-23 13:07:35 +01:00
Harry Maclean
f5be407989
Ruby: deprecate old ProtectFromForgeryCall class
2024-02-23 12:02:26 +00:00
Ian Lynagh
047a8b400e
Merge pull request #15703 from igfoo/igfoo/k2mf
...
Kotlin: Accept changes in library-tests/multiple_files
2024-02-23 11:49:05 +00:00
Ian Lynagh
ee967e62e1
Merge pull request #15704 from igfoo/igfoo/k2ministdlib
...
Kotlin: Remove the Kotlin 2 ministdlib test
2024-02-23 11:48:55 +00:00
Owen Mansel-Chan
3dc6918356
Merge pull request #15648 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-02-23 11:48:17 +00:00
Harry Maclean
7b3f1a0982
Ruby: fix comment
2024-02-23 11:14:52 +00:00
Harry Maclean
081c1201ed
Ruby: Make csrf query more specific
...
CSRF protection only needs to be explicitly enabled on Rails
applications < 5.2 _or_ those that don't include a `load_defaults` call
with a version >= 5.2.
2024-02-23 11:13:17 +00:00
Harry Maclean
3ee425cc47
Ruby: Identify ActionController::API
...
`ActionController::API < ActionController::Base` is a base controller
class, so we should recognise it as such.
2024-02-23 11:13:17 +00:00
Harry Maclean
32b775fdc3
Ruby: reduce duplicate alerts for csrf query
...
Only generate an alert on the top-most vulnerable Rails controller in
the controller tree.
2024-02-23 11:13:17 +00:00
Harry Maclean
1fbf177b54
Ruby: QLDoc fix
2024-02-23 11:13:16 +00:00
Harry Maclean
3499d169f9
Ruby: Add missing QLDoc
2024-02-23 11:13:16 +00:00
Harry Maclean
0597b2ed1b
Ruby: recognise csrf_meta_tag
...
csrf_meta_tag is an alias for csrf_meta_tags, retained for backwards
compatibility.
2024-02-23 11:13:16 +00:00
Harry Maclean
f19a5a9837
Ruby: Add tests for Gemfile modeling
2024-02-23 11:13:16 +00:00
Harry Maclean
3c69ab10f2
Ruby: Restrict rb/csrf-protection-not-enabled
...
This query only applies to codebases using Ruby on Rails < 5.2, or where
there is no call to `csrf_meta_tags` in the base ERb template.
2024-02-23 11:13:15 +00:00
Harry Maclean
581072721c
Ruby: Add change note
2024-02-23 11:13:15 +00:00
Harry Maclean
6d6f8ba512
Ruby: Make CSRF query more sensitive
...
Generate an alert for every controller class that doesn't have or
inherity a `protect_from_forgery` setting.
2024-02-23 11:13:15 +00:00
Harry Maclean
49d826f667
Ruby: Add a query for CSRF protection not enabled
...
Specifically in Rails apps, we look for root ActionController classes
without a call to `protect_from_forgery`.
2024-02-23 11:13:14 +00:00
Erik Krogh Kristensen
a0f91fbc15
Merge pull request #15706 from erik-krogh/pol-reg
...
ReDoS: Restrict some edges related to upper/lower-case when constructing possible attack strings for polynomial-redos.
2024-02-23 12:06:17 +01:00
Tom Hvitved
62b16c0fa3
Share getFileBySourceArchiveName implementation
2024-02-23 11:25:49 +01:00
Tamas Vajk
20f795c03a
Code quality improvements
2024-02-23 11:20:15 +01:00
Michael Nebel
1a155b3a30
Merge pull request #15667 from michaelnebel/csharp/syntheticconstructorbody
...
C#: Add synthetic bodies and inititializers for default constuctors.
2024-02-23 11:14:00 +01:00
Tom Hvitved
94113521d1
Merge pull request #15689 from hvitved/ruby/no-field-branch-limit-summarized-callable
...
Ruby: No `fieldFlowBranchLimit` for `SummarizedCallable`s
2024-02-23 10:47:22 +01:00
Tom Hvitved
d8645cc960
Merge pull request #15694 from hvitved/csharp/assignable-definition-node
...
C#: Use separate `newtype` branch for `AssignableDefinitionNode`
2024-02-23 10:45:04 +01:00
github-actions[bot]
b2b5aa18b2
Add changed framework coverage reports
2024-02-23 00:16:49 +00:00
Tom Hvitved
303a2bb63a
C#: Update expected test output
2024-02-22 21:04:55 +01:00
Tom Hvitved
ea7d9c97fd
C#: Use separate newtype branch for AssignableDefinitionNode
2024-02-22 21:04:55 +01:00
Ian Lynagh
8d358a9f64
Kotlin: Remove the Kotlin 2 ministdlib test
...
Upstream doesn't plan to fix it before the K2 release:
https://youtrack.jetbrains.com/issue/KT-62183/K2-no-stdlib-doesnt-behave-as-expected
I've made a ticket to remind us to return to this later.
2024-02-22 19:01:22 +00:00
Geoffrey White
573763a4b3
Shared: More revisions, manual and aided by further discussion with Copilot.
2024-02-22 18:59:35 +00:00
Ian Lynagh
cf441d1a30
Kotlin: Accept changes in library-tests/multiple_files
...
I think that this is a regression, but one that we're not likely to fix
soon, so let's just accept the output for now. I've opened a ticket to
remind us to return to this.
2024-02-22 18:57:12 +00:00
Robert Marsh
6f7f68fee8
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
2024-02-22 18:10:13 +00:00
Geoffrey White
797fee9c9e
Swift: Change note.
2024-02-22 17:54:53 +00:00
Mathias Vorreiter Pedersen
63a5b49846
Merge pull request #15633 from MathiasVP/model-experiments
...
C++: Assume modelled functions always override buffers by default
2024-02-22 18:48:24 +01:00
Geoffrey White
47a9a8b82a
Swift: MAke TypeDecl.getFullName robust to when there's an ExtensionDecl extending more than one thing.
2024-02-22 17:39:57 +00:00
Geoffrey White
515e93522f
Swift: Make ExtensionDecl.toString robust to when there's more than one extended thing.
2024-02-22 17:39:57 +00:00
Cornelius Riemenschneider
d2e6746e7f
Upgrade to bazel 7.0.2.
2024-02-22 17:51:17 +01:00
Robert Marsh
942a4ed925
C++: move handlesDestructorsExplicitly up to TranslatedReturnStmt
2024-02-22 16:46:19 +00:00
Robert Marsh
ebe6ee5257
C++: accept test changes from extractor fixes
2024-02-22 16:44:19 +00:00
Mathias Vorreiter Pedersen
c7ee5b2912
Merge branch 'main' into model-experiments
2024-02-22 16:40:17 +00:00
Harry Maclean
fbc689227d
Merge pull request #15604 from p-/p--rails-more-request-sources
...
Ruby: add additional sources on the request object of Rails
2024-02-22 16:35:59 +00:00
Tamas Vajk
50f9354ca8
Remove redundant using
2024-02-22 17:14:02 +01:00
Tamas Vajk
e176b32a83
Remove environment dictionary passing
2024-02-22 17:12:38 +01:00
Paolo Tranquilli
6c5e5966c3
Merge pull request #15583 from github/redsun82/bzlmod
...
Bazel: use bzlmod
2024-02-22 17:06:59 +01:00
Tamas Vajk
648c06ce27
Simplify dotnet SDK check in autobuilder
2024-02-22 16:44:46 +01:00
Mathias Vorreiter Pedersen
0bf29f0a62
Merge branch 'main' into model-experiments
2024-02-22 15:05:53 +00:00
Paolo Tranquilli
b7df26e6c9
Bazel: make codeql compatible with workspace setup
2024-02-22 15:50:02 +01:00
Paolo Tranquilli
b1e0287a7c
Merge branch 'main' into redsun82/bzlmod
2024-02-22 15:35:41 +01:00
Ben Rodes
47f94e2ebe
Merge branch 'main' into cpp-non-constant-format-as-path-query
2024-02-22 06:24:18 -08:00
Ian Lynagh
2b4b512611
Merge pull request #15693 from igfoo/igfoo/kot2b4
...
Kotlin: Update to 2.0.0-Beta4
2024-02-22 14:06:32 +00:00
Joe Farebrother
2ebb80b632
Merge pull request #15548 from joefarebrother/android-local-auth-keys
...
Java: Add query for insecurely generated keys for local authentication.
2024-02-22 14:04:17 +00:00
Joe Farebrother
67e8f17c4c
Merge pull request #15619 from joefarebrother/ruby-activerecord-connection
...
Ruby: Add additional sql sinks for ActiveRecord connection methods
2024-02-22 14:02:31 +00:00
Joe Farebrother
1f409b0456
Merge pull request #15671 from joefarebrother/ruby-activerecord-extra-args
...
Ruby: Consider additional arguments to certain `ActiveRecord` methods as sql injection sinks.
2024-02-22 14:01:56 +00:00
Tamas Vajk
c0d82cb73e
Minor improvement to not start dotnet process when it is known to fail
2024-02-22 14:58:00 +01:00
Tom Hvitved
c55354b544
Merge pull request #15688 from hvitved/ruby/multi-variable-capture
...
Ruby: Fix bug in `allowParameterReturnInSelf`
2024-02-22 14:51:09 +01:00
Mathias Vorreiter Pedersen
350d5bf0ce
C++: Update QLDoc on 'modeledFlowBarrier'.
2024-02-22 13:30:39 +00:00
Tamas Vajk
8e64880e86
Fix and add unit tests
2024-02-22 14:27:28 +01:00
Mathias Vorreiter Pedersen
671904d58c
C++: Fix QLoc on 'PartialFlowFunction'.
2024-02-22 13:27:10 +00:00
Mathias Vorreiter Pedersen
aca3970c33
C++: Fix QLoc on 'isPartialWrite'.
2024-02-22 13:25:13 +00:00
Taus
f1392712ee
Python: Add .copy() as a copy step
2024-02-22 13:09:27 +00:00
Taus
5125973f9b
Python: Add test case for .copy() as a copy step
2024-02-22 13:01:03 +00:00
Paolo Tranquilli
fe6b27bcf8
Merge branch 'main' into redsun82/bzlmod
2024-02-22 13:45:09 +01:00
Michael Nebel
a24a57c586
C#: Update most other test cases to reflect the synthesized constructor calls and bodies.
2024-02-22 13:33:30 +01:00
Michael Nebel
a4ab163532
C#: Update test output for cfg tests.
2024-02-22 13:33:29 +01:00
Michael Nebel
d19c83228e
C#: Do not bind comments to compiler generated statements.
2024-02-22 13:33:29 +01:00
Michael Nebel
cf9c3d5dd1
C#: Remove un-needed code as we extract synthetic default constructors.
2024-02-22 13:33:29 +01:00
Michael Nebel
14de39a854
C#: Also add synthetic bodies and inititializers for default constructors.
2024-02-22 13:33:29 +01:00
Ian Lynagh
245ce2208e
Kotlin: Update to 2.0.0-Beta4
2024-02-22 12:33:00 +00:00
erik-krogh
bf22f4a870
update expected output
2024-02-22 13:21:11 +01:00
Michael Nebel
7ce7b58ce0
Merge pull request #15657 from michaelnebel/csharp/recordflow
...
C#: Use primary constructors for record types for dataflow.
2024-02-22 13:18:29 +01:00
erik-krogh
e74e5b3613
try to restrict the edges we follow (related to upper/lower-case) when contructing possible attack-strings for polynomial-redos
2024-02-22 13:15:17 +01:00
Felicity Chapman
95ce0cd640
Merge pull request #15691 from github/felicitymay-patch-1
...
Remove period from 'name' for Java query
2024-02-22 11:50:21 +00:00
Tamas Vajk
976c627d52
C#: Download latest dotnet SDK when missing
2024-02-22 12:07:15 +01:00
Paolo Tranquilli
3bea642d5c
Bazel: fix typo
2024-02-22 11:58:02 +01:00
Paolo Tranquilli
fd485d06aa
Merge branch 'main' into redsun82/bzlmod
2024-02-22 11:54:14 +01:00
Paolo Tranquilli
0471287cdd
Bazel: remove unstable lock file
2024-02-22 11:53:47 +01:00
Felicity Chapman
4810657515
Remove period from 'name'
...
This is an error for the Docs content linter and does not match the style guide for query help.
2024-02-22 10:50:45 +00:00
Mathias Vorreiter Pedersen
d953a9a523
Merge pull request #15662 from jketema/destructors6
...
C++: Support destructors for range-based for-loops
2024-02-22 11:41:39 +01:00
Paolo Tranquilli
f1bdd6bdda
Bazel: switch to erroring out by default on outdated lock file
2024-02-22 11:26:39 +01:00
Michael Nebel
f2c849c737
C#: Simplify.
2024-02-22 11:19:34 +01:00
Michael Nebel
2afcc611ce
C#: Fix formatting.
2024-02-22 11:18:00 +01:00
Paolo Tranquilli
b66153be97
Merge branch 'main' into redsun82/bzlmod
2024-02-22 11:15:07 +01:00
Paolo Tranquilli
a14c2ae8ab
Bazel: bump rules_python to 0.31.0
2024-02-22 11:14:53 +01:00
Joe Farebrother
ef124695a5
Apply suggestions from documentation review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2024-02-22 10:11:49 +00:00
Paolo Tranquilli
67222f8f7e
Bazel: add module lock file
2024-02-22 11:09:15 +01:00
Paolo Tranquilli
cda4ca68f8
Bazel: tweak .bazelrc
2024-02-22 11:08:50 +01:00
Paolo Tranquilli
7410522660
Bazel: bump version to 6.5.0
2024-02-22 11:08:33 +01:00
Ian Lynagh
b405c5fc02
Merge pull request #15683 from igfoo/igfoo/expr
...
Kotlin: Accept some Kotlin 2 location changes
2024-02-22 10:00:01 +00:00
Joe Farebrother
92bdd637a3
Address reveiw comment - add create nd remove select_insert
2024-02-22 09:55:46 +00:00
Michael Nebel
21aa025db2
Update csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2024-02-22 10:40:54 +01:00
Tom Hvitved
ebee35b385
Ruby: No fieldFlowBranchLimit for SummarizedCallables
2024-02-22 10:27:25 +01:00
Tom Hvitved
23869fc8e6
Ruby: Fix bug in allowParameterReturnInSelf
2024-02-22 09:43:52 +01:00
Tom Hvitved
007d08ea63
Ruby: Add another variable capture test
2024-02-22 09:39:01 +01:00
Tamás Vajk
9ecac04709
Merge pull request #15680 from tamasvajk/buildless/no-mono-fallback-impr
...
C#: Improve fallback nuget package restore in buildless
2024-02-22 08:40:16 +01:00
Paolo Tranquilli
c15d3ab08a
Merge branch 'main' into redsun82/bzlmod
2024-02-22 06:05:37 +01:00
Robert Marsh
875ab74c28
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
...
Fixes conflicts in C++ IR tests and Stmt.qll
2024-02-21 21:34:49 +00:00
Robert Marsh
66743fb0db
C++: refactor TranslatedReturnStmt
2024-02-21 20:50:30 +00:00
Robert Marsh
e0c7849f52
C++: fix incorrect use of getChildInternal
2024-02-21 20:35:58 +00:00
Ian Lynagh
218a3877d2
Merge pull request #15682 from igfoo/igfoo/propStackOverflow
...
Java: Properties: Add a test that used to give a stack overflow
2024-02-21 19:35:32 +00:00
Asger F
db10c229de
Merge pull request #15663 from asgerf/js/endpoint-naming2
...
JS: Improvements to endpoint naming
2024-02-21 19:36:57 +01:00
amammad
1927530517
update tests after branch update
2024-02-21 22:15:23 +04:00
Am
376c6ea09a
Merge branch 'main' into amammad-go-bombs
2024-02-21 21:42:25 +03:30
Geoffrey White
7b85bb4c95
Shared: Autoformat.
2024-02-21 17:54:00 +00:00
Geoffrey White
4367b7813c
Shared: Use more standard QLDoc phrasing.
2024-02-21 17:54:00 +00:00
Geoffrey White
d1c0294551
Shared: Delete hallucinated return values.
2024-02-21 17:54:00 +00:00
Geoffrey White
5e401abccb
Shared: Undo changes to existing QLDoc.
2024-02-21 17:53:59 +00:00
Geoffrey White
2f1d4b923e
Shared: Generate some QLDoc using the "GitHub Copilot: Generate Docs" command.
2024-02-21 17:53:59 +00:00
Benjamin Rodes
8d35db0fe6
Making argv filter positional.
2024-02-21 12:25:35 -05:00
Ian Lynagh
e6f70385f4
Kotlin: Accept more loc changes in library-tests/exprs
2024-02-21 17:23:03 +00:00
Ian Lynagh
006b682333
Kotlin: Accept more loc changes in library-tests/exprs
2024-02-21 17:18:06 +00:00
Ian Lynagh
36b304d9a1
Kotlin: Accept some locations in library-tests/exprs
2024-02-21 17:13:50 +00:00
Ian Lynagh
212d5def16
Kotlin: Accept more loc changes in library-tests/exprs
...
These are more instances of the same changes as the previous 2 commits
2024-02-21 17:04:49 +00:00
Ian Lynagh
1b98dc16ba
Kotlin: Accept some more loc changes in library-tests/exprs
2024-02-21 17:02:59 +00:00
Ian Lynagh
5ecdc29808
Kotlin: Accept some loc changes in library-tests/exprs
...
These aren't ideal, but I think they will be improve once we handle
pre/post inc/decrement properly.
2024-02-21 17:00:23 +00:00
Jeroen Ketema
f9d391d087
C++: Support destructors for range-based for-loops
2024-02-21 17:26:32 +01:00
Paolo Tranquilli
3ca9d70100
Bazel: drop experimental from bzlmod flag
2024-02-21 16:53:08 +01:00
Paolo Tranquilli
61bfe7e520
Bazel: rename internal module to semmle_code
2024-02-21 16:51:39 +01:00
Paolo Tranquilli
cb5e3c336d
Merge branch 'main' into redsun82/bzlmod
2024-02-21 16:47:36 +01:00
Robert Marsh
339c89019a
Merge pull request #15681 from jketema/destructors6b
...
C++: Add IR test where the for loop should call destructors at the end of its body
2024-02-21 10:20:46 -05:00
Tamás Vajk
e13d6cdd57
Merge pull request #15678 from tamasvajk/fix/integration-test-paths
...
C#: Modify reported assembly paths in integration tests
2024-02-21 15:26:36 +01:00
Paolo Tranquilli
3df3fbc65b
Merge branch 'main' into redsun82/bzlmod
2024-02-21 15:01:19 +01:00
Ian Lynagh
9948052fb6
Java: Properties: Add a test that used to give a stack overflow
2024-02-21 13:51:53 +00:00
Jeroen Ketema
11dc467add
C++: Add test where the for loop should call destructors at the end of its body
2024-02-21 14:42:23 +01:00
Jeroen Ketema
8bbfb82f8e
Merge pull request #15670 from jketema/destructors7
...
C++: Add IR tests for destruction of static locals
2024-02-21 12:54:38 +01:00
Ian Lynagh
204be4a809
Merge pull request #15669 from igfoo/igfoo/operator-overloads
...
Kotlin 2: Accept changes in library-tests/operator-overloads
2024-02-21 11:36:16 +00:00
Ian Lynagh
3c35683e25
Merge pull request #15668 from igfoo/igfoo/interface-delegate
...
Kotlin 2: Accept location changes in library-tests/interface-delegate
2024-02-21 11:35:59 +00:00
Tamas Vajk
0c46b493c3
C#: Improve fallback nuget package restore in buildless
...
Fallback cases coming from `<PackageReference />` and `packages.config` are now differentiated. In the latter case we're restoring the package through projects that target `net481`.
2024-02-21 11:58:02 +01:00
Paolo Tranquilli
31959eaf1f
Merge branch 'main' into redsun82/bzlmod
2024-02-21 11:20:55 +01:00
Michael Nebel
a0b44c0fc1
C#: Update other tests expected output.
2024-02-21 10:57:22 +01:00
Michael Nebel
0d32192f62
C#: Update expected test output.
2024-02-21 10:57:22 +01:00
Michael Nebel
b76a27bba2
C#: Make a store step from explicit parameter nodes on primary constructors to the property of the same name for record types.
2024-02-21 10:57:22 +01:00
Anders Schack-Mulligen
71f8ccf45f
Merge pull request #15654 from aschackmull/java/static-init-vec-query-perf
...
Java: Switch helper flow from Global to SimpleGlobal in StaticInitializationVectorQuery.
2024-02-21 10:51:16 +01:00
Michael Nebel
132b8baa57
C#: Delete summarized callable implementation for record flow and update expected output.
2024-02-21 10:33:19 +01:00
Michael Nebel
009ea1bcfd
C#: Add test examples for record flow and update expected test output.
2024-02-21 10:31:07 +01:00
Jeroen Ketema
57cb7f8218
C++: Update tests after extractor changes related to static variables
2024-02-21 10:22:59 +01:00
Jeroen Ketema
c1f18edfed
C++: Add IR tests for destruction of static locals
2024-02-21 10:22:59 +01:00
Michael Nebel
f072e41d50
Merge pull request #15652 from michaelnebel/csharp/constructorflow
...
C#: Read-only property flow.
2024-02-21 10:12:46 +01:00
Tamas Vajk
e1e29f277c
C#: Modify reported assembly paths in integration tests
2024-02-21 09:39:19 +01:00
Michael Nebel
060133d3e9
C#: Add change note.
2024-02-21 09:34:21 +01:00
Tamás Vajk
70a2d16b1a
Merge pull request #15600 from tamasvajk/buildless/no-mono-dlls
...
C# Change desktop dotnet assembly lookup to fall back to nuget reference assemblies
2024-02-21 08:36:41 +01:00
Paolo Tranquilli
c5ed96b4f8
Merge branch 'main' into redsun82/bzlmod
2024-02-21 06:22:10 +01:00
Chris Smowton
f2e04c0cb2
Merge pull request #15672 from github/post-release-prep/codeql-cli-2.16.3
...
Post-release preparation for codeql-cli-2.16.3
2024-02-20 21:59:55 +00:00
amammad
4c769f2b09
update tests
2024-02-21 01:10:35 +04:00
amammad
3307457deb
use implements predicate for io interfaces,
...
so we can reduce many repetitive parts of query
2024-02-21 01:07:31 +04:00
amammad
13b0a9a842
New testcase 's2Reader.ReadByte()'
2024-02-21 01:05:57 +04:00
amammad
905420143b
call functions in the same order as the function declarations
2024-02-21 00:19:51 +04:00
Edward Minnix III
c5dbaa6bfd
Docs team review suggestions
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-02-20 14:17:06 -05:00
Ed Minnix
8be9b8b818
Add note about collapsing multiple rows into one
2024-02-20 14:17:05 -05:00
Ed Minnix
e2511cdbe4
Add neutral model note to C# documentation
2024-02-20 14:17:04 -05:00
Ed Minnix
8058096d7d
Add note about neutrals to Java documentation
2024-02-20 14:17:02 -05:00
Edward Minnix III
6665248c19
Review suggestions
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-02-20 14:17:01 -05:00
Ed Minnix
ae59ea3152
Oxford comma
2024-02-20 14:17:00 -05:00
Ed Minnix
3f10dd06f2
Correct indices in example
2024-02-20 14:16:59 -05:00
Ed Minnix
65db990c97
Remove threat model mentions
2024-02-20 14:16:57 -05:00
Ed Minnix
bb86ce5749
Remove references to model editor
2024-02-20 14:16:56 -05:00
Ed Minnix
698109ae10
Introduce C# MaD documentation
2024-02-20 14:16:55 -05:00
Ed Minnix
77ef63a051
Modify Java docs to use common models-as-data beta notice
2024-02-20 14:16:53 -05:00
Ed Minnix
54d7805e4a
Modify Java threat model link to be Java-specific
2024-02-20 14:16:51 -05:00
yoff
d3ee5f65db
Merge pull request #15550 from yoff/python/remove-pointsto-from-module-getAnExport
...
python: remove a use of points-to
2024-02-20 19:04:46 +01:00
github-actions[bot]
37f8fa3413
Post-release preparation for codeql-cli-2.16.3
2024-02-20 16:50:47 +00:00
Joe Farebrother
10da4d14d9
Add addtional arguments as sinks to certain methods
2024-02-20 16:35:29 +00:00
Pierre
2da00986c0
Merge pull request #15664 from alexrford/rb/rm-library-models-cust-docs
...
Ruby: remove `customizing-library-models-for-ruby.rst`
2024-02-20 17:03:18 +01:00
Ian Lynagh
fbf70c688f
Kotlin 2: Accept changes in library-tests/operator-overloads
...
This also brings the Kotlin 2 output back in line with the Kotlin 1
output.
2024-02-20 15:41:22 +00:00
Ian Lynagh
67d0415942
Kotlin 2: Accept loc changes in library-tests/interface-delegate
...
We lose a location here, but this makes the Kotlin 2 results more
similar to the Kotlin 1 results.
2024-02-20 15:27:43 +00:00
Pierre
0d734983b4
Merge branch 'main' into rb/rm-library-models-cust-docs
2024-02-20 16:20:41 +01:00
Chris Smowton
8a00a45b32
Merge pull request #15666 from github/release-prep/2.16.3
...
Release preparation for version 2.16.3
2024-02-20 15:15:41 +00:00
Michael Nebel
d6f657cfd7
C#: Update expected test output.
2024-02-20 15:55:19 +01:00
Michael Nebel
e4d41194b4
C#: Include store steps into readonly properties.
2024-02-20 15:55:19 +01:00
Michael Nebel
3112bf4682
C#: Add some test property inititialization test cases and update expected output.
2024-02-20 15:55:19 +01:00
Geoffrey White
5787dcc82d
C++: Make getStaticCallTarget() return a DataFlowCallable.
2024-02-20 14:49:51 +00:00
Geoffrey White
356214c11b
C++: Implement SummaryReturnNode.
2024-02-20 14:48:02 +00:00
Geoffrey White
5683092d6a
C++: Implement SummaryParameterNode.
2024-02-20 14:48:02 +00:00
Geoffrey White
1ace9ee50f
C++: Create a proper class for DataFlowCallable, that includes summarized callables.
2024-02-20 14:48:02 +00:00
Geoffrey White
e1a5a84253
C++: Create a proper class for DataFlowCall, that includes summarized callables.
2024-02-20 14:48:02 +00:00
github-actions[bot]
6d061fbc35
Release preparation for version 2.16.3
2024-02-20 14:26:23 +00:00
Michael Nebel
ed3dba8334
Merge pull request #15625 from michaelnebel/csharp/primaryconstructorinitializer
...
C# 12: Primary constructor inititalizers.
2024-02-20 15:12:19 +01:00
Max Schaefer
75f66c2191
Add four more sink types.
2024-02-20 13:48:20 +00:00
Anders Schack-Mulligen
5a348a5048
Dataflow: SimpleGlobal / Typetracker perf fix.
2024-02-20 14:40:28 +01:00
Tamás Vajk
029db218fe
Merge pull request #15650 from tamasvajk/buildless/fallback-nuget-install
...
C#: Add fallback logic to `nuget install`
2024-02-20 14:26:44 +01:00
Owen Mansel-Chan
e6f9ef5042
Merge pull request #15643 from owen-mc/java/sensitive-logging
...
Java: Sensitive Logging: Simplify definition of source and improve QLDoc
2024-02-20 13:24:23 +00:00
Alex Ford
5b46256fdb
Ruby: remove customizing-library-models-for-ruby.rst
2024-02-20 13:12:23 +00:00
Asger F
29ffeb6da5
JS: Fix qldoc
2024-02-20 14:00:32 +01:00
Paolo Tranquilli
2cc762b85a
Merge branch 'main' into redsun82/bzlmod
2024-02-20 13:55:57 +01:00
Michael B. Gale
ea676469bb
Merge pull request #15202 from github/mbg/go/1.22
...
Go: Update workflows and expected test results for Go 1.22
2024-02-20 12:32:57 +00:00
Michael Nebel
f246272b5f
C#: Code quality improvements.
2024-02-20 11:48:01 +01:00
Chris Smowton
2e479def89
Merge pull request #15445 from smowton/smowton/admin/java-buildless-classpath-ordering-tests
...
Java: test changes for making buildless' classpath ordering deterministic
2024-02-20 10:03:03 +00:00
Tamás Vajk
e257003641
Merge pull request #15660 from tamasvajk/feature/code-quality
...
C#: Use `nameof` in nullability attributes
2024-02-20 10:47:52 +01:00
Rasmus Lerchedahl Petersen
22e72d2fed
python: Move the rewrite out to Scope.qll
2024-02-20 10:39:29 +01:00
Mathias Vorreiter Pedersen
66622748d9
Merge pull request #15658 from jketema/destructors6a
...
C++: Add more range-based for-loop IR tests
2024-02-20 10:26:23 +01:00
Rasmus Lerchedahl Petersen
de727bf1b5
Revert "python: remove a use of points-to"
...
This reverts commit 5cb71ce7e5 .
2024-02-20 10:23:31 +01:00
Tamas Vajk
d3ba33d3a8
Code quality improvements
2024-02-20 10:22:08 +01:00
Tamas Vajk
b3f5beb076
C#: Use nameof in nullability attributes
2024-02-20 10:05:39 +01:00
Jeroen Ketema
7ec95fba6d
C++: Add more range-based for-loop IR tests
2024-02-20 09:22:13 +01:00
Chris Smowton
83509ce1f7
Test changes
2024-02-19 19:06:37 +00:00
Paolo Tranquilli
ec3cc6376f
Merge branch 'main' into redsun82/bzlmod
2024-02-19 16:42:08 +01:00
Jeroen Ketema
2becb3043e
Merge pull request #15638 from jketema/destructors5
...
C++: Support C++20 range-based for initializers
2024-02-19 16:22:23 +01:00
Max Schaefer
f4c6cf335b
Merge pull request #15651 from github/max-schaefer/release-automodel-query-pack
...
Automodel: Release query pack.
2024-02-19 14:55:49 +00:00
Tony Torralba
1704bfe2bf
Merge pull request #15585 from atorralba/atorralba/go/promote-jwt-unsafe-verification
...
Go: Promote `go/missing-jwt-signature-check` from experimental
2024-02-19 15:35:44 +01:00
Paolo Tranquilli
0787cc5e51
Merge branch 'main' into redsun82/bzlmod
2024-02-19 15:07:42 +01:00
Paolo Tranquilli
164250186a
Merge pull request #15593 from github/redsun82/swift-prebuilt-update
...
Swift: update swift prebuilt package
2024-02-19 15:05:13 +01:00
Paolo Tranquilli
434fd73823
Merge pull request #15653 from github/redsun82/swift-remove-test-sdk
...
Swift: remove test sdk
2024-02-19 15:04:13 +01:00
Paolo Tranquilli
f842eee784
Swift: use includes in picosha2
2024-02-19 14:06:18 +01:00
Paolo Tranquilli
d0e169ebda
Merge branch 'main' into redsun82/bzlmod
2024-02-19 14:05:43 +01:00
Anders Schack-Mulligen
66010b5c96
Java: Switch helper flow from Global to SimpleGlobal in StaticInitializationVectorQuery.
2024-02-19 14:04:43 +01:00
Anders Schack-Mulligen
2fa8c2f992
Merge pull request #15634 from aschackmull/dataflow/simpleglobal-fixreads
...
Dataflow: Bugfix for field reads in SimpleGlobal.
2024-02-19 14:02:38 +01:00
Asger F
c324b2aed8
JS: Refactor
2024-02-19 13:59:49 +01:00
Asger F
eb7d0244c2
JS: Global names don't have to be defined in externs
2024-02-19 13:59:49 +01:00
Asger F
493b37774f
JS: More precise isFunctionSource
2024-02-19 13:59:49 +01:00
Asger F
6d597bea0d
JS: Refactor
2024-02-19 13:59:49 +01:00
Asger F
8a5b907912
JS: Handle wrapper functions more gracefully
2024-02-19 13:59:48 +01:00
Asger F
d96f29d6c2
JS: Disallow return steps in getASinkNode
2024-02-19 13:59:48 +01:00
Asger F
51bed86778
Update EndpointNaming.expected
2024-02-19 13:59:46 +01:00
Asger F
29258ad8c2
WIP new aliasing rule
2024-02-19 13:59:15 +01:00
Asger F
4ef1ac9250
JS: Accept bad test output
2024-02-19 13:59:12 +01:00
Asger F
15bc3c282f
JS: Add test with wrapper function
2024-02-19 13:58:40 +01:00
Tamas Vajk
216d6c0827
Change separator character used in environment variable
2024-02-19 13:58:09 +01:00
Paolo Tranquilli
eb142184f3
Swift: accept test changes
2024-02-19 13:53:19 +01:00
Paolo Tranquilli
ccf7608850
Swift: update swift prebuilt package
2024-02-19 13:47:53 +01:00
Paolo Tranquilli
2b6f100d91
Swift: update qltest test
2024-02-19 13:39:27 +01:00
Paolo Tranquilli
2311e1c5ab
Swift: remove test sdk
...
The test sdk that we were prebuilding to run ql tests is actually not
needed, as the `resource-dir` we package for cross-version compatibility
is enough for running qltests as well.
2024-02-19 13:28:48 +01:00
Tamas Vajk
69c1895065
C#: Add fallback logic to nuget install
2024-02-19 13:08:45 +01:00
Ian Lynagh
ce07d6ad9f
Merge pull request #15645 from igfoo/igfoo/methods
...
Kotlin 2: Accept changes in library-tests/methods
2024-02-19 12:05:03 +00:00
Michael Nebel
feda6bc01b
C#: Update expected test output.
2024-02-19 13:04:13 +01:00
Michael Nebel
d83687125c
C#: Add postupdate nodes for all instance parameter accesses - otherwise we get missing post update nodes to to reverseRead in the data flow consistency queries.
2024-02-19 13:04:13 +01:00
Michael Nebel
28d5c11b6f
C#: Synthesize an empty body for primary constructors.
2024-02-19 13:04:13 +01:00
Michael Nebel
dcde6597bc
C#: Updated expected test output.
2024-02-19 13:04:13 +01:00
Michael Nebel
7a80205519
C#: Extract explicit and implicit primary constructor initializers.
2024-02-19 13:04:12 +01:00
Michael Nebel
c613851c2d
C#: Invert logic in ExtractInitializer.
2024-02-19 13:04:12 +01:00
Michael Nebel
6b38a81e50
C#: Add some test cases for primary constructor inititalizers and a failing dataflow test.
2024-02-19 13:04:12 +01:00
Max Schaefer
139ef60f69
Automodel: Release query pack.
2024-02-19 11:47:31 +00:00
Paolo Tranquilli
b174aa65a3
Bazel: empty out WORKSPACE.bazel
2024-02-19 10:30:48 +01:00
Anders Schack-Mulligen
d1d213d285
Merge pull request #15632 from aschackmull/dataflow/flowfeature-bugfix
...
Dataflow: Fix flow-feature bug for parameterless static functions
2024-02-19 09:24:43 +01:00
Tony Torralba
8b8cebd599
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-02-19 08:59:03 +01:00
Paolo Tranquilli
f41b70af78
Merge branch 'main' into redsun82/bzlmod
2024-02-19 08:35:55 +01:00
Mathias Vorreiter Pedersen
b927968e88
Merge pull request #15516 from microsoft/51-2cppnon-constant-format-alter-not-const-source
...
C++: Change sources in `NonConstantFormat.ql`
2024-02-17 00:01:58 +01:00
Robert Marsh
2494b7d801
C++: fix for IR CFG problem with return in if
2024-02-16 21:08:21 +00:00
Geoffrey White
6e13b877bb
C++: Add FlowSummaryNode and test it.
2024-02-16 18:06:57 +00:00
Robert Marsh
2c8ed6479a
C++: test for return in if
2024-02-16 17:55:34 +00:00
Michael B. Gale
0ad04d45a9
Disable setup-go caching
2024-02-16 17:48:12 +00:00
Michael B. Gale
25f0692e2c
Go: Update expected results for TypeParamType
2024-02-16 17:33:30 +00:00
Michael B. Gale
91ed7a8d79
Go: Use 1.22 in CI
2024-02-16 17:33:23 +00:00
Ian Lynagh
8235aed01a
Kotlin 2: Accept changes in library-tests/methods
...
Mostly location changes, and mostly improvements.
There are a couple of cases where we lose regressions, but this actually
makes those IR elements more consistent with the elements surrounding
them.
2024-02-16 17:18:49 +00:00
Pierre
c05431e08f
Merge pull request #15644 from github/sitedocs/2.16.2
...
Generate changelogs for 2.16.2
2024-02-16 18:15:33 +01:00
Pierre
98dac7573b
Generate changelogs for 2.16.2
2024-02-16 18:02:19 +01:00
Owen Mansel-Chan
22692b9d55
Simplify definition of source and improve QLDoc
...
This is also slightly faster to evaluate (217s instead of 228s on apache/geode on my machine).
2024-02-16 16:47:41 +00:00
Ian Lynagh
3f696c02ab
Merge pull request #15641 from igfoo/igfoo/controlflow-dom
...
Kotlin 2: Accept changes in library-tests/controlflow/dominance
2024-02-16 16:41:41 +00:00
Benjamin Rodes
639642fb67
Formatting.
2024-02-16 11:19:02 -05:00
Benjamin Rodes
0410ed734b
Adding exclusion for main's argv (I believe this and other changes were accidentally removed in prior merge with other non-const branches)
2024-02-16 11:18:06 -05:00
Benjamin Rodes
9f3dd6300f
Fixing query to use path graph.
2024-02-16 11:11:48 -05:00
Paolo Tranquilli
32d6c5ac3d
Javascript: fix project layout for bazel tests
...
On Windows, the project layout needs to match `codeql~override`, while
on POSIX we must keep on matching `ql`. We work around this by using
`*ql*` in the project layout, which matches both.
2024-02-16 17:10:20 +01:00
Paolo Tranquilli
1626344560
Merge branch 'main' into redsun82/bzlmod
2024-02-16 17:10:02 +01:00
Ian Lynagh
92009f515b
Merge pull request #15640 from igfoo/igfoo/controlflow
...
Kotlin 2: Accept changes in library-tests/controlflow/basic
2024-02-16 16:07:48 +00:00
Ian Lynagh
f0f1b043d5
Merge pull request #15639 from igfoo/igfoo/stmts
...
Kotlin 2: Accept changes in library-tests/stmts
2024-02-16 16:07:34 +00:00
Mathias Vorreiter Pedersen
7ea49b6a94
Merge pull request #15637 from MathiasVP/fix-joins-in-irguards
...
C++: Fix joins in `controlsBlock`
2024-02-16 16:56:21 +01:00
Benjamin Rodes
aa7c677e13
Merge branch '51-2cppnon-constant-format-alter-not-const-source' into cpp-non-constant-format-as-path-query
...
# Conflicts:
# cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
2024-02-16 10:49:05 -05:00
Benjamin Rodes
c38376a264
Merge branch '51-2cppnon-constant-format-alter-not-const-source' of https://github.com/microsoft/codeql into 51-2cppnon-constant-format-alter-not-const-source
2024-02-16 10:42:04 -05:00
Mathias Vorreiter Pedersen
7c22146f46
C++: Accept query test changes.
2024-02-16 16:33:44 +01:00
Mathias Vorreiter Pedersen
096073d295
C++: Add change note.
2024-02-16 16:29:34 +01:00
Benjamin Rodes
93f2e856af
Formatting update.
2024-02-16 10:28:14 -05:00
Ian Lynagh
9069218f1a
Kotlin 2: Accept changes in library-tests/controlflow/dominance
...
Mostly location changes; also removal of a generated block:
https://youtrack.jetbrains.com/issue/KT-63781/K2-Generated-blocks-appear-in-the-IR
2024-02-16 15:18:56 +00:00
Benjamin Rodes
4a9b2d5027
Comment change.
2024-02-16 10:18:07 -05:00
Michael B. Gale
008585eeba
Go: Include arguments in RunCmd error messages
2024-02-16 15:17:24 +00:00
Michael B. Gale
8886092cd0
Go: Try to ignore errors in go mod vendor calls
2024-02-16 15:15:58 +00:00
Benjamin Rodes
5b0a3dcdbe
Accidental removal of an and.
2024-02-16 10:15:21 -05:00
Benjamin Rodes
95ebbb1bbd
Ql alterations for cleanup as part of merge suggestions.
2024-02-16 10:13:50 -05:00
Ben Rodes
1fb7f089ca
Update cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-02-16 10:06:34 -05:00
Ian Lynagh
a5a6020f18
Kotlin 2: Accept changes in library-tests/controlflow/basic
...
Mostly location changes, but also some removal of generated blocks:
https://youtrack.jetbrains.com/issue/KT-63781/K2-Generated-blocks-appear-in-the-IR
2024-02-16 14:37:10 +00:00
Jeroen Ketema
dd39fa0bde
C++: Support C++20 range-based for initializers
2024-02-16 15:20:14 +01:00
Ian Lynagh
5039acba53
Kotlin 2: Accept changes in library-tests/stmts/PrintAst.expected
2024-02-16 14:17:04 +00:00
Ian Lynagh
e8b8b11434
Kotlin 2: Accept changes in library-tests/stmts/exprs.expected
2024-02-16 14:16:18 +00:00
Mathias Vorreiter Pedersen
be54a41593
C++: Accept query test changes.
2024-02-16 15:01:50 +01:00
Mathias Vorreiter Pedersen
06ff46091d
C++: Fix joins in 'controlsBlock'.
2024-02-16 14:49:20 +01:00
Tamas Vajk
c68d36eb79
Remove restored framework packages when user specified framework folders
2024-02-16 14:42:39 +01:00
Ian Lynagh
d6b96c5c23
Kotlin 2: Accept loc changes in library-tests/stmts/stmts.expected
2024-02-16 13:40:44 +00:00
Anders Schack-Mulligen
53801e8efb
Dataflow: Bugfix for field reads in SimpleGlobal.
2024-02-16 14:00:04 +01:00
Mathias Vorreiter Pedersen
b407c86d03
C++: Make Code Scanning happy.
2024-02-16 13:51:34 +01:00
Mathias Vorreiter Pedersen
57c1bf5835
C++: Add file-level QLDoc.
2024-02-16 13:47:02 +01:00
Mathias Vorreiter Pedersen
497592a4d4
C++: Add change note.
2024-02-16 13:36:25 +01:00
Tamas Vajk
ce0159c005
Add dotnet core dependencies to the integration test
2024-02-16 13:35:18 +01:00
Geoffrey White
e187a4a7d6
C++: Add flow summaries to simpleLocalFlowStep.
2024-02-16 12:31:17 +00:00
Tamas Vajk
7e912f0de0
Rename integration test
2024-02-16 13:31:08 +01:00
Mathias Vorreiter Pedersen
9b2019db6b
C++: Accept test changes.
2024-02-16 13:10:41 +01:00
Mathias Vorreiter Pedersen
499ab0892f
C++: Currently, to catch flow in an example such as:
...
```cpp
char* source();
void sink(const char*);
int sprintf(char *, const char *, ...);
void call_sprintf(char* path, char* data) {
sprintf(path, "%s", "abc"); // (1)
sprintf(path, "%s", data); // (2)
}
void foo() {
char path[10];
call_sprintf(path, source()); // (3)
sink(path);
}
```
we identify that the `*path [post update]` node at `// (2)` is a
`ReturnNodeExt` and since `*data` flows to that node flow will be carried
out to `*path [post update]` at // (3) and thus reach `sink(path)`.
The reason `*path [post update]` at `// 2` is recognized as a `ReturnNodeExt`
is because it satisfies the following condition (which is identified by the
shared dataflow library):
There is flow from the parameter node `*path` to the pre-update node of the
post-update node `*path [post update]` at `// (2)`.
However, when we start recognizing that the call to `sprintf(path, ...)` at
`// (1)` overrides the value of `*path` and no longer provide use-use flow out
of `*path` the `*path [post update]` node at `// (2)` is no longer recognized
as a `ReturnNodeExt` (because it doesn't satisfy the above criteria).
Thus, we need to identify the flow above without relying on the dataflow
library's summary mechanism. That is, instead of relying on the dataflow
library's mechanism to summarize the `*data -> *path` flow for `call_sprintf`
we need to:
- Ensure that the write to `*path` at `// (2)` is recognized as the "final"
write to the parameter, and
- Ensure that there's flow out of that parameter and back to
`*path [post update]` at `// (3)`.
Luckiky, we do all of this already to support flow out of writes to parameters
that don't have post-update nodes. For example, in something like:
```cpp
void set(int* x, int y) {
*x = y;
}
void test() {
int x;
set(&x, source());
sink(x);
}
```
So in order to make the original example work, all we need to do is to remove
the restrictions on this mechanism so that the same mechanism that makes the
above example work also makes the original example work!
2024-02-16 13:09:45 +01:00
Joe Farebrother
9ad05fe51c
Address reveiws - Add BAD example to doc, add doc example to tests and fix typo.
2024-02-16 12:00:51 +00:00
Mathias Vorreiter Pedersen
7e9bf2a880
C++: Add a model for 'partial updating' and extend models appropriately.
2024-02-16 12:56:19 +01:00
Mathias Vorreiter Pedersen
24a63ae94d
C++: Block flow by default.
2024-02-16 12:56:19 +01:00
Mathias Vorreiter Pedersen
625c47fa9c
C++: Add a testcase.
2024-02-16 12:56:19 +01:00
Tamas Vajk
1e75c73825
Fix failing integration test
2024-02-16 12:50:13 +01:00
Tamas Vajk
f8b29ad70e
Introduce environment variable to specify framework assembly locations
2024-02-16 11:54:19 +01:00
Anders Schack-Mulligen
03f7968dbf
Dataflow: Fix flow-feature bug.
2024-02-16 11:38:30 +01:00
Angela P Wen
4291c75488
Merge pull request #15631 from github/angelapwen/extend-permissions
...
Add `security-events: write` permission in `ql-for-ql-build.yml`
2024-02-16 02:28:30 -08:00
Anders Schack-Mulligen
ba1a0bc320
Java: Add test highlighting problem.
2024-02-16 11:25:33 +01:00
Angela P Wen
c75111619e
Add security-events: write permission
2024-02-16 02:17:17 -08:00
Tamas Vajk
d358f8e4f2
Move undocumented environment variable names to a common location
2024-02-16 11:15:53 +01:00
Tamas Vajk
b996f7b3ce
Change environment variable for opt-out web view extraction
2024-02-16 11:15:53 +01:00
Tamas Vajk
8f0f6963bb
Change desktop dotnet assembly lookup to fall back to nuget reference assemblies
2024-02-16 11:15:53 +01:00
Tamas Vajk
04f0fb0483
Add integration test with mono assemblies as references
2024-02-16 11:15:52 +01:00
Cornelius Riemenschneider
4e022e2098
Merge pull request #15627 from github/criemen/java-test
...
Move the JS java tests to be a proper `java_test` target.
2024-02-16 11:15:18 +01:00
Erik Krogh Kristensen
037e64a4b5
Merge pull request #15623 from erik-krogh/cs-url
...
C#: update the QHelp for `cs/web/unvalidated-url-redirection`
2024-02-16 11:12:22 +01:00
Óscar San José
d46157135a
Merge pull request #15630 from tamasvajk/fix/change-coverage-updater-permissions
...
Extend permissions in `csv-coverage-update.yml`
2024-02-16 10:58:24 +01:00
Tamas Vajk
89384bb855
Extend permissions in csv-coverage-update.yml
2024-02-16 10:19:16 +01:00
Mathias Vorreiter Pedersen
c19ed4c17e
Merge pull request #15626 from MathiasVP/fix-constness-checking
...
C++: Don't strip specifiers away in `TFinalParameterUse`
2024-02-16 10:09:43 +01:00
Max Schaefer
a95f4128d9
Merge pull request #15554 from github/max-schaefer/automodel-candidate-fixes
...
Automodel: Improve handling of varargs and overriding in extraction queries
2024-02-16 08:51:54 +00:00
Benjamin Rodes
d6b0746b30
The non-constant format query is now a path query. Minor changes to the output alert to be more precise on what is being alerted. Minor changes to the query itself to avoid redundancies with argv.
2024-02-15 12:14:52 -05:00
Ian Lynagh
c6f4a204e9
Merge pull request #15616 from igfoo/igfoo/kt2-exprs
...
Kotlin 2: Accept more location changes
2024-02-15 16:49:28 +00:00
Jeroen Ketema
da3ff4813f
Merge pull request #15612 from jketema/destructors4a
...
C++: Support `constexpr if` in the IR
2024-02-15 17:29:56 +01:00
Max Schaefer
652b6bb8e1
Fix bugs revealed by omittable exists variables.
2024-02-15 16:29:20 +00:00
Max Schaefer
8d4a344d47
Merge pull request #15592 from github/max-schaefer/rephrase-negative-characteristics
...
Automodel: Make description of some negative characteristics more explicit.
2024-02-15 16:20:17 +00:00
Michael B. Gale
4d28c0d2a9
Go: Call go mod vendor to synchronise vendor directory when it exists
2024-02-15 16:19:07 +00:00
Cornelius Riemenschneider
798a1e250e
Move the JS java tests to be a proper java_test target.
...
Previously, we had a `sh_test` wrapping the `java_test` to do some setup.
This was extremely brittle on Windows, and relied on getting a deploy
jar from `java_test`. This breaks when updating to Bazel 7, where the
ability to get a deploy jar from `java_test` was removed.
Therefore, we now do all the test setup in `AllTests.java` instead.
This is much cleaner, and shouldn't break as easily.
2024-02-15 17:02:28 +01:00
Joe Farebrother
e36b9f4d3c
Add tests and change note
2024-02-15 15:26:20 +00:00
Benjamin Rodes
9e50fc6893
Updating tests to account for removing const char* heuristic.
2024-02-15 09:54:03 -05:00
Benjamin Rodes
caf2ee27fa
Adding false negative tests for future work.
2024-02-15 09:43:26 -05:00
Mathias Vorreiter Pedersen
532e8dac45
C++: Don't strip specifiers in 'TFinalParameterUse'.
2024-02-15 14:08:12 +01:00
Owen Mansel-Chan
9cd13cbf37
Merge pull request #15624 from owen-mc/go/update-library-coverage-frameworks
...
Add new libraries we cover to frameworks.csv
2024-02-15 12:55:19 +00:00
Owen Mansel-Chan
6cb4773188
Add new libraries we cover to frameworks.csv
2024-02-15 12:19:49 +00:00
erik-krogh
a5eb2dd906
update the QHelp for cs/web/unvalidated-url-redirection with examples inspired by the JS QHelp
2024-02-15 12:41:01 +01:00
Erik Krogh Kristensen
7c0557269a
Merge pull request #15596 from erik-krogh/url-san
...
C#: Add a few more sanitizers to `cs/web/unvalidated-url-redirection`
2024-02-15 12:09:06 +01:00
Angela P Wen
0643184a7e
Merge pull request #15493 from jsoref/declare-permissions
...
Declare permissions in workflows
2024-02-15 02:52:24 -08:00
Tony Torralba
f4c9052ba9
Merge pull request #15622 from atorralba/atorralba/java/path-sanitizer-equals
...
Java: Expand ExactPathSanitizer to work on the argument of 'equals' too
2024-02-15 11:29:09 +01:00
Tamás Vajk
a5e3643faf
Merge pull request #15621 from tamasvajk/buildless/cleanup
...
C#: Code quality improvements (fixed log message, removed unused interface)
2024-02-15 10:54:47 +01:00
Rasmus Wriedt Larsen
e4c30371f9
Merge pull request #13557 from am0o0/amammad-python-bombs
...
Python: Decompression Bombs
2024-02-15 10:43:12 +01:00
Tony Torralba
90a9d82b9d
Java: Expand ExactPathSanitizer to work on the argument of 'equals' too
2024-02-15 10:00:24 +01:00
Harry Maclean
a9abba5859
Merge pull request #15520 from hmac/hmac-erb-raw-output-directive
...
Ruby: Recognise raw Erb output as XSS sink
2024-02-15 08:05:16 +00:00
Harry Maclean
babae65e41
Merge pull request #15488 from hmac/ruby-mad-docs
...
Ruby: add docs for customizing library models with data extensions
2024-02-15 07:58:22 +00:00
Tamas Vajk
2f1472fa48
Code quality improvements (fixed log message, removed unused interface)
2024-02-15 08:52:44 +01:00
Tamás Vajk
8aff913c3c
Merge pull request #15614 from tamasvajk/buildless/razor-cleanup
...
C# Only remove temp files for MVC view generation if needed
2024-02-15 08:27:40 +01:00
Joe Farebrother
37eb81097f
Add additional sinks for connection methods
2024-02-14 22:42:03 +00:00
Chris Smowton
7e41a895d8
Merge pull request #15618 from JLLeitschuh/patch-6
...
Fix typo in NettyRequestSplitting.java
2024-02-14 20:44:40 +00:00
Josh Soref
b58c856756
Declare permissions
...
Repositories can be configured with Default access (restricted)
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
Best practice says that workflows should declare the minimal permissions they require.
Without declaring permissions, paranoid forks fail miserably.
2024-02-14 14:31:45 -05:00
Josh Soref
e468f4062f
use github/codeql-action...@main
2024-02-14 14:31:31 -05:00
amammad
09d8a75844
Fix QLDoc issues
2024-02-14 23:31:22 +04:00
Michael B. Gale
6267506a77
Go: Postpone go.mod creation until necessary
2024-02-14 19:12:36 +00:00
Michael B. Gale
1055e773ef
Go: Export InitGoModForLegacyProject
2024-02-14 19:12:35 +00:00
Michael B. Gale
4387c73d12
Go: Fix missing word in comment for discoverWorkspace
2024-02-14 19:12:35 +00:00
Michael B. Gale
6dbb5c5fdb
Go: Refactor Autobuild to use pairs of scripts and tools from a reusable array
2024-02-14 19:12:35 +00:00
Michael B. Gale
e2c673417f
Go: Only call EmitNewerGoVersionNeeded at most once
2024-02-14 19:12:35 +00:00
Michael B. Gale
6eac48caba
Go: Refactor greatest version logic into dedicated function
2024-02-14 19:12:34 +00:00
Michael B. Gale
a9d8643f5a
Go: check for extracted files in go-files-found-not-processed test
2024-02-14 19:12:34 +00:00
Michael B. Gale
a26d11bcea
Go: Revert expected diagnostics for go-files-found-not-processed
2024-02-14 19:12:34 +00:00
Michael B. Gale
058bf32ad0
Go: Initialise Go modules for stray source files outside of existing modules
2024-02-14 19:12:34 +00:00
Michael B. Gale
d99ad01efa
Go: Add module files which don't belong to a workspace, if there are workspaces
2024-02-14 19:12:34 +00:00
Michael B. Gale
251888a0bd
Go: Tell extractor to extract subdirectories as well
2024-02-14 19:12:33 +00:00
Michael B. Gale
925e99cdb2
Go: Use GoFilesOutsideDirs to find stray source files
2024-02-14 19:12:33 +00:00
Michael B. Gale
f0df7cd5c5
Go: Add GoFilesOutsideDirs function
2024-02-14 19:12:33 +00:00
Michael B. Gale
d4ea45bdaf
Go: Add comment to AnyGoFilesOutsideDirs and use slices.Contains
2024-02-14 19:12:33 +00:00
Michael B. Gale
843f7694fd
Go: Only relocate project to temp dir if there is only one workspace
2024-02-14 19:12:32 +00:00
Michael B. Gale
3a982de16f
Go: Workspaces only support mod=readonly
2024-02-14 19:12:32 +00:00
Michael B. Gale
9c3667dbf7
Go: Improve go.work file(s) found log message
2024-02-14 19:12:32 +00:00
Michael B. Gale
fd54350ba8
Go: Fix comment for getBuildRoots
2024-02-14 19:12:32 +00:00
Michael B. Gale
f084829154
Go: Only fail autobuilder if all projects cannot be extracted
2024-02-14 19:12:31 +00:00
Michael B. Gale
20836c7088
Go: Add test for multiple modules, where one cannot be extracted
2024-02-14 19:12:31 +00:00
Michael B. Gale
fbd7946cfd
Go: Fall back to ./... if there are no modules
...
Fixes issues for `dep` and `glide`
2024-02-14 19:12:31 +00:00
Michael B. Gale
0b8a917584
Go: Fix crash if WorkspaceFile.Go is nil
2024-02-14 19:12:30 +00:00
Michael B. Gale
46c553e802
Go: Add test case for go.mod file without a Go version
2024-02-14 19:12:30 +00:00
Michael B. Gale
a961e276c1
Go: Initialise filesToRemove to an empty array
2024-02-14 19:12:30 +00:00
Michael B. Gale
51eb487022
Go: Handle filepath.Rel failure
2024-02-14 19:12:30 +00:00
Michael B. Gale
c96735e17a
Go: Remove auto-generated go.mod files when done
2024-02-14 19:12:30 +00:00
Michael B. Gale
db1d24a900
Go: Update expected diagnostics for go-files-not-processed
2024-02-14 19:12:29 +00:00
Michael B. Gale
e79f5905e7
Go: Fix checks for dep and glide not working correctly
2024-02-14 19:12:29 +00:00
Michael B. Gale
ec902827f6
Go: Initialise go.mod for stray source files
2024-02-14 19:12:29 +00:00
Michael B. Gale
b9e96e4a27
Fixup: closing curly brace
2024-02-14 19:12:29 +00:00
Michael B. Gale
21fbb1b051
Go: Only initialise module if there are source files
2024-02-14 19:12:28 +00:00
Michael B. Gale
f48b1e57d7
Go: Check for relative paths warning even if go mod tidy is successful
2024-02-14 19:12:28 +00:00
Michael B. Gale
aa5e14f59f
Go: Replace BuildInfo with GoWorkspace
2024-02-14 19:12:28 +00:00
Michael B. Gale
8b376e7a35
Go: Include ModMode in GoWorkspace
2024-02-14 19:12:28 +00:00
Michael B. Gale
025fbc874f
Go: Move definition of GoVersionInfo
2024-02-14 19:12:28 +00:00
Michael B. Gale
bdae54714a
Go: Change getDepMode to return GoWorkspaces
2024-02-14 19:12:27 +00:00
Michael B. Gale
64122ba867
Go: Include DependencyInstallerMode in GoWorkspace
2024-02-14 19:12:27 +00:00
Michael B. Gale
7392440475
Go: Move DependencyInstallerMode up
2024-02-14 19:12:27 +00:00
Michael B. Gale
b5ae8ace0d
Go: Add a function for go mod init
2024-02-14 19:12:27 +00:00
Michael B. Gale
1bf747ef3a
Go: Create go.mod file if necessary in project discovery
2024-02-14 19:12:27 +00:00
Michael B. Gale
254634075f
Go: Add shared TidyModule function
2024-02-14 19:12:26 +00:00
Michael B. Gale
f013d9d373
Go: Use new workspace/module discovery
2024-02-14 19:12:26 +00:00
Michael B. Gale
fc75e44238
Go: Allow GetBuildInfo to return multiple BuildInfo objects
2024-02-14 19:12:26 +00:00
Michael B. Gale
4f5c43a3c6
Go: Add new functions for discovering workspaces and modules
2024-02-14 19:12:26 +00:00
Michael B. Gale
3f53186ad1
Go: Add helper functions for discovering go.work and go.mod files
2024-02-14 19:12:25 +00:00
Michael B. Gale
60879bd367
Go: Introduce new types for representing logical workspaces
2024-02-14 19:12:25 +00:00
Michael B. Gale
82bd1d7b0b
Go: Add SupportsWorkspaces function
2024-02-14 19:12:25 +00:00
Michael B. Gale
237bf5653a
Go: Move getEnvGoSemVer to toolchain.go
2024-02-14 19:12:25 +00:00
Michael B. Gale
bd36847ca2
Go: Emit relative path import diagnostic if prompted by go mod tidy
...
The corresponding integration test now successfully extracts the project
2024-02-14 19:12:25 +00:00
Michael B. Gale
c2571160c3
Go: Rename findGoModFiles to getBuildRoot
2024-02-14 19:12:24 +00:00
Michael B. Gale
0488d1d295
Go: Move getDirs into util and document/rename
2024-02-14 19:12:24 +00:00
Michael B. Gale
df212807a0
Go: Try to initialise go.mod file for legacy projects
2024-02-14 19:12:24 +00:00
Jonathan Leitschuh
50056d603e
Fix typo in NettyRequestSplitting.java
2024-02-14 14:03:33 -05:00
Ian Lynagh
f6d6a04ba2
Kotlin 2: Accept location changes in library-tests/exprs
2024-02-14 17:01:21 +00:00
Ian Lynagh
4fcc1c26d4
Kotlin 2: Accept location changes in library-tests/exprs
2024-02-14 16:56:22 +00:00
Ian Lynagh
b95c69dc66
Kotlin 2: Accept location changes in library-tests/exprs
2024-02-14 16:54:20 +00:00
Ian Lynagh
2fe4c8c519
Kotlin 2: Accept some loc changes in library-tests/exprs/exprs
2024-02-14 16:47:46 +00:00
Ian Lynagh
14979585c9
Kotlin 2: Accept loc changes for library-tests/exprs/funcExprs.kt
2024-02-14 16:40:54 +00:00
Tony Torralba
f5d9fe6b08
Merge pull request #15615 from atorralba/atorralba/go/hardcoded-credentials-test-fix
...
Go: Use less confusing name for hardcoded credentials tests
2024-02-14 17:33:43 +01:00
Tony Torralba
582f341d9e
Add references to qhelp
2024-02-14 17:25:09 +01:00
Tony Torralba
f9638760ff
Fix MaD rows
2024-02-14 17:25:08 +01:00
Tony Torralba
769ec16803
Apply suggestions from code review
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-02-14 17:25:08 +01:00
Tony Torralba
5a82d2188a
Fix double quotes in MaD row
2024-02-14 17:25:08 +01:00
Tony Torralba
551875cb5a
Add 'jwt' as valid sink kind
2024-02-14 17:25:08 +01:00
Tony Torralba
85b22a2b98
Fix QHelp
2024-02-14 17:25:08 +01:00
Tony Torralba
ad7d40f0af
Add missing QLDoc
2024-02-14 17:25:08 +01:00
Tony Torralba
2a30898af6
Go: Promote go/missing-jwt-signature-check from experimental
2024-02-14 17:25:03 +01:00
Ian Lynagh
efe5184a74
Kotlin 2: Accept loc change for fn in library-tests/exprs/funcExprs.kt
2024-02-14 16:09:14 +00:00
Tony Torralba
1202b5b429
Go: Use less confusing name for hardcoded credentials tests
...
We don't want name-based heuristics to pick these variable names, but also using something like 'safeName' may mislead readers into believing the test cases are intended to be GOOD cases (i.e. safe)
2024-02-14 17:06:05 +01:00
Ian Lynagh
18a28e2623
Kotlin 2: Accept loc changes in library-tests/exprs for kFunctionInvoke.kt
2024-02-14 16:04:10 +00:00
Ian Lynagh
c11bfb3c83
Kotlin 2: Accept loc changes in library-tests/exprs for localFunctionCalls.kt
2024-02-14 16:03:23 +00:00
Tamas Vajk
12663b58f1
C# Only remove temp files for MVC view generation if needed
2024-02-14 17:00:37 +01:00
Tony Torralba
99ac640536
Merge pull request #15527 from atorralba/atorralba/go/promote-hardcoded-key
...
Go: Promote `go/hardcoded-key` from experimental
2024-02-14 16:54:03 +01:00
Rasmus Wriedt Larsen
eb401a205d
Python: Fix test exclusion for stdlib Python 3.12
2024-02-14 16:53:19 +01:00
Ian Lynagh
1cc645b276
Kotlin 2: Accept location changes in library-tests/exprs for samConversion.kt
2024-02-14 15:49:44 +00:00
Ian Lynagh
9195be34a2
Kotlin 2: Accept location changes in library-tests/exprs/exprs for whenExpr.kt
2024-02-14 15:45:09 +00:00
Chris Smowton
7ed73bc4ed
change note
2024-02-14 15:45:03 +00:00
Ian Lynagh
5d0b780c06
Kotlin 2: Accept some location improvements in library-tests/exprs/exprs.expected
2024-02-14 15:37:37 +00:00
Ian Lynagh
2cc2a90880
Kotlin 2: Accept some location changes in library-tests/exprs/exprs.expected
2024-02-14 15:37:35 +00:00
Jeroen Ketema
9ef2c83d71
Merge pull request #15611 from jketema/destructors4
...
C++: For unnamed local variable declaration entries consider the name of the variable
2024-02-14 16:18:33 +01:00
Chris Smowton
9016997b51
Golang: fix flow from a map value via a range statement
2024-02-14 14:56:24 +00:00
Rasmus Wriedt Larsen
59014787a1
Python: Fix DataflowQueryTest
...
You're only allowed to have `result=OK` if there is a sink on that line...
2024-02-14 15:44:40 +01:00
Rasmus Wriedt Larsen
cd596f5d05
Python: Reformat test-file
...
All those newlines are not good for inline expectations
2024-02-14 15:44:06 +01:00
Asger F
d94d4591da
JS: Name instance methods using API nodes instead of special-casing
2024-02-14 15:08:19 +01:00
Asger F
c4a0f36a08
JS: Fix handling of unknown properties
...
These would shorten the expected distance to a node, but would never be usable as an edge, meaning we failed to pick a preferred predecessor.
2024-02-14 15:08:19 +01:00
Asger F
3ff950660b
JS: Add test with unknown property name
2024-02-14 15:08:19 +01:00
Asger F
9838da5395
JS: Simplify isExported
2024-02-14 15:08:19 +01:00
Asger F
a3dc19fd31
JS: Check privacy earlier
2024-02-14 15:08:19 +01:00
Asger F
5c454944a9
JS: Add test for private fields
2024-02-14 15:08:19 +01:00
Asger F
2a91bb8c54
JS: Add test showing ambiguous predecessor
2024-02-14 15:08:19 +01:00
Jeroen Ketema
33413129a5
C++: For unnamed local variable declaration entries consider the name of the variable
2024-02-14 15:03:04 +01:00
Ian Lynagh
c87b7b5f88
Merge pull request #15606 from igfoo/igfoo/kt2
...
Kotlin: Fix build with latest 2.0.255 snapshots
2024-02-14 14:00:50 +00:00
Rasmus Wriedt Larsen
e5bd633028
Python: Change name/id to Decompression Bomb
...
The old title/id matches how we used to write queries, but I think just
using the normal conversational name is easier for everyone :)
2024-02-14 14:54:25 +01:00
Rasmus Wriedt Larsen
69c8ef9898
Python: Use dataflow instead of taint-tracking
2024-02-14 14:52:37 +01:00
Rasmus Wriedt Larsen
ba7dd38fc9
Python: Delete duplicated file
2024-02-14 14:48:37 +01:00
Rasmus Wriedt Larsen
9ae3ea81ff
Python: Remove spurious results in stdlib
2024-02-14 14:47:28 +01:00
Rasmus Wriedt Larsen
d8fd457310
Python: Use helper predicate
...
Since the helper predicate had nice qldocs
2024-02-14 14:47:28 +01:00
Rasmus Wriedt Larsen
e7772f1062
Python: Use Unit class
2024-02-14 14:47:28 +01:00
Rasmus Wriedt Larsen
ad39b8c68b
Python: Accept .expected changes
2024-02-14 14:46:33 +01:00
erik-krogh
7c2465e7b7
add change-note
2024-02-14 13:53:43 +01:00
erik-krogh
a2bd45d0cb
apply suggestions from code review
2024-02-14 13:50:27 +01:00
Rasmus Wriedt Larsen
9399258e3b
Merge branch 'main' into amammad-python-bombs
2024-02-14 13:37:59 +01:00
Jeroen Ketema
46bc311111
C++: Support constexpr if in the IR
2024-02-14 13:37:56 +01:00
Tony Torralba
5ce35e47b9
Adjust a test case so that the key isn't considered dummy
...
(len < 4)
2024-02-14 13:06:31 +01:00
Ian Lynagh
48ea94ba23
Kotlin: Handle PsiSourceManager moving
2024-02-14 11:55:54 +00:00
Ian Lynagh
1b40b595fa
Kotlin: Handle forAllMethodsWithBody being removed
...
Per:
commit 28797a31b4d9b7f5c99d162ab19fc6b46f8e529d
Author: Alexander Udalov <alexander.udalov@jetbrains.com >
Date: Thu Feb 1 13:22:48 2024 +0100
JVM: refactor JvmDefaultMode, remove/rename some entries
[...]
- remove forAllMethodsWithBody because its behavior is now equivalent to
isEnabled
[...]
2024-02-14 11:55:54 +00:00
Óscar San José
cd00a4dacd
Merge pull request #15584 from jsoref/github-only
...
Limit xl runner jobs to github org
2024-02-14 12:49:07 +01:00
Asger F
75a95ffcd1
Merge pull request #15602 from asgerf/js/block-logical-and-flow
...
JS: Fix flow through &&
2024-02-14 12:29:40 +01:00
Tony Torralba
458bbb3581
Rename fwk module
2024-02-14 12:23:27 +01:00
Tony Torralba
16284fdd20
Discard sources that are obvious dummy values
2024-02-14 12:21:52 +01:00
Tony Torralba
a76de495e0
Simplify sanitizers
...
Use DataFlow::returnedWithError instead
2024-02-14 12:21:51 +01:00
Tony Torralba
6b74cb7e75
Remove unneeded $ANYVERSION
2024-02-14 12:21:51 +01:00
Tony Torralba
3fb422ca25
Split Jwt.qll into framework libraries, which makes more sense
2024-02-14 12:21:38 +01:00
Tony Torralba
8afaa231ee
Update go/ql/lib/semmle/go/security/Jwt.qll
2024-02-14 12:15:20 +01:00
Tony Torralba
304998d50e
Update go/ql/src/Security/CWE-798/HardcodedCredentials.ql
2024-02-14 12:15:20 +01:00
Tony Torralba
84d1d72497
Apply suggestions from code review
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-02-14 12:15:19 +01:00
Tony Torralba
750c8085cb
Remove duplicated main from tests
2024-02-14 12:15:19 +01:00
Tony Torralba
ba1faea630
Go: Promote go/hardcoded-key from experimental
2024-02-14 12:15:14 +01:00
Jeroen Ketema
337db6b29b
Merge pull request #15609 from jketema/destructors3
...
C++: Output the declaration entries used in range-based for-loops
2024-02-14 11:37:09 +01:00
Asger F
2172c4863f
Merge pull request #15380 from asgerf/js/endpoint-naming
...
JS: Add library for naming endpoints
2024-02-14 10:48:13 +01:00
Asger F
18db769d6d
JS: Update expected output
2024-02-14 10:45:51 +01:00
Asger F
bafe5e3d8e
JS: Add test case (with old expected data)
2024-02-14 10:45:51 +01:00
Anders Schack-Mulligen
393251dde6
Merge pull request #15582 from hvitved/dataflow/cache-viable-callable-ext
...
Data flow: Cache `viableCallableExt`
2024-02-14 10:31:43 +01:00
Óscar San José
96ed6597dd
Merge branch 'main' into github-only
2024-02-14 10:23:39 +01:00
Michael Nebel
bafea9190d
Merge pull request #15474 from michaelnebel/csharp/primaryconstructors
...
C# 12: Primary constructors.
2024-02-14 10:09:23 +01:00
Anders Schack-Mulligen
fb2d36ddac
Merge pull request #15451 from Marcono1234/marcono1234/java-assignment-doc
...
Java: Document which assignment type is covered by which class
2024-02-14 08:59:50 +01:00
Asger F
9a08c27ad4
JS: Change note
2024-02-13 22:43:41 +01:00
Jeroen Ketema
c79cc493e8
C++: Accept more test changes
2024-02-13 21:53:51 +01:00
Geoffrey White
0d6c141d72
Merge pull request #15607 from geoffw0/unsafeunpack
...
Swift: Trivial changes to swift/unsafe-unpacking
2024-02-13 20:49:57 +00:00
Jeroen Ketema
a3b3aa4f25
C++: Update tests after extractor changes
2024-02-13 21:31:21 +01:00
Jeroen Ketema
caf09e0735
C++: Update IR comment that no longer applies
2024-02-13 21:30:58 +01:00
Jeroen Ketema
b3aea0f893
C++: Do not print the qualifier of OverloadedPointerDereferenceExpr twice in PrintAST
2024-02-13 21:29:21 +01:00
Michael B. Gale
f7955db841
Merge pull request #15603 from github/mbg/go/fix-file-info-extraction
2024-02-13 20:02:13 +00:00
Jeroen Ketema
b776cbe668
Merge pull request #15597 from jketema/destructors2
...
C++: Update test results of `constexpr if` destructors
2024-02-13 19:59:19 +01:00
Geoffrey White
159080f133
Swift: Accept test changes.
2024-02-13 18:06:17 +00:00
Geoffrey White
65e3ae0c45
Swift: Move the two CWE-022 tests into a common directory.
2024-02-13 17:50:30 +00:00
Michael B. Gale
205847df64
Go: Add DummyFile class
2024-02-13 17:49:31 +00:00
Michael B. Gale
c6f4495ada
Go: Exclude dummy files from File
2024-02-13 17:46:41 +00:00
Geoffrey White
dfba6b97ac
Swift: Case consistency.
2024-02-13 17:45:55 +00:00
Geoffrey White
42e708b387
Swift: Tweak the change note.
2024-02-13 17:43:43 +00:00
Benjamin Rodes
5c508553f3
Efficiency improvement (force a better join order)
2024-02-13 09:42:08 -08:00
Asger F
f5c437694c
Update UselessConditional.expected
2024-02-13 18:31:24 +01:00
Asger F
f27fda801e
Update tests.expected
2024-02-13 18:30:23 +01:00
Geoffrey White
fd1314bea4
Merge pull request #14888 from maikypedia/maikypedia/swift-zip
...
Swift: Add Unsafe Unpacking Query (CWE-022)
2024-02-13 16:05:22 +00:00
Robert Marsh
7e23ccd383
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
2024-02-13 15:45:51 +00:00
Robert Marsh
128bc99f90
C++: delete some FIXMEs that turned out fine
2024-02-13 15:34:36 +00:00
Chris Smowton
7217dfa997
Merge pull request #15590 from github/dependabot/go_modules/go/extractor/extractor-dependencies-8b53c12dad
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2024-02-13 15:21:53 +00:00
Peter Stöckli
2f7b946c9f
Ruby: add sources on request object of Rails
2024-02-13 15:52:18 +01:00
Michael B. Gale
be521508c2
Go: Do not add dummy files to CompilationCompilingFilesTable
2024-02-13 14:21:07 +00:00
Michael B. Gale
5e08bf0dbf
Go: Add missing call to extractFileInfo
2024-02-13 14:20:45 +00:00
Mathias Vorreiter Pedersen
7a7e0334c0
Merge pull request #15601 from MathiasVP/revert-new-barrier-interface
...
C++: Revert #15528
2024-02-13 14:10:29 +00:00
Ian Lynagh
ac001c37bd
Merge pull request #15561 from igfoo/igfoo/kt2-tests
...
Kotlin 2: Accept more test changes
2024-02-13 14:02:45 +00:00
Asger F
7122a7502a
JS: Fix flow through &&
...
This is a long-standing bug we've been unable to fix due to noise from type inference.
2024-02-13 14:43:03 +01:00
Mathias Vorreiter Pedersen
fb4bd53ec5
Revert "Merge pull request #15528 from MathiasVP/flow-barrier-interface"
...
This reverts commit c5dc88345d , reversing
changes made to 781486172e .
2024-02-13 13:42:58 +00:00
Mathias Vorreiter Pedersen
cb7fe16ced
Revert "Merge pull request #15537 from MathiasVP/swap-also-clears-first-argument"
...
This reverts commit 23677b23c2 , reversing
changes made to c5dc88345d .
2024-02-13 13:42:58 +00:00
Tom Hvitved
bc8761c51b
Data flow: Cache viableCallableExt
2024-02-13 14:12:50 +01:00
Tom Hvitved
7c59c7b28c
C#: Update QLdoc
2024-02-13 14:00:26 +01:00
Tom Hvitved
7bdc2c57f0
C#: Simplify primaryConstructorParameterStore
2024-02-13 13:59:14 +01:00
Tom Hvitved
3f43f45437
C#: Assume captured variables are live at exit in SSA construction
2024-02-13 13:59:08 +01:00
Tom Hvitved
ebd6853194
C#: Avoid overlapping output in data flow test
2024-02-13 13:59:03 +01:00
Jeroen Ketema
f3e55a46ee
C++: Update test results of constexpr if destructors
2024-02-13 13:37:59 +01:00
Michael Nebel
91bbbe262d
C#: Address more review comments.
2024-02-13 13:15:17 +01:00
erik-krogh
d31bfc06c2
add type requirement to the new Uri sanitizers
2024-02-13 13:13:43 +01:00
erik-krogh
4dae8d0bb4
add host comparisons as a sanitizer for url-redirect
2024-02-13 13:13:43 +01:00
erik-krogh
f4dd3e9aa1
treat relative URLs as safe for url-redirects
2024-02-13 13:13:18 +01:00
erik-krogh
3f8de82ea3
add a sanitizer for List.Contains() in url-redirect
2024-02-13 13:13:06 +01:00
erik-krogh
59792808d4
add new url-redirect test file
2024-02-13 13:13:06 +01:00
Michael Nebel
8efe34942f
C#: Add indirect assignment example.
2024-02-13 12:02:25 +01:00
Mathias Vorreiter Pedersen
048b3727f5
Merge pull request #15587 from MathiasVP/fix-memset-model
...
C++: Fix `memset` model
2024-02-13 10:45:08 +00:00
Michael Nebel
eaf129d519
C#: Update expected test output.
2024-02-13 11:40:46 +01:00
Michael Nebel
69c0f0cb6a
C#: Address review comments.
2024-02-13 11:39:21 +01:00
Jeroen Ketema
565f8e852c
Merge pull request #15594 from jketema/destructors
...
C++: Add additional IR tests for destructors
2024-02-13 11:09:07 +01:00
Jeroen Ketema
fb072a5156
C++: Add additional IR tests for init statements
2024-02-13 10:44:24 +01:00
Jeroen Ketema
8aeb75675a
C++: Add constructor and destructor for vector to IR test
2024-02-13 10:39:27 +01:00
Chris Smowton
4e1167697e
Merge pull request #15589 from jsoref/avoid-always
...
Use `!cancelled` in qhelp-pr-preview workflow
2024-02-13 09:36:40 +00:00
Cornelius Riemenschneider
e08946ec8d
Merge pull request #15586 from github/criemen/bazel-python-language-pack
...
Python: Update BUILD.bazel files.
2024-02-13 10:19:12 +01:00
Jeroen Ketema
b509645e02
C++: Bump language version in IR tests to C++20
2024-02-13 10:18:31 +01:00
Erik Krogh Kristensen
062f16e618
Merge pull request #15519 from erik-krogh/cs-path
...
C#: Improve the `cs/path-injection` QHelp
2024-02-13 10:02:11 +01:00
Harry Maclean
6cc5c09769
Ruby: Simplify ErbOutputDirective
2024-02-13 08:38:16 +00:00
Harry Maclean
11040d628b
Ruby: Add changenote
2024-02-13 08:38:15 +00:00
Asger F
6598a669a1
JS: Use set literal
2024-02-13 09:30:35 +01:00
Asger F
543e183d99
JS: Describe 1-step aliasing rule
2024-02-13 09:29:15 +01:00
Asger F
baa3c35d6f
JS: Refactor aliasing relation
2024-02-13 09:24:00 +01:00
Tamás Vajk
de13ff6afd
Merge pull request #15577 from tamasvajk/feature/missing-nuget-sources
...
C# - Add default nuget feed if there's none
2024-02-13 09:18:32 +01:00
Max Schaefer
104a8d980c
Automodel: Make description of some negative characteristics more explicit.
2024-02-13 08:18:13 +00:00
dependabot[bot]
a3008083ea
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/tools` from 0.17.0 to 0.18.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-13 03:58:21 +00:00
Robert Marsh
b9785ea7b2
C++: autoformat
2024-02-13 01:07:41 +00:00
Robert Marsh
f791b0ebbf
C++: Model for smart pointer destructors
2024-02-13 01:00:46 +00:00
Robert Marsh
b6cf64cff3
C++: simplify TranslatedBlock::getLastChild
2024-02-13 00:46:53 +00:00
Robert Marsh
7d8872bb99
C++: Fix for multiple for-loop variables with destructors
2024-02-13 00:40:19 +00:00
Robert Marsh
6663420d39
C++: test for multiple for loop variables with destructors
2024-02-13 00:35:56 +00:00
Robert Marsh
b94c4a6e1b
C++: fix for destructor of while-loop condition
2024-02-13 00:13:22 +00:00
Robert Marsh
bac7e46b0f
C++: tests for destructors after a while-loop condition
2024-02-12 23:55:42 +00:00
Josh Soref
a128161746
Use !cancelled in qhelp-pr-preview workflow
2024-02-12 16:59:42 -05:00
Asger F
faefa056eb
Merge pull request #15507 from asgerf/shared/outbarrier-bugfix
...
Shared: fix a bug in stateful outbarriers
2024-02-12 21:44:49 +01:00
Tom Hvitved
15cf695188
C#: Fix various bad joins
2024-02-12 19:49:53 +01:00
Tom Hvitved
90f3670f3d
C#: Remove all DB stats
2024-02-12 19:49:29 +01:00
Mathias Vorreiter Pedersen
a799399639
C++: Accept test changes.
2024-02-12 16:51:25 +00:00
Mathias Vorreiter Pedersen
70c7c1a5e7
C++: Add flow from the fill character to the output pointer.
2024-02-12 16:51:16 +00:00
Mathias Vorreiter Pedersen
8635b5d316
C++: Add test with missing flow.
2024-02-12 16:44:38 +00:00
Cornelius Riemenschneider
27ebebc24b
Python: Update BUILD.bazel files.
...
This allows us to (later) build the whole python language pack with
bazel.
2024-02-12 17:10:35 +01:00
Paolo Tranquilli
a944443d39
Merge branch 'main' into redsun82/bzlmod
2024-02-12 16:03:50 +01:00
Rasmus Wriedt Larsen
cbb9a64bbb
Merge pull request #15457 from RasmusWL/psycopg
...
Python: Model the `psycopg` package
2024-02-12 15:59:16 +01:00
Paolo Tranquilli
c0eeb7a34e
Bazel: reference (and locally stub) internal module
2024-02-12 15:58:43 +01:00
Benjamin Rodes
091416131b
Removing 'const' specifier filtering after discussions with the team. We will test if this causes undesirable cases in DCA and then choose which approach is best.
2024-02-12 09:38:00 -05:00
Harry Maclean
3d9f9afa77
Merge pull request #15566 from hmac/hmac-actioncontroller-regex
...
Ruby: Fix ActionController path regex
2024-02-12 14:14:57 +00:00
Michael Nebel
68b920f330
C#: Update other tests expected output.
2024-02-12 15:09:36 +01:00
Harry Maclean
99497e5f3c
Merge pull request #15521 from hmac/hmac-ar-connection
...
Ruby: Recognise more ActiveRecord connections
2024-02-12 14:06:50 +00:00
Tony Torralba
b6385f7938
Merge pull request #15533 from JLLeitschuh/patch-5
...
Reduce severity of `java/relative-path-command`
2024-02-12 15:04:05 +01:00
Joe Farebrother
3a4a841844
Add change note + update severity
2024-02-12 14:01:27 +00:00
Joe Farebrother
16a7d68780
Add documentation
2024-02-12 13:58:01 +00:00
Joe Farebrother
2eb93b7a3b
Add unit tests
2024-02-12 13:49:45 +00:00
Joe Farebrother
d8985f9f5b
Move tests for local auth to a folder
2024-02-12 13:49:45 +00:00
Joe Farebrother
c79a3eb6ae
Add query for insecure key generation
2024-02-12 13:49:44 +00:00
Joe Farebrother
75a2b9415c
Merge pull request #15481 from joefarebrother/android-local-auth
...
Java: Add query for insecure local authentication
2024-02-12 13:48:53 +00:00
Tony Torralba
db2eb202ee
Merge pull request #15565 from atorralba/atorralba/java/open-redirect-sanitizer
...
Java: Add extension point and default sanitizer to Open Redirect query
2024-02-12 14:42:52 +01:00
Ian Lynagh
931b27f76c
Merge pull request #15573 from igfoo/igfoo/k2-more
...
Kotlin 2: Accept loc changes in library-tests/parameter-defaults/defaults.expected
2024-02-12 13:29:19 +00:00
Ian Lynagh
a7eac1100b
Merge pull request #15569 from igfoo/igfoo/kt2-accept
...
Kotlin 2: Accept more location changes
2024-02-12 13:29:10 +00:00
Harry Maclean
5af58d24e0
Ruby: Recognise raw Erb output as XSS sink
2024-02-12 13:28:44 +00:00
Paolo Tranquilli
53539226a8
Bazel: use internal codeql module
2024-02-12 14:27:55 +01:00
Michael Nebel
aed5080142
C#: Add primary constructor change note.
2024-02-12 13:27:40 +01:00
Michael Nebel
4083348b3e
C#: Add a primary constructor QL library test.
2024-02-12 13:27:39 +01:00
Michael Nebel
ff29679317
C#: Update expected test output.
2024-02-12 13:27:39 +01:00
Michael Nebel
42f4656667
C#: Data flow for primary constructors.
2024-02-12 13:27:39 +01:00
Michael Nebel
f5d4c49b16
C#: Add some more constructor dataflow tests.
2024-02-12 13:13:06 +01:00
Michael Nebel
86212b24ba
C#: Move constructor data flow tests to a separate folder.
2024-02-12 13:13:06 +01:00
Michael Nebel
afe3c5ea8d
C#: Re-arrange the code in constructor data flow test and update expected output.
2024-02-12 13:13:06 +01:00
Tamas Vajk
888f47c6c8
Remove cil=false extractor option from integration tests
2024-02-12 12:02:43 +01:00
Tamas Vajk
70b6ae6876
Add comments to nuget.config file restore
2024-02-12 11:59:19 +01:00
Asger F
8d3a19aaad
JS: Fix termination criteria
...
Previously it was theoretically possible to create a cycle of preferred predecessors, since badness had higher precedence than depth. We now require the preferred predecessor to have lower depth.
With this criteria we can remove the arbitray cap on badness.
2024-02-12 11:44:52 +01:00
Asger F
0fbe530d9e
JS: Fix some broken comments
2024-02-12 11:39:40 +01:00
Asger F
6d01ba67f7
JS: Check isPrivateLike in isExported instead
2024-02-12 11:39:29 +01:00
Erik Krogh Kristensen
1520305ae1
Merge pull request #15523 from erik-krogh/exclude-tagged
...
JS: exclude tagged template literals from `js/superfluous-trailing-arguments`
2024-02-12 11:31:18 +01:00
Joe Farebrother
d3fea4044e
Apply suggestions from documentation review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-02-12 10:27:56 +00:00
Josh Soref
6779c667f6
Limit xl runner jobs to github org
2024-02-12 05:00:49 -05:00
Paolo Tranquilli
19bb8fe22d
Bazel: use bzlmod
2024-02-12 10:55:40 +01:00
Nick Rolfe
b2ee5808f0
Merge pull request #15496 from github/nickrolfe/loc-fresh-ids
...
Tree-sitter extractors: use fresh IDs for locations
2024-02-12 09:54:09 +00:00
Tamas Vajk
5be3993405
Preserve nuget.config file casing after cleanup
2024-02-12 10:40:33 +01:00
Tamas Vajk
26cea33cc6
C# - Add default nuget feed if there's none
2024-02-12 10:40:33 +01:00
Tamas Vajk
933a8e648d
Add integration test for missing nuget package sources
2024-02-12 10:35:49 +01:00
Tony Torralba
cf7091ae5f
Merge branch 'main' into atorralba/java/open-redirect-sanitizer
2024-02-12 10:31:52 +01:00
Harry Maclean
51a5c2bbba
Ruby: Address doc review comments
2024-02-12 09:16:13 +00:00
Tony Torralba
e6623ebe4c
Add change note
2024-02-12 10:10:42 +01:00
Tony Torralba
5f729d57fa
Merge pull request #15578 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-02-12 09:24:05 +01:00
Tom Hvitved
b27b89bff7
Merge pull request #15567 from hvitved/csharp/cache-module
...
C#: Actually cache module `Cached`
2024-02-12 09:15:49 +01:00
Tom Hvitved
9634511ac5
Merge pull request #15489 from hvitved/csharp/lambda-field-flow
...
C#: Additional tracking of lambdas through fields and properties
2024-02-12 09:14:21 +01:00
Erik Krogh Kristensen
4d65e4e985
Merge pull request #15579 from github/dependabot/cargo/ql/chrono-0.4.34
...
Bump chrono from 0.4.33 to 0.4.34 in /ql
2024-02-12 08:47:22 +01:00
dependabot[bot]
3212f80bea
Bump chrono from 0.4.33 to 0.4.34 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.33 to 0.4.34.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.33...v0.4.34 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-12 03:38:19 +00:00
github-actions[bot]
3cba1764e2
Add changed framework coverage reports
2024-02-12 00:16:45 +00:00
Tom Hvitved
e75f7dd7f9
Merge pull request #15540 from hvitved/variable-capture-overwrite
2024-02-10 10:25:29 +01:00
Marcono1234
d814decc17
Ruby: Fix formatting in changelog
2024-02-10 00:23:57 +01:00
Robert Marsh
d1160f86e1
C++: Autoformat for named destructors in IR
2024-02-09 22:35:12 +00:00
Robert Marsh
1b571f8992
C++: Accept test changes
2024-02-09 22:32:08 +00:00
Geoffrey White
0c3aa7b7f2
C++: Add an inline test for interpretElement matching.
2024-02-09 18:57:05 +00:00
Geoffrey White
8bdb67cc15
C++: Allow member variables to be picked as input nodes.
2024-02-09 14:24:37 +00:00
Mathias Vorreiter Pedersen
4eae191430
C++: Accept test changes.
2024-02-09 14:07:57 +00:00
Mathias Vorreiter Pedersen
4728cf5a12
C++: Allow the 'x' in 'x = source()' to be marked as a sink in MaD.
2024-02-09 14:07:48 +00:00
Joe Farebrother
16aed18821
Address reviews - Elaborate on docs and update severity
2024-02-09 13:53:36 +00:00
Ian Lynagh
ab758d5f1e
Kotlin 2: Accept loc changes in library-tests/parameter-defaults/defaults.expected
2024-02-09 13:53:05 +00:00
Tom Hvitved
37d774176b
Ruby: Fix SSA inconsistency
2024-02-09 14:49:26 +01:00
Tom Hvitved
1ea7717714
Capture flow: Take overwrites in nested scopes into account
2024-02-09 14:49:23 +01:00
Tom Hvitved
0c43ad45b4
Ruby: Add another captured variable data flow test
2024-02-09 14:48:36 +01:00
Anders Schack-Mulligen
8fc4fae7d2
Java: Cache interpretElement.
2024-02-09 14:43:36 +01:00
Ian Lynagh
0547c877c2
Kotlin 2: Accept some location changes in library-tests/methods/exprs.expected
2024-02-09 13:34:56 +00:00
Mathias Vorreiter Pedersen
cd41a1ca8c
C++: Accept test changes.
2024-02-09 13:27:40 +00:00
Mathias Vorreiter Pedersen
3719e10ce8
C++: Add a case for global or namespace variables in 'interpretElement0'.
2024-02-09 13:27:32 +00:00
Mathias Vorreiter Pedersen
52a1d905f1
C++: Qualified import of 'cpp' to make the file compile.
2024-02-09 13:25:17 +00:00
Ian Lynagh
be4413ffc8
Kotlin 2: Accept changes in library-tests/methods/parameters.expected
...
These mostly make things consistent with Kotlin 1.
2024-02-09 13:19:26 +00:00
Ian Lynagh
b836260b9a
Kotlin 2: Accept some test changes
...
I'm not sure these are an improvement, but they bring Kotlin 2 back in
line with Kotlin 1.
2024-02-09 13:15:02 +00:00
Rasmus Lerchedahl Petersen
580e68d5de
python: add support for lower bound position
2024-02-09 13:51:16 +01:00
Anders Schack-Mulligen
566351a49a
Merge pull request #15549 from aschackmull/dataflow/empty-provenance
...
Dataflow: Add empty provenance column to PathGraph.
2024-02-09 12:58:09 +01:00
Ian Lynagh
1b91695934
Kotlin 2: Accept some location changes in library-tests/methods
2024-02-09 11:57:23 +00:00
Tom Hvitved
9785ce4936
C#: Actually cache module Cached
2024-02-09 12:29:56 +01:00
Max Schaefer
93990ec9df
Merge pull request #15486 from github/java/update-mad-decls-after-triage-2024-01-31T11-16-45
...
Java: Update MaD Declarations after Triage
2024-02-09 11:18:17 +00:00
Mathias Vorreiter Pedersen
a42c845b32
Merge pull request #15559 from MathiasVP/fix-constness-type
...
C++: Don't strip specifiers in `Node.getType`
2024-02-09 11:00:13 +00:00
Anders Schack-Mulligen
4fcb90298d
Dataflow: Add change note.
2024-02-09 11:32:08 +01:00
Anders Schack-Mulligen
088a0a54ba
Python: Add empty provenance column to expected files.
2024-02-09 11:32:08 +01:00
Anders Schack-Mulligen
817aa7655f
Python: Remove redundant IncludePostUpdateFlow and PhaseDependentFlow application.
2024-02-09 11:32:08 +01:00
Anders Schack-Mulligen
0eaf117f37
Kotlin: Add empty provenance column to expected files.
2024-02-09 11:32:08 +01:00
Anders Schack-Mulligen
7eb5e1833d
C++: Add empty provenance column to expected files.
2024-02-09 11:32:08 +01:00
Anders Schack-Mulligen
35a3aa0a09
Ruby: Add empty provenance column to expected files.
2024-02-09 11:32:08 +01:00
Anders Schack-Mulligen
228a61ead3
Swift: Add empty provenance column to expected files.
2024-02-09 11:32:07 +01:00
Anders Schack-Mulligen
3b8af1e52a
Go: Add empty provenance column to expected files.
2024-02-09 11:32:07 +01:00
Anders Schack-Mulligen
21a6520cd3
C#: Add empty provenance column to expected files.
2024-02-09 11:32:07 +01:00
Anders Schack-Mulligen
e9e445b2ba
Java: Add empty provenance column to expected files.
2024-02-09 11:32:00 +01:00
Mathias Vorreiter Pedersen
dd3d70134c
C++: Undo a change that wasn't actually necessary.
2024-02-09 10:28:24 +00:00
Anders Schack-Mulligen
b7d4a6926f
Dataflow: Add empty provenance column to PathGraph.
2024-02-09 11:27:30 +01:00
Joe Farebrother
f4b6a85a48
Fix typo in qldoc
2024-02-09 10:09:24 +00:00
Tony Torralba
4c0d535cc2
Merge pull request #12886 from atorralba/atorralba/java/path-injection-mad-sinks
...
Java: Refactor path injection sinks
2024-02-09 10:48:49 +01:00
Harry Maclean
3a90d78c36
Ruby: Fix Rails view file regex
...
This picks up non-nested template files correctly.
2024-02-09 09:41:43 +00:00
Tamás Vajk
d46028f552
Merge pull request #15542 from tamasvajk/feature/relative-line-pragma
...
C#: Try resolve relative paths in line mappings
2024-02-09 10:36:53 +01:00
Harry Maclean
48890b446d
Ruby: Add more actioncontroller tests
2024-02-09 09:31:35 +00:00
Max Schaefer
fb109672b3
Address more review feedback.
2024-02-09 09:21:30 +00:00
Tony Torralba
34f74869c8
Java: Add extension point and default sanitizer to Open Redirect query
2024-02-09 09:11:07 +01:00
Ian Lynagh
2852f09a1a
Kotlin: Accept test changes in library-tests/java-kotlin-collection-type-generic-methods
...
I'm not sure exactly what's going on here in general, but I've made a
ticket to remind us to come back and look at this whole area.
2024-02-08 17:44:38 +00:00
Dave Bartolomeo
31cb308d4c
Merge pull request #15560 from github/post-release-prep/codeql-cli-2.16.2
...
Post-release preparation for codeql-cli-2.16.2
2024-02-08 09:42:26 -08:00
Dave Bartolomeo
331355d23f
Fix accidental blank line
2024-02-08 12:26:46 -05:00
Dave Bartolomeo
ea004c44f2
Update CHANGELOG.md
...
Fix accidental blank line
2024-02-08 12:26:21 -05:00
Dave Bartolomeo
9190b109e1
Merge branch 'main' into post-release-prep/codeql-cli-2.16.2
2024-02-08 09:21:18 -08:00
github-actions[bot]
7a2332c1ff
Post-release preparation for codeql-cli-2.16.2
2024-02-08 17:17:43 +00:00
Mathias Vorreiter Pedersen
f7d1544ccf
C++: Fix Code Scanning errors.
2024-02-08 17:01:07 +00:00
Mathias Vorreiter Pedersen
1dfddaf9ab
C++: Also mark indirections of glvalue instructions as glvalue nodes.
2024-02-08 16:52:09 +00:00
Mathias Vorreiter Pedersen
4d01a93107
C++: Use 'getUnderlyingType' instead of 'getUnspecifiedType'.
2024-02-08 16:49:15 +00:00
Mathias Vorreiter Pedersen
78ce857ef2
C++: Add consistency test and accept consistency failures.
2024-02-08 16:16:24 +00:00
Dave Bartolomeo
753d78a695
Merge pull request #15557 from github/release-prep/2.16.2
...
Release preparation for version 2.16.2
2024-02-08 08:16:00 -08:00
Koen Vlaswinkel
e596862074
Merge pull request #15541 from github/koesie10/ruby-access-path-constructor-returnvalue
...
Ruby: Remove `ReturnValue` as access path for constructors
2024-02-08 16:25:34 +01:00
github-actions[bot]
36f01ff31a
Release preparation for version 2.16.2
2024-02-08 15:25:24 +00:00
Dave Bartolomeo
a1395d5094
Merge pull request #15556 from github/dbartol/revert-release-prep
...
Revert "Merge pull request #15522 from github/release-prep/2.16.2"
2024-02-08 07:22:25 -08:00
Benjamin Rodes
d4bc2ceb37
Minor efficiency improvements and comments.
2024-02-08 10:11:50 -05:00
Ian Lynagh
f50dab3d93
Kotlin 2: Accept loc changes in library-tests/interface-delegate
2024-02-08 14:45:47 +00:00
Dave Bartolomeo
a58dd45d0b
Revert "Merge pull request #15522 from github/release-prep/2.16.2"
...
This reverts commit c4c8cd6b34 , reversing
changes made to 525f27173d .
2024-02-08 09:28:34 -05:00
Dave Bartolomeo
92bd550c55
Merge pull request #15531 from github/post-release-prep/codeql-cli-2.16.2
...
Post-release preparation for codeql-cli-2.16.2
2024-02-08 05:58:17 -08:00
Max Schaefer
48105db5b0
Fix isNeutral predicates.
2024-02-08 13:22:53 +00:00
Max Schaefer
4b9443eb15
Properly recognise existing models involving subtypes.
...
If an existing source/sink model specifies `subtypes=True` we should apply it to endpoints on overriding methods.
2024-02-08 13:22:53 +00:00
Max Schaefer
a9c0fed4f5
Add test showing spurious sink candidate from method overriding a method for which we have a model.
2024-02-08 13:22:53 +00:00
Max Schaefer
02547d3839
Improve representation of implicit varargs arrays to more reliably filter out known flow steps.
2024-02-08 13:22:52 +00:00
Maiky
ed030bc617
Merge branch 'main' into maikypedia/swift-zip
2024-02-08 14:17:37 +01:00
Ian Lynagh
e0a5efef0a
Merge pull request #15544 from igfoo/igfoo/k2tests
...
Kotlin 2: Some test fixes
2024-02-08 12:57:58 +00:00
Koen Vlaswinkel
87eb1ab103
Ruby: Include ReturnValue and exclude self for constructors
2024-02-08 13:40:10 +01:00
Rasmus Lerchedahl Petersen
45bb4a0ee5
python: remove TaintStepFromSummary
...
as it should be covered by `SummarizedCallableFromModel`
Also move things around, to look more like the Ruby code.
2024-02-08 12:48:15 +01:00
Maiky
62bd3ac748
Merge branch 'main' into maikypedia/swift-zip
2024-02-08 12:29:46 +01:00
Rasmus Lerchedahl Petersen
5cb71ce7e5
python: remove a use of points-to
...
This is used by `Scope::isPublic` which in turn is called by the framework model for `setuptools`.
On my current quesry, this had a dramatic effect on the most expensive predicates:
Before
```
Most expensive predicates for completed query FindUses.ql:
time | evals | max @ iter | predicate
------|-------|--------------|----------
1m9s | 2933 | 123ms @ 422 | PointsTo::Expressions::equalityEvaluatesTo/4#ebe72212@cab7d3xr
43.1s | | | FlowSummaryImpl::Private::Steps::summaryLocalStep/3#900fb25e#ffb@8aa78a38
41.3s | 2936 | 2.1s @ 409 | PointsTo::InterProceduralPointsTo::scope_entry_value_transfer_from_earlier/4#acb2199d@cab7ddxr
30.2s | 2946 | 67ms @ 847 | PointsTo::PointsToInternal::multi_assignment_points_to/4#28782e93@cab7d0yr
29.7s | 2930 | 1.9s @ 30 | Extensions::ReModulePointToExtension.pointsTo_helper/1#a84effde@cab7dn4w
24.9s | 2933 | 84ms @ 414 | PointsTo::Expressions::inequalityEvaluatesTo/4#f0ecfab4@cab7d2xr
17.9s | 2582 | 306ms @ 31 | MRO::ClassListList.getItem/1#b6c27115#reorder_2_0_1@cab7dw6r
9.4s | 661 | 991ms @ 1 | SsaCompute::AdjacentUses::varBlockReaches/3#1824ad86@2b6af692
9.2s | 2738 | 26ms @ 664 | MRO::ClassList.containsSpecial/0#c967dabb#fb@cab7dg4w
8.9s | 2946 | 12ms @ 917 | PointsTo::Types::getBase/2#0ab04984@cab7du1w
7.4s | 2946 | 287ms @ 3 | PointsTo::PointsToInternal::points_to_candidate/4#0a587a42@cab7d80w
7.1s | 2934 | 14ms @ 2 | Constants::ConstantObjectInternal.attribute/3#6d9e12fc@cab7d6zr
6.8s | 2946 | 9ms @ 48 | PointsTo::InterProceduralPointsTo::callsite_points_to/4#72419c70@cab7dqxr
6.6s | 234 | 341ms @ 17 | ApiGraphs::API::Impl::rhs/3#2255afc6@a41b31w3
6.6s | 2946 | 86ms @ 5 | PointsTo::Types::six_add_metaclass/4#f926a4cb@cab7da0w
6.2s | 2930 | 341ms @ 30 | Extensions::RangeIterationVariableFact.pointsTo/3#662720c9#cpe#124@cab7di2w
5.9s | 287 | 61ms @ 4 | DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@cc7b56yn
5.8s | | | DataFlowImplCommon::LambdaFlow::viableParamNonLambda/3#3123cc52_201#join_rhs@415f35h0
5.6s | | | FlowSummaryImpl::Private::Steps::viableParam/4#49c13ab8@2c1fcdq1
5.3s | | | FlowSummaryImpl::Private::Steps::viableParam/4#49c13ab8@22590ca9
5.2s | 233 | 276ms @ 21 | ApiGraphs::API::Impl::use/3#e6c88b66@a41b30w3
5.1s | 2945 | 177ms @ 4 | PointsTo::PointsToInternal::pointsTo/4#d99f16c6@cab7dj0w
4.7s | | | Flow::ControlFlowNode.toString/0#dispred#e1af144b@410c23a7
4.6s | 277 | 2.2s @ 6 | DataFlowDispatch::getCallArg/5#21589076@cc7b5vxn
4.5s | | | DataFlowImplCommon::Cached::viableParam/3#61239ead@cc05a1fv
4.3s | | | DataFlowImplCommon::LambdaFlow::viableParamNonLambda/3#3123cc52@cb992b2h
4.1s | | | _AstExtended::AstNode.getLocation/0#dispred#6b4dcb62_10#join_rhs_DataFlowPublic::Node.getLocation/0#__#shared@6ae639js
4s | | | Files::Location.toString/0#dispred#7e7e0516@b72abbo2
3.7s | | | locations_ast_234501#join_rhs@0859685o
3.7s | 10 | 1.7s @ 1 | ObjectInternal::ObjectInternal.toString/0#dispred#0b2e9429@6e8a4yh7
3.6s | 2942 | 63ms @ 94 | PointsTo::InterProceduralPointsTo::call_points_to_from_callee/4#394022a8@cab7d90w
3.6s | 232 | 213ms @ 18 | ApiGraphs::API::Impl::trackDefNode/2#8e3c4e6d@a41b33w3
3.6s | 2933 | 7ms @ 884 | PointsTo::Types::getInheritedMetaclass/2#097d39df#bff@cab7dr1w
3.6s | 2946 | 1.3s @ 13 | PointsTo::PointsToInternal::ssa_node_refinement_points_to/4#8ea6486b@cab7dnxr
3.5s | 1319 | 387ms @ 3 | SsaCompute::SsaDefinitions::reachesEndOfBlock/4#214bd902@fce54web
3.5s | 1320 | 385ms @ 2 | SsaCompute::SsaDefinitions::reachesEndOfBlockRec/4#63bb2cd4@fce54xeb
3.4s | 4861 | 478ms @ 2 | SsaCompute::SsaComputeImpl::ssaDefReachesRank/4#f19c6fee@cc8515rd
3.3s | | | _AstExtended::AstNode.getLocation/0#dispred#6b4dcb62_10#join_rhs_DataFlowPublic::Node.getLocation/0#__#higher_order_body@47ba63n6
3.3s | | | DataFlowPublic::Node.toString/0#dispred#af9c307a@4d16e7m6
3.3s | 2946 | 28ms @ 3 | PointsTo::PointsToInternal::reachableEdge/3#d3f53c12@cab7do7w
2.9s | 233 | 110ms @ 19 | ApiGraphs::API::Impl::trackUseNode/2#a0b4384d@a41b32w3
2.8s | 31 | 2.2s @ 9 | _Class::Class.getAMethod/0#dispred#66416e47_DataFlowDispatch::findFunctionAccordingToMroKnownStartin__#antijoin_rhs@L6#cc7b5
2.8s | 2737 | 21ms @ 444 | MRO::ClassListList.removedClassParts/4#de59b06f#reorder_2_3_4_0_1@cab7d06w
2.8s | 1322 | 462ms @ 4 | SsaCompute::Liveness::liveAtExit/2#b6aa63f4@6fd4cx73
2.8s | 2946 | 187ms @ 5 | PointsTo::Expressions::builtinCallPointsTo/5#3aa7f48b@cab7dwwr
2.8s | 2939 | 41ms @ 7 | PointsTo::PointsToInternal::use_points_to/4#ff1d0edd@cab7df0w
2.7s | 2946 | 20ms @ 92 | PointsTo::Conditionals::evaluates/5#736734b2#fbffff#reorder_5_0_2_1_3_4@cab7dp5w
2.6s | 2946 | 152ms @ 5 | Constants::callToBool/2#0b9b1e8d@cab7dn7w
2.5s | 287 | 24ms @ 4 | DataFlowDispatch::resolveClassInstanceCall/3#6e09c292@cc7b53xn
2.4s | 2946 | 31ms @ 5 | PointsTo::AttributePointsTo::variableAttributePointsTo/5#60adcc49@cab7dpwr
[2024-02-08 10:44:37] Total evaluation times for this run:
* Wall-clock duration of evaluation run: 1231.1 seconds
* Total time spent evaluating predicates: 1167.1 seconds
```
After
```
Most expensive predicates for completed query FindUses.ql:
time | evals | max @ iter | predicate
------|-------|--------------|----------
41.6s | | | FlowSummaryImpl::Private::Steps::summaryLocalStep/3#900fb25e#ffb@85aaaac1
9.2s | 661 | 905ms @ 1 | SsaCompute::AdjacentUses::varBlockReaches/3#1824ad86@2b6af692
7.6s | 234 | 502ms @ 19 | ApiGraphs::API::Impl::rhs/3#2255afc6@ce6d11wc
6.7s | | | DataFlowImplCommon::LambdaFlow::viableParamNonLambda/3#3123cc52_201#join_rhs@fd1dc5mi
6s | 287 | 80ms @ 113 | DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@925826yr
5.7s | | | FlowSummaryImpl::Private::Steps::viableParam/4#49c13ab8@851052bl
5.6s | 233 | 289ms @ 21 | ApiGraphs::API::Impl::use/3#e6c88b66@ce6d10wc
5.4s | | | FlowSummaryImpl::Private::Steps::viableParam/4#49c13ab8@f2c42d17
4.8s | 277 | 2.4s @ 6 | DataFlowDispatch::getCallArg/5#21589076@92582vxr
4.7s | | | DataFlowImplCommon::Cached::viableParam/3#61239ead@ac08e0nf
4.7s | | | DataFlowImplCommon::LambdaFlow::viableParamNonLambda/3#3123cc52@82ff50ql
4.6s | | | Files::Location.toString/0#dispred#7e7e0516@b72abbo2
4.3s | | | Flow::ControlFlowNode.toString/0#dispred#e1af144b@410c23a7
4.2s | 232 | 249ms @ 19 | ApiGraphs::API::Impl::trackDefNode/2#8e3c4e6d@ce6d13wc
3.8s | | | _AstExtended::AstNode.getLocation/0#dispred#6b4dcb62_10#join_rhs_DataFlowPublic::Node.getLocation/0#__#shared@0ac73425
3.6s | 1319 | 354ms @ 1 | SsaCompute::SsaDefinitions::reachesEndOfBlock/4#214bd902@fce54web
3.6s | 1320 | 381ms @ 2 | SsaCompute::SsaDefinitions::reachesEndOfBlockRec/4#63bb2cd4@fce54xeb
3.4s | | | _AstExtended::AstNode.getLocation/0#dispred#6b4dcb62_10#join_rhs_DataFlowPublic::Node.getLocation/0#__#higher_order_body@9e946ea8
3.4s | 4861 | 474ms @ 2 | SsaCompute::SsaComputeImpl::ssaDefReachesRank/4#f19c6fee@cc8515rd
3.1s | 31 | 2.5s @ 9 | _Class::Class.getAMethod/0#dispred#66416e47_DataFlowDispatch::findFunctionAccordingToMroKnownStartin__#antijoin_rhs@L6#92582
3s | 53 | 114ms @ 48 | DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@9ab38jw0
3s | 233 | 126ms @ 20 | ApiGraphs::API::Impl::trackUseNode/2#a0b4384d@ce6d12wc
3s | | | locations_ast_234501#join_rhs@0859685o
3s | | | DataFlowPublic::Node.toString/0#dispred#af9c307a@a2145cqf
2.8s | 234 | 206ms @ 21 | _ApiGraphs::API::Impl::MkDef#51c2f877#prev_ApiGraphs::API::Impl::trackDefNode/1#7e78e336#prev_delta___#antijoin_rhs#1@L9#ce6d1
2.8s | 1322 | 447ms @ 4 | SsaCompute::Liveness::liveAtExit/2#b6aa63f4@6fd4cx73
2.7s | 230 | 176ms @ 28 | ApiGraphs::API::Impl::MkDef#51c2f877@ce6d1w9c
2.5s | 287 | 50ms @ 112 | DataFlowDispatch::resolveClassInstanceCall/3#6e09c292@925823xr
2.4s | 234 | 246ms @ 19 | _ApiGraphs::API::Impl::MkDef#51c2f877#prev_ApiGraphs::API::Impl::trackDefNode/1#7e78e336#prev_delta___#antijoin_rhs@L4#ce6d1
2.3s | | | TaintTrackingPrivate::localAdditionalTaintStep/2#a2ec8c9d@e31201hd
2.2s | 53 | 72ms @ 15 | DataFlowDispatch::TrackAttrReadInput::start/2#67f26627@96b28jwo
2.2s | | | SensitiveDataSources::SensitiveDataModeling::sensitiveString/1#fdc3ad40@41f6ee2g
2s | | | DataFlowImplCommon::Cached::viableParamArg/3#4c55eddb@8f7f25oq
2s | | | Flow::ControlFlowNode.getExprChild/1#e757d179#bbf@db51e8ed
1.9s | | | project#FlowSummaryImpl::Private::Steps::viableParam/4#49c13ab8#2@e36c2dr8
1.9s | | | DataFlowPublic::Node.hasLocationInfo/5#dispred#b79d995f@6e929dfv
1.7s | 15 | 433ms @ 1 | PoorMansFunctionResolution::poorMansFunctionTracker/2#75430e01@e5202dnv
1.7s | | | #ImportResolution::ImportResolution::allowedEssaImportStep/2#f4117c61Plus#swapped@60d9daea
1.7s | 29 | 633ms @ 6 | _Class::Class.getAMethod/0#dispred#66416e47_Function::Function.getName/0#dispred#033700ef_10#join_rh__#antijoin_rhs@L4#92582
1.5s | 233 | 79ms @ 24 | ApiGraphs::API::Impl::trackUseNode/1#1af3a9ea@ce6d16wc
1.5s | | | ApiGraphs::API::Impl::edge/3#8453bf65@1bd8a6ja
1.5s | | | ApiGraphs::API::Node.getAValueReachableFromSource/0#dispred#9a406fb1@5dbb806u
1.3s | 1323 | 178ms @ 13 | SsaCompute::Liveness::liveAtEntry/2#bab3ea7c@6fd4cw73
1.3s | | | SsaCompute::SsaComputeImpl::defUseRank/4#782a2f48@0f27919s
1.3s | | | DataFlowDispatch::LibraryCallable.getACall/0#dispred#66a01171#fb@96b65frd
1.3s | | | ApiGraphs::API::Node.getAValueReachableFromSource/0#dispred#9a406fb1_10#join_rhs@c1dd43nv
1.3s | | | FlowSummaryImpl::Private::SummaryNode.toString/0#dispred#d499e234@63bd684g
1.2s | | | DataFlowDispatch::LibraryCallable.getACall/0#dispred#66a01171#fb@eaebb27g
1.2s | | | _DataFlowPublic::Node#da3b6093_DataFlowPublic::Node.asExpr/0#dispred#2845197a_py_exprs#antijoin_rhs@fcd8c3kj
1.2s | | | #ImportResolution::ImportResolution::allowedEssaImportStep/2#f4117c61Plus#swapped@c3f634us
[2024-02-08 11:43:50] Total evaluation times for this run:
* Wall-clock duration of evaluation run: 636.9 seconds
* Total time spent evaluating predicates: 562.4 seconds
```
2024-02-08 12:20:56 +01:00
Anders Schack-Mulligen
bcfce56ef6
Merge pull request #15547 from aschackmull/csharp/contentdataflow
...
C#: Simplify, getASuccessor is pruned now.
2024-02-08 11:15:14 +01:00
Anders Schack-Mulligen
dfc9c4d079
C#: Simplify, getASuccessor is pruned now.
2024-02-08 10:36:55 +01:00
Michael Nebel
a54caeaf61
Merge pull request #15545 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-02-08 08:55:41 +01:00
Tamás Vajk
290c3454c8
Merge pull request #15535 from tamasvajk/buildless/winforms-usings
...
C# Add missing Windows Forms implicit usings
2024-02-08 08:20:05 +01:00
github-actions[bot]
070402d3ae
Add changed framework coverage reports
2024-02-08 00:15:53 +00:00
Tamas Vajk
1c7e6e769b
C#: Try resolve relative paths in line mappings
2024-02-07 23:48:58 +01:00
Benjamin Rodes
915aa94b13
Merge branch '51-2cppnon-constant-format-alter-not-const-source' of https://github.com/microsoft/codeql into 51-2cppnon-constant-format-alter-not-const-source
2024-02-07 14:15:40 -05:00
Benjamin Rodes
f12a1ecdf2
Simplifying the query.
2024-02-07 14:15:16 -05:00
Ben Rodes
2c962d51a9
Merge branch 'main' into 51-2cppnon-constant-format-alter-not-const-source
2024-02-07 10:57:31 -08:00
Benjamin Rodes
50134e644f
Merge branch '50-model-gettext-family-of-string-operations' into 51-2cppnon-constant-format-alter-not-const-source
...
# Conflicts:
# cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
2024-02-07 13:56:39 -05:00
Benjamin Rodes
9fc2405681
Updating non-const source logic and associated tests and expected files.
2024-02-07 13:54:56 -05:00
Robert Marsh
174966164d
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
2024-02-07 18:25:12 +00:00
Geoffrey White
a354ab84e9
C++: More robust InterpretNode.asCall.
2024-02-07 18:00:57 +00:00
Geoffrey White
e98485df7f
Update cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-02-07 17:53:22 +00:00
Ian Lynagh
ef8e6c8805
Kotlin 2: Accept loc changes in library-tests/exprs/funcExprs.expected
2024-02-07 16:40:40 +00:00
Ian Lynagh
8a93133b81
Kotlin 2: Accept loc changes in library-tests/exprs/unaryOp.expected
2024-02-07 16:21:49 +00:00
Ian Lynagh
c314cc8b68
Kotlin 2: Accept some location changes in library-tests/exprs/binop.expected
2024-02-07 15:56:10 +00:00
Henry Mercer
23921afd8d
Merge pull request #15532 from github/henrymercer/add-build-modes
...
Add supported build modes to extractor metadata
2024-02-07 15:54:44 +00:00
Mathias Vorreiter Pedersen
ebefcb8d35
Merge pull request #15513 from microsoft/50-model-gettext-family-of-string-operations
...
Added model for gettext variants.
2024-02-07 15:48:16 +00:00
Ian Lynagh
c731251e61
Kotlin 2: Remove an unused diagnostic matcher in library-tests/dataflow/func
2024-02-07 15:32:04 +00:00
Paolo Tranquilli
b105d0cf9a
Bazel/CMake: be more lenient with aquery
...
It turns out `bazel aquery` is not so well behaved on Windows, so we
need to accept that it reports errors and exits with an error.
2024-02-07 16:25:54 +01:00
Mathias Vorreiter Pedersen
0ee3c9987f
Merge pull request #15539 from MathiasVP/fix-ir-gen-for-conditional-decl-expr-without-var-access
...
C++: Fix IR generation when `ConditionDeclExpr` does not have an immediate `VariableAccess`
2024-02-07 15:19:16 +00:00
Ian Lynagh
3d1f9a79fb
Kotlin 2: Accept location changes in test-kotlin2/library-tests/data-classes
2024-02-07 15:17:40 +00:00
Benjamin Rodes
5866fc1fd0
Updating expected file.
2024-02-07 10:12:25 -05:00
Ian Lynagh
1c6108028b
Kotlin 2: Accept some location changes for arrays
2024-02-07 15:12:17 +00:00
maikypedia
ed052ccc26
Change note
2024-02-07 15:58:10 +01:00
Mathias Vorreiter Pedersen
df181f2dc4
C++: Accept more test changes.
2024-02-07 14:50:18 +00:00
Mathias Vorreiter Pedersen
23677b23c2
Merge pull request #15537 from MathiasVP/swap-also-clears-first-argument
...
C++: Also clear the `0`'th argument of `swap`
2024-02-07 14:35:31 +00:00
Mathias Vorreiter Pedersen
950b5f2235
C++: Block flow out of 'gettext' in 'cpp/non-constant-format'. ( #52 )
2024-02-07 09:10:12 -05:00
Tamas Vajk
4eeca02da6
Change file content string comparisons to be case invariant
2024-02-07 14:58:19 +01:00
maikypedia
1a499cf388
Update expected
2024-02-07 14:38:21 +01:00
Koen Vlaswinkel
8646bffaea
Ruby: Remove ReturnValue as access path for constructors
2024-02-07 14:35:19 +01:00
Maiky
7c0f80ff7d
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-02-07 14:32:42 +01:00
Maiky
7fb72ea81f
Redundant import
2024-02-07 14:30:16 +01:00
Maiky
c6fb303d63
Suggested changes
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-02-07 14:27:40 +01:00
Maiky
9ce75dac0e
Update UnsafeUnpackQuery.qll
2024-02-07 14:26:56 +01:00
Max Schaefer
082754a3d8
Remove problematic Kotlin model.
2024-02-07 13:21:59 +00:00
Mathias Vorreiter Pedersen
fe5eca4134
C++: Accept test changes.
2024-02-07 11:45:40 +00:00
Mathias Vorreiter Pedersen
edc7903c69
C++: Add a predicate for getting the 0'th child of a 'ConditionDeclExpr' without casting it to a 'VariableAccess' and use it in IR generation.
2024-02-07 11:45:13 +00:00
Mathias Vorreiter Pedersen
d0b0440427
C++: Add a testcase with failing IR generation.
2024-02-07 11:38:02 +00:00
Mathias Vorreiter Pedersen
4b046ad670
C++: Also clear the 0'th argument of 'swap'.
2024-02-07 10:31:18 +00:00
Paolo Tranquilli
9cfef6e42f
Bazel/CMake: auto detect all cc_binary/cc_test targets
2024-02-07 11:11:30 +01:00
Mathias Vorreiter Pedersen
c5dc88345d
Merge pull request #15528 from MathiasVP/flow-barrier-interface
...
C++: Add an interface for models to block flow
2024-02-07 09:58:08 +00:00
Tamas Vajk
b8dbb8c866
C# Add missing Windows Forms implicit usings
2024-02-07 10:41:21 +01:00
Michael B. Gale
781486172e
Merge pull request #15534 from github/dependabot/go_modules/go/extractor/extractor-dependencies-cd731e5d14
2024-02-07 08:35:11 +00:00
Michael Nebel
167a8f0e4a
Merge pull request #15459 from michaelnebel/csharp/spansummaries
...
C#: Add summaries for Span<T> and ReadOnlySpan<T>.
2024-02-07 08:54:19 +01:00
Tamás Vajk
54c9135936
Merge pull request #15518 from tamasvajk/feature/telemetry-dependency-manager
...
C#: Extract dependency restore telemetry data
2024-02-07 08:14:01 +01:00
dependabot[bot]
565426940c
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
Updates `golang.org/x/mod` from 0.14.0 to 0.15.0
- [Commits](https://github.com/golang/mod/compare/v0.14.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-07 03:32:07 +00:00
Robert Marsh
5653c3f972
C++: Update IR test expectations for named destructors
2024-02-06 21:04:52 +00:00
Jonathan Leitschuh
1484a169d7
Reduce severity of java/relative-path-command
...
Significantly reduces the severity of `java/relative-path-command` from 9.8 to 5.4
https://www.first.org/cvss/calculator/4.0#CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
2024-02-06 15:43:19 -05:00
Mathias Vorreiter Pedersen
3b43f848c9
Merge pull request #15529 from MathiasVP/delete-get-interval-updated-by-chi
2024-02-06 19:55:24 +00:00
Henry Mercer
e71f0fc1ba
Add supported build modes to extractor metadata
2024-02-06 19:51:13 +00:00
github-actions[bot]
b5139078d0
Post-release preparation for codeql-cli-2.16.2
2024-02-06 19:22:35 +00:00
Benjamin Rodes
80bf38d8cc
Initial working draft of non-const source refactor.
2024-02-06 14:20:01 -05:00
Geoffrey White
f6b412e1c9
C++: Use hasQualifiedName.
2024-02-06 17:48:42 +00:00
Benjamin Rodes
5e5fea8ef3
Merge branch '50-model-gettext-family-of-string-operations' into 51-2cppnon-constant-format-alter-not-const-source
2024-02-06 12:47:08 -05:00
Geoffrey White
d1e040e27c
C++: Bug fix for subclasses.
2024-02-06 17:45:14 +00:00
Mathias Vorreiter Pedersen
b68824a337
C#: Sync identical files.
2024-02-06 17:41:11 +00:00
Mathias Vorreiter Pedersen
7948911415
C++: Delete dead code.
2024-02-06 17:38:22 +00:00
Geoffrey White
a9b2876b71
C++: Delete commented out code.
2024-02-06 17:34:15 +00:00
Geoffrey White
66d8943c08
C++: Minor bug fix.
2024-02-06 17:20:14 +00:00
Erik Krogh Kristensen
43f1189615
Merge pull request #15526 from github/erik-krogh/fix-jndi-typo
...
Java: fix typo in JndiInjection.qhelp
2024-02-06 17:39:25 +01:00
Geoffrey White
25200b47ea
C++: Implement the namespace field.
2024-02-06 16:35:48 +00:00
Geoffrey White
a5527903e9
C++: Fix some mistakes in the MAD definitions for the tests.
2024-02-06 16:34:07 +00:00
Mathias Vorreiter Pedersen
f7fe84adb4
C++: Add change note.
2024-02-06 16:23:59 +00:00
Mathias Vorreiter Pedersen
21b9b3b87f
C++: Accept test changes.
2024-02-06 16:15:22 +00:00
Mathias Vorreiter Pedersen
359b6e14c6
C++: Block flow out of 'swap'.
2024-02-06 16:15:21 +00:00
Mathias Vorreiter Pedersen
e539aca337
C++: Add an interface for blocking flow out of functions that reach a certain argument.
2024-02-06 16:15:21 +00:00
Robert Marsh
40e06b7877
C++: suppress destructor calls on delete in IR generation
...
This avoids an issue with duplicated qualifiers that was causing broken control flow
2024-02-06 14:55:00 +00:00
Dave Bartolomeo
c4c8cd6b34
Merge pull request #15522 from github/release-prep/2.16.2
...
Release preparation for version 2.16.2
2024-02-06 06:21:14 -08:00
Erik Krogh Kristensen
879d882fa4
Java: fix typo in JndiInjection.qhelp
2024-02-06 15:17:30 +01:00
Benjamin Rodes
fc509c2cbe
Added additional gettext variant test.
2024-02-06 09:17:10 -05:00
Ben Rodes
0023291903
Update cpp/ql/src/change-notes/2024-02-05-gettext-dataflows.md
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-02-06 09:12:25 -05:00
Michael Nebel
2e4786c2ab
C#: Update flow summaries expected output test.
2024-02-06 14:06:07 +01:00
Michael Nebel
31b0da7639
C#: Update models for Except and DefaultIfEmpty.
2024-02-06 14:00:59 +01:00
Max Schaefer
705a377060
Address review comments.
2024-02-06 12:54:29 +00:00
Tamás Vajk
681c37d5fc
Code quality improvement
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-02-06 13:49:08 +01:00
Geoffrey White
7514037464
C++: Add test cases for MAD sources, sinks and summaries in namespaces.
2024-02-06 12:12:28 +00:00
Mathias Vorreiter Pedersen
33cefabe27
Update cpp/ql/src/CHANGELOG.md
2024-02-06 11:05:22 +00:00
Mathias Vorreiter Pedersen
6c1e3b1ba6
Update cpp/ql/src/change-notes/released/0.9.4.md
2024-02-06 11:02:15 +00:00
Michael Nebel
b41758fb39
C#: Update summaries for Enumerable.DefaultIfEmpty to target elements in the return value.
2024-02-06 11:24:02 +01:00
Koen Vlaswinkel
8361efca4d
Merge pull request #15503 from github/koesie10/ruby-access-paths
...
Ruby: Add query for access paths in model editor
2024-02-06 10:12:26 +01:00
Erik Krogh Kristensen
cec124c0be
Merge pull request #15480 from ockers/ockers/certification_not_certificate
...
False positive in SensitiveDataHeuristics - exclude certification from maybeCertificate() regex
2024-02-06 09:40:25 +01:00
erik-krogh
94b7bda3dc
exclude tagged template literals from js/superfluous-trailing-arguments
2024-02-06 09:36:30 +01:00
erik-krogh
4e176236e7
add a definition of user
2024-02-06 09:21:35 +01:00
erik-krogh
44fe34a37d
use the correct string type in the tainted-path examples
2024-02-06 09:20:27 +01:00
Tamas Vajk
e4a4e3af39
Update DB stats
2024-02-06 08:18:27 +01:00
Jim Ockers
01e8109b71
Merge branch 'main' into ockers/certification_not_certificate
2024-02-05 13:42:00 -08:00
Robert Marsh
8013c2a074
C++: QLDoc and naming updates for implicit destructors in IR
2024-02-05 19:14:56 +00:00
Robert Marsh
bbabf1dfcc
C++: add test for constructors in C++17 decl-in-if
2024-02-05 18:41:18 +00:00
Benjamin Rodes
256554df06
Added change log
2024-02-05 13:04:16 -05:00
Benjamin Rodes
5b2d15265f
gettext variant dataflow tests
2024-02-05 13:01:51 -05:00
github-actions[bot]
c1b35fbf47
Release preparation for version 2.16.2
2024-02-05 17:58:57 +00:00
Harry Maclean
f792b58421
Ruby: Recognise more ActiveRecord connections
2024-02-05 16:45:59 +00:00
Joe Farebrother
525f27173d
Merge pull request #15396 from joefarebrother/android-sensitive-ui-text
...
Java: Add query for sensitive data exposed in text fields
2024-02-05 15:47:03 +00:00
Koen Vlaswinkel
6a098120e3
Rename details to node
2024-02-05 16:33:29 +01:00
Koen Vlaswinkel
49dbad96f9
Switch from details string to DataFlow::Node
2024-02-05 16:33:01 +01:00
Ben Rodes
e47df5c7bc
Update NonConstantFormat.ql
...
Removed dead comment
2024-02-05 09:39:05 -05:00
Ben Rodes
88a06ffc66
Update GetText.qll
...
Fixing issue based on review.
2024-02-05 09:18:30 -05:00
Tamas Vajk
809da54229
Revert unneeded changes and simplify code
2024-02-05 14:21:13 +01:00
erik-krogh
a6b094cf53
delete the rendered markdown again
2024-02-05 13:54:13 +01:00
Tamas Vajk
24a7a7644d
Remove superfluous conjunct to improve code quality
2024-02-05 13:50:20 +01:00
Tamas Vajk
397d814c8b
Add change note
2024-02-05 13:48:28 +01:00
Tamas Vajk
5d08dc748d
Add DB upgrade downgrade script
2024-02-05 13:45:31 +01:00
Tamas Vajk
c2c7826936
C#: Extract dependency restore telemetry data
2024-02-05 13:09:04 +01:00
erik-krogh
a240618ae4
generate the new rendered markdown
2024-02-05 13:09:02 +01:00
erik-krogh
8160291be1
copy (and adjust) the path-injection QHelp from Java to C#
2024-02-05 13:08:44 +01:00
Harry Maclean
03ab3c1a5d
Ruby: Fix title underline
2024-02-05 11:15:53 +00:00
Harry Maclean
6748f6e5c7
Ruby: Add docs for MaD
2024-02-05 11:07:23 +00:00
erik-krogh
9dfac3a4cc
move qhelp samples to an examples folder
2024-02-05 11:20:24 +01:00
erik-krogh
b8dc633864
add cs/path-injection as markdown to make nicer diffs
2024-02-05 11:16:16 +01:00
Tony Torralba
6fbbb82f68
Merge pull request #15517 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-02-05 08:45:57 +01:00
github-actions[bot]
ee5df7bf58
Add changed framework coverage reports
2024-02-05 00:16:44 +00:00
Jim Ockers
e477909200
Merge branch 'main' into ockers/certification_not_certificate
2024-02-02 15:39:29 -08:00
Benjamin Rodes
e8587d060d
Removing comments and formatting.
2024-02-02 16:23:14 -05:00
Benjamin Rodes
9577c35d85
Incremental update to NonConstantFormat.ql
2024-02-02 16:06:59 -05:00
James Ockers
9f7f9fcc6e
Updating change-notes to reflect what will be the visible change to end users
2024-02-02 11:38:17 -08:00
Robert Marsh
2d010f69c6
C++: Test for destructors in declaration as if condition
2024-02-02 17:39:27 +00:00
Robert Marsh
984c7ab85a
C++: test for declarations in if statement
2024-02-02 17:39:26 +00:00
Robert Marsh
4513fd1b52
C++: test for destructors in range-based for
2024-02-02 17:39:26 +00:00
Robert Marsh
820f4a5571
C++: custom destructor handling for for loops
2024-02-02 17:39:23 +00:00
Robert Marsh
85d1d079c8
C++: Add implicit named destructosrs to the IR CFG
2024-02-02 17:36:02 +00:00
Joe Farebrother
596f48ca95
Add change note
2024-02-02 17:35:07 +00:00
Joe Farebrother
5022adba56
Fixes to qhelp example
2024-02-02 17:26:00 +00:00
Joe Farebrother
3878192810
Apply suggestions from documentation review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-02-02 17:21:23 +00:00
Joe Farebrother
71852868ac
Add case for androidx.biometric api
2024-02-02 17:19:20 +00:00
Robert Marsh
3a404cec67
C++: Add getLastInstruction to IR generation
2024-02-02 17:10:47 +00:00
Benjamin Rodes
022276badc
Added model for gettext variants.
2024-02-02 12:05:52 -05:00
Robert Marsh
47720e0998
C++: generate instructions for destructor calls in IR
2024-02-02 17:05:40 +00:00
Ian Lynagh
643817e74e
Merge pull request #15477 from igfoo/igfoo/kot_path_trans
...
Kotlin: Add path transformer support
2024-02-02 15:34:14 +00:00
Mathias Vorreiter Pedersen
8d53bce842
Merge pull request #15476 from geoffw0/preprocblock
...
C++: Add PreprocBlock.qll library
2024-02-02 15:06:17 +00:00
Nick Rolfe
514a92d5bd
Tree-sitter extractors: use fresh IDs for locations
...
Since locations for any given source file are never referenced in any
TRAP files besides the one for that particular source file, it's not
necessary to use global IDs. Using fresh IDs will reduce the size of the
ID pool (both on disk and in memory) and the speed of multi-threaded
TRAP import.
The one exception is the empty location, which still uses a global ID.
2024-02-02 15:06:10 +00:00
Joe Farebrother
2a00375bb7
Add documentation
2024-02-02 14:34:43 +00:00
Max Schaefer
21c0422dc7
Merge pull request #15499 from github/max-schaefer/automodel-functional-interface-expr
...
Automodel: Do not consider `@FunctionalInterface`-typed expressions as candidates.
2024-02-02 14:28:41 +00:00
Michael Nebel
4acce3276a
C#: Update FlowSummaries expected output test.
2024-02-02 14:47:45 +01:00
Michael Nebel
f6e3027321
C#: Add summaries for Span<T> and ReadOnlySpan<T> extension methods.
2024-02-02 14:47:45 +01:00
Michael Nebel
91d844316a
C#: Add some tests with expected output.
2024-02-02 14:47:45 +01:00
Michael Nebel
7f5d2e1f44
C#: Update flowsummaries expected output.
2024-02-02 14:47:44 +01:00
Michael Nebel
6ff22622ca
C#: Add summaries for Span<T> and ReadOnlySpan<T>.
2024-02-02 14:47:44 +01:00
Jeroen Ketema
6b13a8c568
Merge pull request #15504 from MathiasVP/block-summary-flow-out-of-strdup-and-friends
...
C++: Block summary flow through `strdup` and friends
2024-02-02 14:47:05 +01:00
Anders Schack-Mulligen
f631c01fe2
Merge pull request #15511 from aschackmull/java/adjust-mad-abstractstringbuilder
...
Java: Remove two redundant models implied by CharSequence models.
2024-02-02 14:45:06 +01:00
Michael Nebel
bf94a75698
Merge pull request #15502 from michaelnebel/csharp/refstructdataflow
...
C#: Inter-procedural dataflow for `ref` structs when used as arguments.
2024-02-02 14:44:51 +01:00
Koen Vlaswinkel
f83d2a7d55
Ruby: Avoid using toString where possible
2024-02-02 14:18:21 +01:00
Koen Vlaswinkel
ac1ebf27a7
Ruby: Rename suggestion predicates
2024-02-02 14:18:16 +01:00
Tom Hvitved
6df313b9d1
Merge pull request #15509 from hvitved/csharp/node-reuse-dependency-fetching
...
C#: Disable msbuild node reuse in dependency fetcher
2024-02-02 13:54:53 +01:00
Geoffrey White
72948cbc46
C++: Remove all cached tags.
2024-02-02 12:23:06 +00:00
Anders Schack-Mulligen
49b00f3842
Java: Remove two redundant models implied by CharSequence models.
2024-02-02 13:17:26 +01:00
Mathias Vorreiter Pedersen
439d3d2438
C++: Add tests with higher level of indirection.
2024-02-02 12:09:46 +00:00
Rasmus Lerchedahl Petersen
3b1751dc8a
Update supported versions
2024-02-02 11:45:21 +01:00
Mathias Vorreiter Pedersen
0729c602c5
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2024-02-02 10:39:40 +00:00
Rasmus Lerchedahl Petersen
f433039a25
Add change note
2024-02-02 11:23:35 +01:00
Rasmus Lerchedahl Petersen
f275531542
Add support for TS 5.4-beta
2024-02-02 11:03:44 +01:00
Geoffrey White
56538472cf
C++: Update the change note.
2024-02-02 09:55:44 +00:00
Geoffrey White
7c37be2e88
C++: Address implicit this.
2024-02-02 09:49:13 +00:00
Mathias Vorreiter Pedersen
b0393287cd
Merge pull request #15421 from jketema/unique-function-fix
...
C++: Ensure that only one Function exists for every function - take 2
2024-02-02 09:42:32 +00:00
Tom Hvitved
fa3130cc95
C#: Disable msbuild node reuse in dependency fetcher
2024-02-02 10:15:33 +01:00
Tamás Vajk
5ab4ed1b3b
Merge pull request #15505 from tamasvajk/feature/improve-logs
...
C#: Improve messages in buildless extraction logs
2024-02-02 09:22:17 +01:00
Mathias Vorreiter Pedersen
6f5ed9ad3b
C++: Accept test changes.
2024-02-01 20:15:15 +00:00
Mathias Vorreiter Pedersen
5ad3e97798
C++: Fix TODO by blocking summary flow through functions that don't preserve identity.
2024-02-01 20:15:15 +00:00
Asger F
8a2485a22f
JS: Address some comments
2024-02-01 20:54:27 +01:00
Ian Lynagh
68f267798e
Kotlin: Add support for path transformers
2024-02-01 18:07:47 +00:00
Geoffrey White
649af822fd
C++: Fix the issue with missing return kinds when function bodies are not in the database.
2024-02-01 17:04:20 +00:00
Joe Farebrother
88c2ccbecf
Generate stubs
2024-02-01 16:59:50 +00:00
Joe Farebrother
5d1edd45c5
Add unit tests
2024-02-01 16:56:20 +00:00
Geoffrey White
5caa49aeab
C++: Remove unused case for now, and add QLDoc.
2024-02-01 15:51:50 +00:00
Tamas Vajk
7b554636ae
C#: Improve messages in buildless extraction logs
2024-02-01 16:45:59 +01:00
Koen Vlaswinkel
8853acb4dd
Ruby: Add query for access paths in model editor
2024-02-01 16:20:00 +01:00
Jeroen Ketema
6db68c067f
C++: Update stats file
2024-02-01 16:12:53 +01:00
Jeroen Ketema
05e78f14a4
C++: Add upgrade and downgrade scripts
2024-02-01 16:12:53 +01:00
Jeroen Ketema
a79754b696
C++: Resolve functions using complete mangled names
2024-02-01 16:12:53 +01:00
Jeroen Ketema
972d86c0a0
C++: Add column to mangled_name table with completeness information
2024-02-01 16:12:53 +01:00
Mathias Vorreiter Pedersen
1ac75def2b
C++: Add another testcase with spurious summary flow.
2024-02-01 15:11:52 +00:00
Joe Farebrother
9098428c2a
Add security severity
2024-02-01 14:28:14 +00:00
Michael Nebel
551a7f9577
C#: Update expected test output.
2024-02-01 15:04:06 +01:00
Michael Nebel
9191acc412
C#: Prevent flow out of non ref fields in ref structs used as arguments.
2024-02-01 15:04:06 +01:00
Michael Nebel
4a89cbe8ea
C#: Add postupdate nodes for arguments of struct type.
2024-02-01 15:04:06 +01:00
Michael Nebel
4dfeff38f9
C#: Add dataflow field test for ref structs with ref and ordinary fields.
2024-02-01 15:04:06 +01:00
Mathias Vorreiter Pedersen
2bea0adb92
C++: Solve non-monotonic issue by unfolding dataflow-related predicates until we get to the SSA implementations of them.
2024-02-01 13:14:02 +00:00
Geoffrey White
cfc1a3db22
C++: Document Node0Impl, remove a debug change.
2024-02-01 13:13:50 +00:00
Michael B. Gale
73d0b7ef49
Merge pull request #15492 from github/mbg/go/include-versions-in-newer-diagnostic
...
Go: Include versions in newer Go version needed diagnostic
2024-02-01 12:22:27 +00:00
Tom Hvitved
8972133d4b
Merge pull request #15498 from hvitved/ruby/ctx-sensitivity-test
...
Ruby: Add another dataflow test
2024-02-01 12:46:53 +01:00
Henti Smith
16e62e6649
Merge pull request #15475 from github/henti/update_dotnet
...
Updated dotnet version to 8.0.101
2024-02-01 11:25:21 +00:00
Max Schaefer
e47b021050
Do not consider expressions as candidates whose type is annotated with @FunctionalInterface.
2024-02-01 11:04:14 +00:00
Tom Hvitved
bfe4a4bf0b
C#: Additional tracking of lambdas through fields and properties
2024-02-01 11:51:00 +01:00
Tom Hvitved
817d04c087
C#: Add more delegate flow tests
2024-02-01 11:51:00 +01:00
Tom Hvitved
5080077038
Merge pull request #15484 from hvitved/csharp/qualified-delegate-extraction-fix
...
C#: Fix extraction of qualified delegate calls
2024-02-01 11:50:09 +01:00
Tom Hvitved
d1ed317832
C#: Add tests for qualified delegate pointer calls
2024-02-01 10:59:05 +01:00
Tom Hvitved
792f302bd4
Ruby: Add another dataflow test
2024-02-01 10:52:06 +01:00
Koen Vlaswinkel
ce4d8d6b51
Merge pull request #15490 from github/koesie10/ruby-model-constructor-on-new
...
Ruby: Model constructors in endpoint query on new instead of initialize
2024-02-01 09:31:49 +01:00
Tamás Vajk
1478709382
Merge pull request #15491 from tamasvajk/feature/node-reuse-autobuild
...
C#: Disable msbuild node reuse in autobuild
2024-02-01 09:26:32 +01:00
Asger F
aa5cccdddd
JS: Make sinkHasPrimaryName public
2024-01-31 20:39:25 +01:00
Michael B. Gale
90eba711a3
Go: Include versions in newer Go version log message
2024-01-31 17:45:58 +00:00
Harry Maclean
06334eee2e
Merge pull request #14554 from maikypedia/maikypedia/insecure-randomness
...
Ruby: Add Insecure Randomness Query
2024-01-31 17:16:32 +00:00
Tamas Vajk
a486481453
Fix integration test result after merge
2024-01-31 16:20:06 +01:00
Tamas Vajk
4608550e48
C#: Disable msbuild node reuse in autobuild
2024-01-31 16:14:40 +01:00
Tamas Vajk
3d25ebc13c
Revert "C#: Add /nodeReuse:false to autobuild build command"
...
This reverts commit bcee901fbd .
2024-01-31 16:12:21 +01:00
Henti Smith
96f366f819
Updated version from PR#15472
2024-01-31 14:07:22 +00:00
Michael B. Gale
84baea5df2
Go: Include versions in newer Go version needed diagnostic
2024-01-31 13:29:53 +00:00
Koen Vlaswinkel
d5f0a5ce72
Use predicate for isConstructor
2024-01-31 14:19:14 +01:00
Tamas Vajk
bcee901fbd
C#: Add /nodeReuse:false to autobuild build command
2024-01-31 14:12:49 +01:00
Koen Vlaswinkel
c1aaf5a574
Ruby: Model constructors in endpoint query on new
2024-01-31 13:54:48 +01:00
Tom Hvitved
e7676a00d2
Merge pull request #15370 from hvitved/ruby/erb-flow
...
Ruby: Model flow through `ViewComponent` render methods
2024-01-31 13:24:10 +01:00
Tom Hvitved
c74bc68287
C#: Fix extraction of qualified delegate calls
2024-01-31 13:21:16 +01:00
Max Schaefer
ab6cea14c8
Fix missing quotes.
2024-01-31 11:49:25 +00:00
Joe Farebrother
9130603334
Address reviews - use SimpleTypeSanitizer and alter qldoc style
2024-01-31 11:31:25 +00:00
Max Schaefer
6c6f402fa5
Merge branch 'main' into java/update-mad-decls-after-triage-2024-01-31T11-16-45
2024-01-31 11:29:33 +00:00
Max Schaefer
ad8038bade
Update MaD Declarations after Triage
2024-01-31 11:28:10 +00:00
Harry Maclean
abf015b142
Merge pull request #15485 from github/koesie10/ruby-model-only-relevant-types
...
Ruby: Only model relevant files for type models
2024-01-31 11:23:40 +00:00
Henti Smith
51f4179b77
Merge branch 'main' into henti/update_dotnet
2024-01-31 11:06:23 +00:00
Koen Vlaswinkel
817fd8c097
Ruby: Move TestFile to modeling Util module
...
The TestFile class in the ModelEditor module is more accurate than the
existing RelevantFile class in the Util module, so this moves the
TestFile class to Util and redefines RelevantFile in terms of the
TestFile.
2024-01-31 11:53:30 +01:00
Koen Vlaswinkel
b51379b533
Ruby: Only model relevant files for type models
2024-01-31 11:30:16 +01:00
Tamás Vajk
73f96fb66e
Merge pull request #15472 from tamasvajk/feature/compiler-args
...
C#: Extract expanded compiler arguments
2024-01-31 11:26:07 +01:00
Tom Hvitved
c21bf5d82c
C#: Add tests for qualified delegate calls
2024-01-31 11:22:35 +01:00
Mathias Vorreiter Pedersen
4b5a203b46
Merge pull request #15463 from microsoft/42-false-positive-cpp-uninitializedlocal
...
False positive fix for cpp/uninitialized-local
2024-01-31 09:31:31 +00:00
Harry Maclean
a298a395e6
Merge pull request #15473 from github/koesie10/ruby-model-only-public-methods
...
Ruby: Only generate models for public methods
2024-01-31 09:27:27 +00:00
Mathias Vorreiter Pedersen
f3eac550c3
Merge pull request #15461 from MathiasVP/propagate-edge-kinds
...
C++: Support function calls throwing exceptions in the IR
2024-01-31 09:25:46 +00:00
Michael Nebel
e575e97eb9
C#: Update cil attribute expected output.
2024-01-31 10:08:55 +01:00
Tamás Vajk
1d56a8a924
Apply suggestions from code review
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2024-01-31 09:46:57 +01:00
Michael Nebel
9a6751a6dd
C#: Update the RuntimeFrameworkVersion to 8.0.1.
2024-01-31 09:27:37 +01:00
Tamas Vajk
dabe63ce8b
Add change note
2024-01-31 08:44:43 +01:00
Tamas Vajk
1d525dd06c
Add new DB stats file
2024-01-31 08:32:17 +01:00
Tamas Vajk
8008152199
List compiler /analyzer arguments in cs/telemetry/extraction-information
2024-01-31 08:32:16 +01:00
Tamas Vajk
fb4315f1fc
Add DB upgrade/downgrade folders
2024-01-31 08:32:16 +01:00
Tamas Vajk
fddbb1a722
C#: Extract expanded compiler arguments
2024-01-31 08:32:16 +01:00
Tamas Vajk
0196d808c7
Update expected test results in integration tests
2024-01-31 08:30:43 +01:00
James Ockers
0f1e21aa09
Adding per-language change-notes
2024-01-30 17:28:34 -08:00
James Ockers
0ae1268f58
Add change-note
2024-01-30 13:31:35 -08:00
James Ockers
eb5e0123d6
exclude certification from maybeCertificate() regexes
2024-01-30 13:16:18 -08:00
Harry Maclean
4cfdf8b7a3
Ruby: Add test case for view without ERB template
2024-01-30 20:30:59 +01:00
Tom Hvitved
803513acc6
Add change note
2024-01-30 20:30:58 +01:00
Tom Hvitved
d2d017dd64
Ruby: Model flow through ViewComponent render methods
2024-01-30 20:30:58 +01:00
Tom Hvitved
817a2b71a8
Add more tests
2024-01-30 20:30:58 +01:00
Harry Maclean
557b49cfc5
Ruby: Add basic modeling for ViewComponent
2024-01-30 20:30:58 +01:00
Harry Maclean
5b3a2b35b7
Update expected file
2024-01-30 20:30:58 +01:00
Harry Maclean
75a37486c9
Add WIP query for erb flow
2024-01-30 20:30:58 +01:00
Harry Maclean
bf3b86b402
Add test for erb flow
2024-01-30 20:30:58 +01:00
Tom Hvitved
2d95ac9d5f
Merge pull request #15468 from hvitved/ruby/ctx-sensitivity-rework
2024-01-30 20:27:43 +01:00
Arthur Baars
4591560692
Merge pull request #14544 from p-/p--oj-ox-unsafe-deser
...
Ruby: additional unsafe deserialization sinks for ox and one for oj
2024-01-30 19:28:32 +01:00
Geoffrey White
1b433c7af3
C++: Add QLDoc comments.
2024-01-30 17:54:28 +00:00
Ian Lynagh
2eb9b61412
Kotlin: Add a test for path transformers
2024-01-30 17:40:43 +00:00
Geoffrey White
c29d0b78ce
C++: Add top of file doc comment.
2024-01-30 17:29:18 +00:00
Geoffrey White
8b2888c2de
C++: Change note.
2024-01-30 17:24:05 +00:00
Joe Farebrother
8bd79908a6
Implement local auth query
2024-01-30 16:49:55 +00:00
Geoffrey White
4ae8a9a6c4
C++: Add PreprocBlock tests.
2024-01-30 16:47:35 +00:00
Peter Stöckli
fb075a9e88
Rename 2023-10-19-unsafe-deserialization-sinks.md to 2024-01-30-unsafe-deserialization-sinks.md
2024-01-30 17:31:33 +01:00
Henti Smith
612256b760
Updated dotnet to 8.0.101
...
This is a corresponding PR to https://github.com/github/semmle-code/pull/48786
2024-01-30 16:23:07 +00:00
Asger F
19ba9fed99
Handle externs
2024-01-30 17:13:02 +01:00
Asger F
1737ba1a6b
JS: Add library for naming endpoints
2024-01-30 16:36:51 +01:00
Sid Shankar
f557110d9b
Merge pull request #15465 from sidshank/sidshank/rename-file-name-for-extracted-files-diagnostic
...
JS/TS/Python/Ruby: Renames diagnostic query files and tests
2024-01-30 10:19:00 -05:00
Koen Vlaswinkel
0442631c68
Ruby: Only generate models for public methods
2024-01-30 16:07:34 +01:00
Rasmus Wriedt Larsen
c265c15f3f
Merge pull request #15398 from RasmusWL/html-escape
...
Python: Add `html.escape` as HTML sanitizer
2024-01-30 16:06:01 +01:00
Koen Vlaswinkel
8aa3542d13
Merge pull request #15470 from github/koesie10/add-summary-neutral-ruby-supported
...
Ruby: Correctly report supported status of summary and neutral models
2024-01-30 15:46:45 +01:00
Peter Stöckli
1947dee46a
Merge branch 'main' into p--oj-ox-unsafe-deser
2024-01-30 15:33:39 +01:00
Benjamin Rodes
1a044fbbde
Merge branch '42-false-positive-cpp-uninitializedlocal' of https://github.com/microsoft/codeql into 42-false-positive-cpp-uninitializedlocal
2024-01-30 09:22:51 -05:00
Benjamin Rodes
f58f77de82
PR change suggestions.
2024-01-30 09:22:22 -05:00
Peter Stöckli
9596aebee3
Format: getValue now on one line
2024-01-30 15:22:16 +01:00
Ben Rodes
8c04bbfb57
Update cpp/ql/src/change-notes/2024-01-29-uninitialized-local-false-positive.md
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-01-30 09:19:49 -05:00
Peter Stöckli
3c8bc96ab5
replace occurence of AssignExprCfgNode for Oj as well
2024-01-30 15:17:37 +01:00
Peter Stöckli
e87effc18c
Apply suggestions from code review
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2024-01-30 15:14:35 +01:00
Harry Maclean
e5ba8fe625
Merge pull request #15467 from hmac/hmac-and-barrier
...
Ruby: Block flow from LHS of && expressions
2024-01-30 14:02:39 +00:00
Koen Vlaswinkel
b32071999b
Ruby: Correctly report supported status of summary and neutral models
2024-01-30 15:00:13 +01:00
Tony Torralba
e2bf9ea2eb
Consider File.exists() et al a path-injection sink
2024-01-30 14:51:36 +01:00
Geoffrey White
af17ae236f
C++: Autoformat.
2024-01-30 13:47:11 +00:00
Geoffrey White
310c78d1e7
C++: Add PreprocBlock.qll library.
2024-01-30 13:47:07 +00:00
Asger F
6cfdd7aec4
JS: Add InlineExpectationsTest
2024-01-30 13:20:57 +01:00
Asger F
8930ce74af
JS: Do not view packages as nested in a private package
2024-01-30 13:20:57 +01:00
Asger F
2d8d11fa78
JS: Restrict type-only exports in API graphs
2024-01-30 13:20:57 +01:00
Asger F
0e0fb0e52d
JS: Remove API graph edge causing ambiguity
2024-01-30 13:20:56 +01:00
Asger F
e441dd472b
JS: Expose hasBothNamedAndDefaultExports()
2024-01-30 13:20:55 +01:00
Mathias Vorreiter Pedersen
e2ae4a699c
C++: Add change note.
2024-01-30 11:44:46 +00:00
Mathias Vorreiter Pedersen
33e37536df
C++: Accept test changes.
2024-01-30 11:32:50 +00:00
Mathias Vorreiter Pedersen
1dfd32ee5c
C++: Model function calls throwing exceptions.
2024-01-30 11:32:50 +00:00
Mathias Vorreiter Pedersen
eb94203f04
C++: Add an 'EdgeKind' column to 'getExceptionSuccessorInstruction'.
2024-01-30 11:32:50 +00:00
Mathias Vorreiter Pedersen
8bb17a7127
C++: Add an 'EdgeKind' column to 'getInitializationSuccessor'.
2024-01-30 11:32:50 +00:00
Mathias Vorreiter Pedersen
4fb20e14f5
C++: Add an 'EdgeKind' column to 'getChildTrueSuccessor' and 'getChildFalseSuccessor'.
2024-01-30 11:32:47 +00:00
Mathias Vorreiter Pedersen
10ae793de5
C++: Add an 'EdgeKind' column to 'getFirstInstruction'.
2024-01-30 11:31:41 +00:00
Mathias Vorreiter Pedersen
d2e8b88b24
C++: Add an 'EdgeKind' column to 'getChildSuccessor'.
2024-01-30 11:26:46 +00:00
Rasmus Wriedt Larsen
c70b32f7eb
Python: Require quote escaping for html.escape
2024-01-30 12:17:01 +01:00
Harry Maclean
f230e618a3
Ruby: Update tests
2024-01-30 09:43:56 +00:00
Michael Nebel
41cca4711b
Merge pull request #15426 from michaelnebel/csharp/collectionexpressions
...
C# 12: Support for collection expressions.
2024-01-30 10:39:39 +01:00
Mathias Vorreiter Pedersen
78d5d9a7ab
Merge pull request #15448 from microsoft/false_positive_cpp_incorrect_string_type_conversion
...
cpp/incorrect-string-type-conversion false positive fixes
2024-01-30 09:37:01 +00:00
Mathias Vorreiter Pedersen
56e44f9b3c
Merge pull request #15458 from MathiasVP/dataflow-node-deduplication
...
C++: Fix more `asExpr` duplication
2024-01-30 09:34:57 +00:00
Mathias Vorreiter Pedersen
436a9ce604
Merge pull request #15460 from MathiasVP/fix-scanf-fp-2
...
C++: Fix another FP in `cpp/incorrectly-checked-scanf`
2024-01-30 09:32:32 +00:00
Tom Hvitved
503d2f7b95
Ruby: Rework mayBenefitFromCallContext
2024-01-30 09:57:29 +01:00
Harry Maclean
75b13da4e4
Ruby: Block flow from LHS of && expressions
...
The only values that can flow from the LHS of an && expression are
`false` and `nil`, neither of which seem relevant for any of our
queries.
2024-01-30 08:53:32 +00:00
Joe Farebrother
460ffc89b2
Add additional test cases
2024-01-29 22:43:28 +00:00
Sid Shankar
b1d7a635f5
Renames diagnostic query files and tests
...
This commit renames the files relating to the diagnostic query that produces information on the number of files extracted. The files have been renamed from "SuccessfullExtractedFiles.*" to "ExtractedFiles.*". All related tests and test files have been renamed too.
The `@tags` and `@id` attributes of the queries have been left untouched, consistent with the `@tags` and `@id` for similar queries in other languages.
2024-01-29 20:19:20 +00:00
Benjamin Rodes
13cf555cee
False positive fix for cpp/uninitialized-local
2024-01-29 13:21:05 -05:00
Joe Farebrother
3abd67064d
Add change note
2024-01-29 16:33:07 +00:00
Mathias Vorreiter Pedersen
5024df9c4e
C++: Add change note.
2024-01-29 16:30:55 +00:00
Joe Farebrother
94075ef148
Fix FPs - consider flow through fields when determining whether a view is masked, and find more instances of findViewById.
2024-01-29 16:25:38 +00:00
Joe Farebrother
8d201626e1
Add documentation
2024-01-29 16:25:38 +00:00
Joe Farebrother
aa78050933
Implement checks for elements hidden by their xml attributes
2024-01-29 16:25:38 +00:00
Joe Farebrother
6081f18089
Add unit tests + make some fixes
2024-01-29 16:25:37 +00:00
Joe Farebrother
8582093e65
Implement checks for parent views being hidden
2024-01-29 16:25:37 +00:00
Joe Farebrother
1b13597d72
Implement checks for calls that may safely mask information
2024-01-29 16:25:37 +00:00
Joe Farebrother
5dd0addfc2
Add sensitive text flow query
2024-01-29 16:25:36 +00:00
Mathias Vorreiter Pedersen
ea79a84c2e
C++: Accept test changes.
2024-01-29 16:24:44 +00:00
Mathias Vorreiter Pedersen
ebd1595fbe
C++: Fix FP by concluding that a less-than-zero check also implies a not-equal-to-EOF check.
2024-01-29 16:24:36 +00:00
Mathias Vorreiter Pedersen
7e29141196
C++: Add FP test.
2024-01-29 16:23:37 +00:00
Ben Rodes
308a3b533f
Update cpp/ql/src/change-notes/2024-01-29-false_positive_incorrect_string_type_conversion.md
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-01-29 09:35:59 -05:00
Mathias Vorreiter Pedersen
aeae208dc3
Merge pull request #15456 from MathiasVP/fix-scanf-fp
...
C++: Fix FP in `cpp/incorrectly-checked-scanf`
2024-01-29 14:30:20 +00:00
Benjamin Rodes
6f17c432d9
Change log
2024-01-29 09:19:39 -05:00
Mathias Vorreiter Pedersen
320092092d
C++: Accept test changes.
2024-01-29 14:11:07 +00:00
Mathias Vorreiter Pedersen
a4727b5597
C++: Fix 'asExpr' duplication.
2024-01-29 14:11:01 +00:00
Mathias Vorreiter Pedersen
044d94c580
C++: Add change note
2024-01-29 13:47:17 +00:00
Michael Nebel
cda09478c5
C# Update expected test output and remove false positive.
2024-01-29 14:37:25 +01:00
Michael Nebel
63c06b72b1
C#: Chop dataflow of spread into smaller steps and make sure to only propagate element flow for the spread operator.
2024-01-29 14:34:57 +01:00
Michael Nebel
b6f94ea44a
C#: Add example test of field flow via the spread operator, which leads to a false positive.
2024-01-29 14:30:52 +01:00
Rasmus Wriedt Larsen
5867fb3d29
Python: Add change-note
2024-01-29 14:30:20 +01:00
Rasmus Wriedt Larsen
3f0dc2b022
Python: Model the psycopg package
2024-01-29 14:30:20 +01:00
Michael Nebel
cd5f678e1c
C#: Add IntegerCollection class to the CollectionFlow tests and update line numbers in expected test output.
2024-01-29 14:28:05 +01:00
yoff
391ca5d8a6
Merge pull request #15390 from Marcono1234/marcono1234/python-ascii-regex-flag
2024-01-29 14:27:50 +01:00
Tamás Vajk
39b32a9068
Merge pull request #15454 from tamasvajk/standalone/cshtml-default
...
C#: Change asp.net core view generation to be opt out
2024-01-29 13:22:44 +01:00
Tamas Vajk
4dffb3bfdd
Change integration test to specify .net 6.0 as target framework
2024-01-29 12:40:51 +01:00
Mathias Vorreiter Pedersen
a5794509ec
C++: Accept test changes.
2024-01-29 11:33:14 +00:00
Mathias Vorreiter Pedersen
41f44f598a
C++: Explicitly check that a check for EOF isn't present.
2024-01-29 11:33:14 +00:00
Tamas Vajk
f16aa034a2
Code quality improvement
2024-01-29 12:29:01 +01:00
Ian Lynagh
79d9109850
Merge pull request #15428 from igfoo/igfoo/catch_illegal_arg
...
Kotlin: Catch/ignore a IllegalArgumentException exception
2024-01-29 11:27:38 +00:00
Ian Lynagh
76e417c23e
Merge pull request #14940 from igfoo/igfoo/comments
...
Kotlin 2: Comment improvements
2024-01-29 11:27:19 +00:00
Mathias Vorreiter Pedersen
3a66fd7175
C++: Add FP test.
2024-01-29 10:59:38 +00:00
Tamas Vajk
7a8d83e859
C#: Add integration test with asp.net core view generation on dotnet 6
...
Source generators are needed for asp.net core view generation. Dotnet 6 is the first version where we support view generation. This commit adds an integration test for this.
2024-01-29 11:52:55 +01:00
Tamas Vajk
92fec66370
C#: Add integration test for disabled asp.net core view generation
2024-01-29 11:52:55 +01:00
Tamas Vajk
d7de5fcfcb
C#: Change asp.net core view generation to be opt out
2024-01-29 10:52:26 +01:00
Tony Torralba
49d6d3fa0c
Merge pull request #15449 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-01-29 10:27:32 +01:00
github-actions[bot]
6d06c9cb7d
Add changed framework coverage reports
2024-01-29 00:16:27 +00:00
Marcono1234
d8fe0f5bb8
Java: Document which assignment type is covered by which class
2024-01-28 19:03:36 +01:00
Maiky
c2c4d9e4d1
` change to <code>
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2024-01-27 14:08:55 +01:00
Mathias Vorreiter Pedersen
a391f7802d
C++: Add a test.
2024-01-27 13:08:52 +00:00
maikypedia
d7314a1689
File format
2024-01-27 14:07:36 +01:00
Marcono1234
1ad08efe08
Python: Support a (ASCII) inline regex flag
2024-01-26 22:18:49 +01:00
Ben Rodes
f79846467e
Update cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-01-26 15:25:08 -05:00
Benjamin Rodes
b7648bcf27
Adding test cases.
2024-01-26 15:19:07 -05:00
Benjamin Rodes
562221f48e
False positive fix.
2024-01-26 13:27:14 -05:00
Geoffrey White
d19ad49313
Merge pull request #15381 from geoffw0/cppfiles
...
C++: Report any extracted file as successfully extracted
2024-01-26 18:18:27 +00:00
Edward Minnix III
4602f8933d
Merge pull request #15292 from egregius313/egregius313/java/dataflow/common-sanitizers/uuid-and-date
...
Java: Add `java.util.UUID` and `java.util.Date` to the `SimpleTypeSanitizer` class
2024-01-26 13:16:18 -05:00
Geoffrey White
b125d2c9ab
Merge branch 'main' into cppfiles
2024-01-26 16:47:48 +00:00
Joe Farebrother
031bd8bd0c
Merge pull request #15281 from joefarebrother/android-sensitive-ui-notif
...
Java: Add query for exposure of sensitive information to android notifiactions
2024-01-26 16:42:55 +00:00
Max Schaefer
73130ec665
Merge pull request #15436 from github/max-schaefer-patch-1
...
Java: Add models for overloads of DatagramPacket constructor
2024-01-26 16:13:11 +00:00
Henry Mercer
452359f20e
Merge pull request #15446 from github/codeql-cli-2.16.1
...
Merge `codeql-cli-2.16.1` back to `main`
2024-01-26 15:52:56 +00:00
Henry Mercer
720d87391d
Merge pull request #15447 from github/henrymercer/2.16.0-mergeback
...
Merge `codeql-cli-2.16.0` back into `codeql-cli-2.16.1`
2024-01-26 15:42:05 +00:00
Tony Torralba
6e550d28af
Update more test expectations
2024-01-26 15:13:07 +01:00
Henry Mercer
6bef1404fd
Merge remote-tracking branch 'origin/codeql-cli-2.16.1' into henrymercer/2.16.0-mergeback
2024-01-26 13:53:13 +00:00
Florin Coada
b24dad6ac3
Merge pull request #15438 from github/changedocs/2.16.1
...
Generate changelog for 2.16.1
2024-01-26 13:46:14 +00:00
Michael Nebel
da4a9b620a
C#: Add change note.
2024-01-26 14:24:27 +01:00
Michael Nebel
13b8d57bff
C#: Add collection flow test cases for collection expressions.
2024-01-26 14:18:16 +01:00
Michael Nebel
168f5b5554
C#: Add dataflow support for collection expressions.
2024-01-26 14:18:16 +01:00
Michael Nebel
8eb89cf0bb
C#: Add test and expected output.
2024-01-26 14:18:16 +01:00
Tony Torralba
b8cb514dc4
Rename the other change note
2024-01-26 12:46:51 +01:00
Tony Torralba
19a6b7858b
Remove reference to PathCreation
...
ZipSlip no longer needs to make this exclusion, since PathCreation arguments are no longer path-injection sinks
2024-01-26 12:45:00 +01:00
Tony Torralba
2a146405ac
Adjust tests
2024-01-26 12:38:32 +01:00
Tamás Vajk
7a50d7a95f
Merge pull request #15437 from tamasvajk/feature/log-verbosity
...
C#: Introduce log verbosity extractor option
2024-01-26 12:33:06 +01:00
Tony Torralba
1d2a51c522
Rename change note
2024-01-26 12:20:47 +01:00
Tony Torralba
19cb7adb6d
Migrate path injection sinks to MaD
...
Deprecate and stop using PathCreation
Path creation sinks are now summaries
2024-01-26 12:19:54 +01:00
Michael Nebel
74cb1ea584
C#: Add QL library expression support for collection expressions.
2024-01-26 11:50:20 +01:00
Asger F
ee8e9a4e66
Shared: update test output
2024-01-26 11:14:23 +01:00
Asger F
f15ead6130
Shared: check stateful outBarrier as part of pathStep SCC
2024-01-26 11:14:23 +01:00
Asger F
d1310c74fc
Shared: remove old stateful outBarrier check
2024-01-26 11:14:23 +01:00
Asger F
ddbacc3d4a
Shared: add test case for stateful outBarrier bug
2024-01-26 11:14:11 +01:00
Tony Torralba
52d7bd93a5
Merge pull request #15420 from github/java/update-mad-decls-after-triage-2024-01-24T10-05-04
...
Java: Update MaD Declarations after Triage
2024-01-26 08:42:49 +01:00
Erik Krogh Kristensen
8e11c75745
Merge pull request #15441 from github/dependabot/cargo/ql/chrono-0.4.33
...
Bump chrono from 0.4.32 to 0.4.33 in /ql
2024-01-26 08:10:37 +01:00
dependabot[bot]
5fac945b33
Bump chrono from 0.4.32 to 0.4.33 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.32 to 0.4.33.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.32...v0.4.33 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-26 03:25:31 +00:00
Michael Nebel
1252d3ee89
C#: Rename CollectionExpr to EnumerableCollectionExpr.
2024-01-25 19:53:51 +01:00
Michael Nebel
5ab64f4a65
C#: Introduce extractor support for collection expressions.
2024-01-25 19:53:51 +01:00
Michael Nebel
0477bba34e
C#: Add database upgrade- and downgrade scripts.
2024-01-25 19:53:51 +01:00
Michael Nebel
e2614a1e4c
C#: Add some dummy db stats for the new expression kinds.
2024-01-25 19:45:56 +01:00
Michael Nebel
1ef8daf7cd
C#: Add some more collection and spread element expression kinds to the dbscheme.
2024-01-25 19:45:56 +01:00
Mathias Vorreiter Pedersen
863e6c8009
Merge pull request #15427 from MathiasVP/asexpr-and-asindirectexpr-tests
...
C++: Add `asExpr` and `asIndirectExpr` library tests (and fix more duplication)
2024-01-25 16:58:18 +00:00
Tony Torralba
d299971086
Fix code review mistake
2024-01-25 17:42:11 +01:00
Tamas Vajk
c4849f9a17
Add change note
2024-01-25 17:33:06 +01:00
Mathias Vorreiter Pedersen
2db76c7fad
Merge pull request #15434 from MathiasVP/fix-dataflow-join-order
...
DataFlow: Fix join order
2024-01-25 16:32:14 +00:00
Tamas Vajk
b8c8f52efc
C#: Introduce extractor option for logging verbosity
2024-01-25 17:20:47 +01:00
Tony Torralba
661c5cf6aa
Merge pull request #15409 from erik-krogh/path-java
...
Java: Improve the QHelp for `java/path-injection`.
2024-01-25 17:14:59 +01:00
Ian Lynagh
c0a9c11101
Kotlin: Catch/ignore a IllegalArgumentException exception
...
This works around
https://youtrack.jetbrains.com/issue/KT-63847/K2-IllegalStateException-IrFieldPublicSymbolImpl-for-java.time-Clock.OffsetClock.offset0-is-already-bound
2024-01-25 16:04:08 +00:00
Florin Coada
d884941b8a
restored settings file
2024-01-25 15:57:48 +00:00
Florin Coada
c3238743b1
Changedocs for 2.16.1
2024-01-25 15:55:32 +00:00
Tamas Vajk
bb4327294d
Rename verbosity property to legacy
2024-01-25 16:03:23 +01:00
Tamas Vajk
0e5e57dc56
Adjust 'silent' flag parsing
2024-01-25 16:00:44 +01:00
Max Schaefer
13f0df3588
Add two more models.
2024-01-25 15:00:22 +00:00
Paolo Tranquilli
b2489f7109
Merge pull request #15433 from github/redsun82/clang-format
...
Swift: update formatting to `clang-format` 17.0.6
2024-01-25 15:58:28 +01:00
Max Schaefer
5235291919
Add models for overloads of DatagramPacket constructor
2024-01-25 14:49:05 +00:00
Tamas Vajk
9b4cdd0d4f
Separate logging classes into separate files
2024-01-25 15:38:16 +01:00
Tamas Vajk
2c72d7ea1e
C#: Improve code quality
2024-01-25 15:18:55 +01:00
Henry Mercer
10343dd822
Merge pull request #15416 from github/post-release-prep/codeql-cli-2.16.1
...
Post-release preparation for codeql-cli-2.16.1
2024-01-25 14:15:25 +00:00
Tony Torralba
282632c33b
Add new snippets as tests
2024-01-25 15:11:11 +01:00
Erik Krogh Kristensen
fb11e4e14f
Merge pull request #15435 from erik-krogh/remove-at-to-z
...
remove an FP in overly-large-range for [@-Z]
2024-01-25 14:43:12 +01:00
erik-krogh
396da117bb
remove an FP in overly-large-range for [@-Z]
2024-01-25 14:15:06 +01:00
Tamás Vajk
2333b8db5b
Merge pull request #15432 from tamasvajk/fix/extraction-information
...
C#: Filter results of division by 0 from `cs/telemetry/extraction-information`
2024-01-25 14:07:19 +01:00
Stephan Brandauer
1f9a968774
Java: PR discussion
2024-01-25 13:59:47 +01:00
Paolo Tranquilli
33b6ce7365
Swift: update formatting to clang-format 17.0.6
...
Also, added a format check in `swift.yml`.
2024-01-25 13:58:14 +01:00
Mathias Vorreiter Pedersen
db929ccf9b
DataFlow: Fix join order.
2024-01-25 12:51:35 +00:00
erik-krogh
73e3fada44
add missing </p>
2024-01-25 12:14:10 +01:00
Tamas Vajk
055ead20e3
C#: Filter results of division by 0 from cs/telemetry/extraction-information
2024-01-25 12:08:15 +01:00
erik-krogh
05a59d2a94
apply suggestions from doc review
2024-01-25 11:20:46 +01:00
Tamás Vajk
01b89508a8
Merge pull request #15424 from tamasvajk/standalone/logging
...
C#: Improve log messages in buildless mode + some cleanup/refactoring
2024-01-25 11:08:50 +01:00
GitHub Security Lab
00d1f8e84a
Merge branch 'main' into maikypedia/swift-zip
2024-01-25 11:05:46 +01:00
yoff
930f1b50b9
Merge pull request #15397 from github/tausbn/python-fix-deepcopy-mutable-default-fp
...
Python: Fix `deepcopy` mutable default FP
2024-01-25 10:32:58 +01:00
Stephan Brandauer
5d6ee9c0cb
Update java/ql/lib/ext/com.fasterxml.jackson.databind.model.yml
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-25 10:00:56 +01:00
Robert Marsh
67a86391a2
Merge pull request #15318 from rdmarsh2/rdmarsh2/cpp/first-class-destructors
...
C++: First-class destructors in AST
2024-01-24 16:19:10 -05:00
Robert Marsh
0bc023139b
C++: autoformat for first-class destructors
2024-01-24 18:52:54 +00:00
Robert Marsh
56c9566867
C++: more documentation for implict destructor calls
2024-01-24 18:52:54 +00:00
Robert Marsh
3970a9fe39
C++: switch to getImplicitDestructorCall
2024-01-24 18:52:54 +00:00
Robert Marsh
3a0290b1e8
C++: add destructors in PrintAST
2024-01-24 18:52:54 +00:00
Robert Marsh
1acc111b63
C++: add getSyntheticDestructor to Expr and Stmt
2024-01-24 18:52:54 +00:00
Chris Smowton
32a2ea1690
Merge pull request #15413 from smowton/smowton/admin/buildless-sibling-project-tests
...
Add tests for Java buildless w/sibling projects
2024-01-24 18:51:10 +00:00
Geoffrey White
e0d70e3008
C++: Resolve the TODO / unwanted change in shared code and get more results.
2024-01-24 18:09:34 +00:00
Chris Smowton
ed9abdd9bd
Mock Java 8 toolchain so sibling test works on arm runners
2024-01-24 16:51:38 +00:00
Chris Smowton
287fb8003d
Make all toolchains available to test
2024-01-24 16:51:38 +00:00
Chris Smowton
16d30d7335
Remove xml and properties tests
2024-01-24 16:51:38 +00:00
Chris Smowton
042a3b64bb
Use Java 11 to run old Gradle
2024-01-24 16:51:38 +00:00
Chris Smowton
b5429f1a50
Add test for buildless with sibling projects
2024-01-24 16:51:38 +00:00
Chris Smowton
e3ef8aa6f6
Adjust test expectations
2024-01-24 16:51:37 +00:00
Chris Smowton
96bf47fbd9
Remove accidentally-committed actual files
2024-01-24 16:51:37 +00:00
Tony Torralba
cbcc090a19
Merge pull request #15423 from atorralba/atorralba/go/awslambda-global-context
...
Go: Add AwsLambda to the global context
2024-01-24 17:40:00 +01:00
Mathias Vorreiter Pedersen
7916616ee1
C++: Fix duplication for indirect exprs similar to how we fixed it in #15410 .
2024-01-24 16:20:06 +00:00
Mathias Vorreiter Pedersen
4e18cca0f4
C++: Add a way to test the behavior of 'asExpr' and 'toString' on dataflow nodes.
2024-01-24 16:12:47 +00:00
Geoffrey White
a727255a82
C++: Add a couple more test cases and correct test models again.
2024-01-24 15:18:49 +00:00
Tamas Vajk
199b0578be
C#: Log number of restored dotnet framework variants
2024-01-24 15:23:38 +01:00
Stephan Brandauer
4e63cbc993
Merge branch 'main' into java/update-mad-decls-after-triage-2024-01-24T10-05-04
2024-01-24 14:55:20 +01:00
Tamas Vajk
30095e3179
Refactor dotnet restore calls
2024-01-24 13:56:40 +01:00
Ian Lynagh
67242278ee
Merge pull request #15384 from igfoo/igfoo/kt2
...
Kotlin: Support Kotlin 2.0.0-Beta3
2024-01-24 12:47:35 +00:00
Taus
96b1b8e402
Python: Remove empty lines from test file
2024-01-24 12:31:23 +00:00
Tamas Vajk
d742cd3e44
C#: Remove progress monitor from dependency fetcher, use logger directly
2024-01-24 12:29:02 +01:00
Tamas Vajk
13a8168c8e
C#: Improve log messages in standalone extractor
2024-01-24 12:28:00 +01:00
Tony Torralba
3b7d6a4806
Go: Add AwsLambda to the global context
2024-01-24 11:33:26 +01:00
Stephan Brandauer
d5bcbcddab
Update MaD Declarations after Triage
2024-01-24 11:05:07 +01:00
Michael B. Gale
514430e8b9
Merge pull request #15411 from github/mbg/go/refactor-go-autobuilder
2024-01-24 09:15:04 +00:00
Henry Mercer
3af42d57a0
Merge pull request #15402 from github/henrymercer/csharp-build-mode
...
C#: Enable standalone extraction via `--build-mode`
2024-01-24 09:01:03 +00:00
Tony Torralba
0bb0e52adb
Merge pull request #15418 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-01-24 09:23:55 +01:00
Michael Nebel
2be1ee8b34
Merge pull request #15394 from michaelnebel/csharp/urlredirect-sanitizer
...
C#: Add more santizers to the `cs/web/unvalidated-url-redirection` query.
2024-01-24 08:42:05 +01:00
Ed Minnix
ef884fa721
Change note
2024-01-23 22:35:05 -05:00
github-actions[bot]
465e8d3530
Add changed framework coverage reports
2024-01-24 00:17:20 +00:00
github-actions[bot]
d0b74c00fe
Post-release preparation for codeql-cli-2.16.1
2024-01-23 23:02:29 +00:00
Henry Mercer
0928c93989
Use TryGetValue
2024-01-23 20:43:19 +00:00
Henry Mercer
e73c1b7281
Be forgiving with casing of build mode environment variable
2024-01-23 20:35:43 +00:00
Henry Mercer
a75c8273f9
C#: Allow checking environment variables that may be undefined
...
The build mode environment variable for instance is only set when a build mode is specified.
2024-01-23 20:33:16 +00:00
Henry Mercer
766e0e61ed
Merge pull request #15414 from github/release-prep/2.16.1
...
Release preparation for version 2.16.1
2024-01-23 19:57:39 +00:00
github-actions[bot]
7ef611e6dc
Release preparation for version 2.16.1
2024-01-23 19:45:16 +00:00
Ed Minnix
dca24ded18
Add UUID and Date to the list of types in the SimpleTypeSanitizer class
2024-01-23 13:36:03 -05:00
Edward Minnix III
3c8b09307d
Merge pull request #15291 from egregius313/egregius313/java/dataflow/default-sanitizers
...
Java: Introduce a common sanitizer type for types which cannot realistically carry taint.
2024-01-23 13:28:03 -05:00
Mathias Vorreiter Pedersen
145b5a30bd
Merge pull request #15343 from microsoft/38-cpp-generalize-use-after-free-libraries
...
Generalization of FlowAfterFree
2024-01-23 16:49:29 +00:00
Ben Rodes
55fe8d376c
Update cpp/ql/lib/semmle/code/cpp/security/flowafterfree/UseAfterFree.qll
2024-01-23 10:49:47 -05:00
Benjamin Rodes
dfb3aec002
Removing unnecessary private modules and adding comments.
2024-01-23 10:47:38 -05:00
Mathias Vorreiter Pedersen
42fd3fc836
C++: Make more things 'private' and add QLDoc to public things. ( #40 )
2024-01-23 10:27:01 -05:00
Geoffrey White
c10f41b168
C++: Use getClassAndName.
2024-01-23 15:02:59 +00:00
Geoffrey White
4c1f433073
C++: Move getIndirectionIndex to ReturnKind.
2024-01-23 14:52:44 +00:00
Mathias Vorreiter Pedersen
b1b236d82d
Merge pull request #15410 from MathiasVP/less-dataflow-duplication
...
C++: Remove more `asExpr` duplication
2024-01-23 14:50:01 +00:00
Michael Nebel
10be0deeb5
C#: Add a couple more testcases.
2024-01-23 15:09:10 +01:00
Edward Minnix III
0e866a5447
Merge pull request #15359 from egregius313/egregius313/csharp/dataflow/threat-modeling/add-threatmodelflowsource
...
C#: Threat Modeling - Introduce `ThreatModelFlowSource`
2024-01-23 09:02:10 -05:00
Michael B. Gale
cf1aab0157
Go: Move identify environment code to separate file
2024-01-23 13:59:34 +00:00
Michael B. Gale
ee36e7424a
Go: Move project analysis code to separate file
2024-01-23 13:59:33 +00:00
Michael B. Gale
0dc3c847bc
Go: Move go invocations to separate file
2024-01-23 13:59:33 +00:00
erik-krogh
158ff0da0a
add a trailing slash to the folder check in the QHelp for java/path-injection
2024-01-23 14:46:02 +01:00
Tamás Vajk
df8d453058
Merge pull request #15395 from tamasvajk/feature/standalone-nuget-restore-retry
...
C#: Try fallback `dotnet restore` without nuget.config
2024-01-23 14:45:00 +01:00
Erik Krogh Kristensen
f1d6f56621
Merge pull request #15393 from erik-krogh/deps-jan-2024
...
All: delete outdated deprecations
2024-01-23 13:52:38 +01:00
Mathias Vorreiter Pedersen
8b172c133d
C++: Accept test changes.
2024-01-23 12:06:42 +00:00
Mathias Vorreiter Pedersen
5bc602a208
C++: Ensure that we don't create a result for 'asExpr' on an instruction node if a result also exists for an operand node (and vice versa).
2024-01-23 12:06:35 +00:00
erik-krogh
00dadeb3bf
delete the markdown file again
2024-01-23 12:57:15 +01:00
erik-krogh
57e0b3cceb
iterate on the java/path-injection qhelp
2024-01-23 12:56:43 +01:00
erik-krogh
4958c19c67
move the examples for the qhelps into an example/ folder
2024-01-23 12:56:23 +01:00
erik-krogh
6b66f5cbc5
check in the TaintedPath qhelp as markdown to get pretty diffs
2024-01-23 12:56:22 +01:00
Chris Smowton
43453fea52
Merge pull request #15408 from smowton/smowton/admin/log-setup-go-message
...
Log advice when a newer Go version is required under Actions
2024-01-23 11:32:38 +00:00
Mathias Vorreiter Pedersen
d29d060706
Merge pull request #15401 from alexet/make-intended-join-order
...
CPP: Fix join ordering hints to make them do what they intend.
2024-01-23 11:30:20 +00:00
Chris Smowton
7e96eaa273
Log advice when a newer Go version is required under Actions
2024-01-23 10:49:52 +00:00
Tony Torralba
77e724b3ba
Merge pull request #15188 from github/java/update-mad-decls-after-triage-2023-12-21T14-39-02
...
Java: Update MaD Declarations after Triage
2024-01-23 11:34:57 +01:00
Tony Torralba
fcd9a5ed71
Update java/ql/lib/change-notes/2023-12-21-new-models.md
2024-01-23 11:18:12 +01:00
Joe Farebrother
dedba1fc54
Address review comments - add barrierIn and fix a model for a PendingIntent sink
2024-01-23 09:51:42 +00:00
Joe Farebrother
0acb647e7d
Fix tests and add notification sink kind to model verification
2024-01-23 09:51:41 +00:00
Joe Farebrother
b23bbf93d4
Reorder sink models
2024-01-23 09:51:41 +00:00
Joe Farebrother
69faafa194
Add change note
2024-01-23 09:51:40 +00:00
Joe Farebrother
1190352b67
Add qhelp
2024-01-23 09:51:40 +00:00
Joe Farebrother
d806fcae3d
Remove sink models involving PendingIntent; as they do not carry sensitive data (including from the original intent they were created with)
2024-01-23 09:51:39 +00:00
Joe Farebrother
2ca164ce35
Generate androidx stubs and correct some models
2024-01-23 09:51:39 +00:00
Joe Farebrother
bafd65b1d2
Add tests to cover each modeled sink + some corrections to the models
2024-01-23 09:51:38 +00:00
Joe Farebrother
a1a2acd3ce
Add additional test cases
2024-01-23 09:51:38 +00:00
Joe Farebrother
f9bb004618
Add sink models to notification builder setters
2024-01-23 09:51:38 +00:00
Joe Farebrother
cd19a91704
Add unit test
2024-01-23 09:51:37 +00:00
Joe Farebrother
3aa27148de
Split existing tests under CWE-200 into separate folders
2024-01-23 09:51:37 +00:00
Joe Farebrother
143ce0b94a
Add sensitive notification query
2024-01-23 09:51:37 +00:00
Stephan Brandauer
95b439bf31
Merge branch 'main' into java/update-mad-decls-after-triage-2023-12-21T14-39-02
2024-01-23 09:40:50 +01:00
Stephan Brandauer
cd765e7c19
work on review comments
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-23 09:35:36 +01:00
Stephan Brandauer
8b34407ab7
Java: java.awt.Desktop::browse is a url-redirection sink
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-23 09:28:13 +01:00
Michael Nebel
95a200453b
Merge pull request #15404 from michaelnebel/csharp/inlinearraydummystats
...
C#: Add dummy stats for inline_array_type.
2024-01-23 09:17:18 +01:00
Michael Nebel
123e86e0e0
C#: Add dummy stats for inline_array_type.
2024-01-23 08:29:01 +01:00
Erik Krogh Kristensen
97071b0dc7
Merge pull request #15403 from github/dependabot/cargo/ql/chrono-0.4.32
...
Bump chrono from 0.4.31 to 0.4.32 in /ql
2024-01-23 08:20:28 +01:00
Ed Minnix
fcbee1994b
Update change note
2024-01-22 23:57:31 -05:00
Ed Minnix
fb80c5ea84
Rename SimpleScalarSanitizer to SimpleTypeSanitizer
2024-01-22 23:55:29 -05:00
Ed Minnix
696788e5b2
Rename semmle.code.java.security.dataflow.CommonSanitizers to semmle.code.java.security.Sanitizers
2024-01-22 23:52:19 -05:00
Ed Minnix
bb44277090
Make import of dataflow private
2024-01-22 23:40:24 -05:00
Ed Minnix
ec3d683186
Change change note category to feature
2024-01-22 23:39:23 -05:00
Ed Minnix
38828672a9
Update change note
2024-01-22 23:38:33 -05:00
Ed Minnix
32fe8e02fb
Change note
2024-01-22 23:38:31 -05:00
Ed Minnix
3311b3be8e
Convert experimental queries' isBarrier to use instanceof SimpleScalarSanitizer
2024-01-22 23:38:29 -05:00
Ed Minnix
67dfca2e58
Convert libraries to use instanceof SimpleScalarSanitizer
2024-01-22 23:38:26 -05:00
Ed Minnix
7f7c49d6ce
Add the SimpleScalarSanitizer class
...
The `SimpleScalarSanitizer` class represents common scalar types which
cannot realistically carry taint (e.g. primitives/numbers, and
eventually UUIDs and Dates)
2024-01-22 23:38:24 -05:00
dependabot[bot]
e9a1fa9592
Bump chrono from 0.4.31 to 0.4.32 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.31 to 0.4.32.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.31...v0.4.32 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-23 03:12:14 +00:00
Taus
24b37ffd36
Merge pull request #15187 from github/max-schaefer/py-url-redirection
...
Python: Add support for more URL redirect sanitisers.
2024-01-22 23:19:36 +01:00
Henry Mercer
6724dea54d
C#: Enable standalone extraction via --build-mode
2024-01-22 19:12:07 +00:00
Alex Eyers-Taylor
891d398c3f
CPP: Fix join ordering hints
2024-01-22 19:00:18 +00:00
erik-krogh
865df920f9
add change-notes
2024-01-22 19:30:57 +01:00
Ed Minnix
a6c977c169
Use appropriate pack for test models
2024-01-22 12:24:21 -05:00
Max Schaefer
5c43a0b1e4
Merge pull request #15356 from github/max-schaefer/automodel-void-source-candidates
...
Automodel: Switch tests to inline expectations
2024-01-22 17:05:10 +00:00
Rasmus Wriedt Larsen
00dc55d825
Python: Add change-note
2024-01-22 17:32:33 +01:00
Rasmus Wriedt Larsen
cbed6e861d
Python: Add html.escape as HTML sanitizer
2024-01-22 17:32:28 +01:00
Benjamin Rodes
da10e6ca5b
Moving FlowAfterFree and UseAfterFree.qll as a general purpose lib.
2024-01-22 11:18:03 -05:00
Ed Minnix
ff6d4c6ae6
Deprecation message
2024-01-22 11:09:53 -05:00
Ed Minnix
0ff12c07c7
Convert existing mapped-property classes to directly extend DatabaseInputSource
2024-01-22 11:09:51 -05:00
Ed Minnix
975327648c
Remove commented-out code
2024-01-22 11:09:50 -05:00
Ed Minnix
51564200a1
Documentation for FlowSources library
2024-01-22 11:09:48 -05:00
Ed Minnix
83e66136ce
Change note
2024-01-22 11:09:46 -05:00
Ed Minnix
c530fbd9f8
C# Threat Modeling Tests
2024-01-22 11:09:45 -05:00
Ed Minnix
3c9c07ec40
Rename SourceNode.qll to FlowSources.qll
2024-01-22 11:09:43 -05:00
Ed Minnix
392eac5f9a
Refactor source node classes to use SourceNode superclass
...
Refactor the existing flowsource classes to use the `SourceNode` class
to specify which threat model they support.
2024-01-22 11:09:41 -05:00
Ed Minnix
d29df68c97
Introduce the SourceNode and ThreatModelFlowSource classes
...
1. Introduces the `SourceNode` class which allows dataflow nodes
representing sources to indicate the threat model they are associated
with.
2. Introduces the `ThreatModelFlowSource` class which represents a
source node which respects the threat model configuration
2024-01-22 11:09:39 -05:00
Ed Minnix
ad093fde4f
Add dependency on codeql/threat-models shared library
2024-01-22 11:09:38 -05:00
Taus
d6d59377d3
Python: Fix flow through deepcopy
...
Or, more generally, any copy step, as these presumably do not preserve
object identity.
(Arguably, `copy` could still be susceptible to interior mutability, but
I think that's outside the scope of this query anyway.)
2024-01-22 15:40:30 +00:00
Benjamin Rodes
2181fcf284
Updating .expected to account for new free/deallocation sources.
2024-01-22 10:36:24 -05:00
Taus
14c958ac4d
Python: Remove mutable default sources from inside stdlib
2024-01-22 15:23:52 +00:00
Taus
411c107660
Python: Add tests for deepcopy FPs
...
There are two issues with `deepcopy` here. Firstly, the `deepcopy` function itself
has a mutable default value in its parameter `_nil` (set to the empty list by default).
Now, this value is never actually returned from `deepcopy`, as it is only used as a
sentinel, but our analysis is not clever enough to see this. Thus, it thinks that this
mutable default is returned, and hence the result of any call to `deepcopy` is a
potential source.
To remedy this, I opted to simply exclude all sources that originate from within the
standard library. It is very unlikely for any of the sources in the standard library
to be legit.
Secondly, `deepcopy` -- by virtue of being a function that we model as preserving
values -- admits data-flow through its calls, but this is not correct for the mutable
default query, as it is here the _identity_ of the default value in question that is
important. Thus, we get spurious flow through `deepcopy` for this specific query.
2024-01-22 15:21:57 +00:00
Tamas Vajk
de4e3963e7
C#: Try fallback nuget restore without nuget.config
2024-01-22 15:42:06 +01:00
Tamas Vajk
7c290ee2ba
C#: Add integration test with nuget.config
2024-01-22 15:36:38 +01:00
Geoffrey White
0a8869c636
Merge pull request #15385 from geoffw0/swiftfiles
...
Swift: Report any extracted file as successfully extracted
2024-01-22 14:24:05 +00:00
Taus
4742481070
Python: Consolidate "mutable default" tests
...
Moves the existing tests into the `ModificationOfParameterWithDefault` subdirectory
which already contained a bunch more tests. In the process, I also removed some
duplicated test cases.
2024-01-22 13:50:33 +00:00
Max Schaefer
a4639c7ff9
Update qhelp to mention solution using urlparse.
2024-01-22 13:36:12 +00:00
Max Schaefer
17e3a45ad7
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2024-01-22 13:36:12 +00:00
Max Schaefer
98178458d0
Python: Add support for more URL redirect sanitisers.
...
Since some sanitisers don't handle backslashes correctly, I updated the data-flow configuration to incorporate a flow state tracking whether or not backslashes have been eliminated or converted to forward slashes.
2024-01-22 13:24:18 +00:00
Max Schaefer
99c99145a2
Rename {source,sink}Model to {source,sink}ModelCandidate.
2024-01-22 13:10:51 +00:00
Michael Nebel
1bb6f4962d
C#: Match any {digit} in the format string.
2024-01-22 14:03:37 +01:00
Geoffrey White
58c4bf5915
Merge branch 'main' into cppfiles
2024-01-22 12:24:33 +00:00
Max Schaefer
a3816d75b3
Remove redundant imports.
2024-01-22 10:54:01 +00:00
Max Schaefer
78e5a1a546
Autoformat.
2024-01-22 10:45:33 +00:00
Michael Nebel
b006b28e8a
C#: Add change note.
2024-01-22 11:28:27 +01:00
Michael Nebel
5016113a0f
C#: Add a string.Format sanitizer to url redirect and update expected test output.
2024-01-22 11:21:35 +01:00
Michael Nebel
884f3f1505
C#: Add string interpolation expression sanitizer to url redirect and update expected test output.
2024-01-22 11:21:19 +01:00
Michael Nebel
e33d5b5fb6
C#: Add some test examples for UrlRedirect using string interpolation and string.Format.
2024-01-22 09:42:23 +01:00
erik-krogh
f60c01e3a8
Py: delete import that no longer exists
2024-01-22 09:22:50 +01:00
erik-krogh
0511786a22
delete typo files from list of synchronized files
2024-01-22 09:15:27 +01:00
erik-krogh
8be7eadace
delete outdated deprecations
2024-01-22 09:11:35 +01:00
Erik Krogh Kristensen
6533269387
Merge pull request #15392 from github/dependabot/cargo/ql/regex-1.10.3
...
Bump regex from 1.10.2 to 1.10.3 in /ql
2024-01-22 08:29:35 +01:00
dependabot[bot]
eb1a0fece8
Bump regex from 1.10.2 to 1.10.3 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.2 to 1.10.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.2...1.10.3 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-22 03:54:51 +00:00
Geoffrey White
a39bb8c037
Swift: Rename the query file.
2024-01-19 17:58:58 +00:00
Geoffrey White
c515ea3f8a
Swift: Change note.
2024-01-19 17:58:58 +00:00
Geoffrey White
ed602642b6
Swift: Basic test for getRelativePath.
2024-01-19 17:58:58 +00:00
Geoffrey White
8cf691a477
Swift: Add File.getRelativePath and update swift/diagnostics/successfully-extracted-files.
2024-01-19 17:58:58 +00:00
Ian Lynagh
60a59cb89e
Kotlin: Update 2.0.0 version support
2024-01-19 17:52:38 +00:00
Geoffrey White
5127542677
C++: Rename the query file.
2024-01-19 16:31:34 +00:00
Geoffrey White
01ee61e5ea
C++: Change note.
2024-01-19 15:56:54 +00:00
Geoffrey White
4691bf2cb5
C++: Be more optimistic about successfully scanned files.
2024-01-19 15:55:54 +00:00
Geoffrey White
2eba3db1cb
C++: Add a test for SuccessfullyExtractedFiles.ql and friends.
2024-01-19 15:50:28 +00:00
Ian Lynagh
d40814d48a
Kotlin: Add 2.0.0 beta 3 and remove beta 1
2024-01-19 13:36:55 +00:00
Chris Smowton
7e1dd38623
Merge pull request #15378 from github/smowton/admin/document-aws-lambda
...
Note AWS Lambda support
2024-01-19 12:11:28 +00:00
Chris Smowton
79928b9f76
Be consistent
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-19 10:44:36 +00:00
Chris Smowton
e999e38b43
Note AWS Lambda support
...
JS/TS support is old; noting for symmetry with advertised support in Python. Golang support is new as of https://github.com/github/codeql/pull/15373
2024-01-19 10:33:40 +00:00
Tony Torralba
7e7175f49d
Merge pull request #15373 from atorralba/atorralba/go/aws-lambda-sources
...
Go: Add flow sources for AWS Lambda function handlers
2024-01-19 11:21:20 +01:00
Joe Farebrother
4de19b3ec9
Merge pull request #15039 from joefarebrother/csharp-razor-flow-page-models
...
C#: Add flow steps from a PageModel to cshtml page.
2024-01-19 10:07:25 +00:00
Tony Torralba
8d6aa281b9
Update go/ql/lib/semmle/go/frameworks/AwsLambda.qll
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-01-19 10:48:34 +01:00
Pierre
51a65f9794
Merge pull request #15376 from github/sitedocs/2.15.5-2
...
Regenerate 2.16.0 changelog with fixed changenote
2024-01-19 10:43:21 +01:00
Tony Torralba
9a0fb39382
Model StartWithContext
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-01-19 09:25:35 +01:00
Tony Torralba
d3a9a5ec3f
Update go/ql/lib/semmle/go/frameworks/AwsLambda.qll
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-01-19 09:22:46 +01:00
Michael Nebel
24855ddc64
Merge pull request #15328 from michaelnebel/csharp/inlinearrays
...
C# 12: Inline array support.
2024-01-19 09:11:26 +01:00
Michael Nebel
cb53ca4e1f
Merge pull request #15367 from michaelnebel/csharp/nullablesimpletypesanitizer
...
C#: Consider nullable simple types as sanitizers.
2024-01-19 09:09:36 +01:00
Aditya Sharad
a3c0425eb3
Merge pull request #15349 from github/remove-codeql-cli-docs
...
Remove outdated CodeQL CLI docs
2024-01-18 09:45:05 -08:00
Geoffrey White
963e0a730d
C++: Fix some off-by-one mistakes in the test.
2024-01-18 17:38:32 +00:00
Pierre
4922b7fd11
Regenerate 2.16.0 changelog with fixed changenote
2024-01-18 18:08:50 +01:00
Tony Torralba
716c6cd519
Merge pull request #15375 from atorralba/atorralba/docs/amend-change-note
...
Fix change note category for clarity
2024-01-18 17:49:00 +01:00
Benjamin Rodes
833ef9d6d6
Further reorg of libraries and predicates to allow for more reusable and consistent libraries.
2024-01-18 11:17:24 -05:00
Tony Torralba
736df6fb05
Fix change note category for clarity
2024-01-18 17:09:34 +01:00
Geoffrey White
42571069bf
C++: Autoformat.
2024-01-18 16:01:06 +00:00
Geoffrey White
017369c6f2
C++: Remove redundant import (identified by QL-for-QL).
2024-01-18 15:59:32 +00:00
Benjamin Rodes
967526b285
Separating out use after free logic into a library and a ql so the query can be expanded easily.
2024-01-18 10:59:17 -05:00
Benjamin Rodes
8bd682b3f2
Deallocation.qll formatting.
2024-01-18 10:49:23 -05:00
Benjamin Rodes
7e70b30772
Adding missing windows library free functions to deallocation set
2024-01-18 09:59:28 -05:00
Alex Ford
9536fb5cae
Merge pull request #15372 from github/rb/docs-ruby-3-3
...
Ruby: update supported version to 3.3
2024-01-18 14:47:15 +00:00
Tony Torralba
1d7dbec719
Go: Add flow sources for AWS Lambda function handlers
2024-01-18 15:17:21 +01:00
Michael B. Gale
d8eef2716b
Merge pull request #15360 from github/mbg/csharp/redefine-successfully-extracted-files
2024-01-18 14:09:20 +00:00
Geoffrey White
cc2b61186e
C++: Document TReturnKind, NormalReturnKind and IndirectReturnKind better.
2024-01-18 13:24:57 +00:00
Geoffrey White
dd27ef7d3c
C++: Add MAD source definitions for the new taint sources and update the (real) test.
2024-01-18 13:24:57 +00:00
Geoffrey White
833165f86c
C++: Update the (synthetic) test.
2024-01-18 13:24:57 +00:00
Geoffrey White
c85262cfd0
C++: Add the shared MAD pack to CPP.
2024-01-18 13:24:57 +00:00
Geoffrey White
a8863e44db
C++: Port implementation to CPP.
2024-01-18 13:24:57 +00:00
Geoffrey White
3aacc5ffde
C++: Copy FlowSummaryImpl.qll from Swift.
2024-01-18 13:01:16 +00:00
Geoffrey White
fbf9545338
C++: Copy ExternalFlow.qll from Swift.
2024-01-18 13:01:16 +00:00
Geoffrey White
303882350b
C++: Add some test cases for new (real) taint sources to be defined using models-as-data.
2024-01-18 13:01:16 +00:00
Geoffrey White
9611e4ce19
C++: Add tests for (synthetic) models-as-data sources and sinks.
2024-01-18 13:01:16 +00:00
Michael Nebel
43350b0664
C#: Add change note.
2024-01-18 13:55:18 +01:00
Rasmus Wriedt Larsen
f20d4e22fe
Handle only exclude
2024-01-18 13:54:45 +01:00
Michael Nebel
9e9b5292f2
C#: Add change note.
2024-01-18 13:50:52 +01:00
Michael B. Gale
d0003ce7be
C#: Rename query to ExtractedFiles
2024-01-18 12:47:11 +00:00
Michael Nebel
337ab611c9
C#: Update expected test output.
2024-01-18 12:53:48 +01:00
Michael Nebel
9460c91c8c
C#: Also consider nullable simple types (and datetime) as simple type sanitizers.
2024-01-18 12:53:29 +01:00
Michael Nebel
559842071a
C#: Add example of log forging alert for simple nullable types and updated expected test output.
2024-01-18 12:50:40 +01:00
Michael Nebel
f8f95e6a19
C#: Add models as data test for inline arrays.
2024-01-18 12:23:26 +01:00
Michael Nebel
1d88ca2388
C#: Add more InlineArray test cases.
2024-01-18 12:23:26 +01:00
Rasmus Wriedt Larsen
54c7c5e8be
Tree sitter extractor: Proper handling of LGTM_INDEX_FILTERS
...
If someone had used `LGTM_INDEX_FILTERS=exclude:**/*\ninclude:*.rb`
before, we would have mistakenly excluded all files :|
(LGTM_INDEX_FILTERS is a prioritized list where later matches take
priority over earlier ones)
This change is needed to support adding `exclude:**/*` as the first
filter if `paths` include a glob, which currently causes bad behavior in
the Python extractor. However, we can first introduce that change once
this PR has been merged.
I realize this change can cause more folders and files to be traversed
(since they are not just skipped with --exclude). We plan to make a
better long term fix which should bring back the previous performance.
2024-01-18 11:44:31 +01:00
Michael Nebel
70e7c92774
C#: Also check the namespace of the InlineArrayAttribute.
2024-01-18 11:09:01 +01:00
Michael Nebel
674838e698
C#: Add flow test for inline arrays.
2024-01-18 11:09:01 +01:00
Michael Nebel
f14b3265ab
C#: Move static methods in CollectionFlow as these impact result line numbers.
2024-01-18 11:09:00 +01:00
Michael Nebel
47505b3bfa
C#: Add array access test for an inline array.
2024-01-18 11:09:00 +01:00
Michael Nebel
0453bb86e0
C#: Update test output of existing expressions tests.
2024-01-18 11:09:00 +01:00
Michael Nebel
ae52779cf6
C#: Add inline array test to expressions.
2024-01-18 11:09:00 +01:00
Michael Nebel
de831d188f
C#: Add inline type array test.
2024-01-18 11:09:00 +01:00
Michael Nebel
8a97c8c28e
C#: Add QL support for InlineArrayType.
2024-01-18 11:09:00 +01:00
Erik Krogh Kristensen
cda2ef4db5
Merge pull request #15364 from github/dependabot/cargo/ql/rayon-1.8.1
...
Bump rayon from 1.8.0 to 1.8.1 in /ql
2024-01-18 09:24:30 +01:00
dependabot[bot]
7b574bb07a
Bump rayon from 1.8.0 to 1.8.1 in /ql
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.8.0 to 1.8.1.
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.8.0...rayon-core-v1.8.1 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-18 03:16:14 +00:00
Michael B. Gale
a30791833d
C#: Report any extracted file as successfully extracted
2024-01-17 20:57:39 +00:00
Michael B. Gale
4a71ddd8b6
Merge pull request #15355 from github/mbg/go/increase-test-robustness
...
Go: Improve robustness of integration tests
2024-01-17 16:45:30 +00:00
Ben Rodes
67e43ecc44
Merge branch 'main' into 38-cpp-generalize-use-after-free-libraries
2024-01-17 08:05:41 -08:00
Michael B. Gale
783f006d62
Go: Update go clean -modcache comment
2024-01-17 16:04:13 +00:00
Sid Shankar
2d71294f61
Merge pull request #15256 from sidshank/change/adjust-extracted-files-diagnostics
...
Js/Py/Rb: Report any extracted file as successfully extracted
2024-01-17 11:04:06 -05:00
Mathias Vorreiter Pedersen
39dafd6f6a
C++: Suggestions to #15343 ( #39 )
...
* C++: Change the interface of 'FlowAfterFree' so that the module it takes
a single module as a parameter.
* C++: Add another predicate to the module signature.
* C++: Convert the use-after-free and double-free libraries to use new interface.
* C++: Accept test changes.
2024-01-17 11:02:46 -05:00
Max Schaefer
7bc03040ec
Make tags for positive and negative examples more precise.
2024-01-17 15:57:27 +00:00
Max Schaefer
3ae484868a
Merge pull request #15326 from github/max-schaefer/automodel-negative-sink-models
...
Automodel: Apply negative characteristics only to endpoints of the right kind.
2024-01-17 15:54:28 +00:00
Calum Grant
4660a25d44
Merge pull request #15354 from github/calumgrant/shared-diagnostics
...
C++/Swift: Create shared library and share Diagnostics
2024-01-17 15:40:12 +00:00
Max Schaefer
ae23920a6d
Fix spurious source models for primitive types in framework mode.
2024-01-17 15:36:31 +00:00
Max Schaefer
9975f974ee
Autoformat.
2024-01-17 14:53:09 +00:00
Max Schaefer
6d2bf68a86
Use inline expectations for all framework-mode tests.
2024-01-17 14:52:42 +00:00
Max Schaefer
6c47a5d5f9
Refactor framework-mode queries to make them more easily testable.
2024-01-17 14:51:58 +00:00
Erik Krogh Kristensen
17466385e0
Merge pull request #15351 from erik-krogh/zero-to-question
...
JS/PY/JAVA/RB: mark the range [0-?] as good in the overly-large-range query
2024-01-17 15:51:42 +01:00
Michael B. Gale
c00520011c
Go: Install integration test dependencies to local GOPATH
2024-01-17 14:51:06 +00:00
Michael B. Gale
afc673324f
Go: Move integration test sources to subdirectories
2024-01-17 14:50:57 +00:00
Max Schaefer
adea805546
Refactor application-mode tests so we can reuse most of it for framework mode.
2024-01-17 14:49:19 +00:00
Max Schaefer
312dd16956
Consolidate application mode tests.
2024-01-17 14:48:27 +00:00
Max Schaefer
692d5e55a2
Use inline expectations for positive examples.
2024-01-17 14:48:22 +00:00
Max Schaefer
83c567385f
Use inline expectations for negative-example tests as well.
2024-01-17 14:47:39 +00:00
Max Schaefer
1ebd0747a8
Fix treatment of void method calls.
2024-01-17 14:40:47 +00:00
Max Schaefer
18e44b6f5c
Turn AutomodelApplicationModeExtractCandidates into an inline-expectations test.
2024-01-17 14:40:46 +00:00
Max Schaefer
587d69e88c
Refactor application-mode candidate-extraction query so we can test its results before sampling.
2024-01-17 14:40:46 +00:00
Max Schaefer
800a78d258
Treat unexploitable types more centrally.
...
The apparently missing test result is due to sampling.
2024-01-17 14:40:37 +00:00
Calum Grant
d57fc3d7db
C++: Remove unneeded includes
2024-01-17 14:34:28 +00:00
Sid Shankar
2c683c910f
Merge branch 'change/adjust-extracted-files-diagnostics' of https://github.com/sidshank/codeql into change/adjust-extracted-files-diagnostics
2024-01-17 14:32:36 +00:00
Sid Shankar
0824ab77e9
Adds change notes
2024-01-17 14:31:40 +00:00
Max Schaefer
8614d7bddb
Address review feedback.
2024-01-17 14:29:52 +00:00
Calum Grant
51c5afff8b
Create shared/cpp library and move Diagnostics there
2024-01-17 14:23:18 +00:00
AlexDenisov
8610c950e1
Merge pull request #15329 from github/alexdenisov/duplicate-destructor-calls
...
C++: update tests to pick up destructor changes
2024-01-17 15:05:30 +01:00
Michael Nebel
fcb9e473c0
C#: Add upgrade and downgrade scripts.
2024-01-17 14:08:18 +01:00
Michael Nebel
83c16ae993
C#: Extract structs representing inline arrays as inline arrays.
2024-01-17 14:01:05 +01:00
Michael Nebel
5e692a882e
C#: Update dbscheme with a typekind for inline arrays.
2024-01-17 14:01:05 +01:00
erik-krogh
1a8a70dc1b
mark the range [0-?] as good in the overly-large-range query
2024-01-17 13:11:57 +01:00
Mathias Vorreiter Pedersen
b7a7963d05
Merge pull request #15348 from MathiasVP/remove-bad-magic-swift
2024-01-17 12:00:22 +00:00
Alex Denisov
f1049a4431
C++: update tests to pick up destructor changes
2024-01-17 12:05:30 +01:00
Michael B. Gale
5cf9bc2a76
Merge pull request #15341 from github/mbg/go/simplify-tests
2024-01-17 10:56:34 +00:00
Felicity Chapman
e96585f777
Remove outdated CodeQL CLI docs
2024-01-17 09:29:53 +00:00
Sid Shankar
59098be8c4
Merge branch 'main' into change/adjust-extracted-files-diagnostics
2024-01-16 21:51:41 -05:00
Mathias Vorreiter Pedersen
6391346ade
Swift: Add 'nomagic'.
2024-01-16 23:08:20 +00:00
Mathias Vorreiter Pedersen
1fba345fb3
Merge pull request #15219 from rdmarsh2/rdmarsh2/swift/parameterized-cfg-library
...
Swift: switch to shared, parameterized CFG library
2024-01-16 21:54:05 +00:00
Benjamin Rodes
9a0e2e57ba
Updating .expected
2024-01-16 13:18:25 -05:00
Benjamin Rodes
a0ef7955b1
Updating FlowAfterFree to not enforce dominance of source/sink. DoubleFree and UseAfterFree queries now enforce dominance.
2024-01-16 13:15:36 -05:00
Pierre
d6030764aa
Merge pull request #15279 from github/sitedocs/2.15.5-2
...
Generate Changelogs for 2.15.5 & 2.16.0
2024-01-16 18:29:22 +01:00
Shati Patel
e50a0ee7f9
Merge pull request #15333 from github/shati-patel/settings-telemetry
...
Add note about telemetry for CodeQL extension settings
2024-01-16 17:05:45 +00:00
Pierre
4866c9c811
Add 2.16.0 changelog and move query list link to index
2024-01-16 17:07:14 +01:00
Michael B. Gale
08c4dc1ea5
Go: Exclude all FlowSummaryNodes from test results
2024-01-16 15:51:40 +00:00
Alexander Eyers-Taylor
934474681d
Merge pull request #15254 from github/post-release-prep/codeql-cli-2.16.0
...
Post-release preparation for codeql-cli-2.16.0
2024-01-16 14:50:40 +00:00
Calum Grant
e18ee790f2
Merge pull request #15322 from github/calumgrant/swift-diagnostics
...
Swift extractor: Generalise SwiftDiagnostics
2024-01-16 14:30:17 +00:00
Michael Nebel
8d64d71583
C#: Move the gen kind enum script.
2024-01-16 14:18:41 +01:00
Alex Ford
abbc80ac8a
Ruby: update supported version to 3.3
2024-01-16 12:55:58 +00:00
AlexDenisov
696a72a127
Merge pull request #15259 from github/alexdenisov/swift-5.9.2
...
Swift: upgrade to 5.9.2
2024-01-16 12:49:13 +01:00
Calum Grant
7cadb0a574
Swift extractor: Simplify declarations back
2024-01-16 11:31:15 +00:00
Calum Grant
f400a5f49f
Swift extractor: Fix Linux build
2024-01-16 11:05:05 +00:00
Calum Grant
2cc574dc70
Swift extractor: Use a global variable for the extractor name
2024-01-16 10:56:18 +00:00
Rasmus Wriedt Larsen
6f45de1095
Merge pull request #15325 from RasmusWL/c#-filter-order
...
C#: Respect order of `LGTM_INDEX_FILTERS` in buildless extraction
2024-01-16 09:28:44 +01:00
Tony Torralba
2246c969a3
Merge pull request #15244 from Marcono1234/marcono1234/regex-flags
...
Java: Improve Regex flag parsing
2024-01-16 08:25:49 +01:00
amammad
a47c702171
change TN to GOOD instead of using hasValueFlow
2024-01-15 22:08:35 +04:00
Shati Patel
c445b2b547
Add note about telemetry for CodeQL extension settings
2024-01-15 16:32:27 +00:00
Mathias Vorreiter Pedersen
c38ae93640
Swift: Fix import.
2024-01-15 15:42:51 +00:00
Mathias Vorreiter Pedersen
e735ced751
Swift: Autoformat.
2024-01-15 15:24:27 +00:00
Michael B. Gale
6c9f79cc32
Merge pull request #15327 from github/mbg/go/handle-pre-release-versions
...
Go: Better handle pre-release versions
2024-01-15 15:24:23 +00:00
github-actions[bot]
57df8b92df
Post-release preparation for codeql-cli-2.16.0
2024-01-15 15:00:50 +00:00
Rasmus Wriedt Larsen
13c236227f
C#: Apply suggestions from code review
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2024-01-15 15:51:36 +01:00
Rasmus Wriedt Larsen
086e4f7f12
C#: Adjust test for LGTM_INDEX_FILTERS
2024-01-15 15:50:25 +01:00
Michael B. Gale
8c13429163
Go: Ensure getEnvGoSemVer returns a canonical SemVer
2024-01-15 14:20:48 +00:00
Michael B. Gale
a64c001637
Go: Remove unnecessary call to Canonical
2024-01-15 14:19:55 +00:00
Owen Mansel-Chan
63a914a324
Merge pull request #15324 from owen-mc/go/add-fasthttp-to-frameworks-for-coverage
...
Go: add fasthttp to frameworks for coverage
2024-01-15 14:15:19 +00:00
Michael B. Gale
42dcb5f94d
Go: Better handle pre-release versions
2024-01-15 14:00:56 +00:00
Max Schaefer
90a4552c4f
Fix omittable exists.
2024-01-15 13:45:03 +00:00
Max Schaefer
fee44074f7
Autoformat.
2024-01-15 13:44:45 +00:00
Max Schaefer
3befce98b3
When checking whether an endpoint has already been modelled, make sure to take the extensibleType into account.
2024-01-15 12:09:39 +00:00
Asger F
96f8a02a72
JS: Treat private-field methods as private
2024-01-15 13:00:39 +01:00
Max Schaefer
68cf9aca12
Remove a few getExtensibleType checks which are now unnecessary.
2024-01-15 11:50:59 +00:00
Rasmus Wriedt Larsen
59d239b230
C#: Respect order of LGTM_INDEX_FILTERS in buildless extraction
...
That is, using `exclude:**/*\ninclude:**/*` should include everything.
2024-01-15 11:45:58 +01:00
Owen Mansel-Chan
d85628e6a6
Update Go coverage reports
2024-01-15 10:17:48 +00:00
Owen Mansel-Chan
216464f382
Add fasthttp framework to the coverage reports
2024-01-15 10:14:06 +00:00
Calum Grant
39edfa3c14
Swift extractor: Rename a SwiftDiagnostic to Diagnostic
2024-01-15 09:34:28 +00:00
Calum Grant
f82c29ee37
Swift extractor: Generalize SwiftDiagnostics
2024-01-15 09:12:26 +00:00
amammad
65ac94320e
fix Typo in tests
2024-01-15 01:14:54 +04:00
amammad
073f65d586
Merge branch 'amammad-go-bombs' of https://github.com/amammad/codeql into amammad-go-bombs
2024-01-15 01:12:40 +04:00
amammad
3c79faf37a
minor change for resolving rebase conflicts
2024-01-15 01:06:36 +04:00
amammad
2fe10942da
minor change for resolving rebase conflicts
2024-01-15 01:02:55 +04:00
amammad
3fcb0ee228
move MultipartAndFormRemoteSource to DecompressionBombs.qll
2024-01-15 01:01:51 +04:00
amammad
b2edf6cf3e
add Inline Expectations Test, update tests accordingly
2024-01-15 00:27:06 +04:00
amammad
a1c384c57b
change Decompression bombs Query structure
2024-01-15 00:22:55 +04:00
Owen Mansel-Chan
057ee85cd0
Merge pull request #14123 from am0o0/amammad-go-fastHttp
...
Go: fasthttp
2024-01-14 20:12:31 +00:00
amammad
0efb00724d
Add hasFlowToComparison to all sinks as a sanitizer
2024-01-15 00:05:11 +04:00
Ian Lynagh
ff2b40a53d
Merge pull request #15315 from igfoo/igfoo/typo
...
C++: Fix typo
2024-01-12 18:28:32 +00:00
Ian Lynagh
e357d18d35
C++: Fix typo
2024-01-12 17:57:34 +00:00
Max Schaefer
919330fb53
Some more performance refactoring.
2024-01-12 17:38:58 +00:00
Max Schaefer
bb63fcde43
Refactor to avoid bad join order.
2024-01-12 15:24:24 +00:00
Alexander Eyers-Taylor
2704f4ed36
Merge pull request #15266 from github/felicitymay-publish-docs
...
Update supported-versions-compilers.rst on release candidate branch
2024-01-12 14:58:32 +00:00
Alexander Eyers-Taylor
7cd6c2601e
Merge branch 'codeql-cli-2.16.0' into felicitymay-publish-docs
2024-01-12 14:58:12 +00:00
Michael Nebel
275822f80d
Merge pull request #15296 from michaelnebel/csharp/getruntimeargument
...
C#: Improve getRuntimeArgumentForParameter to consider named arguments.
2024-01-12 15:57:17 +01:00
Michael Nebel
9becd0876f
Merge pull request #15179 from michaelnebel/modelgenrespectmanual
...
C#/Java: Increase precision of model generation.
2024-01-12 15:12:21 +01:00
Alexander Eyers-Taylor
b2f1fbe875
Merge pull request #15305 from github/alexdenisov/revert-swift-change
...
Revert "Swift: separate installation of dependencies and autobuilding"
2024-01-12 13:55:54 +00:00
Max Schaefer
45ca301593
Rename a predicate.
2024-01-12 13:18:05 +00:00
Michael Nebel
dcce93ac4c
C#: Address more review comments.
2024-01-12 14:07:27 +01:00
Michael Nebel
37a21ec548
Java: Address review comments.
2024-01-12 13:36:23 +01:00
Michael Nebel
74cdcab6d8
Java: Update expected test output.
2024-01-12 13:36:23 +01:00
Michael Nebel
6af0bca777
Java: Avoid generating contradicting summary and neutral summary models.
2024-01-12 13:36:23 +01:00
Michael Nebel
03d4025b99
Java: Add a testcase where both a neutral summary and summary is being generated.
2024-01-12 13:36:23 +01:00
Michael Nebel
c7045fbb99
C#: Add some test cases for excluding methods for model generation.
2024-01-12 13:35:23 +01:00
Michael Nebel
8702293878
C#: Update expected test output for type based model generator.
2024-01-12 13:35:23 +01:00
Michael Nebel
81de9d35af
C#/Java: Don't generate models if there exist a manual summary or neutral summary.
2024-01-12 13:35:22 +01:00
Max Schaefer
ea26e21454
Extend negative characteristics for exceptions to source models.
2024-01-12 12:20:22 +00:00
Max Schaefer
06ba5ea9f8
Eliminate GetCallable modules and use getCallable instead.
2024-01-12 12:03:49 +00:00
Max Schaefer
76b84301e3
Share some code.
2024-01-12 12:03:49 +00:00
Max Schaefer
9f443d4f83
Make Unexploitable*Characteristic more precise.
2024-01-12 12:03:41 +00:00
Alex Denisov
28dd2e979b
Revert "Swift: separate installation of dependencies and autobuilding"
...
This reverts commit dd13ea3d0a .
2024-01-12 12:34:13 +01:00
Mathias Vorreiter Pedersen
6bd31deb00
Merge pull request #15282 from MathiasVP/fix-duplicate-final-global-value
...
C++: Fix duplicate "final global value" nodes
2024-01-12 11:05:19 +00:00
Max Schaefer
a8336328fd
Merge pull request #15176 from github/max-schaefer/py-url-redirection-qhelp
...
Python: Mention more sanitisation options in py/url-redirection qhelp.
2024-01-12 10:50:33 +00:00
Michael Nebel
c68f9b05cd
C#: Address review comments.
2024-01-12 11:24:37 +01:00
Mathias Vorreiter Pedersen
8f36584bd9
C++: Fix Code Scanning errors.
2024-01-12 10:20:20 +00:00
Jeroen Ketema
b209ea6735
Merge pull request #15304 from MathiasVP/revert-12125
...
C++: Revert "Merge pull request #12125 from jketema/unique-function"
2024-01-12 11:20:00 +01:00
Mathias Vorreiter Pedersen
34980bfe20
C++: Add more QLDoc.
2024-01-12 10:12:34 +00:00
Tony Torralba
448439e76b
Merge pull request #15294 from atorralba/atorralba/go/insecure-randomness-index-flowstep
...
Go: Recognize unsafe candidate selection in `go/insecure-randomness`
2024-01-12 11:08:56 +01:00
Owen Mansel-Chan
6945289afc
Merge pull request #15246 from owen-mc/java/manual-neutral-overrides-generated
...
C#/Java: Manual neutral summaries should block generated summaries
2024-01-12 10:05:18 +00:00
Owen Mansel-Chan
ed4843f397
Merge pull request #15302 from github/dependabot/go_modules/go/extractor/extractor-dependencies-159a68acba
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2024-01-12 10:03:58 +00:00
Michael Nebel
9f14c7c408
Merge pull request #15297 from michaelnebel/csharp/typealias
...
C# 12: Type alias [Test only]
2024-01-12 11:03:25 +01:00
Mathias Vorreiter Pedersen
fe2c806c2d
C++: Undo some of the reverting.
2024-01-12 09:35:50 +00:00
Mathias Vorreiter Pedersen
84d08b0417
Revert "Merge pull request #12125 from jketema/unique-function"
...
This reverts commit 9c039c4a08 , reversing
changes made to ecd2003c14 .
2024-01-12 09:29:17 +00:00
Felicity Chapman
e408078eaa
Merge pull request #15235 from github/docs-11486-security-severity
...
Replace blog link with link to GitHub user docs
2024-01-12 09:21:08 +00:00
Tony Torralba
87c6a3e38c
Merge pull request #15301 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-01-12 09:31:27 +01:00
Tony Torralba
31c11add85
Updated change note
2024-01-12 08:55:24 +01:00
dependabot[bot]
dd08c31dc5
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/tools` from 0.16.1 to 0.17.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.16.1...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-12 03:24:29 +00:00
github-actions[bot]
add9c4e489
Add changed framework coverage reports
2024-01-12 00:16:38 +00:00
Jeroen Ketema
1c9f5b8b74
Merge pull request #15300 from github/sashabu/uuidof
...
C++: Add a test with `__uuidof` in a template.
2024-01-12 00:05:49 +01:00
Felicity Chapman
f06cca8eff
Merge branch 'main' into docs-11486-security-severity
2024-01-11 22:28:30 +00:00
Alexandre Boulgakov
3493252321
C++: Add a test with __uuidof in a template.
2024-01-11 22:11:50 +01:00
Andrew Eisenberg
42f6dbe0b1
Merge pull request #15288 from github/aeisenberg/problem.severity
...
Update query-metadata-style-guide.md clarify problem.severity
2024-01-11 12:53:13 -08:00
Asger F
59c9ac735a
Merge pull request #15295 from asgerf/js/type-model-export
...
JS: Include sink nodes as base-case when resolving types
2024-01-11 20:47:32 +01:00
Tony Torralba
12c5b46a0a
Reduce FPs
...
* Restrict allowed types in the flow step
* Discard more non-crypto-related TLS APIs
2024-01-11 16:20:46 +01:00
Michael Nebel
0fa2067c3f
C#: Update expected test output.
2024-01-11 16:19:24 +01:00
Michael Nebel
b03eecb5ab
C#: Add support for named arguments in getRuntimeArgumentForParameter.
2024-01-11 16:19:24 +01:00
Michael Nebel
85f0ad623b
C#: Add testexample of using named arguments when calling a delegate.
2024-01-11 16:19:24 +01:00
Michael Nebel
8b464fbc4a
Merge pull request #15249 from michaelnebel/csharp/lambdadefaultparams
...
C# 12: Support for lambda `param` parameter and parameter defaults.
2024-01-11 16:18:03 +01:00
Owen Mansel-Chan
5e9ddd8c63
Apply suggestions from code review on change notes
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-01-11 15:15:21 +00:00
Michael Nebel
ef73fc3a6f
C#: Add a test for type alias.
2024-01-11 16:13:35 +01:00
Owen Mansel-Chan
3c369f88bb
Add change notes
2024-01-11 14:00:17 +00:00
Erik Krogh Kristensen
d782bd9b1f
Merge pull request #13624 from jorgectf/seclab/dotjs
...
JS: Add `dot.js` support
2024-01-11 14:57:19 +01:00
Owen Mansel-Chan
def957e814
Accept review suggestion fixing a comment
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2024-01-11 13:56:27 +00:00
Tom Hvitved
a1036c81ee
Merge pull request #15273 from hvitved/ruby/captured-yield
...
Ruby: Handle captured `yield` calls
2024-01-11 14:34:34 +01:00
Owen Mansel-Chan
2f01688319
Merge pull request #15280 from owen-mc/java/add-manual-models-for-df-generation
...
Java: improve models for some important JDK methods
2024-01-11 12:47:37 +00:00
Asger F
82cee61999
JS: Include sink nodes as base-case when resolving types
2024-01-11 13:41:21 +01:00
Max Schaefer
6e9c90a6bb
Properly distinguish negative source and sink characteristics.
...
In particular, `IsSanitizerCharacteristic` is a negative _source_ characteristic (not a negative sink characteristic), while `NeutralModelCharacteristic` is both.
This eliminates the erroneous test results.
2024-01-11 12:36:48 +00:00
Max Schaefer
ff4555ac5b
Get rid of negative sink types.
...
Instead of positively implying the negative sink type, negative sink characteristics now negatively imply all sink types (but not source types). This is simpler and sice we will never have a huge number of sink types it doesn't impact performance either.
Changes to test results:
- The call to `createDirectories` at `Test.java:87` is now correctly classified as a source candidate, having previously been erroneously excluded by a negative _sink_ characteristic.
- The call to `compareTo` at `Test.java:48` is now erroneously classified as a source candidate; it should be suppressed by `IsSanitizerCharacteristic`, which is a negative sink characteristic, but should really be a negative source characteristic.
- In framework mode, several endpoints are now erroneously classified as source candidates even though they have neutral models, because `NeutralModelCharacteristic` is currently only a negative sink characteristic and not a negative source characteristic.
2024-01-11 12:19:53 +00:00
Max Schaefer
bcf4f4febd
Drop a conjunct which is now spurious.
2024-01-11 11:56:59 +00:00
Max Schaefer
03ca244df2
Associate endpoints with their potential endpoint types and check these when determining candidates.
...
This prevents us from associating a sink candidate with a source type and vice versa.
However, this does not fix the problem of negative characteristics for sink types excluding source candidates.
2024-01-11 11:44:14 +00:00
Max Schaefer
a6d996b478
Add an example of a missed source candidate.
...
`Files.list` has a taint step from its first argument to its result, so that first argument should not be considered a sink candidate (and it is not). However, due to a bug in `IsMaDTaintStepCharacteristic` it is also not considered a source candidate, which is wrong: as the example shows, if that argument is a call we do very much want to consider it as a source candidate.
2024-01-11 11:27:34 +00:00
Max Schaefer
8e429bd399
Rename isSinkCandidate (and a related predicate) to isCandidate.
...
This reflects the fact that these predicates also deal with source candidates.
2024-01-11 11:20:51 +00:00
Tony Torralba
05b487e3a6
Go: Recognize unsafe candidate selection in go/insecure-randomness
2024-01-11 11:58:12 +01:00
Max Schaefer
dba2e06a1d
Merge pull request #15283 from github/max-schaefer/release-automodel-query-pack
...
Release automodel extraction queries v0.0.12.
2024-01-11 10:28:55 +00:00
Tony Torralba
8ccacafb59
Merge pull request #15289 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-01-11 10:15:34 +01:00
Michael Nebel
1770beea25
C#: Update QL doc for getRuntimeArgumentForParameter.
2024-01-11 09:07:15 +01:00
Michael Nebel
4c1e84b992
C#: Address review comments.
2024-01-11 09:07:15 +01:00
Michael Nebel
4dedc454ae
C#: Add change-note.
2024-01-11 09:07:15 +01:00
Michael Nebel
e18534e748
C#: Force population of compiler generated delegates used for lambdas.
2024-01-11 09:07:15 +01:00
Michael Nebel
9a64e2a9b0
C#: Add test for lambda default parameters.
2024-01-11 09:07:15 +01:00
Michael Nebel
71c996a0be
C#: Update lambdaArgument expected output.
2024-01-11 09:07:14 +01:00
Michael Nebel
b2faf3618c
C#: Add support for params parameters in getRuntimeArgumentForParameter.
2024-01-11 09:07:14 +01:00
Michael Nebel
f0852c89bc
C#: Add test for lambda arguments.
2024-01-11 09:07:14 +01:00
Paolo Tranquilli
482b5f3b29
Merge pull request #15265 from github/redsun82/def-to-non-header-include-exceptions
...
C++: add `.def` to exceptions to AV rule 32
2024-01-11 08:34:43 +01:00
github-actions[bot]
7db46b6ab6
Add changed framework coverage reports
2024-01-11 00:16:44 +00:00
Andrew Eisenberg
2f190d6552
Update docs/query-metadata-style-guide.md
...
Co-authored-by: Angela P Wen <angelapwen@github.com >
2024-01-10 14:27:00 -08:00
Owen Mansel-Chan
3767348dec
Update test expectations
2024-01-10 22:25:08 +00:00
Owen Mansel-Chan
7824e60acd
Manual neutral summaries should block generated summaries
2024-01-10 22:25:06 +00:00
Owen Mansel-Chan
52563b01b7
Factor logic out into interpretNeutral
2024-01-10 22:25:04 +00:00
Owen Mansel-Chan
370a32da8b
Test summary models and neutral models, manual and generated
2024-01-10 22:25:02 +00:00
Andrew Eisenberg
303272d0d4
Update query-metadata-style-guide.md clarify problem.severity
2024-01-10 13:47:35 -08:00
Erik Krogh Kristensen
51fe477ed1
Merge pull request #15271 from erik-krogh/fastTS
...
JS: faster TypeScript extraction
2024-01-10 21:02:34 +01:00
Owen Mansel-Chan
9e2e01ff89
Update Top JDK APIs test expectation
2024-01-10 17:07:33 +00:00
Ian Lynagh
5d3166cfef
Kotlin: Tweak code formatting
2024-01-10 16:39:49 +00:00
Ian Lynagh
80163c5aac
Kotlin 2: Just accept the remaining comment differences for now
2024-01-10 16:39:47 +00:00
Ian Lynagh
ce4253c17f
Kotlin 2: Remove an expected diagnostic match
...
It is only generated when using the PSI comment extractor.
2024-01-10 16:39:04 +00:00
Ian Lynagh
20254fd71e
Kotlin: Accept a location change
2024-01-10 16:39:04 +00:00
Ian Lynagh
b3f8167973
Kotlin: Don't warn if we can't find a label for a fake owner
...
The fake owner probably just wasn't extracted
2024-01-10 16:39:02 +00:00
Owen Mansel-Chan
33030417b4
Add change note
2024-01-10 15:48:28 +00:00
Tony Torralba
52d3e3da31
Merge pull request #15268 from atorralba/atorralba/go/cleartext-logging-src-and-sink-improvs
...
Go: Adds sources and sinks to `go/clear-text-logging`
2024-01-10 15:52:40 +01:00
Tom Hvitved
ad75562b55
CPP: Update expected test output
2024-01-10 15:27:22 +01:00
Ian Wright
3534bfca9c
Merge pull request #15251 from github/z80coder/dry-run
...
Support dry-run of publishing script
2024-01-10 14:16:10 +00:00
Philip Ginsbach
a732199317
Merge pull request #15261 from github/ginsbach/WeakAliasesInLanguageReference
...
document weak aliases in the language reference
2024-01-10 13:55:10 +00:00
Ian Lynagh
f111fba4b7
Merge pull request #15269 from igfoo/igfoo/ktfmt
...
Kotlin: Reformat code
2024-01-10 13:35:35 +00:00
Tom Hvitved
295198744b
Ruby: Handle captured yield calls
2024-01-10 14:25:15 +01:00
Tom Hvitved
55be4c39ef
Ruby: Add data flow call sensitivity test
2024-01-10 14:25:12 +01:00
Paolo Tranquilli
1034c3d2f9
Merge pull request #15277 from github/redsun82/swift-fix-upgrade
...
Swift: fix upgrade and downgrade scripts
2024-01-10 14:19:25 +01:00
Tony Torralba
5e8c63c3aa
Use arg position instead of arg as class field to reduce number of instances
2024-01-10 14:12:29 +01:00
Owen Mansel-Chan
28aa9b2b3c
C#: Emulate that some methods don't have a body (so generated summaries will be applied)
2024-01-10 12:54:33 +00:00
erik-krogh
06c1fff770
address review comments
2024-01-10 13:53:54 +01:00
Tony Torralba
78c0cdfa2c
Apply suggestions from code review
...
co-authored-by: Owen Mansel-Chan <owen-mc@github.com >
2024-01-10 13:33:41 +01:00
Tony Torralba
3534f692dc
Fix test expectations
...
Barrier-in addition removes an overlapping path
2024-01-10 13:33:41 +01:00
Tony Torralba
80526e509e
Go: Adds sources and sinks to go/clear-text-logging
2024-01-10 13:33:41 +01:00
Tony Torralba
ca0a1dc7ae
Merge pull request #15267 from atorralba/atorralba/go/fmt-appenderorsprinter-mad
...
Go: Migrate AppenderOrSprinter model to models-as-data
2024-01-10 13:31:19 +01:00
Paolo Tranquilli
e64ce228bb
Merge pull request #15276 from github/redsun82/cmake-drop-internal-transition
...
Bazel/CMake: drop confusing `_INTERNAL_TRANSITION` suffix
2024-01-10 13:18:33 +01:00
Pierre
78f0aa971b
Fix historic changelogs (security coverage section)
2024-01-10 13:02:09 +01:00
Pierre
365cde36ae
Create 2.15.5 changelog
2024-01-10 13:01:49 +01:00
Mathias Vorreiter Pedersen
7a0cbb4e5a
C++: Accept test changes.
2024-01-10 11:55:53 +00:00
Mathias Vorreiter Pedersen
0c3ea6c5df
C++: Fix conflation issue.
2024-01-10 11:55:39 +00:00
Mathias Vorreiter Pedersen
259bf27334
C++: Add pointer/pointee conflation test.
2024-01-10 11:51:40 +00:00
Ian Wright
75545db97c
restore files, whether overriding or not
2024-01-10 11:40:31 +00:00
Tony Torralba
46df5857ec
Update test expectations
2024-01-10 12:31:02 +01:00
Max Schaefer
8d56ee4a56
Release automodel extraction queries v0.0.12.
2024-01-10 11:29:36 +00:00
Paolo Tranquilli
796c862623
Swift: fix downgrade script
2024-01-10 12:23:48 +01:00
Paolo Tranquilli
1d483cff1d
Swift: fix upgrade script
2024-01-10 12:09:11 +01:00
Ian Wright
f793ce1e49
remove temp testing comments
2024-01-10 11:07:06 +00:00
Ian Wright
ed8422a2da
remove need for CODEQL_DIST path
2024-01-10 11:07:06 +00:00
Ian Wright
0d2ec2d632
install codeql extension
2024-01-10 11:07:06 +00:00
Ian Wright
62bdaf069b
use gh tool to access codeql
2024-01-10 11:07:05 +00:00
Ian Wright
30e5be68c9
temp comment for testing
2024-01-10 11:07:05 +00:00
Ian Wright
9895114e05
temp comment for testing
2024-01-10 11:07:05 +00:00
Ian Wright
0f76fbad36
better processing of args
2024-01-10 11:07:05 +00:00
Ian Wright
749f8b9807
fix help message
2024-01-10 11:07:05 +00:00
Ian Wright
00f4991648
support dry-run
...
fix
fix
temp
temp
better support for dry-run
fix
fix
fix
fix
reinstate exits
2024-01-10 11:07:05 +00:00
Paolo Tranquilli
b93d108400
Bazel/CMake: drop confusing _INTERNAL_TRANSITION suffix
2024-01-10 12:00:40 +01:00
Tony Torralba
dc911c3f28
Apply suggestions from code review
...
co-authored-by: Owen Mansel-Chan <owen-mc@github.com >
2024-01-10 11:53:53 +01:00
Philip Ginsbach
d38d4aadf2
try to be clearer about weak and strong aliases in the language reference
2024-01-10 10:53:20 +00:00
Tom Hvitved
c9cf2a899c
Merge pull request #15260 from hvitved/dataflow/may-benefit-from-cctx-simplify
...
Data flow: Remove column from `mayBenefitFromCallContext`
2024-01-10 11:43:15 +01:00
Philip Ginsbach
29e4623d02
fix typos and other small improvements from review
2024-01-10 10:42:04 +00:00
Max Schaefer
ac8e92eec5
Merge pull request #15264 from github/max-schaefer/automodel-exclude-generated-calls
...
Automodel: Do not generate features for compiler-generated program elements.
2024-01-10 10:22:00 +00:00
Erik Krogh Kristensen
77b0c7f025
Merge pull request #15221 from erik-krogh/react-step
...
JS: promote `PropsTaintStep` to a `PreCallGraphStep`
2024-01-10 10:17:32 +01:00
Erik Krogh Kristensen
3000b4b9b3
rename PropsTaintStep to PropsFlowStep
...
Co-authored-by: Asger F <asgerf@github.com >
2024-01-10 09:45:29 +01:00
Tony Torralba
d6082f8446
Merge pull request #14926 from ebickle/fix/update-gson-model
...
Java: Improve Gson parse, get, and stream models
2024-01-10 09:11:01 +01:00
Michael Nebel
94bf5a41e6
Merge pull request #15225 from michaelnebel/java/modeldiffworkflow
...
Java: Bring the Model Diff workflow back into a working state.
2024-01-10 08:50:31 +01:00
Philip Ginsbach
1284fc529f
documentation: update definition of applicativeness in the specification
2024-01-09 17:09:05 +00:00
Philip Ginsbach
b393bc9a88
documentation: update definition of definite environment in the specification
2024-01-09 17:08:59 +00:00
Philip Ginsbach
805e9d8910
documentation: weak and strong aliases in the specification
2024-01-09 17:00:45 +00:00
Max Schaefer
9b7cfd88cd
Clarify relationship of isFromSource and Element::fromSource.
2024-01-09 16:21:36 +00:00
Tony Torralba
a0f6b5ea10
Update test expectations
2024-01-09 17:00:20 +01:00
Tony Torralba
da4049e25c
Go: Migrate AppenderOrSprinter model to models-as-data
2024-01-09 16:35:47 +01:00
Ian Lynagh
bf611feab3
Kotlin: Reformat code
...
Using:
java -jar ktfmt-0.46-jar-with-dependencies.jar --kotlinlang-style java/kotlin-extractor/**/*.kt
2024-01-09 15:33:41 +00:00
Felicity Chapman
be0df9298f
Update supported-versions-compilers.rst on 2.16.0 branch
2024-01-09 15:06:51 +00:00
Paolo Tranquilli
27160b8861
C++: add change note
2024-01-09 15:31:43 +01:00
erik-krogh
d0fcb7d1ed
faster TypeScript extraction by not having to compute the "type-string" for a type every time
2024-01-09 15:30:55 +01:00
Paolo Tranquilli
0bfeadbf1f
C++: add .def to exception to test
2024-01-09 15:30:27 +01:00
Paolo Tranquilli
270df940ff
C++: add .def to exceptions to AV rule 32
...
This is used as textual includes in several projects for macro
metaprogramming, for example in `llvm-project` and in `swift` (and since
some time in our internal codebase as well).
2024-01-09 15:18:13 +01:00
Max Schaefer
3e8775daaa
Automodel: Do not generate features for compiler-generated program elements.
...
These have dummy locations, which breaks certain invariants that break downstream processing.
2024-01-09 13:39:46 +00:00
Ian Lynagh
0bc1463ab0
Merge pull request #14941 from igfoo/igfoo/dff
...
Kotlin 2: Accept some location changes
2024-01-09 12:20:37 +00:00
Ian Lynagh
95f336c05b
Merge pull request #14393 from igfoo/igfoo/no1.4
...
Kotlin: Remove 1.4 compatibility
2024-01-09 12:20:15 +00:00
Mathias Vorreiter Pedersen
1c81c9b6e3
Merge pull request #15262 from MathiasVP/fix-qldoc-on-cmpWithLinearBound
...
C++: Fix QLDoc on `cmpWithLinearBound`
2024-01-09 11:16:42 +00:00
Philip Ginsbach
225aff47ed
documentation: update section on applicativity
2024-01-09 10:39:18 +00:00
Philip Ginsbach
493158a3f5
documentation: add section no strong and weak aliases
2024-01-09 10:39:18 +00:00
Tom Hvitved
f90201eb56
Data flow: Remove column from mayBenefitFromCallContext
2024-01-09 11:34:43 +01:00
Mathias Vorreiter Pedersen
f5e1e49761
C++: Fix QLDoc on 'cmpWithLinearBound' as a response to #15248 .
2024-01-09 10:07:22 +00:00
Alex Denisov
0e73531aa9
Swift: upgrade to 5.9.2
2024-01-09 09:23:32 +01:00
Tony Torralba
3224b5c1b9
Merge pull request #15257 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-01-09 08:57:28 +01:00
github-actions[bot]
384cf90e8f
Add changed framework coverage reports
2024-01-09 00:17:10 +00:00
maikypedia
6c8fbe877d
Changes
2024-01-09 00:46:41 +01:00
Eric Bickle
f6fa7120d9
Merge branch 'main' into fix/update-gson-model
2024-01-08 15:46:14 -08:00
Sid Shankar
b26fef816a
Rb: Report any extracted file as successfully extracted
2024-01-08 22:21:30 +00:00
Sid Shankar
fb660b8f05
Py: Report any extracted file as successfully extracted
2024-01-08 22:20:51 +00:00
Sid Shankar
e30a0d1e83
JS: Report any extracted file as successfully extracted
2024-01-08 22:19:33 +00:00
Robert Marsh
ec6d8da6b6
Swift: merge ControlFlowGraphParameter into ControlFlowGraphImplSpecific
2024-01-08 21:31:15 +00:00
Eric Bickle
929ce65af1
Remove zero width space characters.
2024-01-08 13:15:38 -08:00
Jeroen Ketema
9330afbe8a
Merge pull request #15252 from jketema/builtin-rm
...
C++: Remove test that is no longer relevant
2024-01-08 20:38:46 +01:00
Edward Minnix III
e9467fe2d6
Merge pull request #14724 from egregius313/egregius313/java/environment-variable-injection
...
Java: Environment variable injection query
2024-01-08 13:06:31 -05:00
Mathias Vorreiter Pedersen
18bd0d0ad0
Merge pull request #14954 from microsoft/32-cpp-string-concatenation-library
...
32 cpp string concatenation library
2024-01-08 18:42:31 +01:00
Geoffrey White
2f6f376d2d
Merge pull request #15230 from geoffw0/swiftui
...
Swift: Add dataflow tests for property wrappers and SwiftUI
2024-01-08 17:41:43 +00:00
Alexander Eyers-Taylor
98a2af8fed
Merge pull request #15250 from github/release-prep/2.16.0
...
Release preparation for version 2.16.0
2024-01-08 16:58:40 +00:00
Cornelius Riemenschneider
c84e85d35d
Merge pull request #15232 from github/criemen/bump-bazel-rules
...
Bazel: Bump dependant rules versions.
2024-01-08 17:49:21 +01:00
Ian Lynagh
d7cdad04dd
Merge pull request #14895 from igfoo/igfoo/kt-snap
...
Kotlin: Add a 2.0.255 snapshot
2024-01-08 16:13:03 +00:00
Ed Minnix
55da62e9cf
Remove stray comma
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2024-01-08 11:09:11 -05:00
Alex Ford
ef8ca55d92
Merge pull request #15203 from pwntester/patch-3
...
Ruby: Update Kernel.qll to include `Object.send` aliases
2024-01-08 15:32:57 +00:00
Chuan-kai Lin
a743fca3a5
Merge pull request #15243 from github/cklin/upgrade-delete-fixes-ruby
...
Ruby: Fix upgrade delete directives
2024-01-08 07:27:59 -08:00
Chuan-kai Lin
c4e5506a2c
Merge pull request #15242 from github/cklin/upgrade-delete-fixes-csharp
...
C#: Fix upgrade delete directives
2024-01-08 07:27:40 -08:00
Chuan-kai Lin
d7e22b2ddd
Merge pull request #15241 from github/cklin/upgrade-delete-fixes-cpp
...
C++: Fix upgrade delete directives
2024-01-08 07:27:27 -08:00
Chris Smowton
b7158ab1d7
Merge pull request #15231 from github/smowton/admin/note-java-21-support
...
Note Java 21 support
2024-01-08 15:19:48 +00:00
Ed Minnix
b8466b45be
Update change note date
2024-01-08 09:39:11 -05:00
Edward Minnix III
2440075402
Remove off-topic reference
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-08 09:39:10 -05:00
Edward Minnix III
3816271b3e
Remove redundant CWE link
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-08 09:39:10 -05:00
Ed Minnix
2eff6b351c
Add comment
2024-01-08 09:39:09 -05:00
Ed Minnix
16bb19e176
Add OWASP and CERT references
2024-01-08 09:39:08 -05:00
Ed Minnix
9f974415c0
Add references to CWE-454 (External Initialization of Trusted Variables)
2024-01-08 09:39:07 -05:00
Ed Minnix
97b29bb965
Add Java Tutorial reference
2024-01-08 09:39:06 -05:00
Edward Minnix III
938d52b86f
Docs review suggestions
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2024-01-08 09:39:05 -05:00
Ed Minnix
a528db8958
Use MapMutation instead of MethodCall
2024-01-08 09:39:05 -05:00
Ed Minnix
e14be0e971
Add BAD markers to samples
2024-01-08 09:39:04 -05:00
Ed Minnix
709649e9df
Model replace and putIfAbsent
2024-01-08 09:39:03 -05:00
Ed Minnix
1544330f3f
Minor fixes for code review
2024-01-08 09:38:53 -05:00
Ed Minnix
4b9b27c395
change note
2024-01-08 09:38:52 -05:00
Edward Minnix III
18e8a27fca
Reworded name and description
2024-01-08 09:38:51 -05:00
Edward Minnix III
1f37e70d83
Fix typos
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2024-01-08 09:38:51 -05:00
Ed Minnix
51006aa088
Formatting fix
2024-01-08 09:38:50 -05:00
Ed Minnix
6eff72f99a
Include other map mutations
2024-01-08 09:38:49 -05:00
Ed Minnix
4fc6f710a4
Fix alert message
2024-01-08 09:38:48 -05:00
Ed Minnix
1550f5df2a
Environment variable injection query documentation
2024-01-08 09:38:47 -05:00
Ed Minnix
f1f0f50c92
TaintedEnvironmentVariableQuery docs
2024-01-08 09:38:47 -05:00
Ed Minnix
818c5de8d5
security-severity metadata
2024-01-08 09:38:46 -05:00
Ed Minnix
d4e2b84348
Cleanup helper dataflow configuration
2024-01-08 09:38:45 -05:00
Ed Minnix
f05f16116b
Testing for Environment variable injection
2024-01-08 09:38:45 -05:00
Ed Minnix
8ed3f3c865
Move to library
2024-01-08 09:38:44 -05:00
Ed Minnix
65d05bf3de
Add environment-injection to Model Validation
2024-01-08 09:38:43 -05:00
Ed Minnix
814885f7f6
Hudson environment variables models
2024-01-08 09:38:43 -05:00
Ed Minnix
028bd49211
org.apache.commons.exec models
2024-01-08 09:38:42 -05:00
Ed Minnix
b482b36b5f
Initial ProcessBuilder support
2024-01-08 09:38:41 -05:00
Ed Minnix
ad32b81492
environment-injection sink
2024-01-08 09:38:41 -05:00
Ed Minnix
93025cc8cf
Argument injection initial commit
2024-01-08 09:38:40 -05:00
Tony Torralba
7e6f2d1fc5
Merge pull request #14681 from atorralba/atorralba/java/weak-randomness-cve-coverage
...
Java: Add more sinks to the Insecure Randomness query
2024-01-08 15:33:03 +01:00
Robert Marsh
51acd1169c
Swift: accept test output
2024-01-08 14:29:51 +00:00
Jeroen Ketema
e772531bb3
C++: Remove test that is no longer relevant
2024-01-08 15:24:41 +01:00
Geoffrey White
6636c76af8
Merge pull request #15122 from geoffw0/pwhash
...
Swift: Query for Use of an inappropriate cryptographic hashing algorithm on passwords
2024-01-08 14:11:02 +00:00
Ian Lynagh
02734be287
Kotlin: Fix building with 2.0.255 snapshots
...
A couple of extension functions were moved
2024-01-08 13:25:25 +00:00
Ian Lynagh
9bc0167566
Kotlin: Add a 2.0.255 snapshot
...
The current master isn't compatible with the 2.0.0-Beta1
2024-01-08 13:25:25 +00:00
github-actions[bot]
a6c8cc9551
Release preparation for version 2.16.0
2024-01-08 13:11:26 +00:00
Cornelius Riemenschneider
b0599edb7e
Bazel: Bump dependant rules versions.
...
This doesn't bump rules_python, as there's some incompatible changes in that
which will need further addressing.
2024-01-08 11:21:02 +01:00
Arthur Baars
f4df5c9556
Merge pull request #15224 from aibaars/ruby-update-grammar
...
Ruby: update tree-sitter-ruby
2024-01-08 11:01:42 +01:00
Tamás Vajk
6b8ed7ee71
Merge pull request #15175 from tamasvajk/feature/arg-param-mapping
...
C#: Improve arg-param mapping logic to better handle arguments passed to `params` parameters
2024-01-08 10:42:38 +01:00
Tom Hvitved
25e2271b2f
Merge pull request #15157 from hvitved/dataflow/fwd-flow-in-non-linear-rec
...
Data flow: Avoid unnecessary non-linear recursion in `fwdFlowIn`
2024-01-08 10:31:51 +01:00
Tamas Vajk
e67035f891
Fix comment in test file
2024-01-08 10:00:39 +01:00
Tamas Vajk
e70cb1f259
Code quality improvement: simplify DataFlowPrivate::isParamsArg
2024-01-08 10:00:39 +01:00
Tamas Vajk
91637d49d4
Fix null dereference false positive
2024-01-08 10:00:39 +01:00
Tamas Vajk
a354ca3264
Add null dereference test case with false positive
2024-01-08 10:00:39 +01:00
Tamas Vajk
35ee3246bb
Add change note
2024-01-08 10:00:39 +01:00
Tamas Vajk
7daeeef3a1
C#: Improve arg-param mapping logic to consider named arguments passed to params parameters
2024-01-08 10:00:39 +01:00
Tamas Vajk
9bb807431d
C#: Improve arg-param mapping logic to consider arguments passed to params parameters
2024-01-08 10:00:39 +01:00
Tamas Vajk
93b0eb9ba3
C#: Add more test cases to argument-parameter mapping test
2024-01-08 10:00:39 +01:00
Alvaro Muñoz
dbefc132de
Apply suggestions from code review
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2024-01-07 10:31:50 +01:00
Marcono1234
3edfdc5ceb
Java: Improve Regex flag parsing
...
Fixes:
- Flag `d` not being recognized
- Syntax for disabling flags (`-`) not being recognized
- Non-capturing group with flags erroneously containing `:` as literal
2024-01-06 04:15:09 +01:00
Chuan-kai Lin
66d2b9b7d2
Ruby: Fix upgrade delete directives
2024-01-05 14:21:52 -08:00
Chuan-kai Lin
6e25fb129b
C#: Fix upgrade delete directives
2024-01-05 14:21:08 -08:00
Chuan-kai Lin
6f5bce046c
C++: Fix upgrade delete directives
2024-01-05 14:20:30 -08:00
Robert Marsh
80452cc9f7
Swift: redirect consistency queries to new module
2024-01-05 21:28:21 +00:00
Robert Marsh
2d457e17d6
Swift: autoformat for CFG library
2024-01-05 21:28:07 +00:00
Robert Marsh
86f59a1c13
Swift: add AnnotatedExitNode to cfg to match prior interface
2024-01-05 21:25:08 +00:00
Robert Marsh
ea4855bc06
Swift: add change note for parameterized CFG library
2024-01-05 21:24:44 +00:00
Robert Marsh
2f0d052558
Swift: header comment for ControlFlowGraphParameter
2024-01-05 21:19:46 +00:00
Henry Mercer
93d9332ab4
Merge pull request #15236 from github/codeql-cli-2.15.5
...
Merge `codeql-cli-2.15.5` back to `main`
2024-01-05 18:49:40 +00:00
Harry Maclean
d1fc40ce4f
Merge pull request #15234 from pwntester/patch-4
...
Ruby: Add `[]` to the methods returning an `ActionController::Parameters"
2024-01-05 15:41:48 +00:00
Chuan-kai Lin
35c7d3ab15
Merge pull request #15237 from github/cklin-patch-1
...
Python: Fix typo in upgrade script
2024-01-05 07:40:18 -08:00
Chuan-kai Lin
2924be554c
Python: Fix typo in upgrade script
2024-01-05 07:15:21 -08:00
Henry Mercer
59edae0b17
Merge pull request #15229 from github/codeql-cli-2.15.4
...
Merge `codeql-cli-2.15.4` into `codeql-cli-2.15.5`
2024-01-05 15:12:22 +00:00
Felicity Chapman
8fdeb5691b
Fix bad table formatting
2024-01-05 14:50:16 +00:00
Alvaro Muñoz
9146407f23
Add [] to the list of methods returning an `ActionController::Parameters"
2024-01-05 15:14:11 +01:00
Felicity Chapman
222c498ded
Replace blog link with link to GitHub user docs
2024-01-05 14:13:38 +00:00
Arthur Baars
20022b6f3a
Add test case
2024-01-05 14:39:30 +01:00
Arthur Baars
aad42b1b0d
Add change note
2024-01-05 14:36:52 +01:00
Arthur Baars
6ed7223167
Ruby: update tree-sitter-ruby
2024-01-05 14:33:14 +01:00
Geoffrey White
0aec2b1bf4
Swift: Improve consistency of phrasing arouaround 'computationally hard'.
2024-01-05 13:21:01 +00:00
Ben Rodes
250ed48bf3
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-01-05 08:19:11 -05:00
Geoffrey White
a0ea7148cb
Swift: Add GOOD and BAD comments in the sensitive data hashing examples as well.
2024-01-05 13:17:21 +00:00
Geoffrey White
80afa65751
Swift: Add GOOD and BAD comments.
2024-01-05 13:16:41 +00:00
Geoffrey White
657e4d4132
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-01-05 13:04:47 +00:00
Chris Smowton
48d48c16ab
Note Java 21 support
...
Supported as of CodeQL release 2.15.4
2024-01-05 11:26:23 +00:00
Geoffrey White
2ab5e6f64c
Swift: Add link / reference to CryptoSwift.
2024-01-05 11:02:55 +00:00
Michael Nebel
04a724f373
Java: Update the model diff workflow.
2024-01-05 11:28:47 +01:00
Rasmus Wriedt Larsen
95c24275f2
Merge pull request #15044 from RasmusWL/automated-subclass-models
...
Python: Automated subclass models
2024-01-05 10:43:48 +01:00
Michael Nebel
8fe73f72cc
Java: Trigger Models as Data diff workflow on changes to the shared scripts.
2024-01-05 09:22:49 +01:00
Michael Nebel
8810f166ee
Merge pull request #15228 from michaelnebel/modelgenoutputdir
...
Java/C#: Make it possible to specify subfolder location of generated model files.
2024-01-05 09:18:41 +01:00
Michael Nebel
a3e2d40392
Merge pull request #15222 from michaelnebel/csharp/updatestats
...
C#: Update DB stats.
2024-01-05 09:15:47 +01:00
Ben Rodes
2b325e99ce
Merge branch 'main' into 32-cpp-string-concatenation-library
2024-01-04 15:28:28 -05:00
Benjamin Rodes
ed788e0a7a
Updating test output.
2024-01-04 15:27:29 -05:00
Benjamin Rodes
e9bb3b4b28
Limiting << operator to ostream, and putting this check at the same location as the check for basic_string for + operator.
2024-01-04 15:25:47 -05:00
Chris Smowton
8144d90d4d
Merge pull request #15227 from smowton/smowton/admin/add-test-buildless-maven-multimodule
...
Add test for Java buildless vs Maven multimodule projects
2024-01-04 16:36:44 +00:00
Geoffrey White
4016033f88
Swift: Add dataflow test cases for property wrappers.
2024-01-04 15:39:20 +00:00
Ian Wright
3668ba6b03
Merge pull request #15226 from github/z80coder/release-automodel-0.0.4
...
0.0.11 release of `automodel` extraction queries
2024-01-04 15:03:35 +00:00
Joe Farebrother
e8c0fceb81
Use post-update nodes for this access in void handler
2024-01-04 14:25:39 +00:00
Joe Farebrother
7d11e4486e
Adress reveiw comments - update tests to path-problem and support all this qualifiers
2024-01-04 14:25:39 +00:00
Joe Farebrother
cdeac9b7f8
Add change note + fix qldoc
2024-01-04 14:25:39 +00:00
Joe Farebrother
b9754df390
Add case for void-returning handler methods
2024-01-04 14:25:39 +00:00
Joe Farebrother
00892e127f
Add unit test + fix flow step
2024-01-04 14:25:38 +00:00
Joe Farebrother
c3cd40fc69
Add flow steps from page models
2024-01-04 14:25:38 +00:00
Owen Mansel-Chan
6f9242b1cb
Merge pull request #15162 from owen-mc/go/stratify-cfg-succ
...
Go: Stratify `CFG::succ` to avoid recursion
2024-01-04 14:11:25 +00:00
Ben Rodes
8d84540a54
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-01-04 09:09:20 -05:00
Ian Wright
dab28edfa9
0.0.11 release of automodel extraction queries
2024-01-04 13:10:46 +00:00
Michael Nebel
e44b2d26ce
Java/C#: Make it possible to specify subfolder location of generated model files.
2024-01-04 14:05:13 +01:00
Michael Nebel
682aef9548
Merge pull request #15212 from michaelnebel/csharp/stringreplace
...
C#: Fix Log forging false positive.
2024-01-04 13:38:29 +01:00
Geoffrey White
fb77e3733b
Swift: Add a test of SwiftUI secure fields as a sensitive data source.
2024-01-04 12:34:33 +00:00
Chris Smowton
c90171c73f
Add test for Java buildless vs Maven multimodule projects
2024-01-04 12:30:13 +00:00
Michael Nebel
4961e659b4
C#: Update DB stats.
2024-01-04 13:07:49 +01:00
Ian Wright
7c6d30b1a2
Merge pull request #15165 from github/z80coder/automodel-release
...
ensure `publish.sh` uses the latest `automodel` release
2024-01-04 11:58:59 +00:00
Owen Mansel-Chan
ce3097e9ce
Fix manual models for String.valueOf(Object)
...
Add a neutral model for it, but also a summary model for `String.valueOf(CharSequence)`
2024-01-04 11:31:20 +00:00
Owen Mansel-Chan
0076f06ce7
Improve manual models of java.lang.Exception
2024-01-04 11:31:18 +00:00
Owen Mansel-Chan
e415c54c5e
Reorder manual models of java.lang.Throwable
2024-01-04 11:31:16 +00:00
Owen Mansel-Chan
f52ea5c2fd
Improve manual models of java.lang.Throwable
2024-01-04 11:31:14 +00:00
Ian Wright
468454645e
better
2024-01-04 11:15:05 +00:00
Ian Wright
4530510450
check if provided argument is valid
2024-01-04 11:02:58 +00:00
Ian Wright
545b5e7e83
better comment
2024-01-04 11:02:58 +00:00
Ian Wright
fb44b9c7dd
better comment
2024-01-04 11:02:57 +00:00
Ian Wright
e4a798e9cc
better comment
2024-01-04 11:02:57 +00:00
Ian Wright
af940f5e41
don't specify defaults
2024-01-04 11:02:57 +00:00
Ian Wright
45b1790fa2
add publication warning
2024-01-04 11:02:57 +00:00
Ian Wright
337512174f
wip
...
wip
wip
more checks
fix bug if release folder already exists
fix bug if release folder already exists
ensure branch has correct release; dry-run
simplify branches
step by step
fix paths
pushd/popd
pushd/popd
use bash
simplify
simplify
simplify
simplify
add dry run
2024-01-04 11:02:57 +00:00
Ian Wright
6572be668c
get release version
2024-01-04 11:02:57 +00:00
erik-krogh
58dc14d5bb
update expected output
2024-01-04 11:38:58 +01:00
erik-krogh
a9f2b3fad6
promote PropsTaintStep to a PreCallGraphStep
2024-01-04 10:45:22 +01:00
Geoffrey White
31af8b9024
Swift: Test SwiftUI flow sources.
2024-01-04 09:28:10 +00:00
Michael Nebel
5778720194
Merge pull request #15220 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-01-04 09:39:58 +01:00
Owen Mansel-Chan
e2e91ebe1c
Fix capitalization in predicate name
...
This was introduced by a copy-paste error
2024-01-04 07:08:37 +00:00
Owen Mansel-Chan
dfd25f705d
Add pragma[nomagic] to top-level succ0 and remove cached
2024-01-04 07:06:55 +00:00
github-actions[bot]
63a1e8fcf7
Add changed framework coverage reports
2024-01-04 00:16:48 +00:00
Robert Marsh
41ac0fca85
Swift: use toString and Location from shared CFG library
2024-01-03 21:11:15 +00:00
Owen Mansel-Chan
90f07d2116
Add pragma[nomagic] to member 'succ0'
2024-01-03 16:54:58 +00:00
Owen Mansel-Chan
697aa609f4
Merge pull request #15211 from owen-mc/go/redefine-successfully-extracted-files
...
Go: report any extracted file as successfully extracted
2024-01-03 16:07:09 +00:00
Owen Mansel-Chan
14cffc3170
Merge pull request #15128 from owen-mc/go/fix-fp-incorrect-integer-conversion-signedness
...
Go: fix FP in incorrect integer conversion query relating to strict comparisons with MaxInt and MaxUint
2024-01-03 14:57:34 +00:00
Owen Mansel-Chan
bb44141390
Add QLDoc for succ0
2024-01-03 14:55:56 +00:00
Owen Mansel-Chan
032574f3d1
Make succ0 private
2024-01-03 14:55:42 +00:00
Owen Mansel-Chan
6ecf6ea3ac
Rename succSimple to succ0
2024-01-03 14:51:57 +00:00
Jeroen Ketema
466536a914
Merge pull request #15214 from jketema/improve-test
...
C++: Improve special members test by printing more function details
2024-01-03 15:18:23 +01:00
Chris Smowton
723d3ee34c
Merge pull request #15190 from fossilet/fix-class
...
Add missing `override`.
2024-01-03 13:47:24 +00:00
Ian Lynagh
7b48e2e4ae
Merge pull request #15049 from igfoo/igfoo/UnderscoreIdentifier
...
Kotlin 2: Accept changes in query-tests/UnderscoreIdentifier
2024-01-03 13:43:24 +00:00
Owen Mansel-Chan
0279e4903f
Mention query in change note
2024-01-03 13:02:49 +00:00
Harry Maclean
c96be39474
Merge pull request #15048 from hmac/hmac-model-editor-ruby-modules
...
Ruby: Model editor improvements
2024-01-03 12:53:43 +00:00
Jeroen Ketema
ae135ac633
C++: Improve special members test by printing more function details
...
Without this it is very hard to see what specifically is defaulted/deleted.
2024-01-03 13:35:25 +01:00
Michael Nebel
b083c35b40
Merge pull request #15174 from michaelnebel/csharp/dotnet8runtimemodels
...
C#: .NET 8 Runtime models.
2024-01-03 11:30:59 +01:00
Michael Nebel
0c78cccf62
C#: Add change note.
2024-01-03 11:12:35 +01:00
Michael Nebel
9763c00f99
C#: Update expected test output.
2024-01-03 11:09:35 +01:00
Michael Nebel
31e12f7a06
C#: Recognize all overloads of String.Replace as a replace method.
2024-01-03 11:08:05 +01:00
Jeroen Ketema
a205a03f3c
Merge pull request #15210 from jketema/function-types
...
C++: Support more function types
2024-01-03 11:02:58 +01:00
Michael Nebel
0c4e1fca1b
C#: Add testcase with false positive for CWE-117 (overload of String.Relace not correctly recognized as a sanitizer).
2024-01-03 10:56:56 +01:00
Owen Mansel-Chan
13b00bae17
Update test expectation
2024-01-02 22:38:30 +00:00
Eric Bickle
4fa5b2ae41
Add change nodes for GSON coverage
2024-01-02 14:17:23 -08:00
Eric Bickle
0cd89bf815
Merge branch 'main' into fix/update-gson-model
2024-01-02 14:05:33 -08:00
Owen Mansel-Chan
9f8b5bccc2
Go: report any extracted file as successfully extracted
2024-01-02 21:39:28 +00:00
Jeroen Ketema
262985a760
C++: Add change note
2024-01-02 16:32:24 +01:00
Harry Maclean
22830c7311
Ruby: Address review comments
2024-01-02 14:39:53 +00:00
Jeroen Ketema
9c1de5b2b6
C++: Support more function types
2024-01-02 15:13:20 +01:00
Harry Maclean
4c6855ed93
Ruby: Address review comments
2024-01-02 13:51:12 +00:00
Jeroen Ketema
671343619f
Merge pull request #15197 from jketema/attr-expr-arg
...
C++: Support attribute arguments that are expressions
2024-01-02 13:34:44 +01:00
Jeroen Ketema
f59a00c5ea
Update cpp/ql/lib/semmle/code/cpp/Specifier.qll
...
Co-authored-by: Calum Grant <42069085+calumgrant@users.noreply.github.com >
2024-01-02 12:52:18 +01:00
Alvaro Muñoz
2964aef083
Update Kernel.qll to include send aliases
...
Add `public_send` and `__send__` as Code Injection sinks as proposed by @vcsjones
2023-12-28 19:08:03 +01:00
Owen Mansel-Chan
19c5d1fd1d
Merge pull request #15181 from felickz/go-xxe-libxml2
...
GO - Add sink for libxml2 in go/xml/xpath-injection via XPath.qll
2023-12-24 22:04:46 +00:00
Jeroen Ketema
ad2fb7c6d5
C++: Support attribute arguments that are expressions
2023-12-23 10:04:50 +01:00
Aditya Sharad
bbe3269b8c
Merge pull request #15189 from github/adityasharad/merge/3.12-main
...
Merge `rc/3.12` into `main`
2023-12-22 11:26:37 -08:00
Robert Marsh
a9c917010f
Swift: fix missing keypath CFGs
2023-12-22 17:55:00 +00:00
Chad Bentz
730f6ed5b0
Merge branch 'main' into go-xxe-libxml2
2023-12-22 11:57:43 -05:00
Chad Bentz
86c258df7e
mention sinks in changelog
2023-12-22 16:56:54 +00:00
Chad Bentz
cf25cc9531
Add docs
2023-12-22 16:53:21 +00:00
Edward Minnix III
d6d76fa4f1
Merge pull request #15183 from egregius313/egregius313/java/fix-weak-hashing-adddition
...
Java: Fix minor error in `java/potentially-weak-cryptographic-algorithm`
2023-12-22 11:38:55 -05:00
Edward Minnix III
be50696746
Merge pull request #100 from atorralba/atorralba/java/weak-hashing-suggestion
...
Java: Generalize MaybeBrokenCryptoAlgorithmQuery.qll
2023-12-22 09:03:59 -05:00
Jeroen Ketema
9c039c4a08
Merge pull request #12125 from jketema/unique-function
...
C++: Ensure that only one `Function` exists for every function
2023-12-22 13:56:35 +01:00
Jeroen Ketema
1cb02475a8
Update cpp/ql/lib/change-notes/2023-12-22-unique-function.md
2023-12-22 13:33:20 +01:00
Jeroen Ketema
d4f9e89b5b
C++: Add change note
2023-12-22 13:20:38 +01:00
Mathias Vorreiter Pedersen
ecd2003c14
Merge pull request #15191 from MathiasVP/show-indirections-in-ssainternals-2
...
C++: Show base variable in SSA variable `toString`s
2023-12-22 12:58:12 +01:00
Arthur Baars
c5b6f48569
Merge pull request #15127 from smowton/smowton/feature/buildless-tests
...
Add buildless tests
2023-12-22 11:39:16 +01:00
Mathias Vorreiter Pedersen
ffdd28eaa9
C++: Show base variable in SSA variable 'toString's.
2023-12-22 10:29:31 +01:00
Tony Torralba
67f8bcce44
Merge pull request #14752 from masterofnow/LoadClassNoSignatureCheck
...
Java: Insecure Loading of Class in Android App without Package Signature Checking
2023-12-22 10:24:34 +01:00
Tony Torralba
8ad787f3b8
Java: Generelize MaybeBrokenCryptoAlgorithmQuery.qll
2023-12-22 10:15:40 +01:00
fossilet
611f1cede7
Add missing override.
2023-12-22 15:52:02 +08:00
Ed Minnix
8051cfcef5
Fix tests and fix getStringValue method
2023-12-21 22:48:08 -05:00
Ed Minnix
6455e1893d
Add more test cases
2023-12-21 22:48:08 -05:00
Ed Minnix
7f9dff2dc7
Fix minor error in Weak Hashing
2023-12-21 22:48:07 -05:00
Aditya Sharad
b1803d0ac2
Merge rc/3.12 into main
2023-12-21 16:40:51 -08:00
masterofnow
0fd09759df
Added sample java file for qhelp to render correctly.
2023-12-22 08:31:23 +08:00
masterofnow
cb5733d647
Apply suggestions from code review
...
Update to documentation.
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-12-22 08:25:05 +08:00
AlexDenisov
e43fafc249
Merge pull request #15116 from github/alexdenisov/improve-swift-autobuilder-further
...
Swift: separate installation of dependencies and autobuilding
2023-12-21 17:35:34 +01:00
Jeroen Ketema
f7da6f56f3
C++: Ensure that only one Function exists for every function
2023-12-21 16:33:22 +01:00
Stephan Brandauer
a9d21cef01
Update MaD Declarations after Triage
2023-12-21 15:39:03 +01:00
Mathias Vorreiter Pedersen
7a10d88f36
Merge pull request #15185 from MathiasVP/show-indirections-in-ssainternals
2023-12-21 13:52:14 +01:00
masterofnow
7162540faf
Added options, .qhelp and .expected file for unit test.
2023-12-21 19:57:37 +08:00
Mathias Vorreiter Pedersen
1007c4fc83
C++: Show indirections when printing SSA variables.
2023-12-21 10:38:58 +01:00
Tony Torralba
55f15d2deb
Merge pull request #15182 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-12-21 09:39:36 +01:00
masterofnow
8dc522fb5f
Merge remote-tracking branch 'origin/LoadClassNoSignatureCheck' into LoadClassNoSignatureCheck
2023-12-21 12:15:06 +08:00
masterofnow
25c818f425
Added unit test files.
2023-12-21 12:13:00 +08:00
Chad Bentz
7c93a2c825
Add const XMLParseNoEnt to stub
2023-12-21 00:49:14 +00:00
Chad Bentz
667861f575
depstubber with latest change
...
- still failing with ./tst.go:195:25: undefined: parser.XMLParseNoEnt
2023-12-21 00:42:37 +00:00
Chad Bentz
6f3867d804
stub the type Parser + the function New
...
(it will automatically make stubs for all the methods on that type)
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-12-20 19:25:48 -05:00
Chad Bentz
4c46be1ed0
Use 3 arg overload on Method for hasQualifiedName for Package/Name/Type
2023-12-21 00:23:01 +00:00
github-actions[bot]
d77e8df800
Add changed framework coverage reports
2023-12-21 00:16:28 +00:00
Andrew Eisenberg
0cc4ba6552
Merge pull request #15164 from github/aeisenberg/system-reqs
2023-12-20 12:13:51 -08:00
Andrew Eisenberg
c6d1b6cb58
Update docs/codeql/codeql-overview/system-requirements.rst
2023-12-20 11:51:23 -08:00
yoff
b83c743810
Merge pull request #14944 from yoff/python/captured-variables-basic
...
Python: Basic implementation of variable capture
2023-12-20 16:53:48 +01:00
Max Schaefer
706dee927d
Merge pull request #15160 from github/max-schaefer/csharp-xss
...
C#: Mention more XSS sanitisation options in query help.
2023-12-20 15:39:25 +00:00
Rasmus Lerchedahl Petersen
da4aef80e9
Revert "Python: make it a real consistency check"
...
This reverts commit 45411f4a93 .
2023-12-20 16:15:17 +01:00
Max Schaefer
fea69263f3
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-12-20 15:06:03 +00:00
Rasmus Lerchedahl Petersen
0f89f69555
Python: fix VariableWrite and remove unneded step
2023-12-20 15:45:18 +01:00
Tony Torralba
1b9f59efa7
Merge pull request #14646 from github/java/update-mad-decls-after-triage-2023-10-31T15-52-01
...
Java: Update MaD Declarations after Triage
2023-12-20 15:37:19 +01:00
Tony Torralba
39708524e7
Minor fixes
...
- Query ID
- MethodAccess -> MethodCall
- Redundant import
- Formatting
2023-12-20 15:31:09 +01:00
Rasmus Lerchedahl Petersen
d039ceb689
Python: add test for fields
2023-12-20 15:23:45 +01:00
Rasmus Lerchedahl Petersen
706e9dc896
Python: fix compilation
2023-12-20 15:23:33 +01:00
Tony Torralba
e744d974e8
Merge pull request #14580 from github/java/update-mad-decls-after-triage-2023-10-24T15-42-01
...
Java: Update MaD Declarations after Triage
2023-12-20 15:01:24 +01:00
Tony Torralba
2df8bcb9dc
Update java/ql/lib/change-notes/2023-10-31-new-models.md
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-12-20 14:59:07 +01:00
Rasmus Lerchedahl Petersen
45411f4a93
Python: make it a real consistency check
2023-12-20 14:53:37 +01:00
Rasmus Lerchedahl Petersen
215b146f06
Python: remove unused member predicate
2023-12-20 14:45:00 +01:00
Rasmus Lerchedahl Petersen
491ca3f1e6
Python: hide synthetic variable node
2023-12-20 14:42:45 +01:00
Rasmus Lerchedahl Petersen
afb3d1da6f
Python: move capture node to DataFlowPrivate
2023-12-20 14:41:17 +01:00
Rasmus Lerchedahl Petersen
3cea46fe7b
Python: fix typos
2023-12-20 14:35:10 +01:00
erik-krogh
fe3e768414
update expected output of tests
2023-12-20 14:10:36 +01:00
Rasmus Lerchedahl Petersen
f8417b0dd8
Merge branch 'main' of https://github.com/github/codeql into python/captured-variables-basic
2023-12-20 13:16:42 +01:00
yoff
19813c8ba6
Merge pull request #15166 from yoff/python/add-scope-entry-definition-nodes
...
Python: Add scope entry definition nodes
2023-12-20 13:14:11 +01:00
Rasmus Lerchedahl Petersen
7749b8e60e
Python: add change-note
2023-12-20 12:53:37 +01:00
Mathias Vorreiter Pedersen
be3f9d3078
Merge pull request #15173 from jketema/unneeded
2023-12-20 12:43:42 +01:00
Max Schaefer
66fe32ab82
Python: Mention more sanitisation options in py/url-redirection qhelp.
2023-12-20 11:31:07 +00:00
Rasmus Lerchedahl Petersen
07c88dc0be
Python: remove unnecessary post-processing
...
also, it is slightly incorrect...
2023-12-20 12:09:15 +01:00
Rasmus Lerchedahl Petersen
169d7a3c98
Python: Add scope entry definition nodes
...
otherwise we confuse captured variables
in the single scope entry cfg node. Now
we have one for each defined variable.
2023-12-20 12:09:00 +01:00
Rasmus Lerchedahl Petersen
3b7e29bed6
Python: add test for crosstalk
2023-12-20 12:08:05 +01:00
Tamás Vajk
d3c685a41a
Merge pull request #15156 from tamasvajk/standalone/temp-folder-structure
...
C#: Fix working directory structures in standalone
2023-12-20 11:57:42 +01:00
masterofnow
e85c4b5bf6
Update query from code review feedback to express it as a dataflow problem.
2023-12-20 18:28:16 +08:00
Tamas Vajk
b1413a1d98
Add readonly to tempFolderPath field
2023-12-20 11:16:52 +01:00
Mathias Vorreiter Pedersen
44124158c4
Merge pull request #15078 from alexet/unique-pointer-temporary
...
CPP: Add query for detecting invalid uses of temporary unique pointers.
2023-12-20 11:16:01 +01:00
Michael Nebel
089cad0ea8
C#: Update expected test output for FlowSummaries tests.
2023-12-20 11:10:30 +01:00
Tamas Vajk
90fc54ca05
Apply review feedback: use Lazy<> instead of locking
2023-12-20 11:04:39 +01:00
Michael Nebel
9236a10d98
C#: Update .NET Runtime models (.NET 8).
2023-12-20 10:56:38 +01:00
Koen Vlaswinkel
32d1f057df
Merge pull request #15159 from github/koesie10/csharp-model-editor-tests
...
C#: Classify test support files in model editor queries
2023-12-20 10:54:24 +01:00
Mathias Vorreiter Pedersen
57e0804cef
Update cpp/ql/src/Security/CWE/CWE-416/UseOfUniquePointerAfterLifetimeEnds.ql
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-12-20 10:52:42 +01:00
Tamas Vajk
dc36cdbede
Only delete dotnet-install.sh if not in scratch directory
2023-12-20 10:51:23 +01:00
Max Schaefer
7c4275ad44
Address review comments.
2023-12-20 09:36:07 +00:00
Michael Nebel
86881b4e1e
C#: Add empty definitions for all extensible model related predicates.
2023-12-20 10:22:43 +01:00
Michael Nebel
5796297fc3
C#/Java: Update the model generator script usage examples and description.
2023-12-20 10:17:08 +01:00
Jeroen Ketema
12abf07d1d
C++: Remove unneeded extractor option
2023-12-20 09:58:32 +01:00
Michael Nebel
6831775a8d
Merge pull request #15154 from michaelnebel/csharp/morestubs
...
C#: Replace more hand written stubs with generated ones.
2023-12-20 09:54:19 +01:00
Koen Vlaswinkel
d09fadf22e
C#: Introduce TestRelatedFile class
2023-12-20 09:53:51 +01:00
Owen Mansel-Chan
9697d76c2d
Stratify CFG::succ to avoid recursion
...
The first level doesn't deal with defer statements properly.
The second level usees the first level to deal with them properly.
2023-12-19 21:33:13 +00:00
Óscar San José
b55c299533
Merge pull request #15112 from fossilet/upstream_main
...
Fix sphinx.add_lexer.
2023-12-19 21:28:24 +01:00
Tom Hvitved
5be4fe1887
Data flow: Avoid unnecessary non-linear recursion in fwdFlowIn
2023-12-19 21:03:03 +01:00
Aditya Sharad
fba5ad5342
Merge pull request #15153 from github/post-release-prep/codeql-cli-2.15.5
...
Post-release preparation for codeql-cli-2.15.5
2023-12-19 09:11:26 -08:00
Edward Minnix III
06544e989e
Merge pull request #15126 from egregius313/egregius313/java/minor/add-replace-to-mapmutator
...
Java: Add the `Map#replace` and `Map#replaceAll` methods to `MapMutator` in `Maps.qll`
2023-12-19 12:10:34 -05:00
Andrew Eisenberg
35578deccb
Update system requirements for ruby
2023-12-19 09:02:55 -08:00
Rasmus Wriedt Larsen
72687e0368
Merge branch 'main' into automated-subclass-models
2023-12-19 17:08:25 +01:00
Rasmus Wriedt Larsen
56d86f9980
Revert "NEVER MERGE: Ensure we don't use site-packages stuff"
...
This reverts commit 0ed363bd79f9d3f9e9a905c1192adfe88f1faffb.
2023-12-19 17:07:40 +01:00
Rasmus Wriedt Larsen
9863309631
Python: auto subclass capture
...
(locally done with split + 5 x modeling runs + join, but squashed into one commit)
2023-12-19 17:07:40 +01:00
Rasmus Wriedt Larsen
ca7b69ec1f
NEVER MERGE: Ensure we don't use site-packages stuff
2023-12-19 17:07:40 +01:00
Rasmus Wriedt Larsen
de2a563a8e
Python: Delete old auto subclass capture files
...
In the final git history this only deletes one file, but when working
locally I deleted ALL files.
2023-12-19 17:07:21 +01:00
Rasmus Wriedt Larsen
bf271d7f0f
Python: refactor how subclasses are specified
...
A little more explicit, so less prone to be overlooked when adding a new spec
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
32251a041b
Python: Fill getFullyQualifiedName for rest of subclassing specs
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
a78f13cb2e
Python: Ignore known subclass models
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
24a3a23c9c
Python: Regenerate rest_framework models
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
3e878f5a0b
Python: Model django response subclass relationship
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
abe6f1639a
Python: Add example of models subclassing problem
...
In reality, we only want to model this as a `rest_framework.response.Response`, since our .qll modeling is more precise for rest-framework responses than if we also modeled it as a basic django http response. (specifically, that default mime-type handling is way different).
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
5c89c38c92
Python: Add the rest_framework models for demonstration purposes
...
Although it might be hidden by github UI by default, it could be
interesting for a reviewer to notice the effect changes in the modeling
query has to the results in this file.
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
ee3319b7b0
Python: Make split/join executable (chmod +x)
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
cfd3f8938e
Python: Highlight split/join subclass files usage
2023-12-19 17:07:02 +01:00
Rasmus Wriedt Larsen
933938d926
Python: Make rest_framework tests runnable again
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
3e6423a13c
Python: Add ability to split and join autogenerated yml files
...
Verified by joining all files, splitting again, and observing no diff in
git.
(these operations only take a few seconds on my local machine, so
shouldn't be too much of an issue)
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
f30a3b0aba
Python: Script: Improve performance by using C++ impl
...
these changes took performance for loading and writing all files locally
29.60s to 3.17s
(that is, using `gather_from_existing`)
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
13c2378b58
Python: Update a few QLdocs
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
2f5d51c752
Python: treat auto subclass capture models as auto-generated
...
Co-authored-by: Taus <tausbn@github.com >
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
937af906fd
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
0fe29b6a86
Python: Recover subclass finder .expected after cherry picking commits from https://github.com/github/codeql/pull/15030
2023-12-19 17:07:01 +01:00
Rasmus Lerchedahl Petersen
75f9eeb4e9
Python: adjust test expectations
...
mostly removing of nodes from the graph.
One result lost:
```
check("submodule.submodule_attr", submodule.submodule_attr, "submodule_attr", globals()) #$ MISSING:prints=submodule_attr
```
2023-12-19 17:07:01 +01:00
Rasmus Lerchedahl Petersen
c563c7fbe4
Python: remove control flow nodes
...
for module entry definitions from the dataflow graph.
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
e050f2e998
Python: Adjust subclass finder to no ESSA nodes
...
But the new test results looks very strange indeed!
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
60b784a919
Python: Don't filter subclass tests away
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
a9a0216c43
Python: Add change-note
2023-12-19 17:07:01 +01:00
Rasmus Wriedt Larsen
fa3e16adea
Python: Refactor taint-sinks meta queries
2023-12-19 17:07:01 +01:00
Koen Vlaswinkel
0f71df9c41
C#: Extend TestFile instead of separate class
2023-12-19 16:37:49 +01:00
Ed Minnix
a93d6dd956
Change note
2023-12-19 10:28:23 -05:00
Ed Minnix
ce130c6ed5
Add replace to MapMutator
2023-12-19 10:23:06 -05:00
Jeroen Ketema
4009b42891
Merge pull request #15146 from jketema/almost-empty-pch
...
C++: Update test after extractor changes
2023-12-19 16:20:35 +01:00
Max Schaefer
dc8be7bbf0
Apply suggestions from code review
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-12-19 15:09:42 +00:00
Benjamin Rodes
f26330e6bd
Removing redundant/bad string type check.
2023-12-19 09:41:29 -05:00
Benjamin Rodes
6fb01925d0
Updating test ql file and applying formatting.
2023-12-19 09:39:46 -05:00
Tamas Vajk
278d9b1dfb
Fix integration tests
2023-12-19 15:33:46 +01:00
Benjamin Rodes
48866e5358
Updates to address PR comments.
2023-12-19 09:33:07 -05:00
Michael Nebel
681ac7e5f0
C#: Update tests (and expected output) to use the generated EntityFramework stubs.
2023-12-19 15:22:45 +01:00
Michael Nebel
80f3c6cc2b
C#: Manual changes to the project dependecies to avoid conflicts when multiple projects are loaded from source.
2023-12-19 15:21:56 +01:00
Michael Nebel
272f3265ea
C#: Delete the handwritten EntityFramework stubs.
2023-12-19 15:20:53 +01:00
Tamas Vajk
016d200355
Fix unit tests
2023-12-19 15:14:47 +01:00
Tony Torralba
c8a369d9ef
Update java/ql/lib/ext/jakarta.persistence.model.yml
2023-12-19 14:58:07 +01:00
Ben Rodes
387eddadad
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-12-19 08:48:51 -05:00
Ben Rodes
29a0da6cd9
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-12-19 08:48:20 -05:00
Ben Rodes
49728571cf
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-12-19 08:47:58 -05:00
Ben Rodes
66f725dd05
Update cpp/ql/lib/semmle/code/cpp/commons/StringConcatenation.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-12-19 08:47:48 -05:00
Mathias Vorreiter Pedersen
cfaa2d881a
Merge pull request #15152 from MathiasVP/fix-unnecessary-evaluation-of-debug-strings
...
C++: Fix unnecessary evaluation of debug strings
2023-12-19 13:59:20 +01:00
Koen Vlaswinkel
d22acfb449
C#: Classify test support files in model editor queries
2023-12-19 13:49:53 +01:00
Tamas Vajk
ad394a0d84
C#: Download dotnet-install.sh to the scratch dir
2023-12-19 13:11:22 +01:00
Tamas Vajk
dd64b436c0
C#: Fix working directory structures in standalone
2023-12-19 12:54:00 +01:00
Max Schaefer
71dbd1a059
C#: Mention more XSS sanitisation options in query help.
2023-12-19 11:33:26 +00:00
Mathias Vorreiter Pedersen
95cd31fce3
C++: Silence warnings.
2023-12-19 12:29:16 +01:00
Mathias Vorreiter Pedersen
4844c43f06
C++: Cleanup now that we're back to an abstract class.
2023-12-19 12:11:38 +01:00
Mathias Vorreiter Pedersen
937e0ee8d2
C++: Go back to abstract classes.
2023-12-19 12:10:57 +01:00
Michael Nebel
37b510cac0
C#: Add stubs for entity framework.
2023-12-19 11:52:59 +01:00
Mathias Vorreiter Pedersen
b6974d674c
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DebugPrinting.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-12-19 11:47:46 +01:00
Michael Nebel
e12165707f
C#: Delete the hand written stub System.Data.cs.
2023-12-19 11:37:33 +01:00
Michael Nebel
19a4cf3a7b
C#: Update test cases that depends on System.Data.cs to use generated stubs.
2023-12-19 11:37:32 +01:00
Michael Nebel
7cb758a61b
C#: Add stubs for System.Data.OleDb.
2023-12-19 11:37:32 +01:00
github-actions[bot]
8f72b0e4f7
Post-release preparation for codeql-cli-2.15.5
2023-12-19 10:32:57 +00:00
Mathias Vorreiter Pedersen
8230a90db6
C++: No need for another 'stars' predicate in 'PrintIRUtilities'.
2023-12-19 11:22:27 +01:00
Rasmus Wriedt Larsen
2305d55967
Merge pull request #15101 from yoff/python/update-InlineTaintTestPaths-to-new-api
...
Python: update to new API update is in a comment, so compilation never failed in CI.
2023-12-19 11:10:55 +01:00
Mathias Vorreiter Pedersen
9b25834771
C++: Use parameterized modules instead of abstract classes and predicates to handle debug printing.
2023-12-19 11:08:41 +01:00
Jorge
f8cfd698fa
Merge branch 'main' into seclab/dotjs
2023-12-19 10:44:52 +01:00
Mathias Vorreiter Pedersen
501645920f
C++: Move private stuff from 'DataFlowUtil' to public stuff 'DataFlowPrivate'. Also make 'PostUpdateNodeImpl' public in 'DataFlowUtil'. Sadly, this means that it's visible at the query level (as DataFlow::PostUpdateNodeImpl), but I've added a big INTERNAL QLDoc on it to make sure people don't use it.
2023-12-19 10:41:35 +01:00
yoff
1417c2cdd5
Update python/ql/lib/change-notes/2023-12-18-support-variable-capture.md
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-19 10:08:59 +01:00
yoff
a60c52b8b7
Merge branch 'main' into python/captured-variables-basic
2023-12-18 23:44:46 +01:00
Rasmus Lerchedahl Petersen
8b7b58279a
Python: add change-note
...
I chose `category: majorAnalysis`, the description is
"An API has changed in a way that may affect the results produced
by a query that consumes the API."
The API in question here is `flowPath` which is used by all our
data flow queries.
2023-12-18 23:42:39 +01:00
Jeroen Ketema
180e752a23
C++: Update test after extractor changes
...
Also remove incorrect FP comment. clang does not support `#pragma hdrstop` in
its non-cl-emulation mode.
2023-12-18 23:30:13 +01:00
Aditya Sharad
d540fc0794
Merge pull request #15141 from github/release-prep/2.15.5
...
Release preparation for version 2.15.5
2023-12-18 14:30:01 -08:00
Rasmus Lerchedahl Petersen
78c484faab
Python: remove support for capturing callbacks
...
This will be added in a follow-up PR instead.
2023-12-18 23:24:57 +01:00
Rasmus Lerchedahl Petersen
6e4011d2ae
Python: rename sythetic nodes
...
Avoid the term "closure" as it is somewhat academic.
2023-12-18 23:16:51 +01:00
Rasmus Lerchedahl Petersen
c0b3d98c6d
Python: Add a bit more detail to comment.
2023-12-18 22:44:26 +01:00
Rasmus Lerchedahl Petersen
456209b269
Python: Move predicate closer to its use
2023-12-18 22:29:09 +01:00
Rasmus Lerchedahl Petersen
86bb884f67
Python: better comment
2023-12-18 22:26:46 +01:00
github-actions[bot]
19af35b29a
Release preparation for version 2.15.5
2023-12-18 21:22:44 +00:00
Rasmus Lerchedahl Petersen
7324177786
Python: address QL alerts
2023-12-18 22:20:28 +01:00
Rasmus Lerchedahl Petersen
25c83dc70d
Python: adjust comment
2023-12-18 22:15:37 +01:00
Rasmus Lerchedahl Petersen
bf1ad23678
Python: add comments
...
- on debug predicates
- on JS implementation
2023-12-18 22:00:13 +01:00
Rasmus Lerchedahl Petersen
c88d686ce4
Python: move SynthCapturePostUpdateNode
...
next to `SynthCaptureNode`
2023-12-18 21:37:52 +01:00
yoff
f50817e92a
Merge pull request #15104 from RasmusWL/fewer-meta-queries
...
Python: Remove `@tags meta` from internal debug queries
2023-12-18 21:27:33 +01:00
yoff
e0c027f13c
Merge pull request #14848 from hvitved/python/shared-type-tracking
...
Python: Adopt shared type tracking library
2023-12-18 21:14:42 +01:00
Mathias Vorreiter Pedersen
41c49ae05b
Merge pull request #15136 from MathiasVP/fix-joins-in-use-after-free
2023-12-18 17:18:06 +01:00
Edward Minnix III
56921a6e21
Merge pull request #14040 from egregius313/egregius313/weak-hashing-properties
...
Java: Add support for algorithm names specified in `.properties` files to `java/potentially-weak-cryptographic-algorithm`
2023-12-18 09:38:58 -05:00
Tamás Vajk
d5f47a3d75
Merge pull request #15124 from tamasvajk/feature/telemetry/extraction-information
...
C#: Add telemetry query to report extractor information
2023-12-18 15:30:35 +01:00
Tamás Vajk
c5cf0641bf
Merge pull request #15131 from tamasvajk/standalone/file-name
...
C#: Exclude not existing or problematic files from standalone extraction
2023-12-18 15:30:01 +01:00
Arthur Baars
4de335e8a2
Merge pull request #15134 from github/alexdenisov/skip-codesign-tracing
...
Swift: do not trace codesign binary
2023-12-18 15:26:37 +01:00
Rasmus Lerchedahl Petersen
d6544cc550
Python: remove consistency exclusion
2023-12-18 15:24:49 +01:00
Malayke
22cb9ed063
Merge branch 'main' into main
2023-12-18 22:07:45 +08:00
Mathias Vorreiter Pedersen
d308bb40a0
Merge pull request #15132 from MathiasVP/fix-joins-in-isModifiableAtImpl
...
C++: Fix joins in `isModifiableAtImpl`
2023-12-18 15:01:36 +01:00
Paolo Tranquilli
3cb14c63ee
Merge pull request #15135 from github/redsun82/fix-cmake-bazel-version
...
Bazel/CMake: use bazelisk to use correct bazel version
2023-12-18 15:01:10 +01:00
Mathias Vorreiter Pedersen
aafde4d18d
C++: Fix joins in 'cpp/use-after-free'.
2023-12-18 14:49:09 +01:00
Tamas Vajk
f9c6d5e808
Ensure files are only enumerated once
2023-12-18 14:39:02 +01:00
Alex Denisov
6cbf8abf59
Swift: do not trace codesign binary
2023-12-18 14:24:07 +01:00
Tamas Vajk
b14d26ab62
C#: Exclude not existing or problematic files from extraction
2023-12-18 14:10:56 +01:00
Tom Hvitved
a776132a10
Python: Deprecate more predicates
2023-12-18 13:05:17 +01:00
Jorge
b81fbd7669
Add change note
2023-12-18 12:55:30 +01:00
Paolo Tranquilli
452b8d22a3
Bazel/CMake: use bazelisk to use correct bazel version
...
(cherry picked from commit 819fc52854 )
2023-12-18 12:49:54 +01:00
amammad
79edc5c261
add sanitizer to all Read methods, add Inline tests, improve tests
2023-12-18 12:34:56 +01:00
Tamas Vajk
1a8857dab8
Create problematic additional file in integration test
2023-12-18 12:32:24 +01:00
maikypedia
a3ae8bd2c0
Add change note
2023-12-18 12:28:35 +01:00
maikypedia
8b2accca83
Add fixes and suggestions
2023-12-18 12:20:32 +01:00
Mathias Vorreiter Pedersen
50b754b6c1
Merge pull request #15129 from MathiasVP/fix-joins-in-wrong-type-format-argument
...
C++: Fix joins in `cpp/wrong-type-format-argument`
2023-12-18 12:17:17 +01:00
Mathias Vorreiter Pedersen
f5c52ac496
C++: Fix joins in 'isModifiableAtImpl'.
2023-12-18 12:02:33 +01:00
Malayke
c90fcd19cc
Merge branch 'main' into main
2023-12-18 18:38:20 +08:00
Michael Nebel
d8fdba009a
Merge pull request #15119 from michaelnebel/csharp/stubgenimprovements
...
C#: Escape method names in stub generation.
2023-12-18 11:35:29 +01:00
Michael Nebel
b10137c24c
C#: Pick the first version number encountered.
2023-12-18 11:02:49 +01:00
Tamas Vajk
de1134ac48
C#: Add linux-only integration test
2023-12-18 10:55:11 +01:00
Malayke
8d8126f849
Merge branch 'github:main' into main
2023-12-18 17:52:28 +08:00
Mathias Vorreiter Pedersen
8ed9fbb295
Merge pull request #15123 from MathiasVP/fix-fps-in-double-free
...
C++: Fix FPs in `cpp/double-free` and `cpp/use-after-free`
2023-12-18 10:44:18 +01:00
Mathias Vorreiter Pedersen
e88c6888bc
Merge pull request #15121 from MathiasVP/fix-joins-in-av-rule-145
...
C++: Fix joins in `AV Rule 145`
2023-12-18 10:42:46 +01:00
Tamas Vajk
3f843d820c
Add telemetry query for known/unknown expression kinds
2023-12-18 10:02:32 +01:00
Mathias Vorreiter Pedersen
3897befbe2
C++: Fix joins in 'cpp/wrong-type-format-argument'.
2023-12-18 09:49:34 +01:00
Tony Torralba
9446249e94
Merge pull request #15012 from atorralba/atorralba/java/fix-missing-pinning-fp
...
Java: Fix FPs in Missing certificate pinning
2023-12-18 09:37:18 +01:00
Tony Torralba
0524289a73
Update java/ql/src/Security/CWE/CWE-327/MaybeBrokenCryptoAlgorithm.ql
2023-12-18 08:50:10 +01:00
Tom Hvitved
020a049d30
Merge pull request #15103 from hvitved/ruby/simple-pattern-flow
...
Ruby: Model simple pattern matching as value steps instead of taint steps
2023-12-18 08:49:11 +01:00
Mathias Vorreiter Pedersen
2eda5927d9
Merge pull request #15125 from geoffw0/launchoptions
...
Swift: Add more test cases for application(...launchOptions...).
2023-12-18 08:42:50 +01:00
amammad
a72bd7efcc
add GOOD and BAD comment to sinks, some chore improvements on tests
2023-12-17 20:07:16 +01:00
amammad
87b1028aab
fix pgzip missed sink, apply isBarrier directly to CopyN sink, add new flow state for pgzip
2023-12-17 19:55:50 +01:00
Owen Mansel-Chan
5a2c48f37f
Add change note
2023-12-17 06:28:35 +00:00
Owen Mansel-Chan
e45e92eaa7
Fix MaxIntOrMaxUint.isBoundFor
...
It was wrong for strictnessOffset = 1 before.
2023-12-17 06:16:33 +00:00
Owen Mansel-Chan
36c4f5d1b2
Add failing test
...
The cause of the test failure is confusion about
whether the architecture is 32 bit or 64 bit.
2023-12-17 04:43:14 +00:00
Malayke
ac465b9234
Merge branch 'github:main' into main
2023-12-16 18:02:14 +08:00
masterofnow
4a77f45aa6
Minor adjustment to resolve error for codeql version 2.15.4
2023-12-16 12:41:39 +08:00
masterofnow
99b273d308
Apply suggestions from code review
...
Added suggestion from atorralba.
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-12-16 12:00:45 +08:00
Rasmus Lerchedahl Petersen
64655a0ea8
Python: Use enw class name
2023-12-16 01:36:46 +01:00
Rasmus Lerchedahl Petersen
b505778bc8
Python: remove non-local steps
2023-12-16 01:03:27 +01:00
Rasmus Lerchedahl Petersen
661ba1ca7b
Python: move restriction into branch predicate
...
Otherwise we get loads of nodes with missing locations
from the brnach nodes that are not matched.
2023-12-16 00:33:11 +01:00
Chad Bentz
b02bac5190
Test run
2023-12-15 22:55:10 +00:00
Rasmus Lerchedahl Petersen
5de1725648
Python: update class name
2023-12-15 23:50:29 +01:00
Rasmus Lerchedahl Petersen
4a1fcde649
Python: abandon synthetic node
...
for `CapturingClosureArgumentNode`.
Unless we define it for every single `CallNode`, we need a more
sophisticated mutual recursion with the call graph construction.
There is built-in support for that, but we are currently not using it.
2023-12-15 23:42:29 +01:00
Chris Smowton
84c86f256a
Add buildless tests
2023-12-15 22:37:55 +00:00
Rasmus Lerchedahl Petersen
e36b079e0f
Python: fix compilation error
...
introduced by bad merge
2023-12-15 21:27:22 +01:00
Rasmus Lerchedahl Petersen
416ba6a709
Python: use updated API
2023-12-15 21:26:05 +01:00
Eric Bickle
95ce7c9ba4
Merge branch 'main' into fix/update-gson-model
2023-12-15 10:15:53 -08:00
Geoffrey White
1908575386
Swift: Add more test cases for launchOptions as a source.
2023-12-15 18:11:28 +00:00
Mathias Vorreiter Pedersen
ef916f0ba0
C++: Mitigate ODR violations.
2023-12-15 17:16:04 +00:00
Ed Minnix
09a0730491
QLdoc fix
2023-12-15 11:13:09 -05:00
Ed Minnix
02581a3850
Move class for getProperty method call to Properties.qll
2023-12-15 11:09:08 -05:00
Ed Minnix
73cb01fc89
Remove integration test (ported to query test)
...
The `.properties` file extractor has been enabled by default, so the
test about sources from `getProperty` calls can be ported to a query test.
2023-12-15 11:09:08 -05:00
Ed Minnix
fc53727b9d
Bump change note date
2023-12-15 11:09:08 -05:00
Ed Minnix
8826eaf1a3
Move test case to query tests
2023-12-15 11:09:08 -05:00
Ed Minnix
afefccf8f7
Update change note
2023-12-15 11:09:08 -05:00
Ed Minnix
0d12981d6a
Bump change note
2023-12-15 11:09:08 -05:00
Ed Minnix
078a33eecc
Updated change note
2023-12-15 11:09:07 -05:00
Ed Minnix
1c3993e632
QLDocs
2023-12-15 11:09:07 -05:00
Ed Minnix
8e55ced288
Update test to use MaybeBrokenCryptoAlgorithm
2023-12-15 11:09:07 -05:00
Ed Minnix
83c6ece405
Move weak hashing into MaybeBrokenCryptoAlgorithm
2023-12-15 11:09:07 -05:00
Ed Minnix
fbc2a33597
Replace MethodAccess with MethodCall
2023-12-15 11:09:07 -05:00
Ed Minnix
c20ea1f629
Bump change note date
2023-12-15 11:09:07 -05:00
Ed Minnix
cb0ea350b5
Improve docs
2023-12-15 11:09:07 -05:00
Ed Minnix
0efca8200d
Weak Hashing query wording
2023-12-15 11:09:07 -05:00
Ed Minnix
86b57a11ac
Bump change note date
2023-12-15 11:09:07 -05:00
Ed Minnix
25fa8d5ae7
Move some logic to class
2023-12-15 11:09:07 -05:00
Ed Minnix
4ff6c1e2ea
Test case
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-12-15 11:09:07 -05:00
Ed Minnix
93cf5b8eb9
Weak Hashing Property initial query
2023-12-15 11:09:07 -05:00
Tamas Vajk
e62d542e8f
C#: Add telemetry query to report extractor information
2023-12-15 16:25:38 +01:00
Geoffrey White
f6a4970012
Swift: Autoformat.
2023-12-15 14:58:11 +00:00
Mathias Vorreiter Pedersen
82b9f1b31c
C++: Accept test changes.
2023-12-15 14:57:31 +00:00
Mathias Vorreiter Pedersen
0543ed115e
C++: Add barrier for array lookups in 'cpp/double-free' and 'cpp/use-after-free'.
2023-12-15 14:57:17 +00:00
Michael Nebel
38ae848b94
C#: Update generated stubs.
2023-12-15 15:50:08 +01:00
Geoffrey White
0b04e4abe5
Swift: Address QL-for-QL alerts.
2023-12-15 14:48:30 +00:00
Michael Nebel
e69f0e3461
C#: Don't generate stubs for the record Clone method.
2023-12-15 15:41:59 +01:00
Mathias Vorreiter Pedersen
dc9c538fcc
Merge pull request #15120 from MathiasVP/fix-joins-in-av-rule-79
...
C++: Fix joins in `cpp/resource-not-released-in-destructor`
2023-12-15 14:06:53 +00:00
Rasmus Lerchedahl Petersen
1ee11ae7af
Merge branch 'main' of https://github.com/github/codeql into python/captured-variables-basic
2023-12-15 14:31:57 +01:00
Geoffrey White
034daa9b35
Swift: Address false positives.
2023-12-15 13:29:49 +00:00
Mathias Vorreiter Pedersen
1cbe01923d
C++: Fix joins in 'AV Rule 145'.
2023-12-15 13:08:13 +00:00
Rasmus Lerchedahl Petersen
8601105988
Python: Address TODO comment
2023-12-15 14:03:38 +01:00
Rasmus Lerchedahl Petersen
e1bf2821d9
Python: split variable capture instantiation out
...
into its own file.
2023-12-15 13:59:52 +01:00
Rasmus Lerchedahl Petersen
f668453d01
Python: move things around
2023-12-15 13:48:50 +01:00
Rasmus Lerchedahl Petersen
739b839628
Python: use updated names
2023-12-15 13:48:28 +01:00
Jeroen Ketema
3977689808
Merge pull request #15117 from jketema/buffer
...
C++: Only consider the maximum buffer size for badly bounded write
2023-12-15 13:46:09 +01:00
yoff
b07316f4ae
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-15 13:41:04 +01:00
Rasmus Lerchedahl Petersen
a311582285
Python: Bring back (now simplified) exclusion
2023-12-15 13:28:16 +01:00
Alex Eyers-Taylor
8e92fcc08f
CPP: Format Temporaries
2023-12-15 12:00:44 +00:00
yoff
4b89a412c6
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-15 12:59:01 +01:00
Rasmus Lerchedahl Petersen
d3b237bf7e
Python: rename synthetic lambda nodes
2023-12-15 12:55:26 +01:00
Geoffrey White
326242a1fb
Swift: Change note.
2023-12-15 11:39:09 +00:00
Mathias Vorreiter Pedersen
2c5f65a241
C++: Drive-by cleanup: This case is redundant since a 'DestructorCall' is also a 'FunctionCall'.
2023-12-15 11:38:52 +00:00
Mathias Vorreiter Pedersen
ce326a0f79
C++: Fix joins.
2023-12-15 11:37:28 +00:00
Geoffrey White
b7a533f879
Swift: Update .qhelp for Swift.
2023-12-15 11:32:14 +00:00
Alexander Eyers-Taylor
c68d3c5983
Update cpp/ql/src/Security/CWE/CWE-416/Temporaries.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-12-15 11:23:11 +00:00
Alex Denisov
dd13ea3d0a
Swift: separate installation of dependencies and autobuilding
...
`pod install` could generate Xcode projects files needed for
autobuilding, so it's better to install dependencies first, and then do
re-scan to pick up the new files.
2023-12-15 12:20:36 +01:00
Geoffrey White
0ff84b467f
Swift: Create examples for the .qhelp in Swift, and test them.
2023-12-15 11:14:05 +00:00
Michael Nebel
f6af593b0b
C#: Add a unit test for escaping method names.
2023-12-15 12:04:46 +01:00
Alex Eyers-Taylor
49e1467581
CPP: Fix handling of ternary operators in tempory queries and add tests.
2023-12-15 11:03:23 +00:00
Anders Schack-Mulligen
1ea1130271
Merge pull request #15062 from aschackmull/dataflow/deprecate-flowstatestring
...
Dataflow: Deprecate FlowStateString.
2023-12-15 11:59:04 +01:00
Michael Nebel
671692177e
C#: Escape method names.
2023-12-15 11:34:06 +01:00
Jeroen Ketema
0b1b1be356
C++: Add change note
2023-12-15 11:13:52 +01:00
Erik Krogh Kristensen
16e53d3972
Merge pull request #15115 from erik-krogh/no-types-integration-test
...
JS: add integration test for the new extractor option to disable type extraction
2023-12-15 11:13:14 +01:00
Rasmus Lerchedahl Petersen
5b6ea15028
Python: remove unneeded consistency exclusion
2023-12-15 11:09:37 +01:00
Michael Nebel
d59b5a9647
Merge pull request #15100 from michaelnebel/csharp/stubsrefresh
...
C#: .NET8 Stubs update.
2023-12-15 10:46:43 +01:00
Jeroen Ketema
2065ecff66
C++: Only consider the maximum buffer size for badly bounded write
2023-12-15 10:46:13 +01:00
Rasmus Lerchedahl Petersen
bfdcae4538
Python : P -> PY
2023-12-15 10:43:02 +01:00
erik-krogh
a694928dd3
use the extractor option directly instead
2023-12-15 10:39:36 +01:00
erik-krogh
9c520778c7
Merge remote-tracking branch 'upstream/main' into no-types-integration-test
2023-12-15 10:38:05 +01:00
Rasmus Lerchedahl Petersen
262d43abcf
Python: Make compile and add comment
2023-12-15 10:28:51 +01:00
Rasmus Lerchedahl Petersen
2051ba3395
Python: hide synthesized capture nodes
2023-12-15 10:26:56 +01:00
Rasmus Lerchedahl Petersen
f96c52ed3b
Python: make compile again
...
also improve comment
2023-12-15 10:25:49 +01:00
Jeroen Ketema
b29c886d9b
Merge pull request #15107 from MathiasVP/better-tostring
...
C++: Produce a better `toString` for dataflow nodes with indirections
2023-12-15 10:19:53 +01:00
Michael Nebel
305e015948
C#: Update flowsummaries expected tests.
2023-12-15 10:02:02 +01:00
Michael Nebel
3ead21fb13
C#: Update options files.
2023-12-15 10:02:02 +01:00
Michael Nebel
588fe2792c
C#: Update/Add some hand-written stubs for CWE-079 and CWE-611.
2023-12-15 10:02:02 +01:00
Michael Nebel
597a47b2d5
C#: Modify System.Web.cs manual stub to avoid overlap with generated stub.
2023-12-15 10:02:02 +01:00
Michael Nebel
0e6399e1cc
C#: Make manual adjustments to the generated stubs.
2023-12-15 10:02:02 +01:00
Michael Nebel
8967a0996b
C#: Update all generated stubs.
2023-12-15 10:02:02 +01:00
yoff
c395d2d957
Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-12-15 09:58:27 +01:00
erik-krogh
ad4f464850
add warnOnImplicitThis
2023-12-15 09:55:30 +01:00
erik-krogh
9cc708b122
add integration test for the new extractor option to disable type extraction
2023-12-15 09:53:13 +01:00
Erik Krogh Kristensen
9543c23aba
Merge pull request #15111 from erik-krogh/mergeback-ts-extractor
...
JS: TypeScript extractor fixes into rc/3.12
2023-12-15 09:21:20 +01:00
Michael Nebel
5bc2183fc3
Merge pull request #15108 from michaelnebel/csharp/stubgenscripts
...
C#: Stub generator scripts.
2023-12-15 09:16:36 +01:00
yoff
72430438f3
Merge pull request #15109 from RasmusWL/consistency-cleanup
...
Python: Delete old copy of DataFlowImplConsistency.qll
2023-12-15 08:58:32 +01:00
Anders Schack-Mulligen
337e5e458c
Update java/ql/lib/semmle/code/java/security/InsufficientKeySize.qll
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-12-15 08:48:50 +01:00
Yunus AYDIN
8a7c3c19fe
Merge branch 'main' into main
2023-12-15 09:05:50 +03:00
fossilet
795668ddaf
Fix sphinx.add_lexer.
2023-12-15 09:58:46 +08:00
Rasmus Lerchedahl Petersen
abd544d96c
Python: consistency failure gone
2023-12-15 00:38:58 +01:00
Rasmus Lerchedahl Petersen
b6123de518
Python: simplify assignments to captured variables
2023-12-15 00:34:52 +01:00
Yunus AYDIN
ec5a8b49c8
add httprouter example code and stub.go
2023-12-15 00:54:39 +03:00
Erik Krogh Kristensen
a700aa4cde
Merge pull request #15110 from rvermeulen/rvermeulen/xml-attr-data-flow-node
...
JavaScript: Add support for XML attributes in the data flow graph
2023-12-14 21:45:57 +01:00
Geoffrey White
363ec0a917
Swift: Update swift/summary/query-sinks.
2023-12-14 20:22:36 +00:00
erik-krogh
c752f26f91
use direct string comparison instead, that doesn't crash on invalid values
2023-12-14 20:43:16 +01:00
erik-krogh
5bbf79bf26
fix the parsing of boolean environment variables in the TypeScript extractor
2023-12-14 20:43:16 +01:00
erik-krogh
1a0d29ba8a
rename extractor environment variable to CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES
2023-12-14 20:43:16 +01:00
erik-krogh
62205f6a7f
add environment variable to skip extraction of types in TypeScript
2023-12-14 20:43:16 +01:00
erik-krogh
b5fe0e5709
make sure reset() is called when manually invoking the TS extractor, so environment-variables are read
2023-12-14 20:43:16 +01:00
erik-krogh
96d1573978
move TypeVarDepth further up, so its declared before it's used
2023-12-14 20:43:15 +01:00
erik-krogh
10cf53b8d3
fix a this reference
...
`this` didn't refer to anything specific, and it was in fact `undefined` in the context it was invoked. There was already a `let typeTable = this;` further up (where `this` refers to the class instance), so I used `typeTable`.
2023-12-14 20:43:15 +01:00
erik-krogh
43b228dbb4
exclude all the lib.d.ts files when running the TS extractor directly
...
e.g. the `lib.es5.d.ts` file was not excluded
2023-12-14 20:43:15 +01:00
Erik Krogh Kristensen
e838562591
Merge pull request #15105 from erik-krogh/fix-boolean-parse
...
JS: fix the parsing of boolean environment variables in the TypeScript extractor
2023-12-14 20:41:14 +01:00
Remco Vermeulen
133a243298
Add support for XML attributes in the data flow graph
2023-12-14 11:33:53 -08:00
Tom Hvitved
25a676ac6a
Ruby: Model simple pattern matching as value steps instead of taint steps
2023-12-14 20:18:24 +01:00
Geoffrey White
9ec08c1c4b
Swift: Add a couple of sinks missing from sensitive data hashing as well.
2023-12-14 18:04:35 +00:00
Geoffrey White
3a900f1f8b
Swift: Fix some inconsistencies in the test cases.
2023-12-14 18:04:34 +00:00
Geoffrey White
7ba18e64a0
Swift: Add sinks for algorithms that are OK for sensitive data hashing but not for password hashing.
2023-12-14 18:04:34 +00:00
Geoffrey White
c2d49c0fff
Swift: Address a weakness in the sensitive data regexs.
2023-12-14 18:04:34 +00:00
Geoffrey White
87eb96ed3b
Swift: Add more cases to test.
2023-12-14 18:04:34 +00:00
Geoffrey White
22ed20dd7c
Swift: Upgrade SecKeyCopyExternalRepresentation source to be considered a password / key rather than a miscellaneous credential.
2023-12-14 18:04:34 +00:00
Rasmus Wriedt Larsen
2a98a7e615
Python: Delete old copy of DataFlowImplConsistency.qll
...
We forgot to delete that file in https://github.com/github/codeql/pull/8457
2023-12-14 18:18:25 +01:00
Mathias Vorreiter Pedersen
7af6496a71
C++: Add change note.
2023-12-14 17:13:23 +00:00
Robert Marsh
3738e19db6
Swift: fix compilation failures outside CFG code
2023-12-14 16:39:51 +00:00
Geoffrey White
10b4c98e80
Swift: Move password sources to be reported by the new query.
2023-12-14 16:09:47 +00:00
Geoffrey White
5faa25fc6c
Swift: Make passwords their own sensitive data type.
2023-12-14 16:09:47 +00:00
Geoffrey White
b5a45c64ff
Swift: Define barriers, additional flow steps and sinks.
2023-12-14 16:09:47 +00:00
Geoffrey White
e5bf929cdb
Swift: Split off WeakPasswordHashingExtensions.qll as we normally do.
2023-12-14 16:09:46 +00:00
Geoffrey White
db1508d108
Swift: Trivial changes - query ID / metadata, imports.
2023-12-14 16:09:46 +00:00
Geoffrey White
9774c3cb4f
Swift: Copy WeakPasswordHashing query from csharp.
2023-12-14 16:09:45 +00:00
Geoffrey White
be7d0acfea
Swift: Minor fixes for the existing weak sensitive data hashing query (naming consistency, remove unused import).
2023-12-14 16:09:45 +00:00
amammad
4d9aad92a1
remove a duplicate test
2023-12-14 17:08:18 +01:00
Mathias Vorreiter Pedersen
04ca36f9b0
Merge pull request #15106 from geoffw0/revrevtest
...
Swift: Revert:Revert "Swift: CommonCrypto test cases for the BrokenCryptoAlgorithm query"
2023-12-14 15:56:46 +00:00
Mathias Vorreiter Pedersen
61e30b9ff8
C++: Accept more test changes.
2023-12-14 15:25:29 +00:00
Michael Nebel
82784b4364
C#: Add a script for generating stubs for all packages needed for testing.
2023-12-14 16:11:17 +01:00
Geoffrey White
7e6ff7c826
Swift: Disable the part of the test that triggers an extraction issue.
2023-12-14 15:04:48 +00:00
Mathias Vorreiter Pedersen
368f438754
C++: Add more QLDoc.
2023-12-14 14:49:48 +00:00
Geoffrey White
3193ceb3f9
Merge pull request #15052 from geoffw0/pointermodels
...
Swift: Expand models for UnsafePointer and friends
2023-12-14 14:46:48 +00:00
Mathias Vorreiter Pedersen
0c100eb122
C++: Accept test changes.
2023-12-14 14:44:58 +00:00
Mathias Vorreiter Pedersen
8a52565395
C++: Improve 'toString' on the most common dataflow nodes.
2023-12-14 14:44:42 +00:00
amammad
d84333dad8
added *ReadBody* Methods as UntrustedFlowSource
2023-12-14 15:31:09 +01:00
Anders Schack-Mulligen
7623432c76
Java: Remove/deprecate FlowStateString-based extension points.
2023-12-14 15:15:58 +01:00
Owen Mansel-Chan
9cb0bb2fc9
Merge pull request #15034 from github/dependabot/github_actions/actions/setup-go-5
...
Bump actions/setup-go from 4 to 5
2023-12-14 14:14:03 +00:00
Anders Schack-Mulligen
8ef4821f63
Python: Remove references to FlowStateString.
2023-12-14 15:05:33 +01:00
Anders Schack-Mulligen
a1068ce2f9
Dataflow: deprecate references
2023-12-14 15:05:33 +01:00
Anders Schack-Mulligen
07ad770437
Dataflow: Deprecate FlowStateString.
2023-12-14 15:05:33 +01:00
Geoffrey White
987cdff862
Revert "Revert "Swift: CommonCrypto test cases for the BrokenCryptoAlgorithm query""
...
This reverts commit a478980e48 .
2023-12-14 13:56:35 +00:00
erik-krogh
0db788bb10
use direct string comparison instead, that doesn't crash on invalid values
2023-12-14 14:50:17 +01:00
erik-krogh
5e91b2f5bc
fix the parsing of boolean environment variables in the TypeScript extractor
2023-12-14 14:40:10 +01:00
Rasmus Wriedt Larsen
36b635fb70
Python: Remove @tags meta from internal debug queries
...
These queries were great when evaluating coverage of the new call-graph compared with the old.
However, they are not useful to run as part of our DCA experiments.
2023-12-14 14:39:32 +01:00
Geoffrey White
36d0148aa1
Swift: Comment out lines that don't extract correctly right now.
2023-12-14 13:27:05 +00:00
Erik Krogh Kristensen
063f69c10e
Merge pull request #15072 from erik-krogh/ts-various
...
JS: Various TypeScript extraction fixes.
2023-12-14 14:17:42 +01:00
Koen Vlaswinkel
7c141b9239
Merge pull request #15089 from github/koesie10/csharp-model-editor-generics
...
C#: Fix names of generic types/methods in model editor queries
2023-12-14 14:17:14 +01:00
Michael Nebel
3d012cd35f
C#: Move the generator class to a helper file.
2023-12-14 14:11:59 +01:00
Michael Nebel
8343ce0754
C#: Re-factor the make_stubs_nuget script to more easily allow multiple nuget references.
2023-12-14 14:11:59 +01:00
Yunus AYDIN
ac3cb7f6c4
update camelcase
2023-12-14 15:29:28 +03:00
Yunus AYDIN
a17c704f46
update expected file
2023-12-14 15:27:27 +03:00
Tom Hvitved
6fc9e6193a
Add change note
2023-12-14 13:25:21 +01:00
Tom Hvitved
84aa9f17a0
Python/Ruby: Use SummaryTypeTracker from typetracking pack
2023-12-14 13:25:18 +01:00
Tom Hvitved
1e24de7e83
Copy SummaryTypeTracker.qll to typetracking pack
2023-12-14 13:22:48 +01:00
Tom Hvitved
3b1146bf98
Python: Adopt shared type tracking library
2023-12-14 13:22:44 +01:00
erik-krogh
72e99b5b9d
rename extractor environment variable to CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES
2023-12-14 12:52:49 +01:00
Tom Hvitved
4776e9ccd2
Type tracking: Allow for a non-standard flowsTo predicate
2023-12-14 12:36:09 +01:00
Tom Hvitved
c8b4a215bc
Merge pull request #14573 from hvitved/flow-summary-impl-param
...
Move `FlowSummaryImpl.qll` to `dataflow` pack
2023-12-14 12:24:15 +01:00
Rasmus Lerchedahl Petersen
0b6d47b8bc
Python: update to new API
...
update is in a comment, so compilation
never failed in CI.
2023-12-14 11:56:05 +01:00
Rasmus Lerchedahl Petersen
2a5736e73d
Python: add consistency exception
...
this must have been lost in my
clean-up rebase.
2023-12-14 11:50:09 +01:00
Tom Hvitved
8f0e0b6559
Merge pull request #15090 from hvitved/inline-flow-test-get-arg-string
...
InlineFlowTest: Allow for custom `getArgString`
2023-12-14 10:53:55 +01:00
Tamás Vajk
3487f9d143
Merge pull request #15070 from tamasvajk/standalone/exclusions
...
C#: Remove unneeded options and add support for `paths/paths-ignore` in standalone
2023-12-14 10:41:53 +01:00
Rasmus Lerchedahl Petersen
479d81fb75
Python: fix nonlocal captured variables
...
This depends on the extractor fix
2023-12-14 10:37:27 +01:00
Rasmus Lerchedahl Petersen
38e03216f6
Python: allow CaptureArgumentNodes as multiple arguemnts
...
These are the labmda self references. This is similar to
how `BlockParameterArgumentNode` is excluded for Ruby.
It is important that we restrict `call` in this logic.
Otherwise, we get a cartesian product and the consistency
check runs for a very long time...
2023-12-14 10:32:29 +01:00
Tom Hvitved
7da10e0013
Merge pull request #15095 from hvitved/dataflow/boolean-class
...
Data flow: Use `Boolean` class
2023-12-14 10:29:52 +01:00
Rasmus Lerchedahl Petersen
f32d5e422d
Python: typo
2023-12-14 10:28:26 +01:00
Rasmus Lerchedahl Petersen
efcdb3e67e
Python: filter local flow from a node to itself
2023-12-14 10:28:26 +01:00
Rasmus Lerchedahl Petersen
5471c92e9f
Python: exclusion for summary nodes
...
as in Ruby
2023-12-14 10:28:26 +01:00
Rasmus Lerchedahl Petersen
061fd014a6
Python: further restrict LibraryLambdaMethod
...
On the small test project, this reduces the number
of instances from 285 to 22.
2023-12-14 10:27:15 +01:00
Rasmus Lerchedahl Petersen
453ab9ca7b
Python: restrict LibraryLambdaMethod
2023-12-14 10:27:15 +01:00
Rasmus Lerchedahl Petersen
17a0029585
Python: support callbacks to library calls
...
TODO:
The member predicate `LibraryLambdaMethod::getACall` is
currently too permissive.
Ideally, we would have `libraryCallHasLambdaArg`
as in Ruby. But even a more precise
`libraryCall` predicate might be fine.
2023-12-14 10:27:15 +01:00
Rasmus Lerchedahl Petersen
7565873e83
Python: test callbacks to library calls
2023-12-14 10:27:15 +01:00
Rasmus Lerchedahl Petersen
797deebcdd
Python: exclude CaptureNodes
2023-12-14 10:27:15 +01:00
Rasmus Lerchedahl Petersen
b513871b9b
Python: add consistency exclusions
2023-12-14 10:27:15 +01:00
Rasmus Lerchedahl Petersen
c054ba6a97
python: instantiate module for variable capture
...
This provides variable capture in standard situations:
- nested functions
- lambdas
There are some deficiencies:
- we do not yet handle objects capturing variables.
- we do not handle variables captured via the `nonlocal` keyword.
This should be solved at the AST level, though, and then it
should "just work".
There are still inconsistencies in the case where
a `SynthesizedCaptureNode` has a comprehensions
as its enclosing callable. In this case,
`TFunction(cn.getEnclosingCallable())` is not
defined and so getEnclosingCallable does not exist
for the `CaptureNode`.
2023-12-14 10:25:39 +01:00
Rasmus Lerchedahl Petersen
6db55cd12f
Python: add missing annotation
2023-12-14 10:20:49 +01:00
Tamas Vajk
ee70de8879
Fix code review findings
2023-12-14 10:15:22 +01:00
Tom Hvitved
8fc6fb1ec0
Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-12-14 10:10:53 +01:00
Koen Vlaswinkel
96feb2c787
C#: Rename getMethodName to getEndpointName
2023-12-14 10:04:46 +01:00
Tom Hvitved
098afb935b
Address more review comments
2023-12-14 09:48:45 +01:00
Tamas Vajk
728229e6e1
Fix code review findings
2023-12-14 09:44:20 +01:00
yoff
b78ceb61a3
Merge pull request #15099 from fossilet/fix-qll-typo
...
Fix typo in qll.
2023-12-14 09:43:26 +01:00
Chris Smowton
d884726490
Merge pull request #15098 from fossilet/fix-signature-doc
...
Fix typo.
2023-12-14 08:35:56 +00:00
fossilet
1cc2f073c4
Fix typo in qll.
2023-12-14 16:05:14 +08:00
Tom Hvitved
5a426d1800
Data flow: Use Boolean class
2023-12-14 09:04:16 +01:00
Michael Nebel
1653433f39
Merge pull request #15096 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-12-14 08:51:34 +01:00
fossilet
9157dde4e2
Fix typo.
2023-12-14 15:35:13 +08:00
github-actions[bot]
c1325d798f
Add changed framework coverage reports
2023-12-14 00:16:18 +00:00
Edward Minnix III
14a76278b8
Merge pull request #14802 from egregius313/egregius313/java/update-ql-integration-test
...
Java: Add `.properties` file references in integration tests
2023-12-13 18:40:03 -05:00
Ed Minnix
717e69ac0e
Add properties file references
2023-12-13 16:54:55 -05:00
Yunus AYDIN
d899267acb
add httprouter example code
2023-12-14 00:23:09 +03:00
Yunus AYDIN
5f6de79c09
Fix select query, Add httprouter library and update test files
2023-12-14 00:19:11 +03:00
Robert Marsh
0e5255ea88
Swift: switch to shared, parameterized CFG library
2023-12-13 20:13:11 +00:00
Paolo Tranquilli
307da3417d
Merge pull request #15091 from github/redsun82/fix-cmake-bazel-version
...
Bazel/CMake: use bazelisk to use correct bazel version
2023-12-13 19:06:37 +01:00
Yunus AYDIN
a09505afc2
Update rules
2023-12-13 20:01:53 +03:00
Jeroen Ketema
4d922ddb0c
Merge pull request #15092 from jketema/mb12
...
Merge back `rc/3.12` into main
2023-12-13 17:45:58 +01:00
Geoffrey White
e8f8aa266f
Merge remote-tracking branch 'upstream/main' into pointermodels
2023-12-13 16:43:15 +00:00
Paolo Tranquilli
9e300a9906
Merge branch 'main' into redsun82/fix-cmake-bazel-version
2023-12-13 17:36:07 +01:00
Yunus AYDIN
5148054612
Update go/ql/src/experimental/CWE-525/WebCacheDeceptionLib.qll
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-12-13 19:36:07 +03:00
Yunus AYDIN
221e281f73
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-12-13 19:35:59 +03:00
Yunus AYDIN
0ea27c6e9b
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-12-13 19:35:53 +03:00
Yunus AYDIN
da275b374f
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-12-13 19:35:36 +03:00
Jeroen Ketema
25a1b0532e
Merge pull request #15094 from github/revert-13870-commoncrypto1
...
Revert "Swift: CommonCrypto test cases for the BrokenCryptoAlgorithm query"
2023-12-13 17:21:44 +01:00
Mathias Vorreiter Pedersen
a478980e48
Revert "Swift: CommonCrypto test cases for the BrokenCryptoAlgorithm query"
2023-12-13 15:40:09 +00:00
Mathias Vorreiter Pedersen
5ddfb1f7c3
Merge pull request #15088 from MathiasVP/debug-mode-for-dataflow-printing
...
C++: Easier debugging of dataflow node `toString` output
2023-12-13 15:15:41 +00:00
Jeroen Ketema
99e65df6ce
Merge remote-tracking branch 'upstream/rc/3.12' into mb12
2023-12-13 15:43:39 +01:00
Paolo Tranquilli
819fc52854
Bazel/CMake: use bazelisk to use correct bazel version
2023-12-13 15:32:06 +01:00
Mathias Vorreiter Pedersen
401ab3b035
C++: Fix 'isDebugMode'. It was computing 'isNotDebugMode' (oops).
2023-12-13 14:31:45 +00:00
Mathias Vorreiter Pedersen
fcc3113bfc
C++: Privately import 'Node0ToString'.
2023-12-13 14:31:02 +00:00
Michael Nebel
b765ba387f
Merge pull request #13110 from GeekMasher/csharp-aws
...
[CSharp] AWS Lambda Modelling
2023-12-13 15:14:58 +01:00
Geoffrey White
023d72b6fb
Merge remote-tracking branch 'upstream/main' into pointermodels
2023-12-13 14:07:17 +00:00
Tamas Vajk
c870b0d4e9
Add more logging to the file filtering
2023-12-13 14:14:07 +01:00
Tamas Vajk
694be29311
Remove uneeded option from the help
2023-12-13 14:13:41 +01:00
Tom Hvitved
28a2d05cf8
InlineFlowTest: Allow for custom getArgString
2023-12-13 13:58:44 +01:00
Koen Vlaswinkel
e177f8783a
C#: Share qualified name module for model editor queries
2023-12-13 13:48:44 +01:00
Koen Vlaswinkel
ea504cddd1
C#: Use correct names for generic types/methods in model editor queries
2023-12-13 13:48:23 +01:00
Michael Nebel
ffc36e4ccd
Merge pull request #15085 from michaelnebel/csharp/telemetrycalls
...
C#: Telemetry should only count calls in source.
2023-12-13 13:46:16 +01:00
Koen Vlaswinkel
79f5a6acab
C#: Add test model for generic method
2023-12-13 13:46:06 +01:00
Michael Nebel
3b9737fa88
C#: Update Amazon stubs to use .NET 8 as target framework.
2023-12-13 13:11:31 +01:00
Michael Nebel
c6a6a9f631
C#: Update Aws test files.
2023-12-13 13:07:29 +01:00
Michael Nebel
fa4f91988f
C#: Add autogenerated stubs for Aws.Lambda.Core and Aws.Lambda.APIGatewayEvents.
2023-12-13 13:07:29 +01:00
Mathew Payne
f336ff0063
Add change notes
2023-12-13 13:07:28 +01:00
Mathew Payne
2e0ac264e7
feat: Add AWS Lambda logging
2023-12-13 13:07:28 +01:00
Mathew Payne
6c138ae485
feat: Add models and expected
2023-12-13 13:07:28 +01:00
Mathew Payne
2f5cb1ab29
feat: Add initial tests for AWS Lambda support
2023-12-13 13:07:28 +01:00
Mathew Payne
78a3749601
feat: Add Amazon Lambda testing stubs
2023-12-13 13:07:28 +01:00
Mathias Vorreiter Pedersen
45080ec9f0
C++: Create an abstract class to control debug 'toString' output for dataflow nodes.
2023-12-13 12:05:04 +00:00
Tamas Vajk
f2435f89f1
Simplify test setup
2023-12-13 13:03:23 +01:00
Tamas Vajk
993dd767ac
C#: Add paths/paths-ignore support in standalone
2023-12-13 12:15:56 +01:00
Tamas Vajk
21229b93bf
C#: Remove unneeded options from standalone extractor
2023-12-13 12:15:56 +01:00
Michael Nebel
8218f80154
C#: Base all telemetry tests on stubs.
2023-12-13 11:57:44 +01:00
Michael Nebel
57d5d71d03
C#: Only count calls in source code.
2023-12-13 11:57:32 +01:00
Michael Nebel
16e86134f3
Merge pull request #15087 from michaelnebel/csharp/stubgenrefreadonly
...
C#: Stub generator support for `ref readonly` parameters.
2023-12-13 11:46:45 +01:00
Owen Mansel-Chan
56507c2709
Merge pull request #15084 from github/dependabot/go_modules/go/extractor/extractor-dependencies-88d2ef26ea
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-12-13 10:21:32 +00:00
Michael Nebel
b023338ed7
Merge pull request #15086 from michaelnebel/csharp/testusemorestubs
...
C#: Base more tests purely on stubs.
2023-12-13 11:19:38 +01:00
Tony Torralba
66b54f03b7
Rename test
2023-12-13 11:15:27 +01:00
Tony Torralba
d955dce72a
Improve source of randomness detection
...
Also sanitize flow out of sinks to avoid overlapping paths
2023-12-13 11:15:27 +01:00
Tony Torralba
fc45621ab1
Add pac4j JWT cryptographic key sinks
2023-12-13 11:15:27 +01:00
Tony Torralba
7bc907840c
Fix tests
2023-12-13 11:15:27 +01:00
Tony Torralba
3a5d711711
Add cookie sinks
2023-12-13 11:15:27 +01:00
Tony Torralba
435d1f97a3
Add sink for OpenSAML's RequestType.setID
2023-12-13 11:15:27 +01:00
Michael Nebel
b7f4bfe719
C#: Add a unit test for stub generation of ref readonly parameters.
2023-12-13 11:09:57 +01:00
Michael Nebel
766baa9a50
C#: Add support for ref readonly parameters in the stub generator.
2023-12-13 11:09:57 +01:00
Tony Torralba
4cb53a76d6
Merge pull request #15082 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-12-13 10:35:49 +01:00
Michael Nebel
35a615cac3
C#: Base the remoteflowsource test on stubs and update line numbers in expected output.
2023-12-13 10:07:57 +01:00
Michael Nebel
94d81b501b
C#: Base the CWE-614 tests purely on stubs.
2023-12-13 10:07:57 +01:00
Michael Nebel
4fc8762444
C#: Base the asp/basic tests on stubs only.
2023-12-13 10:07:57 +01:00
Michael Nebel
0b39f1155e
C#: Base the remaning CWE-1004 tests purely on stubs.
2023-12-13 10:07:57 +01:00
Michael Nebel
cdf6b28e13
C#: Base the modelgenerator/dataflow tests on stubs.
2023-12-13 10:07:56 +01:00
masterofnow
e1b8fabf7f
Use global instead of local taint tracking.
2023-12-13 13:50:34 +08:00
masterofnow
8538c12267
Merge branch 'github:main' into LoadClassNoSignatureCheck
2023-12-13 13:47:40 +08:00
dependabot[bot]
dae1a5c70e
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.16.0...v0.16.1 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-13 04:02:50 +00:00
github-actions[bot]
9b20665d75
Add changed framework coverage reports
2023-12-13 00:16:25 +00:00
Yunus AYDIN
a47ffc6833
Remove unnecessary rules
2023-12-13 01:52:06 +03:00
Yunus AYDIN
bb2083d10a
Remove database directory and add WebCacheDeceptionLib.qll
2023-12-13 01:50:56 +03:00
Alexander Eyers-Taylor
236a6a1bce
CPP: Apply suggestions from code review
...
Fix spelling in query id
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-12-12 17:22:46 +00:00
Tony Torralba
bd8f35bef7
Java: Fix FPs in Missing certificate pinning
...
Local URIs should never require pinning
2023-12-12 18:02:12 +01:00
Florin Coada
e637eb720b
Merge pull request #15076 from github/changedocs/2.15.4
...
Release change notes for 2.15.4
2023-12-12 16:51:28 +00:00
Alex Eyers-Taylor
136a77b86e
CPP: Add change note for cpp/use-of-uniwue-pointer-after-lifetime-ends
2023-12-12 16:47:55 +00:00
Alex Eyers-Taylor
e9bc5a54ea
CPP: Add query for detecting invalid uses of temporary unique pointers.
2023-12-12 16:22:20 +00:00
Tony Torralba
27be5ba14b
Merge pull request #15073 from atorralba/atorralba/java/remove-invalid-ognl-sinks
...
Java: Remove invalid OGNL sinks
2023-12-12 16:52:31 +01:00
Owen Mansel-Chan
5675df842e
Merge pull request #15054 from owen-mc/go/find-more-callees-for-captured-variables
...
Go: Also follow jump steps when looking for a callee source
2023-12-12 15:49:15 +00:00
Geoffrey White
609f92c7ac
Merge pull request #13870 from geoffw0/commoncrypto1
...
Swift: CommonCrypto test cases for the BrokenCryptoAlgorithm query
2023-12-12 15:26:02 +00:00
Mathew Payne
7a48152ea9
Add Go Stubs for LibXML2
2023-12-12 15:10:08 +00:00
Chad Bentz
2d33f86d41
Initial Push
...
- Sample test (test not compiling)
- Stubs not generating
2023-12-12 15:00:00 +00:00
Edward Minnix III
4d6521fd7a
Merge pull request #13608 from egregius313/egregius313/weak-randomness
...
Java: Add Weak Randomness Query (CWE-330/338)
2023-12-12 09:40:11 -05:00
Florin Coada
062a85e77b
Removed local preview dox-out
2023-12-12 14:32:46 +00:00
Tony Torralba
fad53a25c0
Update java/ql/lib/ext/struts2.model.yml
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-12-12 14:58:47 +01:00
Mathias Vorreiter Pedersen
3dea467dcc
Merge pull request #15047 from MathiasVP/add-puns-for-addresses-of-arguments
...
C++: Add `PostUpdateNode`s for addresses of outgoing arguments
2023-12-12 13:55:13 +00:00
Mathias Vorreiter Pedersen
412ea67ba0
Merge pull request #15075 from MathiasVP/print-data-flow-relevant-IR
...
C++: Add a `PropertyProvider` for only showing dataflow-relevant IR
2023-12-12 13:51:11 +00:00
Tom Hvitved
3c2336e40b
Merge pull request #15074 from hvitved/dataflow/get-node-type-cached
...
Data flow: Use cached `nodeDataFlowType` instead of `getNodeType`
2023-12-12 14:49:41 +01:00
Florin Coada
c78dfea3db
Release changenotes for 2.15.4
2023-12-12 13:46:32 +00:00
Mathias Vorreiter Pedersen
97f2be9b82
C++: Fix QLDoc.
2023-12-12 13:45:18 +00:00
yoff
a39eb5efc9
Merge pull request #15051 from yoff/python/slightly-improve-tarslip
...
Python: slightly improve tarslip logic
2023-12-12 14:43:43 +01:00
Mathias Vorreiter Pedersen
1ad0e6524e
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/PrintDataFlowRelevantIR.qll
2023-12-12 13:15:36 +00:00
Mathias Vorreiter Pedersen
11386494b7
C++: Factor out the property provider which hides instructions and operands out of the 'LocalFlowPropertyProvider' class and into a separate class.
2023-12-12 13:04:31 +00:00
Tom Hvitved
a46964dfe8
Address review comments
2023-12-12 13:55:52 +01:00
Tom Hvitved
b3929e2375
Data flow: Use cached nodeDataFlowType instead of getNodeType
2023-12-12 13:46:39 +01:00
Tony Torralba
103110f9c2
Java: Remove invalid OGNL sinks
...
Fixes #15053
2023-12-12 13:39:51 +01:00
Alexander Eyers-Taylor
e87b3911dc
Merge pull request #14910 from alexet/incorrect-scanf
...
CPP: Add query for detecteing incorrect error checking for scanf
2023-12-12 11:57:17 +00:00
Geoffrey White
f2e3391a33
Swift: Accept test regression.
2023-12-12 11:37:05 +00:00
erik-krogh
896432b646
add environment variable to skip extraction of types in TypeScript
2023-12-12 12:25:00 +01:00
Mathias Vorreiter Pedersen
4d430d5df0
Merge pull request #15037 from aschackmull/range/prunebounds
...
Rangeanalysis: Prune range calculation.
2023-12-12 11:18:26 +00:00
Mathias Vorreiter Pedersen
cec785c8cc
C++: Respond to review comments.
2023-12-12 11:16:41 +00:00
Mathias Vorreiter Pedersen
f284fde93c
C++: Update QLDoc.
2023-12-12 11:09:36 +00:00
Mathias Vorreiter Pedersen
a6104ad878
C++: Fix test annotations.
2023-12-12 11:06:18 +00:00
Rasmus Wriedt Larsen
42a6309f25
Merge pull request #15071 from github/RasmusWL/generate-code-scanning-query-list
...
Add @RasmusWL as CODEOWNER of a misc file
2023-12-12 10:53:11 +01:00
erik-krogh
cf31ef4960
make sure reset() is called when manually invoking the TS extractor, so environment-variables are read
2023-12-12 10:51:09 +01:00
Jeroen Ketema
611a177c3c
Merge pull request #15066 from jketema/ql-test
...
C++: Update test for CLI changes
2023-12-12 10:36:57 +01:00
erik-krogh
c246a9c12c
move TypeVarDepth further up, so its declared before it's used
2023-12-12 10:34:42 +01:00
erik-krogh
13a01e1545
fix a this reference
...
`this` didn't refer to anything specific, and it was in fact `undefined` in the context it was invoked. There was already a `let typeTable = this;` further up (where `this` refers to the class instance), so I used `typeTable`.
2023-12-12 10:32:31 +01:00
Rasmus Wriedt Larsen
aa6a455ece
Update CODEOWNERS
2023-12-12 10:31:36 +01:00
erik-krogh
ca95a6e9cf
exclude all the lib.d.ts files when running the TS extractor directly
...
e.g. the `lib.es5.d.ts` file was not excluded
2023-12-12 10:29:09 +01:00
Tom Hvitved
9b043a10cc
Merge pull request #15063 from hvitved/csharp/use-scratch-dir
...
C#: Use `CODEQL_EXTRACTOR_CSHARP_SCRATCH_DIR` instead of `Path.GetTempPath`
2023-12-12 08:16:04 +01:00
Yunus AYDIN
bc81201c2e
Update expected file
2023-12-12 00:07:51 +03:00
Owen Mansel-Chan
0fb58caa8c
Update go/ql/lib/change-notes/2023-12-08-find-more-callees-for-captured-functions.md
...
Co-authored-by: Chris Smowton <smowton@github.com >
2023-12-11 20:42:48 +00:00
Edward Minnix III
06eef93f89
Docs review suggestions
2023-12-11 11:18:40 -05:00
Edward Minnix III
ce20c4ae03
Docs review suggestions
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-12-11 11:18:40 -05:00
Ed Minnix
7362158229
Fix test case
2023-12-11 11:18:40 -05:00
Ed Minnix
1271cd3348
Remove unnecessary crypto sinks
2023-12-11 11:18:40 -05:00
Ed Minnix
3ca039bc8f
Rename to InsecureRandomness
2023-12-11 11:18:40 -05:00
Ed Minnix
6e70e6c85a
Use pre-exisiting type for SecureRandom
2023-12-11 11:18:39 -05:00
Edward Minnix III
4678302edb
Update query metadata
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-12-11 11:18:39 -05:00
Ed Minnix
bbf99375c7
Alter cookie sinks to instead focus on creation of a cookie
2023-12-11 11:18:39 -05:00
Ed Minnix
4bdf2b5e18
Bump change note date
2023-12-11 11:18:39 -05:00
Ed Minnix
b9d2a26e6e
Move ESAPI models into the Weak Randomness query
...
These models don't need to apply to all queries. So instead they are
better suited to be within the weak randomness query itself.
2023-12-11 11:18:39 -05:00
Ed Minnix
7f3995f524
Remove extra encryption-iv models
2023-12-11 11:18:39 -05:00
Ed Minnix
7241e0920c
Replace convertBytesToString with models
2023-12-11 11:18:39 -05:00
Ed Minnix
e9ca4a25d4
Update to new MethodCall name
2023-12-11 11:18:39 -05:00
Ed Minnix
a1e9564cc5
Add more sources
2023-12-11 11:18:39 -05:00
Ed Minnix
b8b2de2f3c
Remove use of crypto-parameter sink kind
2023-12-11 11:18:39 -05:00
Ed Minnix
646254c9b2
Add credentials sinks from SensitiveApi
2023-12-11 11:18:39 -05:00
Ed Minnix
057a74d914
Remove unnused class
2023-12-11 11:18:39 -05:00
Ed Minnix
fb875f5095
More variety of test cases
2023-12-11 11:18:39 -05:00
Ed Minnix
ba3c38c226
Restrict addCookie to specific interface
2023-12-11 11:18:38 -05:00
Ed Minnix
dc3e4cd928
Refactored method accesses to the RandomDataSource library
2023-12-11 11:18:38 -05:00
Ed Minnix
ce7690b53f
Make imports private
2023-12-11 11:18:38 -05:00
Edward Minnix III
bc0655573f
Simplifications
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-12-11 11:18:38 -05:00
Ed Minnix
14fdfa4428
Add new sink kind and change note
2023-12-11 11:18:38 -05:00
Ed Minnix
0313f39229
Cryptographic sinks
2023-12-11 11:18:38 -05:00
Ed Minnix
b713efb711
Add ThreadLocalRandom.current as another source
2023-12-11 11:18:38 -05:00
Ed Minnix
bf0123d6ae
Add org.apache.commons.lang.RandomStringUtils as a source
2023-12-11 11:18:38 -05:00
Ed Minnix
1daa83bf46
Add test cases
2023-12-11 11:18:38 -05:00
Ed Minnix
e69ff7b601
Move to library and add docs
2023-12-11 11:18:38 -05:00
Ed Minnix
9f986ca527
Add Weak Randomness Query
2023-12-11 11:18:38 -05:00
Edward Minnix III
8d724acb20
Merge pull request #15026 from egregius313/egregius313/java/dataflow/deprecate-old-dataflow-module-uses
...
Java: Deprecate or remove imports of dataflow library copies
2023-12-11 11:14:09 -05:00
Jeroen Ketema
8d2c72fc73
C++: Update test for CLI changes
2023-12-11 16:36:51 +01:00
Malayke
7121282b27
add new query for detect DOS
2023-12-11 23:05:04 +08:00
Alexander Eyers-Taylor
c883ce8a5e
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-12-11 13:50:35 +00:00
Anders Schack-Mulligen
3bf6c0fe02
Rangeanalysis: Focus pre-bound calculation.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
c14d917a76
Rangeanalysis: Prune range calculation.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
58d463dd33
Rangeanalysis: Minor refactor for bound steps.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
73671b6da3
Rangeanalysis: Refactor base bounds.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
6b178fb64a
Rangeanalysis: Preparatory refactor for bounds sharing.
2023-12-11 14:07:10 +01:00
Michael Nebel
7006d00702
Merge pull request #14892 from michaelnebel/csharp/dotnet8
...
C#: Use .NET 8
2023-12-11 13:53:35 +01:00
Michael Nebel
4b323cd7e0
Merge pull request #15050 from michaelnebel/csharp/defaultparamobject
...
C#: Default parameters for object using attributes.
2023-12-11 13:11:53 +01:00
Tom Hvitved
866f124a95
C#: Use CODEQL_EXTRACTOR_CSHARP_SCRATCH_DIR instead of Path.GetTempPath
2023-12-11 13:10:46 +01:00
Mathias Vorreiter Pedersen
97fc20cee9
Merge pull request #15064 from MathiasVP/swift-accept-test-changes-to-cleartext-transmission
...
Swift: Accept test changes
2023-12-11 11:13:38 +00:00
Óscar San José
693de5e6ff
Merge pull request #15042 from github/dependabot/github_actions/actions/stale-9
...
Bump actions/stale from 8 to 9
2023-12-11 11:44:48 +01:00
Mathias Vorreiter Pedersen
2e4fe49d61
Swift: Accept test changes.
2023-12-11 10:41:07 +00:00
Rasmus Wriedt Larsen
419130be21
Merge pull request #15030 from yoff/python/remove-module-entry-definitions
...
Python: Remove control flow nodes for module entry definitions from the dataflow graph.
2023-12-11 11:40:17 +01:00
Mathias Vorreiter Pedersen
d8f53e5524
Merge pull request #14925 from geoffw0/flows
...
Swift: Imprecise Taint Flows
2023-12-11 10:06:01 +00:00
Michael Nebel
c8542e972e
C#: Fix compiler warnings.
2023-12-11 10:57:44 +01:00
Michael Nebel
d3d594adaf
C#: Update C# integration tests expected output.
2023-12-11 10:57:44 +01:00
Michael Nebel
3497b153d2
C#: Update integration tests to .NET 8.
2023-12-11 10:57:44 +01:00
Michael Nebel
1792942ce9
C#: Update tests that depends on .NET framework assemblies.
2023-12-11 10:57:44 +01:00
Michael Nebel
07a5ac31ae
C#: Fixup tests.
2023-12-11 10:57:44 +01:00
Michael Nebel
e42afa3d3d
C#: Adjustments to test cases.
2023-12-11 10:57:43 +01:00
Michael Nebel
09239ba804
C#: Update NuGet packages.
2023-12-11 10:57:43 +01:00
Michael Nebel
89f0abe3a0
C#: Update the target framework in the create extractor pack script.
2023-12-11 10:57:43 +01:00
Michael Nebel
9ab9f2b0e6
C#: Update all project files to use .NET 8 as target framework.
2023-12-11 10:57:43 +01:00
Michael Nebel
01c65e83a0
C#: Update the stub generator to .NET 8.
2023-12-11 10:57:43 +01:00
Michael Nebel
3e2afda202
C#: Update the create extractor pack action to .NET 8.
2023-12-11 10:57:43 +01:00
Michael Nebel
0df9dcb0fd
C#: Update workflow files to also install .NET 8.
2023-12-11 10:57:43 +01:00
Geoffrey White
17cd22f9d0
Merge pull request #14972 from geoffw0/cryptoprimitives
...
C++: Experimental query for implementation of a cryptographic primitive
2023-12-11 09:47:46 +00:00
Harry Maclean
f877f7dc64
Ruby: Stick to dataflow layer in endpoints query
2023-12-11 09:46:09 +00:00
Mathias Vorreiter Pedersen
c6c487dd90
C++: Fix Code Scanning errors.
2023-12-11 09:35:44 +00:00
Mathias Vorreiter Pedersen
7faf286820
C++: Add more QLDoc to the 'is modifiable' predicates.
2023-12-11 09:29:59 +00:00
Tom Hvitved
cdf59e1e1d
Ruby: Cache more predicates
2023-12-11 10:15:17 +01:00
Tom Hvitved
29a1cd110c
Merge pull request #15041 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-12-11 09:04:43 +01:00
github-actions[bot]
da48d81489
Add changed framework coverage reports
2023-12-11 00:16:52 +00:00
amammad
572777f11b
fix a bug in stubs
2023-12-10 22:18:49 +01:00
amammad
bfa0fb6d74
remove a duplicate test
2023-12-10 22:08:12 +01:00
amammad
cc5416406f
added more sinks related to io.Writer of BodyWriter
2023-12-10 22:06:27 +01:00
Yunus AYDIN
cf8f2a38c3
Update expected file
2023-12-11 00:03:50 +03:00
Yunus AYDIN
a6b092d8c1
Update rules ids
2023-12-10 22:26:05 +03:00
Yunus AYDIN
4d97c42ee5
Remove debugging select on go-chi.ql
2023-12-10 22:18:48 +03:00
Yunus AYDIN
501f617eaa
Update qhelp and and go-chi
2023-12-10 22:07:17 +03:00
Yunus AYDIN
34fb1c4a9f
Add go-chi middleware stub to vendor
2023-12-10 22:06:23 +03:00
Am
59195cccdd
Merge branch 'main' into amammad-go-bombs
2023-12-10 18:12:10 +01:00
amammad
bb5017121f
Merge branch 'main' into amammad-go-bombs
2023-12-10 18:11:49 +01:00
amammad
737f3e8899
fix stubs
2023-12-10 18:10:23 +01:00
amammad
b6aaff2e64
use SimpleGlobal with source and sink to find BodyWriter successors globally
2023-12-10 15:45:42 +01:00
Tom Hvitved
f9dbf676a6
Java: Use FlowSummaryImpl from dataflow pack
2023-12-10 11:25:45 +01:00
Tom Hvitved
2d3f96f201
Swift: Use FlowSummaryImpl from dataflow pack
2023-12-10 11:25:44 +01:00
Tom Hvitved
35c654aa76
Go: Use FlowSummaryImpl from dataflow pack
2023-12-10 11:25:44 +01:00
Tom Hvitved
faaa558ed9
Python: Use FlowSummaryImpl from dataflow pack
2023-12-10 11:25:44 +01:00
Tom Hvitved
a2093c9aa2
C#: Use FlowSummaryImpl from dataflow pack
2023-12-10 11:25:43 +01:00
Tom Hvitved
28373e0fdf
JS: Adapt to changes in shared code
2023-12-10 11:25:43 +01:00
Tom Hvitved
0e81577269
Ruby: Use FlowSummaryImpl from dataflow pack
2023-12-10 11:25:43 +01:00
Tom Hvitved
adc4455f09
Parameterize FlowSummaryImpl.qll
2023-12-10 11:11:05 +01:00
Tom Hvitved
41fa39eb7c
Parameterize AccessPathSyntax.qll
2023-12-10 11:11:05 +01:00
Tom Hvitved
fd7e3454d6
Copy FlowSummaryImpl.qll to dataflow pack
2023-12-10 11:11:05 +01:00
Tom Hvitved
4fbd806d70
Copy AccessPathSyntax.qll to dataflow pack
2023-12-10 11:11:05 +01:00
Yunus AYDIN
0813199c7f
Update vendor directory and go files
2023-12-10 01:24:29 +03:00
Yunus AYDIN
a925c23d14
Add go.mod and modules.txt
2023-12-09 23:36:50 +03:00
Yunus AYDIN
6bd3c8c07b
Format Document
2023-12-09 23:36:13 +03:00
Yunus AYDIN
6378c5e22f
Update Fiber Rule for checking files
2023-12-09 23:35:42 +03:00
Yunus AYDIN
63123f3984
Add GoChi Rule
2023-12-09 23:34:48 +03:00
Yunus AYDIN
ba4f8612eb
Add GoChi Test Cases
2023-12-09 23:33:18 +03:00
Yunus AYDIN
ad1284853b
remove unnecessary file
2023-12-09 19:49:21 +03:00
Yunus AYDIN
eb25d0df66
Add test cases
2023-12-09 19:44:58 +03:00
Yunus AYDIN
85636ccab7
Add Web Cache Deception QHelp and Example Code Snippet for Vulnerable Go Fiber usage
2023-12-09 19:12:20 +03:00
Tom Hvitved
7819dcf0a7
Merge pull request #15043 from hvitved/ql/redundant-import
...
QL4QL: Improvements to `RedundantImport` query
2023-12-09 12:15:09 +01:00
Owen Mansel-Chan
2e2a82c237
Add change note
2023-12-08 23:33:58 +00:00
Owen Mansel-Chan
ab68c4e341
Update test
2023-12-08 23:29:44 +00:00
Owen Mansel-Chan
40b3598fd0
Also follow jump steps when looking for a callee source
...
This is needed because capturing a variable is a jump step
and we want to find a callee source for captured functions.
2023-12-08 18:44:14 +00:00
Geoffrey White
0133c659d5
Swift: Change note.
2023-12-08 16:53:38 +00:00
Geoffrey White
c2123f2c9b
Swift: More detailed models for pointers.
2023-12-08 16:51:53 +00:00
Rasmus Lerchedahl Petersen
d9c0c8c26d
Python: Update comment.
2023-12-08 17:32:23 +01:00
Rasmus Lerchedahl Petersen
2539e2ec1a
Python: slightly improve tarslip logic
2023-12-08 17:18:25 +01:00
erik-krogh
e8f9e366d5
remove redundant imports for JS
2023-12-08 16:56:54 +01:00
Ed Minnix
1526da5929
Deprecation change note
2023-12-08 10:50:04 -05:00
Ed Minnix
aebbc7d4ab
Add private imports to prevent compile warnings
2023-12-08 10:42:11 -05:00
Ed Minnix
1b8f3f3450
Deprecate or remove imports of dataflow library copies
2023-12-08 10:42:10 -05:00
Michael Nebel
fd12c3a3ba
C#: Update expected test output.
2023-12-08 16:10:38 +01:00
Harry Maclean
944fbeb34c
Ruby: Update comment
...
We don't actually generate type models for `extend` relationships yet,
because they are more complex than `include`.
2023-12-08 14:54:21 +00:00
Harry Maclean
ece196cb25
Ruby: Update model editor tests
2023-12-08 14:52:51 +00:00
Anders Schack-Mulligen
0618568cdc
Merge pull request #15045 from aschackmull/java/fix-cp
...
Java: Fix accidental cartesian product.
2023-12-08 15:43:01 +01:00
Anders Schack-Mulligen
1ea2f89e27
Merge pull request #15046 from aschackmull/dataflow/deprecation-changenote
...
Dataflow: Add change note about deprecation.
2023-12-08 15:42:34 +01:00
Mathias Vorreiter Pedersen
90b06c2046
C++: Switch the source of use-after-free and double-free to be post-update nodes.
2023-12-08 14:41:29 +00:00
Michael Nebel
9aeba5063f
C#: Use cast expressions for object defaults.
2023-12-08 15:37:12 +01:00
Harry Maclean
ec24b25c8b
Ruby: fix location in model editor query
2023-12-08 14:16:50 +00:00
Harry Maclean
e6df264865
Ruby: Report module declarations to model editor
...
This allows us to render type relations between modules/classes, not
just methods.
2023-12-08 14:16:49 +00:00
Harry Maclean
c1c258f567
Ruby: Include ancestors in type model generation
2023-12-08 14:16:49 +00:00
Mathias Vorreiter Pedersen
5bb2144c80
C++: Add field-flow through addresses of fields
2023-12-08 14:13:01 +00:00
Michael Nebel
6c30f6a748
C#: Add some test cases and update (incorrect) expected output.
2023-12-08 15:09:35 +01:00
Jeroen Ketema
db6b1e5f5e
Merge pull request #14912 from jketema/dep-userinput
...
C++: Deprecate `isUserInput`, `userInputArgument`, and `userInputReturned`
2023-12-08 15:04:23 +01:00
Ian Lynagh
eab32ea24b
Kotlin 2: Accept changes in query-tests/UnderscoreIdentifier
2023-12-08 13:49:25 +00:00
Alex Eyers-Taylor
da5c2d9bad
CPP: Use guard libraries to find equalities with zero.
2023-12-08 13:30:30 +00:00
Alexander Eyers-Taylor
df32e9556c
Update cpp/ql/src/change-notes/2023-12-04-incorrectly-checked-scanf.md
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-12-08 13:29:13 +00:00
Anders Schack-Mulligen
64eb4ff753
Merge pull request #14983 from aschackmull/dataflow/deprecate-old-api
...
Data Flow: Deprecate old data flow api.
2023-12-08 14:27:25 +01:00
Anders Schack-Mulligen
75d8da9007
Dataflow: Add change note about deprecation.
2023-12-08 14:25:20 +01:00
Jeroen Ketema
c6b0a2363a
C++: Add change note
2023-12-08 13:31:32 +01:00
Anders Schack-Mulligen
7ee3068fe7
Java: Fix accidental cartesian product.
2023-12-08 13:27:05 +01:00
Jeroen Ketema
5165999e9e
C++: Deprecate isUserInput, userInputArgument, and userInputReturned
2023-12-08 13:21:31 +01:00
Mathias Vorreiter Pedersen
30c67ba6e7
Merge pull request #15040 from MathiasVP/fewer-dataflow-branches
...
C++: Fix dataflow inconsistencies
2023-12-08 12:14:49 +00:00
Harry Maclean
1dc0a063b0
Merge pull request #14679 from hmac/hmac-model-editor-ruby
...
Ruby: Experimental model editor support
2023-12-08 11:03:38 +00:00
Mathias Vorreiter Pedersen
90a62b27f5
Merge branch 'main' into fewer-dataflow-branches
2023-12-08 10:35:33 +00:00
Rasmus Wriedt Larsen
dc90411809
Python: Don't include docs/ folder
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
004bb50ef2
Python: Disallow invalid path component
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
6ce8cd38d8
Python: Disallow examples
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
6db3b37ed7
Python: Use separate directory for subclass capture models
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
c4abffe77e
Python: Ignore any captured info with tests in it
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
de41f199fc
Python: Allow single file processing
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
2c0bed174f
Python: Remove suspicious packages
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
0b5c73ae1e
Python: Allow any .bqrs file
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
b24e565128
SubclassFinder: don't include site-packages
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
aa5eee1eac
Python: Revert manual pickle modeling
...
This reverts commit 62910f0cab525ca4d4901c4c27f6e6b22c3375fc.
This reverts commit 75a8197879ec47094d9b18f3dab7bcc1c1cdba28.
We don't find `kombu.serialization.pickle_load` since we respect
`__all__`. I think that was an attempt to not flood the captured
modeling with useless re-exports, but I think we've ended up doing that
anyway... we should consider to remove that restriction!
see 21d7df29c7/kombu/serialization.py (L29)
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
f74581ad09
Revert "Python: Model owslib.etree.etree directly"
...
This reverts commit 1213e786519a11142746fd3a725c874181f3a42b.
By fixing a few bugs in the SubclassFinder + manually running Find.ql on the geonode DB from DCA, I found that the installed version of owslib had both: https://github.com/geopython/OWSLib/blob/0.27.2/owslib/etree.py
2023-12-08 11:27:53 +01:00
Rasmus Wriedt Larsen
6ef9a2b11e
Python: Fix problem if import is used
...
I fixed it in both predicates... I think we might still be able to remove
`newDirectAlias` -- but with it being better, it will allow us to better test if `newImportAlias` actually cover everything we need!
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
fcdc8102e2
Python: Add test highlight problem is import is used :O
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
f1fd9b4c7a
Python: Fix underlying problem of not using Alias
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
a956e1f613
Python: Use django View instead of MethodView
...
Due to the 'only model most specific spec' logic highlighted in previous
commit, I'm changing away from MethodView/View, and use Django view instead.
In practice this shouldn't matter at all, but for writing tests it would
have been a nice fix to only have the "same name but more specific"
logic apply when it's the same _definition_ location. We used to have
this information available, but right now we don't... so instead of
spending a lot of time rewriting the core library, I simply used a
different class :D :O :(
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
03aa2e27df
Python: Explain the funky logic in Find.ql
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
1f8f6dd0ec
Python: Ensure no deps visible in FindSubclass tests
2023-12-08 11:27:52 +01:00
Rasmus Wriedt Larsen
af2d783b38
Python: More examples of things to handle in find-subclass
2023-12-08 11:27:52 +01:00
Taus
fa6aec7ae2
Python: Model owslib.etree.etree directly
...
Somehow, this alias did not get picked up by the tooling.
2023-12-08 11:27:52 +01:00
Taus
6d40e7e0fc
Python: Add extensible modelling for lxml.etree
2023-12-08 11:27:52 +01:00
Taus
5b9d56774b
Python: Refactor references to ElementTree
...
This would probably be better as a module, but I wanted to verify
first that this would yield the right results.
2023-12-08 11:27:52 +01:00
Taus
d29879a844
Python: Model kombu.serialization
...
More `pickle` wrappers.
2023-12-08 11:27:52 +01:00
Taus
a6dc6f3e42
Python: Add model for flask.restful
...
Not subclass-related -- just an alias.
2023-12-08 11:27:52 +01:00
Taus
6261a94986
Python: Add cloudpickle model
...
This one didn't seem to fit into the subclass approach, so I just modeled
it manually.
2023-12-08 11:27:52 +01:00
Taus
5920a8fad6
Python: Add meta-query for "interesting" taint sinks
2023-12-08 11:27:52 +01:00
Taus
43fe9ca31d
Python: Model rest_framework.exceptions.APIException
...
Only models the subclasses of `APIException` that share the same interface as
`APIException` itself with regard to the `getBody` predicate.
2023-12-08 11:27:52 +01:00
Taus
1f66659ff2
Python: Add Django FileField model
2023-12-08 11:27:52 +01:00
Taus
aa3f1cf3e1
Python: extend aiohttp model
2023-12-08 11:27:52 +01:00
Taus
b5bffb2220
Python: Add aioch model
2023-12-08 11:27:52 +01:00
Taus
875fa0b8f0
Python: Add Peewee model
2023-12-08 11:27:52 +01:00
Taus
5e3bdb8701
Python: Add Pydantic model
2023-12-08 11:27:51 +01:00
Taus
9d93afe128
Python: Add logging.Logger model
2023-12-08 11:27:51 +01:00
Taus
dea61e14d1
Python: Add Urllib3 model
2023-12-08 11:27:51 +01:00
Taus
1269a98d2b
Python: Add Tornado models
2023-12-08 11:27:51 +01:00
Taus
6093bb9fd4
Python: add some stdlib models
2023-12-08 11:27:51 +01:00
Taus
4879a931eb
Python: Add starlette.requests.URL model
2023-12-08 11:27:51 +01:00
Taus
a3f7885787
Python: Add SqlAlchemy model
2023-12-08 11:27:51 +01:00
Taus
422733f32a
Python: Add rest_framework model
2023-12-08 11:27:51 +01:00
Taus
5afead5896
Python: Add Pycurl model
2023-12-08 11:27:51 +01:00
Taus
f1a72311ed
Python: add MultiDict model
2023-12-08 11:27:51 +01:00
Taus
62db8cc633
Python: Add MarkupSafe model
2023-12-08 11:27:51 +01:00
Taus
cdb0ac524d
Python: Add invoke model
2023-12-08 11:27:51 +01:00
Taus
699b6b8bef
Python: Add httpx model
2023-12-08 11:27:51 +01:00
Taus
6128c89518
Python: Add Flask app and blueprint models
2023-12-08 11:27:51 +01:00
Taus
a81f8ea54d
Python: Add Django RawSQL and HttpRequest models
2023-12-08 11:27:51 +01:00
Taus
ff9482f81b
Python: Add fabric connection model
2023-12-08 11:27:51 +01:00
Taus
947aa099e0
Python: Add aiohttp.ClientSession model
2023-12-08 11:27:51 +01:00
Taus
f5bed2d955
Python: Add clickhouse_driver model
2023-12-08 11:27:51 +01:00
Taus
83e6e51e95
Python: Add starlette.websocket model
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
f19b672656
Python: Also capture alias with new name
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
e7d55736b0
Python: Add test of find-subclass code
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
7d86a8d7f1
Python: Improve speed of process-mrva-results.py
...
Same trick as 'generate-code-scanning-query-list.py'
2023-12-08 11:27:50 +01:00
Taus
750f14f859
Python: Add http.client.HTTPResponse model
2023-12-08 11:27:50 +01:00
Taus
1d4b4ee740
Python: Add Requests response model
...
This required making some of the relevant bits public, but they are marked as internal anyway.
2023-12-08 11:27:50 +01:00
Taus
cb1efa915e
Python: Add Flask response model
2023-12-08 11:27:50 +01:00
Taus
7b1c6b0dd6
Python: Add Django response models
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
d622d873d9
Python: Enable auto-model for Django Model
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
bff7ae20e1
Python: Enable auto-model for cgi.FieldStorage
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
1e69762242
Python: More import fixes
...
:thinkies: turns out that .getASubclass*() had to be applied everywhere...
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
af6c5ccead
Python: Enable auto-model BaseHttpRequestHandler
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
ba19f95d3e
Python: Improve SelfRefMixin
...
This is important to model mixins correctly, for example when they help
handle incoming requests, and therefore need to know that `self.kwargs`
contains data controlled by a user.
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
dfdb66f723
Python: Allow any results.bqrs file
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
77a4d81a08
Python: Improve import * handling
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
ec384649e8
Python: Automodel for WSGIServer
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
eb97a7989f
Python: Automodel for tornado
2023-12-08 11:27:50 +01:00
Rasmus Wriedt Larsen
d6fec9e4a7
Python: Make Django use auto-modeling
...
Ooops
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
734dcb156a
Python: Sort MaD rows
...
(makes future diffing much easier)
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
1c43d11c54
FIXME already fixed
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
5e98ff48ff
Python: Add script to process results from MRVA (bqrs files)
...
Also makes `empty.model.yml` empty once again
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
451a210916
Python: Remove query predicate annotation
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
b1f5dea70c
Python: Add query metadata
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
b66dd23a68
Python: Streamline what modules to allow for now
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
ba0a5b1c23
Python: Adjust test-code predicate
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
bb3ced02e3
Python: Improve docs/names around already modeled classes
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
f06bbd2263
WIP rest of modeling done so far
2023-12-08 11:27:49 +01:00
Rasmus Wriedt Larsen
2f17d2f3ac
WIP: Flask View class modeling for restplus
...
Based on some DBs I had that contained dependencies
2023-12-08 11:27:49 +01:00
Geoffrey White
6a48e6ed5e
Merge pull request #15038 from geoffw0/mmmmodels
...
Swift: Model Manual Memory Management closure functions and withMemoryRebound variants
2023-12-08 10:25:58 +00:00
amammad
2cb0afee73
fix some qldocs and some spells
2023-12-08 11:12:57 +01:00
Mathias Vorreiter Pedersen
7b83947383
Merge branch 'main' into fewer-dataflow-branches
2023-12-08 09:30:01 +00:00
Mathias Vorreiter Pedersen
1c73d43b4f
C++: Accept more test changes.
2023-12-08 09:29:48 +00:00
Tom Hvitved
0361b2e6e8
QL4QL: Improvements to RedundantImport query
2023-12-08 10:19:04 +01:00
Harry Maclean
199c6b224d
Ruby: fix warnings
2023-12-08 09:16:17 +00:00
Jeroen Ketema
9a555ba16e
Merge pull request #14909 from jketema/rm-dtt
...
C++: Remove `DefaultTaintTracking` library
2023-12-08 10:08:55 +01:00
dependabot[bot]
e822fe975d
Bump actions/stale from 8 to 9
...
Bumps [actions/stale](https://github.com/actions/stale ) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v8...v9 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-08 03:10:16 +00:00
Mathias Vorreiter Pedersen
e648058d30
C++: Accept test changes.
2023-12-07 23:11:28 +00:00
Mathias Vorreiter Pedersen
d6871c7cf9
C++: Merge 'PostUpdateFieldNode' and 'IndirectArgumentOutNode' into a single IPA branch.
2023-12-07 23:11:28 +00:00
amammad
a3fbc3c20c
fix ResponseBody Class issues
2023-12-07 19:36:27 +01:00
Geoffrey White
ba6d3484f5
Swift: Add more tests of pointer methods.
2023-12-07 18:09:34 +00:00
Chuan-kai Lin
96b793a877
Merge pull request #15032 from github/post-release-prep/codeql-cli-2.15.4
...
Post-release preparation for codeql-cli-2.15.4
2023-12-07 09:23:32 -08:00
Geoffrey White
801878bff2
Swift: I believe flow through withUnsafeMutableBytes should always be taint flow, as it changes the type of elements to bytes.
2023-12-07 16:42:35 +00:00
Geoffrey White
ea68af8b7f
Swift: Change note.
2023-12-07 16:42:34 +00:00
Geoffrey White
8818b3d22d
Swift: Model withMemoryRebound, assumingMemoryRebound, bindMemory.
2023-12-07 16:03:01 +00:00
Geoffrey White
db3dfdc9a0
Swift: Model Manual Memory Management closure functions.
2023-12-07 15:55:00 +00:00
Michael Nebel
2e6e2eabf2
Merge pull request #15036 from michaelnebel/csharp/intptrdefaultssimple
...
C#: Parameter defaults for `nint` and `nuint` in compiled code.
2023-12-07 16:20:41 +01:00
Geoffrey White
1de9919193
Swift: Test Manual Memory Management closure functions.
2023-12-07 15:10:41 +00:00
Harry Maclean
1b29ed2a81
Ruby: Address review comments
2023-12-07 14:31:27 +00:00
Harry Maclean
79a83ec74b
Ruby: elaborate placeholder query
2023-12-07 14:26:15 +00:00
Tamás Vajk
51adcf5e10
Merge pull request #15010 from tamasvajk/fix/stringbuilder-interpolation
...
C#: Support interpolated strings in `StringBuilder.Append`
2023-12-07 15:25:44 +01:00
Anders Schack-Mulligen
9fafa973d8
C++: Remove irrelevant test.
2023-12-07 14:13:42 +01:00
Tamas Vajk
75fa67726e
Fix models to support fluent chaining
2023-12-07 14:10:16 +01:00
amammad
5795c72a99
added inline tests
2023-12-07 14:04:33 +01:00
amammad
6ebdae3bab
Merge branch 'main' into amammad-python-bombs
2023-12-07 13:50:20 +01:00
amammad
2d0067d618
fix some qldocs, change Sink extenstion model, deduct some not necessarily checks :)
2023-12-07 13:45:28 +01:00
Michael Nebel
d9c6d4e6cb
C#: Update Parameters expected output.
2023-12-07 13:14:24 +01:00
Michael Nebel
aac3ec81f2
C#: Add generated cast expression for nuint and nint parameter defaults.
2023-12-07 13:14:24 +01:00
Geoffrey White
32fdf4fc9f
Merge pull request #15007 from geoffw0/sensitivekeytests
...
Swift: Add some tests and model SecKeyCopyExternalRepresentation
2023-12-07 10:50:13 +00:00
Tamas Vajk
e0c9be371f
Add change note
2023-12-07 10:57:18 +01:00
Tamas Vajk
89df59a083
C#: Add missing models and fix interpolated string flow into StringBuilder
2023-12-07 10:56:59 +01:00
Geoffrey White
028326abad
Swift: Correct US spellings.
2023-12-07 09:54:01 +00:00
Tamas Vajk
2c624c23ed
Add test cases for missing flow with interpolated strings and StringBuilder
2023-12-07 10:32:01 +01:00
Tamas Vajk
9f24b026fb
C#: Move StringBuilder dataflow tests to separate file
2023-12-07 10:31:50 +01:00
Tamás Vajk
3431fcf9af
Merge pull request #15025 from tamasvajk/feature/change-stringbuilder-modeling
...
C#: Change `StringBuilder` flow models to not use `Element` access path
2023-12-07 10:29:54 +01:00
Tamas Vajk
c1db689f2f
Fix expected test results
2023-12-07 09:59:33 +01:00
Tamas Vajk
669a0c6827
Fix StringBuilder.ToString summaries
2023-12-07 09:21:27 +01:00
amammad
dbf01a9284
fix an issue in ResponseBody, change isHTMLEscape to isHtmlEscape
2023-12-07 08:52:55 +01:00
Tamás Vajk
a8bd6b8cb1
Merge pull request #15024 from tamasvajk/fix/interpolated-strings-stubs
...
C#: Add interpolated string handler attributes to generated stubs
2023-12-07 08:18:08 +01:00
dependabot[bot]
3d7ab2e0b0
Bump actions/setup-go from 4 to 5
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-07 03:43:13 +00:00
github-actions[bot]
92af5f5386
Post-release preparation for codeql-cli-2.15.4
2023-12-06 22:59:22 +00:00
Rasmus Lerchedahl Petersen
263c0aade7
Python: adjust test expectations
...
mostly removing of nodes from the graph.
One result lost:
```
check("submodule.submodule_attr", submodule.submodule_attr, "submodule_attr", globals()) #$ MISSING:prints=submodule_attr
```
2023-12-06 23:00:51 +01:00
Mathias Vorreiter Pedersen
04c2ce97fd
Merge pull request #15027 from jketema/more-exit
...
C++: Also support the `__noreturn__` attribute in `exits`
2023-12-06 21:48:26 +00:00
Chuan-kai Lin
ff0c1ca2d6
Merge pull request #15031 from github/release-prep/2.15.4
...
Release preparation for version 2.15.4
2023-12-06 13:35:26 -08:00
github-actions[bot]
c04457e9e7
Release preparation for version 2.15.4
2023-12-06 21:11:50 +00:00
Chuan-kai Lin
4a7e816a30
Merge pull request #15029 from github/copy-alexdenisov/update-docs
...
docs: update supported Swift version
2023-12-06 13:08:54 -08:00
Rasmus Lerchedahl Petersen
8c5ca3f564
Python: remove control flow nodes
...
for module entry definitions from the dataflow graph.
2023-12-06 21:47:03 +01:00
Alex Denisov
7923c33a7b
docs: update supported Swift version
2023-12-06 12:25:31 -08:00
Robert Marsh
1087087acb
Merge pull request #14570 from rdmarsh2/rdmarsh2/swift/extract-pattern-types
...
Swift: extract types for patterns
2023-12-06 14:11:53 -05:00
Geoffrey White
366a9f1b7e
Swift: Convert unsafepointer.swift test to use labelled sources.
2023-12-06 18:57:30 +00:00
Jeroen Ketema
af1da1e9ae
C++: Also support the __noreturn__ attribute in exits
...
Observed this attribute while working on coding standards test regression
when replacing Guards by IRGuards.
2023-12-06 18:08:39 +01:00
Mathias Vorreiter Pedersen
1bc6f88f58
Merge pull request #14992 from jketema/ir-guards-replacement
...
C++: replace Guards with IRGuards
2023-12-06 15:55:22 +00:00
amammad
20a3211d06
move sanitizers from sharedxss::sanitizer to EscapeFunction::Range, added proper inline tests
2023-12-06 16:19:34 +01:00
Tamas Vajk
eeabb81973
Adjust expected test files
2023-12-06 16:00:43 +01:00
amammad
3e0ed0090f
added BodyWriter Sink, added proper content-type header in tests to comply new changed xss strategy
2023-12-06 16:00:36 +01:00
Tamas Vajk
a705f6dc0d
C#: Change StringBuilder flow models to not use Element access path
2023-12-06 15:54:34 +01:00
amammad
d3099ff482
fix tests, move from SharedXss::Sink to Http::* classes
2023-12-06 15:52:50 +01:00
Ian Lynagh
c1cc441da7
Merge pull request #15023 from igfoo/igfoo/df-wrapper
...
Kotlin: Fix dataflow with Array.set wrappers
2023-12-06 14:48:54 +00:00
Tamas Vajk
50b7ab8448
C#: Add interpolated string handler attributes to generated stubs
2023-12-06 15:40:48 +01:00
Tamás Vajk
faa63dda8b
Merge pull request #14994 from tamasvajk/standalone/framework-assembly-reshuffle
...
C#: Only consider latest version of dotnet framework flavors
2023-12-06 14:54:11 +01:00
Ian Lynagh
fc11a87882
Kotlin: Fix dataflow with Array.set wrappers
2023-12-06 12:19:46 +00:00
Ian Lynagh
7fc7b96ed7
Kotlin: Add a test for dataflow with an Array.set wrapper
2023-12-06 12:19:25 +00:00
Ian Lynagh
49c188e612
Merge pull request #15009 from igfoo/igfoo/qual
...
Docs: DataFlow: Add a missing qualifier
2023-12-06 12:10:56 +00:00
Jeroen Ketema
edf178696d
C++: accept test changes for IR Guards replacement
2023-12-06 12:47:20 +01:00
Robert Marsh
88073a5fb2
C++: change note for IRGuards replacing Guards
2023-12-06 12:47:20 +01:00
Robert Marsh
172445f5e7
C++: replace Guards with IRGuards
2023-12-06 12:47:20 +01:00
Jeroen Ketema
db1dc6fa2c
Merge pull request #15021 from jketema/ir-guards-unreached-fix
...
C++: Fix handling of unreached instructions in IRGuards
2023-12-06 12:46:09 +01:00
Paolo Tranquilli
db0fc3775a
Merge pull request #15004 from github/alexdenisov/fix-swift-autobuilder-bug
...
Swift: fix autobuilder bug when Xcode failure breaks the whole autobuild process
2023-12-06 11:29:26 +01:00
Mathias Vorreiter Pedersen
9fa20f5f39
Merge pull request #14799 from MathiasVP/solve-modify-copy-problem
...
DataFlow: Add language-specific predicate for ignoring steps in flow-through calculation
2023-12-06 09:55:34 +00:00
Jeroen Ketema
4390e4cad3
C++: Fix handling of unreached instructions in IRGuards
2023-12-06 10:23:27 +01:00
Jeroen Ketema
d6e30cd828
C++: Add test showing unreachable instructions give spurious blocks in IRGuards
2023-12-06 10:23:27 +01:00
Tamas Vajk
efa7408491
C#: Use latest asp.net core/windows desktop framework DLLs from nuget folder
2023-12-06 10:17:02 +01:00
Geoffrey White
ff8b796731
Merge pull request #14692 from geoffw0/webview3
...
Swift: Simplify AdoptsWkNavigationDelegate in WebView.qll.
2023-12-06 09:11:33 +00:00
Jeroen Ketema
49a4306514
Merge pull request #15015 from jketema/exit
...
C++: Add `_Exit` to the list of exiting (non-returning) functions
2023-12-06 10:07:55 +01:00
Geoffrey White
4cec14657e
Merge pull request #14853 from geoffw0/logsinks
...
Swift: More sinks for swift/cleartext-logging
2023-12-06 09:00:26 +00:00
Owen Mansel-Chan
aad847497b
Merge pull request #14962 from owen-mc/go/improve-tests-incorrect-integer-conversion
...
Go: Improve tests for Incorrect Integer Conversion
2023-12-06 07:40:00 +00:00
Nora Dimitrijević
6d24eb4814
Merge pull request #14897 from d10c/d10c/relax-cpp-dbscheme
...
C++: Relax the dbscheme for `link_targets/2`
2023-12-05 23:27:03 +01:00
Nora Dimitrijević
66c0a4af5a
Upgrade/downgrade script
2023-12-05 22:03:40 +01:00
Nora Dimitrijević
0307354d6e
Relax the C++ dbscheme for link_targets/2
2023-12-05 22:03:40 +01:00
Chuan-kai Lin
5b62c0cb53
Merge pull request #15016 from github/revert-15003-dependabot/github_actions/actions/labeler-5
...
Revert "Bump actions/labeler from 4 to 5"
2023-12-05 12:43:16 -08:00
Chuan-kai Lin
ba57a0363c
Revert "Bump actions/labeler from 4 to 5"
2023-12-05 12:09:56 -08:00
Jeroen Ketema
696cbeae5c
C++: Add _Exit to the list of exiting (non-returning) functions
2023-12-05 20:33:43 +01:00
Tom Hvitved
dde83b6415
Merge pull request #14709 from hvitved/ruby/shared-type-tracking
...
Ruby: Adopt shared type tracking library
2023-12-05 20:12:06 +01:00
Ian Lynagh
2c625e34b5
Merge pull request #15008 from igfoo/igfoo/kot-arr-taint
...
Kotlin: Track taint through Array.get/set
2023-12-05 18:30:21 +00:00
Geoffrey White
521d98ed8d
C++: Make the encryption words a tiny bit more flexible.
2023-12-05 18:03:17 +00:00
Geoffrey White
e95098f61f
C++: Add 'experimental' tag.
2023-12-05 18:03:11 +00:00
Geoffrey White
cde975dc24
C++: Add even more test cases.
2023-12-05 18:02:51 +00:00
Geoffrey White
2f0be40f37
C++: Exclude results in some common libraries.
2023-12-05 18:00:00 +00:00
Geoffrey White
965d131b5a
C++: Add more test cases.
2023-12-05 17:59:26 +00:00
Geoffrey White
fb02e996d4
C++: Address QL-for-QL comments.
2023-12-05 17:58:35 +00:00
Geoffrey White
c83cfe4936
C++: Make output clearer in cases where the function name is a macro expansion (I've seen this more than once).
2023-12-05 17:58:22 +00:00
Geoffrey White
3c6f318cb2
C++: Add query tests.
2023-12-05 17:54:50 +00:00
Taus
a09078a5ca
Merge pull request #14777 from yoff/python/remove-ssa-nodes-from-dataflow-graph
...
Python: remove EssaNodes
2023-12-05 18:10:27 +01:00
Henti Smith
33a0de07b6
Merge pull request #15002 from github/dependabot/github_actions/actions/setup-dotnet-4
...
Bump actions/setup-dotnet from 3 to 4
2023-12-05 15:35:00 +00:00
Henti Smith
0232cd032c
Merge pull request #15003 from github/dependabot/github_actions/actions/labeler-5
...
Bump actions/labeler from 4 to 5
2023-12-05 15:34:47 +00:00
Tamas Vajk
1b37c66bf8
C#: Only consider latest version of dotnet framework flavors
2023-12-05 16:33:42 +01:00
Michael Nebel
9390b48228
C#: Add (U)IntPtr parameter default test cases.
2023-12-05 16:29:16 +01:00
Ian Lynagh
27f99acb2e
Docs: DataFlow: Add a missing qualifier
2023-12-05 14:51:15 +00:00
Geoffrey White
e60dc9a9ed
Swift: Use the PostUpdateNode.
2023-12-05 14:48:46 +00:00
Ian Lynagh
8ea155ef24
Kotlin: Add changenote
2023-12-05 14:48:02 +00:00
Ian Lynagh
babf1d6648
Kotlin: Track Kotlin's Array.set when tracking taint
2023-12-05 14:42:45 +00:00
Ian Lynagh
124487c57c
Kotlin: Add more taint tests
2023-12-05 14:42:45 +00:00
Ian Lynagh
821b4c727e
Kotlin: Add Array.get(_) support to taint tracking
2023-12-05 14:41:32 +00:00
Ian Lynagh
9953794101
Kotlin: Add an extra test case for Kotlin array taint
2023-12-05 14:41:32 +00:00
Jeroen Ketema
30e5e74a78
Merge pull request #15005 from jketema/ir-guards-ternary-fix
...
C++: Fix IRGuards ternary behaviour
2023-12-05 15:04:56 +01:00
Henti Smith
f66133e29e
Merge branch 'main' into dependabot/github_actions/actions/labeler-5
2023-12-05 14:03:25 +00:00
Henti Smith
1d9cd0a73b
Merge branch 'main' into dependabot/github_actions/actions/setup-dotnet-4
2023-12-05 14:03:23 +00:00
Tom Hvitved
c6e805faef
Ruby: Add more deprecation comments
2023-12-05 14:57:15 +01:00
Geoffrey White
11d582db51
Swift: Change note.
2023-12-05 13:35:44 +00:00
Geoffrey White
5095031110
Swift: Model SecKeyCopyExternalRepresentation as an explicit sensitive data source.
2023-12-05 13:35:44 +00:00
Geoffrey White
1d903c56ad
Swift: Add a test with SecKeyCopyExternalRepresentation.
2023-12-05 13:35:44 +00:00
Michael Nebel
e6a5c50ebc
Merge pull request #14953 from rpmrmartin/issue/14952
...
C#: Fix a URL redirection from remote source false positive
2023-12-05 13:02:56 +01:00
Mathias Vorreiter Pedersen
8ce4bbec33
Merge pull request #14867 from MathiasVP/reduce-duplication-from-operators
...
C++: Reduce duplication from crement operations
2023-12-05 11:57:48 +00:00
Ian Lynagh
70ff59eee1
Merge pull request #14997 from igfoo/igfoo/locs
...
Kotlin: Accept some location changes in test-kotlin2/library-tests/vararg
2023-12-05 11:18:27 +00:00
Jeroen Ketema
4d702e2eee
C++: Fix IRGuards ternary behaviour
2023-12-05 12:17:46 +01:00
Jeroen Ketema
d84961571b
C++: Add IRGuards test that shows that ternary behaviour is not quite correct
2023-12-05 12:16:01 +01:00
Mathias Vorreiter Pedersen
2908acfb52
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-12-05 11:00:17 +00:00
Mathias Vorreiter Pedersen
db0d203eb4
Merge branch 'main' into solve-modify-copy-problem
2023-12-05 09:43:17 +00:00
Mathias Vorreiter Pedersen
a8020f4f78
C++: Add barrier to prevent duplication.
2023-12-05 09:14:23 +00:00
Tom Hvitved
71d09b75fb
Merge pull request #14990 from hvitved/csharp/more-nullness-tests
...
C#: Add a few more `is (not) null` tests
2023-12-05 10:14:13 +01:00
Michael Nebel
8dcdda6d21
C#: Address review comments.
2023-12-05 10:08:06 +01:00
Alex Denisov
8f3d31818c
Swift: fix autobuilder bug when Xcode failure breaks the whole autobuild process
2023-12-05 09:58:33 +01:00
Tony Torralba
07b76ee444
Merge pull request #15000 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-12-05 08:54:20 +01:00
Tamás Vajk
b06113a21e
Merge pull request #14991 from tamasvajk/standalone/prefer-assembly-version-over-netcore-version
...
C#: Prefer assembly version over netcore version in conflict resolution
2023-12-05 08:49:08 +01:00
dependabot[bot]
eb08a508c9
Bump actions/labeler from 4 to 5
...
Bumps [actions/labeler](https://github.com/actions/labeler ) from 4 to 5.
- [Release notes](https://github.com/actions/labeler/releases )
- [Commits](https://github.com/actions/labeler/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/labeler
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-05 03:33:07 +00:00
dependabot[bot]
4d68beffe0
Bump actions/setup-dotnet from 3 to 4
...
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-dotnet/releases )
- [Commits](https://github.com/actions/setup-dotnet/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-dotnet
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-05 03:33:03 +00:00
github-actions[bot]
48c15035b9
Add changed framework coverage reports
2023-12-05 00:16:34 +00:00
Robert Marsh
e9507b98ef
Swift: remove spurious stats file
2023-12-04 21:30:12 +00:00
Geoffrey White
a5dd4a4e2a
Swift: More tests of keys as sensitive data.
2023-12-04 19:05:15 +00:00
Alex Eyers-Taylor
7706ac9f10
CPP: Fix changenote location
2023-12-04 18:50:25 +00:00
Alexander Eyers-Taylor
2e92689810
CPP: Apply suggestions from code review of incorrect scanf check
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-12-04 18:32:03 +00:00
Mathias Vorreiter Pedersen
6dd941ee20
Merge pull request #14996 from jketema/toctou-test
...
C++: Fix `chmod` prototype in toctou test and additional test
2023-12-04 17:42:52 +00:00
Owen Mansel-Chan
570538b4ec
Merge pull request #14938 from owen-mc/go/improve-test-unhandled-close-writable-handle
...
Go: improve test unhandled close writable handle
2023-12-04 16:56:09 +00:00
Jeroen Ketema
7f1bd499ce
C++: Add test annotation
2023-12-04 17:53:08 +01:00
Mathias Vorreiter Pedersen
d9d36ff213
C++: Fix Code Scanning errors.
2023-12-04 16:53:03 +00:00
Rasmus Lerchedahl Petersen
9e1c818db6
Python: address review comments
2023-12-04 17:49:26 +01:00
Ian Lynagh
1aa1698f44
Kotlin: Accept some location changes in test-kotlin2/library-tests/vararg
2023-12-04 16:44:38 +00:00
yoff
f5c176bd12
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2023-12-04 17:41:00 +01:00
Mathias Vorreiter Pedersen
03b77dbf2a
C++: Make 'node.asExpr()' behave as 'node.asDefinition()' in void contexts.
2023-12-04 16:38:13 +00:00
Jami
651653998c
Merge pull request #14913 from jcogs33/jcogs33/unsafe-url-forward_path-inj-related_cve-2019-3799
...
Java: add Spring models
2023-12-04 10:18:50 -05:00
Jeroen Ketema
3e2397a3d1
C++: Fix chmod prototype in toctou test and additional test
2023-12-04 16:15:44 +01:00
Sarita Iyer
5a4ea7781e
Merge pull request #14976 from github/saritai/docs-update-12431
...
Document threat models
2023-12-04 10:10:00 -05:00
Sarita Iyer
c4b6f44dff
fix punctuation
2023-12-04 09:47:09 -05:00
Tamas Vajk
267125a65e
Adjust comment on OrderAssemblyInfosByPreference method
2023-12-04 15:21:30 +01:00
Sarita Iyer
52a0a8333f
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-04 09:21:22 -05:00
Sarita Iyer
5bf93d096b
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-12-04 09:13:33 -05:00
Rasmus Wriedt Larsen
c952f6a648
Python: Update rest of tests to new dataflow lib
...
I had missed these originally, since I had just fixed the ones that were
highlighted in the actions logs, thinking they had covered everything :(
2023-12-04 14:49:40 +01:00
Tamas Vajk
db22478a47
Fix expected test files
2023-12-04 14:39:20 +01:00
Tony Torralba
649dc9d1d4
Merge pull request #14993 from github/shati-patel/fix-cwe-tags
...
Update inconsistent CWE tags
2023-12-04 14:30:32 +01:00
Rasmus Lerchedahl Petersen
e091ae84ab
Merge branch 'main' of https://github.com/github/codeql into python/remove-ssa-nodes-from-dataflow-graph
2023-12-04 14:05:40 +01:00
Harry Maclean
d630773575
Merge pull request #14627 from alexrford/rb/update_all_sink
...
Ruby: refine `ActiveRecord` `update_all` as an SQL sink
2023-12-04 13:02:14 +00:00
Chris Smowton
78e0f69d1e
Merge pull request #14988 from github/smowton/admin/report-more-files-extracted
...
Java: report any extracted file as successfully extracted
2023-12-04 12:48:12 +00:00
Chris Smowton
97266c252e
Remove mention of TSP
2023-12-04 12:36:04 +00:00
Alex Eyers-Taylor
f3f53570a4
CPP: Fix metadata and add a change-note.
2023-12-04 12:19:31 +00:00
Michael Nebel
2fc7e51a5b
C#: Only include source code (and not stubs) in the remote flow source test.
2023-12-04 13:10:10 +01:00
Shati Patel
6284781a9b
Update inconsistent CWE tags
...
Most tags use the "external/cwe/cwe-xxx" format, except for these few queries. Updating them for consistency.
2023-12-04 11:52:31 +00:00
Rasmus Wriedt Larsen
2fed0adde7
Merge pull request #8457 from RasmusWL/add-dataflow-consistency-query
...
Python: Add dataflow consistency query
2023-12-04 12:50:46 +01:00
Chris Smowton
6d5a493e2d
Add change note
2023-12-04 11:48:51 +00:00
Tom Hvitved
46531e653d
C#: Deprecate OnAppendCookieTrackingConfig
2023-12-04 12:36:57 +01:00
Rasmus Wriedt Larsen
4dd3ea3798
Python: Update tests to new dataflow lib
...
Avoids some deprecation warnings :)
2023-12-04 12:36:57 +01:00
Anders Schack-Mulligen
67f0529cda
Dataflow: Sync.
2023-12-04 12:36:57 +01:00
Anders Schack-Mulligen
fd920b8585
Java: Deprecate old data flow api.
2023-12-04 12:36:57 +01:00
Mathias Vorreiter Pedersen
359b15bb60
C++: Fix FP by special-casing compound assignments in 'asExprInternal'.
2023-12-04 11:29:51 +00:00
Tom Hvitved
4c8861a60f
Merge pull request #14832 from hvitved/csharp/callback-heuristics
...
C#: Strengthen call-back heuristics by considering body-less methods
2023-12-04 12:27:37 +01:00
Tom Hvitved
84cba21a6c
C#: Add a few more is (not) null tests
2023-12-04 12:22:47 +01:00
Mathias Vorreiter Pedersen
ce28c9b485
C++: Add more CWE-119 testcases with compound assignments instead of increments.
2023-12-04 11:22:16 +00:00
Michael Nebel
e028c59a07
Merge pull request #14982 from michaelnebel/csharp/fixmissingpackageprinting
...
C#: Fix problem with logging unused packages.
2023-12-04 12:10:21 +01:00
Michael Nebel
b9833fc97e
C#: Updated expected test output.
2023-12-04 12:02:51 +01:00
Michael Nebel
d160890aca
C#: Re-factor to avoid multiple explicit casts.
2023-12-04 12:02:34 +01:00
Michael Nebel
6807fd1569
C#: Add some stubs, a testcase and update the expected output without based on main.
2023-12-04 11:53:09 +01:00
Mathias Vorreiter Pedersen
60204574b6
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-12-04 10:35:07 +00:00
Mathias Vorreiter Pedersen
1198d23b96
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-12-04 10:35:00 +00:00
Mathias Vorreiter Pedersen
5a12a0ad62
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-12-04 10:34:46 +00:00
Mathias Vorreiter Pedersen
09117d3869
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-12-04 10:34:32 +00:00
Tamas Vajk
6f82e63461
C#: Prefer assembly version over netcore version in conflict resolution
2023-12-04 11:08:33 +01:00
Tamás Vajk
44be7dfdd5
Merge pull request #14957 from tamasvajk/standalone/prefer-framework-assemblies
...
C#: Prefer framework assemblies over arbitrary nuget equivalents
2023-12-04 11:03:03 +01:00
Tom Hvitved
23d09ed7c6
Address review comment
2023-12-04 10:47:52 +01:00
Paolo Tranquilli
d9ca9123e4
Merge pull request #14979 from github/criemen/prepare-bazel-upgrade
...
Prepare for the bazel 7 upgrade.
2023-12-04 10:24:51 +01:00
Tamas Vajk
31c1caf518
Code quality improvements
2023-12-04 10:20:55 +01:00
Mathias Vorreiter Pedersen
6c7e809187
Merge pull request #14961 from MathiasVP/unique-in-operand
...
C++: Replace a `strictcount(...)` with `unique(...)`
2023-12-04 09:13:58 +00:00
Jeroen Ketema
71347e4cf1
Merge pull request #14987 from jketema/unneeded-imports
...
C++: Remove unneeded dataflow imports
2023-12-04 09:15:23 +01:00
Chris Smowton
ad713a7a93
Java: report any extracted file as successfully extracted
2023-12-01 22:35:00 +00:00
Jeroen Ketema
b185efa9e4
C++: Remove unneeded dataflow imports
2023-12-01 21:11:22 +01:00
Sarita Iyer
05c67756ef
fix beta note problem
2023-12-01 15:00:44 -05:00
Sarita Iyer
54daf8cacc
Apply suggestions from code review
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-12-01 12:06:43 -05:00
Sarita Iyer
b5084ccf7f
move beta ntoe
2023-12-01 11:59:57 -05:00
Sarita Iyer
6f87b1d622
test
2023-12-01 11:44:06 -05:00
Sarita Iyer
9e69e02d04
fix error
2023-12-01 11:32:13 -05:00
Sarita Iyer
2ab960428a
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-01 10:26:42 -05:00
Sarita Iyer
d96d71384d
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-01 09:57:11 -05:00
Sarita Iyer
848293470a
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-01 09:41:03 -05:00
Michael Nebel
aec070f918
C#: Fix problem with logging unused packages. The dependencies only contains the paths relative to the package directory.
2023-12-01 15:24:33 +01:00
Cornelius Riemenschneider
13acec135d
Prepare for the bazel 7 upgrade.
2023-12-01 12:19:53 +01:00
james
7f3ff7f9a5
update threat models section
2023-12-01 11:19:00 +00:00
james
fe126c450b
threat model suggestions
2023-12-01 10:54:11 +00:00
Sarita Iyer
e1b5530602
Merge branch 'main' into saritai/docs-update-12431
2023-11-30 17:40:25 -05:00
Sarita Iyer
2bea328a5b
Update customizing-library-models-for-java-and-kotlin.rst
2023-11-30 17:39:55 -05:00
Sarita Iyer
849ec72728
Update customizing-library-models-for-java-and-kotlin.rst
2023-11-30 17:21:59 -05:00
Sarita Iyer
48e23e68c1
add info
2023-11-30 17:17:18 -05:00
Taus
4ef1fe49e3
Merge pull request #14918 from github/tausbn/python-support-tarslip-extraction-filters
...
Python: Add support for extraction filters
2023-11-30 22:55:09 +01:00
Jorge
8abd1d9855
Merge branch 'main' into seclab/dotjs
2023-11-30 19:42:18 +01:00
Jorge
91bc043f30
Add .html.dot to Autobuild.java
2023-11-30 19:38:24 +01:00
Felicity Chapman
30e62d3d28
Merge pull request #14969 from github/felicitymay-patch-1
...
Remove unwanted period from query name
2023-11-30 17:05:35 +00:00
Felicity Chapman
e9c4ddb399
Merge pull request #14898 from github/fc-codeql-vs-code-12574
...
Update CodeQL model editor info for revised UI
2023-11-30 16:21:51 +00:00
Mathias Vorreiter Pedersen
175a8a6fb5
Merge pull request #14865 from rdmarsh2/rdmarsh2/swift/correct-keypath-node-steps
...
Swift: move keypath dataflow writes to fix types
2023-11-30 15:09:55 +00:00
Geoffrey White
b0514de094
C++: Add cpp/crypto-primitive query to experimental.
2023-11-30 15:03:03 +00:00
Robert Marsh
ba250140a8
Swift: fix an incorrect merge conflict resolution
2023-11-30 14:55:14 +00:00
Mathias Vorreiter Pedersen
3a61dd095c
C++: Add change note.
2023-11-30 14:39:57 +00:00
Felicity Chapman
4cb2f53223
Remove unwanted period from query name
...
Our style guide states that names should not end in a period. I'm updating this now to allow us to automate a process for GitHub docs, see: https://github.com/github/codeql/blob/main/docs/query-metadata-style-guide.md#query-name-name
2023-11-30 14:31:17 +00:00
Mathias Vorreiter Pedersen
c1561e8675
Merge branch 'main' into reduce-duplication-from-operators
2023-11-30 14:30:50 +00:00
Mathias Vorreiter Pedersen
43932b61a8
C++: Add more comments.
2023-11-30 14:20:00 +00:00
Chris Smowton
971ced09ad
Merge pull request #14671 from smowton/smowton/feature/jdk21-switch-pattern-matching
...
Java: Add support for Java 21 language features
2023-11-30 14:11:28 +00:00
Jeroen Ketema
eccc373a2b
Merge pull request #14958 from jketema/dialects
...
Add documentation note on not supporting Objective-C(++), C++/CLI, and C++/CX
2023-11-30 13:03:59 +01:00
Owen Mansel-Chan
d52b23db8e
Improve tests for Incorrect Integer Conversion
...
We changed the test query when the query was changed so that the
comments in the test file would stay the same.
I've reverted the test query and updated the comments in the test file.
This avoids problems in the branch switching to use-use flow.
2023-11-30 11:58:10 +00:00
Owen Mansel-Chan
e958a75223
Add comments indicating whether results are expected at new calls
2023-11-30 11:48:10 +00:00
Chris Smowton
aa8f798853
Move condition into isNonFallThroughPredecessor
2023-11-30 11:24:07 +00:00
Chris Smowton
94819e37c4
More StmtParent -> SwitchBlock
2023-11-30 11:24:07 +00:00
Chris Smowton
e93fe8d614
Update change note
2023-11-30 11:24:07 +00:00
Chris Smowton
53ca8e5fe9
autoformat
2023-11-30 11:24:07 +00:00
Chris Smowton
633b92da62
Introduce and use SwitchBlock instead of StmtParent for switch-statement-or-expression
2023-11-30 11:24:07 +00:00
Chris Smowton
e50a0eee59
Remove duplicate of expr exception propagation logic
2023-11-30 11:24:07 +00:00
Chris Smowton
6f3bff19cc
Expose getFirstPatternCase, not getPatternCase/2
2023-11-30 11:24:07 +00:00
Chris Smowton
40464ed1f9
Eliminate duplicate predicate
2023-11-30 11:24:07 +00:00
Chris Smowton
3971817c92
Fix: ensure is a switch block
2023-11-30 11:24:07 +00:00
Chris Smowton
cc68169f43
Update test expectations re: record-pattern type accesses
2023-11-30 11:24:07 +00:00
Chris Smowton
b1cea1d91e
autoformat
2023-11-30 11:24:07 +00:00
Chris Smowton
561f06a4bd
Remove unused predicate
2023-11-30 11:24:06 +00:00
Chris Smowton
e9603f0aba
Factor out isNonFallThroughPredecessor
2023-11-30 11:24:06 +00:00
Chris Smowton
84ec453a80
Explicitly rule out switchCaseControls for PatternCase
2023-11-30 11:24:06 +00:00
Chris Smowton
77b1721542
Move TypeTestGuard's logic into Guard.appliesTypeTest
2023-11-30 11:24:06 +00:00
Chris Smowton
b33dc38a65
Fix hasBranchEdge for switch exprs with an internal CFG and incoming edges from a passing case guard
2023-11-30 11:24:06 +00:00
Chris Smowton
9b5b496462
Avoid quadratic switch case intermediate
2023-11-30 11:24:06 +00:00
Chris Smowton
d1e16ada4c
Tidy up pattern case CFG logic
2023-11-30 11:24:06 +00:00
Chris Smowton
beb827b1d0
Remove unused predicate
2023-11-30 11:24:06 +00:00
Chris Smowton
1cb5efa1ec
Simplify last nodes of rule cases
2023-11-30 11:24:06 +00:00
Chris Smowton
aa5f7352e2
Remove fall-through CFG edge for exhaustive switch statements
2023-11-30 11:24:06 +00:00
Chris Smowton
1047a89613
Improve complexity class of getASuccessorSwitchCase
2023-11-30 11:24:06 +00:00
Chris Smowton
d99a005b42
Fix pretty-printing case null, default
2023-11-30 11:24:06 +00:00
Chris Smowton
4bff7953fc
Fix record pattern and pretty-printing
2023-11-30 11:24:05 +00:00
Chris Smowton
419d530a06
Add test ensuring read steps via record patterns lead to type filtering
2023-11-30 11:24:05 +00:00
Chris Smowton
087be2cca8
Adjust test expectations
2023-11-30 11:24:05 +00:00
Chris Smowton
a11c5c7257
Fixup pretty-printer and add test
2023-11-30 11:24:05 +00:00
Chris Smowton
3bde66adfb
Pretty-print 'var' statements
2023-11-30 11:24:05 +00:00
Chris Smowton
07d2ce7a41
Change pretty-printing of PatternCase
2023-11-30 11:24:05 +00:00
Chris Smowton
5511955b60
Simplify getCaseIndex
2023-11-30 11:24:05 +00:00
Chris Smowton
bbc0f29f16
Restrict getCheckedType to unrestricted records, introduce getSyntacticCheckedType and use that where appropriate
2023-11-30 11:24:05 +00:00
Chris Smowton
29fdd04eb0
Include switch and instanceof binding in Variable.getAnAssignedValue, and test via endsInQuote
2023-11-30 11:24:05 +00:00
Chris Smowton
ef6ea71e43
Revert unnecessary exists statement
2023-11-30 11:24:05 +00:00
Chris Smowton
47e3d7d8a5
Cast back to Object in advance of returning, to ensure the test doesn't mask a shortcoming of type pruning by pruning at the return site
2023-11-30 11:24:05 +00:00
Chris Smowton
f0144d6a3d
Expose that case guard test controls its case body
2023-11-30 11:24:04 +00:00
Chris Smowton
da62a04653
Note that binding variables may be casting nodes
2023-11-30 11:24:04 +00:00
Chris Smowton
c11a260369
Note we can't prove certain unreachable callables when 'case null' is present
2023-11-30 11:24:04 +00:00
Chris Smowton
89f7e7f76a
autoformat
2023-11-30 11:24:04 +00:00
Chris Smowton
dd41f50fbf
Fix uses of ConditionBlock that require a condition expression (not a switch case statement)
2023-11-30 11:24:04 +00:00
Chris Smowton
68fe7efd9e
autoformat
2023-11-30 11:24:04 +00:00
Chris Smowton
6b3080ae92
Allow case null, default to be the first switch case
...
This is consistent with existing treatment of `case null: default:`
2023-11-30 11:24:04 +00:00
Chris Smowton
0b08507033
Document testedBranch
2023-11-30 11:24:04 +00:00
Chris Smowton
ba0a05c804
Add pretty-printing for patterns
2023-11-30 11:24:04 +00:00
Chris Smowton
668f445fb4
Fix switchCaseControls and hasBranchEdge to account for mixed patterns and constant cases
2023-11-30 11:24:04 +00:00
Chris Smowton
c1814408f0
Fix guard basic block for switch cases
2023-11-30 11:24:04 +00:00
Chris Smowton
6583c72c5d
Restrict pattern type guards to account for nested record matching failures
2023-11-30 11:24:03 +00:00
Chris Smowton
d40311efe9
Spelling
2023-11-30 11:24:03 +00:00
Chris Smowton
6e868d21bd
Make DefaultCase include NullDefaultCase
2023-11-30 11:24:03 +00:00
Chris Smowton
d2ff1baff0
Replace getDefaultOrNullDefaultCase with getDefaultCase
2023-11-30 11:24:03 +00:00
Chris Smowton
0bb051e08c
First stab at implementing negative type-test logic for pattern-case
2023-11-30 11:24:03 +00:00
Chris Smowton
8fd4f99a39
Fix autoformat comment translocation
2023-11-30 11:24:03 +00:00
Chris Smowton
b11a17db21
Improve change note
2023-11-30 11:24:03 +00:00
Chris Smowton
d7a517a989
Remove needless test options
2023-11-30 11:24:03 +00:00
Chris Smowton
ab9f2a77e4
Move comments
2023-11-30 11:24:03 +00:00
Chris Smowton
cc373e322f
Engineer join order for getLexicallyOrderedRecordField
2023-11-30 11:24:03 +00:00
Chris Smowton
6fb33e0bde
Re-re-factor instanceOfGuarded et al
2023-11-30 11:24:03 +00:00
Chris Smowton
06d5233523
Use SwitchCase.getSelectorExpr
2023-11-30 11:24:03 +00:00
Chris Smowton
b731b8d30a
Simplify PatternExpr definition
2023-11-30 11:24:02 +00:00
Chris Smowton
3d980b1684
Switch to using VariableAssign for instanceof and switch dataflow
2023-11-30 11:24:02 +00:00
Chris Smowton
176adf4376
Move PatternExpr to correct file
2023-11-30 11:24:02 +00:00
Chris Smowton
8f10d29f68
Typo
2023-11-30 11:24:02 +00:00
Chris Smowton
de2b98f4a1
Fix hasNullCase
2023-11-30 11:24:02 +00:00
Chris Smowton
480781b049
autoformat
2023-11-30 11:24:02 +00:00
Chris Smowton
158f4bff7a
Note specific switch bugfix
2023-11-30 11:24:02 +00:00
Chris Smowton
011eb2201e
Add test for ObjFlow over binding patterns
2023-11-30 11:24:02 +00:00
Chris Smowton
4cf511e26a
Add test for virtual-dispatch flow through binding patterns
2023-11-30 11:24:02 +00:00
Chris Smowton
43c935024a
Add test for typeflow propagation through instanceof and pattern-case
2023-11-30 11:24:02 +00:00
Chris Smowton
fa09be0459
Ensure pattern-case and binding-instanceof are covered in all of type, dispatch and object flow
2023-11-30 11:24:02 +00:00
Chris Smowton
88d9caff8c
Unused local query: exclude mandatory declarations
2023-11-30 11:24:02 +00:00
Chris Smowton
91774099fa
Write-only container query: account for implicitly-initialised variables
2023-11-30 11:24:01 +00:00
Chris Smowton
bb6e04456a
Boxed variable query: account for implicit-init variables
2023-11-30 11:24:01 +00:00
Chris Smowton
0e3f6f7873
autoformat
2023-11-30 11:24:01 +00:00
Chris Smowton
9035ba1f30
Fix isImplicitInit; use it in empty-container query
2023-11-30 11:24:01 +00:00
Chris Smowton
7106ec77bc
Fix change note
2023-11-30 11:24:01 +00:00
Chris Smowton
2a6e86633d
Improve qldoc
2023-11-30 11:24:01 +00:00
Chris Smowton
e5fdf4dd50
Update test expectation
2023-11-30 11:24:01 +00:00
Chris Smowton
a335109a20
Note that instanceof with a record pattern doesn't have a type access
2023-11-30 11:24:01 +00:00
Chris Smowton
11444a3ae7
Rename Pattern to PatternExpr to avoid clashing with Regex::Pattern
2023-11-30 11:24:01 +00:00
Chris Smowton
023615386b
Add change note
2023-11-30 11:24:01 +00:00
Chris Smowton
ded8deceaa
Add missing qldoc
2023-11-30 11:24:01 +00:00
Chris Smowton
db5979f1ac
Autoformat upgrade/downgrade scripts
2023-11-30 11:24:01 +00:00
Chris Smowton
1d82756dc8
Fix downgrade script
2023-11-30 11:24:00 +00:00
Chris Smowton
04c9f60d96
Make up some stats for new expressions, setting canonical constructors as common as records and new expression kinds initially rare
2023-11-30 11:24:00 +00:00
Chris Smowton
3cdb1d29f1
Add upgrade and downgrade scripts for latest dbscheme
2023-11-30 11:24:00 +00:00
Chris Smowton
330a5b8c6c
autoformat ql
2023-11-30 11:24:00 +00:00
Chris Smowton
32416f0fdc
Add test for record-pattern instanceof
2023-11-30 11:24:00 +00:00
Chris Smowton
e41da3b10a
Add missing test Java files
2023-11-30 11:24:00 +00:00
Chris Smowton
5b734fe937
Pretty-print AST: handle instanceof with record pattern
2023-11-30 11:24:00 +00:00
Chris Smowton
f037030c26
Adapt instanceof CFG and DFG to general patterns
2023-11-30 11:24:00 +00:00
Chris Smowton
20b97af02f
Implement dataflow for record patterns
...
Strategy: there is now a regular flow step from an instance-of LHS / switch expr to the pattern, 0 or more read steps corresponding to record pattern destructors, and then finally a normal SSA def/use step connecting the binding patterns to their first uses.
2023-11-30 11:24:00 +00:00
Chris Smowton
05addde957
Adapt control-flow graph to record patterns
2023-11-30 11:24:00 +00:00
Chris Smowton
556feb31f0
Autoformat
2023-11-30 11:24:00 +00:00
Chris Smowton
936c0206ea
Adapt ancillary analyses to record patterns
2023-11-30 11:23:59 +00:00
Chris Smowton
daccd04087
Basic extraction of record patterns
2023-11-30 11:23:59 +00:00
Chris Smowton
293cc67494
Fix stringifying record fields
2023-11-30 11:23:59 +00:00
Chris Smowton
3cb01002dc
Add test for usage of qualified enum constants in switch
2023-11-30 11:23:59 +00:00
Chris Smowton
8406ee7ed5
Add test for a pattern-switch guard acting as a data-flow guard
2023-11-30 11:23:59 +00:00
Chris Smowton
144218e2f7
Implement switch CFG when there are mixed constant and pattern cases
2023-11-30 11:23:59 +00:00
Chris Smowton
54a89d6fef
Handle 'case null, default:'
2023-11-30 11:23:59 +00:00
Chris Smowton
9a450b09be
Account for pattern-cases in more places
2023-11-30 11:23:59 +00:00
Chris Smowton
2b16121638
CFG: Support guarded patterns
2023-11-30 11:23:59 +00:00
Chris Smowton
ba0f3cf718
Add basic support for case guards
2023-11-30 11:23:59 +00:00
Chris Smowton
e94c5a772c
Check nullness pass knows pattern case variables can't be null
2023-11-30 11:23:59 +00:00
Chris Smowton
ca43b9603a
Fixup typeflow test
2023-11-30 11:23:59 +00:00
Chris Smowton
6b9aed21df
Nullness library: recognise switches with null checks
2023-11-30 11:23:58 +00:00
Chris Smowton
79b77ae805
Add AST test for switch with null case
2023-11-30 11:23:58 +00:00
Chris Smowton
05caffc189
Update printast expectation
2023-11-30 11:23:58 +00:00
Chris Smowton
30c5885966
Fix constant cases relating to enum types
2023-11-30 11:23:58 +00:00
Chris Smowton
b21aaa75bc
Type-flow: treat pattern-switch on an array index similar to instanceof
2023-11-30 11:23:58 +00:00
Chris Smowton
7dd4030f51
Pattern cases: support type-flow
2023-11-30 11:23:58 +00:00
Chris Smowton
a06ac42512
PrintAst: report pattern-cases similar to pattern-instanceof
2023-11-30 11:23:58 +00:00
Chris Smowton
b6622d2f5b
usesType: support pattern cases
2023-11-30 11:23:58 +00:00
Chris Smowton
0f434e7f08
Add test for dataflow vs. pattern-switch
2023-11-30 11:23:58 +00:00
Chris Smowton
6c990c2cf6
Add pattern-case support and generally debug switch CFGs
...
These were reasonably broken beforehand, due to not taking switch rules into account in enough places, and confusing the expression/statement switch rule distinction with the distinction between switch statements and expressions.
(For example, `switch(x) { 1 -> System.out.println("Hello world") ... }` is a statement, but has a rule expression).
2023-11-30 11:23:58 +00:00
Chris Smowton
f4b45fa511
Support switch cases with binding patterns
2023-11-30 11:23:58 +00:00
Mathias Vorreiter Pedersen
a7ef84f2d1
C++: Replace 'strictcount(...) = 1' with 'unique(...)'.
2023-11-30 11:20:00 +00:00
Jeroen Ketema
6d74743915
Add documentation note on not supporting Objective-C(++), C++/CLI, and C++/CX
2023-11-30 10:57:47 +01:00
Tamas Vajk
0cc94b3a46
C#: Prefer framework assemblies over arbitrary nuget equivalents
2023-11-30 10:54:19 +01:00
masterofnow
57d897d40f
Merge branch 'main' into LoadClassNoSignatureCheck
2023-11-30 10:05:00 +08:00
Jami Cogswell
7e869b9cd1
Java: add change note
2023-11-29 16:48:57 -05:00
Robert Marsh
9ac46d4f9c
Swift: autoformat
2023-11-29 21:07:06 +00:00
Robert Marsh
0dc4a68ffb
Swift: fix typo in change note
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-11-29 21:04:09 +00:00
Robert Marsh
81d2780adb
Swift: changenote for pattern types
2023-11-29 21:04:09 +00:00
Robert Marsh
30caf2130e
Swift: autoformat a test
2023-11-29 21:04:09 +00:00
Robert Marsh
16e6e8845c
Swift: tests for pattern types
2023-11-29 21:04:08 +00:00
Robert Marsh
ade4809d9b
Swift: upgrade/downgrade for pattern types
2023-11-29 21:04:05 +00:00
Benjamin Rodes
94a0420040
Updated getResultExpr to getResultNode. Added strlcat. Added tests.
2023-11-29 16:03:41 -05:00
Robert Marsh
3492b4820a
Swift: extract types for patterns
2023-11-29 20:54:50 +00:00
Robert Martin
66b456d3c6
C#: Fix a URL redirection from remote source false positive
...
When guarding the redirect with `HttpRequestBase.IsUrlLocalToHost()`
2023-11-29 13:46:47 -07:00
Robert Marsh
f7e4fb0c65
Swift: respond to comments on keypath reordering
2023-11-29 20:31:48 +00:00
Jami Cogswell
d5fd2db1bd
Java update UrlPathHelper tests
2023-11-29 15:23:11 -05:00
Jami Cogswell
ba3548b317
Java: switch to createRelative sink and add UrlPathHelper sources
2023-11-29 14:46:28 -05:00
Jami Cogswell
efa5ab18c1
Java: add taint steps for getResource sink
2023-11-29 14:46:27 -05:00
Benjamin Rodes
4919c4a424
Added StringConcatenation.qll
2023-11-29 13:00:57 -05:00
Chris Smowton
fefc02d650
Merge pull request #14950 from smowton/smowton/admin/empty-argfile-test
...
Java: Add test for empty argfile
2023-11-29 14:05:39 +00:00
Taus
754deda03e
Merge pull request #14946 from github/RasmusWL/list-python-3.12
...
Docs: List Python 3.12 as supported
2023-11-29 15:05:11 +01:00
Chris Smowton
e110db58f8
Add test for empty argfile
2023-11-29 12:51:22 +00:00
Rasmus Wriedt Larsen
76a6fb563d
Docs: List Python 3.12 as supported
...
Support was added in https://github.com/github/codeql/pull/14636
2023-11-29 11:22:27 +01:00
Mathias Vorreiter Pedersen
1f9e2c71ce
Merge pull request #14928 from MathiasVP/surprising-lifetimes-c_str
...
C++: Add a new query for calling `c_str` on temporary objects
2023-11-29 10:15:11 +00:00
Erik Krogh Kristensen
399872b719
Merge pull request #14943 from rafaelurben/patch-1
...
JS: Add django template urls as "save urls"
2023-11-29 11:10:16 +01:00
Mathias Vorreiter Pedersen
351caaccfe
C++: Add GOOD and BAD comments to qhelp examples.
2023-11-29 09:44:54 +00:00
Mathias Vorreiter Pedersen
8afd9288cb
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-11-29 09:36:29 +00:00
Rafael
1a05c2e704
Added Django test
2023-11-29 08:26:49 +01:00
Rafael
0a74a3a765
Update javascript/ql/src/change-notes/2023-11-28-django-urls.md
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-11-29 08:23:02 +01:00
Rafael
0b0c9e3e48
Create 2023-11-28-django-urls.md
2023-11-28 22:29:53 +01:00
Rafael
286e3951bf
Detect Django template URLs
...
Django URLs are currently not detected, but flask and nunjucks URL are. (See https://github.com/github/codeql/issues/12267 )
2023-11-28 22:22:07 +01:00
Felicity Chapman
d299ade765
Merge branch 'main' into fc-codeql-vs-code-12574
2023-11-28 20:42:20 +00:00
Felicity Chapman
298c6b5295
Merge pull request #14942 from github/codeql-cli-2.15.3
...
Mergeback post release changes from the `codeql-cli-2.15.3` branch to `main`
2023-11-28 20:41:43 +00:00
Felicity Chapman
47d00d1311
Update multiple models section for feedback
2023-11-28 19:59:31 +00:00
Felicity Chapman
9e74f64c5a
Update screenshot for feedback
2023-11-28 19:59:31 +00:00
Felicity Chapman
a041a508ac
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-28 19:59:31 +00:00
Felicity Chapman
2ede709308
Add a few missing details
2023-11-28 19:59:31 +00:00
Felicity Chapman
824fd75d74
Update after self-review
2023-11-28 19:59:31 +00:00
Pierre
568bcfd038
Fix changelog docs based on latest generator version
2023-11-28 19:59:31 +00:00
Felicity Chapman
ed5e28162f
Draft docs for revised UI
2023-11-28 19:59:31 +00:00
Pierre
cedb91ba0d
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-28 19:59:31 +00:00
Jeroen Ketema
483f4c3ce9
Merge pull request #14921 from jketema/kr-style-function-parameters
...
C++: Expose whether a function was prototyped or not
2023-11-28 17:43:22 +01:00
Robert Marsh
4df25f4f7f
Merge pull request #14797 from geoffw0/sqlsinks
...
Swift: Heuristic sinks for swift/sql-injection
2023-11-28 11:18:10 -05:00
Ian Lynagh
429c550151
Kotlin 2: Accept some location changes
2023-11-28 15:57:48 +00:00
Mathias Vorreiter Pedersen
911f1543e0
DataFlow: Adjust QLDoc.
2023-11-28 15:26:48 +00:00
Tom Hvitved
e79ad3b738
Merge pull request #14937 from hvitved/csharp/stubvisitor-recursion-guard
...
C#: Prevent infinite recursion in `EqualsModuloTupleElementNames`
2023-11-28 16:25:52 +01:00
Mathias Vorreiter Pedersen
339bf1363a
DataFlow: s/flowThroughStepAllowed/validParameterAliasStep.
2023-11-28 14:32:23 +00:00
Mathias Vorreiter Pedersen
e47ad274ea
C++: Add Schack's tests.
2023-11-28 14:32:21 +00:00
Mathias Vorreiter Pedersen
fb6329fbc1
C++: Fix test annotation
2023-11-28 14:27:15 +00:00
Mathias Vorreiter Pedersen
1771d77c23
C++: Accept test changes.
2023-11-28 14:27:15 +00:00
Mathias Vorreiter Pedersen
9049932f42
C++: Implement the new predicate.
2023-11-28 14:27:15 +00:00
Mathias Vorreiter Pedersen
064f68fdca
DataFlow: Add a predicate for modifying which dataflow steps participate in flow-through summaries.
2023-11-28 14:27:15 +00:00
Mathias Vorreiter Pedersen
1753a7e146
C++: Add tests.
2023-11-28 14:27:15 +00:00
Owen Mansel-Chan
de87dd5dee
Test no result if deferred function returns error
2023-11-28 14:23:37 +00:00
Owen Mansel-Chan
57dafd3732
Improve test for UnhandledCloseWritableHandle
...
Now the different paths won't have the same two sources.
2023-11-28 14:21:43 +00:00
Jeroen Ketema
28ac46a73f
C++: Add change note
2023-11-28 14:57:02 +01:00
Taus
6e279183d9
Python: Remove unused unsafeFilter predicates
2023-11-28 13:54:17 +00:00
Taus
91643ad08f
Python: Update hasUnsafeFilter to use API graph
...
This will probably break the tests in the short run. I'll fix the remaining issues in a follow-up commit.
Co-authored-by: Rasmus Wriedt Larsen <rasmuswl@github.com >
2023-11-28 14:48:26 +01:00
Rasmus Wriedt Larsen
2c10160ad4
Python: Highlight we actually want post-update nodes for *args and **kwargs arguments
2023-11-28 14:07:03 +01:00
Rasmus Wriedt Larsen
02f2031239
Python: Ensure other call for super().foo
2023-11-28 14:04:51 +01:00
Mathias Vorreiter Pedersen
2b36ba33f0
C++: Add support for 'data' in the query.
2023-11-28 12:57:59 +00:00
Michael B. Gale
e349611f86
Merge pull request #14932 from github/dependabot/go_modules/go/extractor/extractor-dependencies-29c4186f99
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-11-28 12:57:24 +00:00
Alex Eyers-Taylor
3e9aeac004
CPP: Fix sscanf false positives in older linux repos
2023-11-28 12:07:05 +00:00
Geoffrey White
68a9154106
Swift: Merge the two PrintfFormat implementations.
2023-11-28 12:03:05 +00:00
Mathias Vorreiter Pedersen
7b8d164692
C++: Add more good test cases.
2023-11-28 11:58:33 +00:00
Mathias Vorreiter Pedersen
62c432f3c7
C++: Tabs -> Spaces.
2023-11-28 11:52:17 +00:00
Geoffrey White
5f4213004b
Merge branch 'main' into logsinks
2023-11-28 11:51:56 +00:00
Tom Hvitved
fea2bf9217
C#: Prevent infinite recursion in EqualsModuloTupleElementNames
2023-11-28 11:45:09 +01:00
Rasmus Wriedt Larsen
c12053287e
Merge pull request #14936 from RasmusWL/star-args-kwargs-missing-flow
...
Python: Highlight missing post-update flow for `*args` and `**kwargs`
2023-11-28 11:34:51 +01:00
Rasmus Wriedt Larsen
3c82653b63
Python: Highlight missing post-update flow for *args and **kwargs
2023-11-28 10:59:48 +01:00
Jeroen Ketema
7dec819151
C++: Expose whether a function was prototyped or not
2023-11-28 10:24:43 +01:00
Mathias Vorreiter Pedersen
ff4c63f696
C++: Add change note.
2023-11-28 09:16:49 +00:00
Mathias Vorreiter Pedersen
e10caa68f6
C++: Add tests.
2023-11-28 09:06:24 +00:00
Mathias Vorreiter Pedersen
e94cde9b4b
C++: Move the use-after-free tests to subdirectory.
2023-11-28 09:06:24 +00:00
Mathias Vorreiter Pedersen
71ad7696c3
C++: Add qhelp.
2023-11-28 09:06:24 +00:00
Mathias Vorreiter Pedersen
204acbacc5
C++: Add a new query for detecting calls to 'c_str' on temporary objects.
2023-11-28 09:06:24 +00:00
dependabot[bot]
d2cad03e28
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 03:58:15 +00:00
Mathias Vorreiter Pedersen
22a91d18b8
C++: Make the sequence container classes public.
2023-11-27 21:32:49 +00:00
Eric Bickle
aab7ff919e
Java: Improve Gson parse, get, and stream models
2023-11-27 12:26:28 -08:00
Tom Hvitved
ccb9d9b8fa
C#: Strengthen call-back heuristics by considering body-less methods
2023-11-27 21:15:06 +01:00
Geoffrey White
09998a9f35
Swift: Formatting.
2023-11-27 19:53:32 +00:00
Geoffrey White
f1f5745ed1
Swift: Change note.
2023-11-27 19:43:15 +00:00
Geoffrey White
f19c6f337d
Swift: Add imprecise append/insert models.
2023-11-27 19:43:15 +00:00
Geoffrey White
6e5c285346
Swift: Add imprecise init(data:) model.
2023-11-27 19:23:40 +00:00
Geoffrey White
99aa754b50
Swift: Add tests for UIImage.
2023-11-27 19:19:12 +00:00
Geoffrey White
da648b1014
Swift: Convert ui.swift test to use source labels.
2023-11-27 19:06:52 +00:00
Geoffrey White
4b87dd54fb
Swift: Add tests for custom append/insert.
2023-11-27 19:02:45 +00:00
Alex Eyers-Taylor
9eb5b23f54
CPP: Fix query formatting
2023-11-27 15:55:44 +00:00
Taus
ad1a86879e
Python: Add change note
2023-11-27 14:39:32 +00:00
Harry Maclean
bd575db254
Ruby: Add test for FrameworkModeEndpoints query
2023-11-27 14:18:18 +00:00
Taus
95e9284d08
Python: Add support for extraction filters
...
Adds support for extraction filters as defined in
https://peps.python.org/pep-0706/
and implemented in Python 3.12.
By my reading, setting the filter to `'data'` or `'tar'` is probably
safe, whereas `'fully_trusted'` or the default (which is the same as
`None`) is not.
For now, I have just added this modelling to the tarslip query. We could
also share it with the modelling of `shutil.unpack_archive` (which has also
gained a `filter` argument), but it was unclear to me where we should put
this modelling in that case. Perhaps the best solution would be to merge
the experimental `py/tarslip-extended` query into the existing query (in
which case the current location is perhaps not too bad).
2023-11-27 14:11:17 +00:00
Michael Nebel
f05c86239f
Merge pull request #14878 from michaelnebel/csharp/pindotnetinintegrationtests
...
C#: Pin integration tests to a specific .NET version.
2023-11-27 13:22:02 +01:00
Ian Lynagh
7560573b89
Merge pull request #14906 from igfoo/igfoo/locs
...
Kotlin 2: Accept some location changes in test-kotlin2/library-tests/stmts
2023-11-27 11:42:47 +00:00
Harry Maclean
f40f2db3ab
Ruby: Fix name of url-redirection sink model
2023-11-27 11:25:37 +00:00
Mathias Vorreiter Pedersen
70e0b33ce6
Merge pull request #14807 from geoffw0/formatsinks
...
Swift: More sinks for swift/uncontrolled-format-string
2023-11-27 11:10:04 +00:00
Harry Maclean
6a38223127
Ruby: QL4QL fix
2023-11-27 10:17:31 +00:00
Michael Nebel
d1c4e772f0
C#: Pin integration tests to a specific .NET version.
2023-11-27 10:51:04 +01:00
Harry Maclean
e9277a56a9
Ruby: Add sinks from external models
2023-11-27 09:18:00 +00:00
Harry Maclean
ad608341ab
Ruby: Handle alternative gemspec names
...
Gemspecs are sometimes named via the first argument to
`Gem::Specification.new`:
```rb
Gem::Specification.new 'sinatra' do |s|
# ...
end
```
2023-11-27 09:18:00 +00:00
Harry Maclean
9b998a39b4
Ruby: Add tags to GenerateModel query
...
This allows the model editor to find this query in a more robust way
than by file path.
2023-11-27 09:18:00 +00:00
Harry Maclean
b9d15bacba
Ruby: Don't classify our test files as test files
...
For model editing purposes.
2023-11-27 09:17:59 +00:00
Harry Maclean
064b10a5cb
Ruby: Handle missing gemspec in model query
2023-11-27 09:17:59 +00:00
Harry Maclean
9dcc424f8c
Ruby: Include keyword parameters endpoint query
2023-11-27 09:17:59 +00:00
Harry Maclean
5dcc3d43ca
Ruby: Recognise modeled source/sink methods
2023-11-27 09:17:59 +00:00
Harry Maclean
766e68aa36
Ruby: Handle multiple gemspecs in endpoints query
2023-11-27 09:17:59 +00:00
Harry Maclean
c54743c3fd
Ruby: Include class methods in model editor query
2023-11-27 09:17:59 +00:00
Harry Maclean
78125a701d
Ruby: Model Editor support
...
Add experimental support for the CodeQL Model Editor.
2023-11-27 09:17:59 +00:00
Stephan Brandauer
68a7734e08
Merge pull request #14849 from github/kaeluka/automodel-extraction-skip-primitive-types-candidates
...
Java Automodel extraction: remove primitives in framework mode
2023-11-27 09:52:48 +01:00
AlexDenisov
59ee3e16b4
Merge pull request #14800 from github/alexdenisov/more-extractions
...
Swift: final 5.8/5.9 extractions
2023-11-27 08:41:37 +01:00
amammad
ffe2e398c9
fix tests, add support for Response.BodyWriter() Thanks to @owen-mc
2023-11-25 15:36:37 +01:00
amammad
accc09fd8c
Lists of strings should be in alphabetical order. In a QLDoc, there should be a full stop at the end of each sentence. shorter model summary. change target from getACall() to getACall().getResult(.). better tests
2023-11-25 13:36:06 +01:00
Mathias Vorreiter Pedersen
865cbab242
Merge pull request #14911 from MathiasVP/remove-duplication-workaround-in-sources
2023-11-24 20:00:57 +00:00
Geoffrey White
dfdc502525
Merge pull request #14908 from geoffw0/setmodels
...
Swift: Flow models for Set
2023-11-24 19:16:16 +00:00
Geoffrey White
4c2a6231e9
Swift: Add tests for array append/insert.
2023-11-24 18:33:25 +00:00
Geoffrey White
2e93c1d7b6
Merge pull request #14879 from geoffw0/contentsof
...
Swift: "contentsOf" sources
2023-11-24 17:47:57 +00:00
Jeroen Ketema
c02a732632
C++: Remove DefaultTaintTracking library
2023-11-24 18:35:19 +01:00
Mathias Vorreiter Pedersen
73138f1913
C++: No need to exclude ExprNodes as sources now that #14903 is merged.
2023-11-24 16:58:30 +00:00
Alex Eyers-Taylor
1c012548d4
CPP: Add tests for incorrect check scanf
2023-11-24 16:58:11 +00:00
Alex Eyers-Taylor
12e24a2b44
CPP: Exclude incorrect scanf checks from missing scanf checks
2023-11-24 16:57:59 +00:00
Mathias Vorreiter Pedersen
e89d8e2967
Merge pull request #14907 from MathiasVP/remove-workaround-in-authentication-bypass
...
C++: Remove workaround for negated conditions in `cpp/user-controlled-bypass`
2023-11-24 16:54:37 +00:00
Jeroen Ketema
04338215cd
Merge pull request #14903 from jketema/ret-val
...
C++: Do not use `isReturnValue` in `getenv`, `gets`, and `fgets` models
2023-11-24 17:51:11 +01:00
Geoffrey White
06ae374206
Swift: Add a predicate for common code.
2023-11-24 16:06:35 +00:00
Geoffrey White
1638796173
Swift: Add change note.
2023-11-24 15:41:49 +00:00
Geoffrey White
2b481bbb48
Swift: Model Sequence.enumerated() as well.
2023-11-24 15:41:49 +00:00
Jeroen Ketema
ee35bfb290
C++: Do not use isReturnValue in getenv, gets, and fgets models
2023-11-24 16:38:15 +01:00
Mathias Vorreiter Pedersen
a7d820ce62
C++: Remove workaround for negated conditions in 'cpp/user-controlled-bypass'.
2023-11-24 15:17:45 +00:00
Geoffrey White
14031bf351
Swift: Model Sequence.forEach as well.
2023-11-24 14:58:13 +00:00
Alex Eyers-Taylor
f48e8b6062
CPP: Add query for detecteing incorrect error checking for scanf
2023-11-24 14:53:10 +00:00
Geoffrey White
60b27a4e69
Swift: Expand and improve models of Set and Sequence.
2023-11-24 14:43:19 +00:00
Mathias Vorreiter Pedersen
e438671846
Merge pull request #14896 from MathiasVP/no-dtt-in-user-controlled-bypass
...
C++: Rewrite `cpp/user-controlled-bypass` away from `DefaultTaintTracking`
2023-11-24 14:43:10 +00:00
Mathias Vorreiter Pedersen
631dc98d72
Merge pull request #14904 from MathiasVP/taint-through-int-to-bool-casts
...
C++: Add Taint through int -> bool casts
2023-11-24 14:30:19 +00:00
Stephan Brandauer
2e5971bb57
Java automodel: also drop boxed types and number types from endpoints
2023-11-24 15:04:13 +01:00
Tom Hvitved
9eaebfcf60
Merge pull request #14859 from hvitved/ruby/missing-flow-tests
...
Ruby: Add tests illustrating missing flow
2023-11-24 14:57:15 +01:00
Harry Maclean
d239a30866
Merge pull request #14874 from hmac/hmac-missing-flow-test
...
Ruby: Add test for missing block flow
2023-11-24 13:44:55 +00:00
Ian Lynagh
fc2142feb4
Merge pull request #14887 from igfoo/igfoo/kloc
...
Kotlin: Add LighterAST support to numlines extraction
2023-11-24 13:43:34 +00:00
Geoffrey White
04c90a684c
Swift: Add taint tests for 'Set'.
2023-11-24 13:38:31 +00:00
Ian Lynagh
b33fcf3719
Kotlin: Accept some location changes in test-kotlin2/library-tests/stmts
2023-11-24 13:34:44 +00:00
Tom Hvitved
8ccce5891d
Ruby: Add tests illustrating missing flow
2023-11-24 14:28:04 +01:00
Mathias Vorreiter Pedersen
6b48b3643e
Merge branch 'main' into no-dtt-in-user-controlled-bypass
2023-11-24 12:50:45 +00:00
Mathias Vorreiter Pedersen
2681617f28
C++: Undo the workaround in 'cpp/tainted-permissions-check'.
2023-11-24 10:56:11 +00:00
Mathias Vorreiter Pedersen
0c924c2b27
C++: Taint-flow through integer to boolean casts.
2023-11-24 10:55:50 +00:00
Mathias Vorreiter Pedersen
e1c326642c
Merge pull request #14894 from MathiasVP/dont-short-circuit-negation-in-conditions
...
C++: Don't short circuit logical negation in conditions
2023-11-24 10:50:42 +00:00
Owen Mansel-Chan
6f9a70475d
Merge pull request #14882 from owen-mc/go/minor-fixes
...
Go: improve CallNode documentation
2023-11-24 10:36:07 +00:00
Erik Krogh Kristensen
22bdcad0c6
Merge pull request #14302 from amammad/amammad-js-SQLI
...
JS: extend DatabaseAccess by `TypeORM` and `sqlite` and `better-sqlite3` packages
2023-11-24 11:18:47 +01:00
Alex Denisov
2783c6dcd0
Swift: add change note
2023-11-24 10:11:51 +01:00
amammad
1aa4494dbc
stash
2023-11-24 10:09:21 +01:00
Alex Denisov
7676ad316c
Swift: database downgrade script
2023-11-24 10:08:16 +01:00
Alex Denisov
a4da1a0748
Swift: database upgrade script
2023-11-24 10:08:16 +01:00
Alex Denisov
20e95137f4
Swift: remove MaterizliePackExpr tests as they are only working on macOS 14
2023-11-24 09:55:10 +01:00
Alex Denisov
d7d546e97f
Swift: skip TypeJoinExpr
2023-11-24 09:46:04 +01:00
Alex Denisov
6a673e700b
Swift: extract DiscardStmt
2023-11-24 09:46:01 +01:00
Alex Denisov
5cd74213cc
Swift: extract MaterizliePackExpr
2023-11-24 09:45:01 +01:00
AlexDenisov
cca05e0a82
Merge pull request #14902 from github/redsun82/swift-qldocs
...
Codegen: allow marking properties as internal
2023-11-24 09:26:50 +01:00
Paolo Tranquilli
ba098c3b1b
Swift: make kind and macro_syntax in MacroRole internal
2023-11-24 07:04:03 +01:00
Paolo Tranquilli
6045f59721
Merge branch 'main' into redsun82/swift-qldocs
2023-11-24 07:02:49 +01:00
Paolo Tranquilli
b514bd8d1c
Merge pull request #14796 from github/alexdenisov/macros
...
Swift: extract `MacroDecl`
2023-11-24 07:02:28 +01:00
Paolo Tranquilli
cc6da2829c
Swift: make PoundDiagnostics::getKind internal
2023-11-24 06:56:55 +01:00
Paolo Tranquilli
0b57ecf0c7
Codegen: add internal QLdoc to property templates
2023-11-24 06:56:55 +01:00
Paolo Tranquilli
2d34fec0a2
Codegen: remove unneeded has_description property
2023-11-24 06:56:55 +01:00
Paolo Tranquilli
9264b2a6d6
Codegen: add internal to properties, rename ql_internal->internal
2023-11-24 06:56:55 +01:00
erik-krogh
abb8d65483
Merge branch 'main' into amammad-js-SQLI
2023-11-23 21:17:58 +01:00
erik-krogh
43c76468c9
add change-note
2023-11-23 21:17:33 +01:00
Alex Denisov
0d0152f892
Swift: fix docs again
2023-11-23 19:06:32 +01:00
Alex Denisov
1b615e25d8
Merge branch 'main' into alexdenisov/macros
2023-11-23 19:05:12 +01:00
AlexDenisov
a8fcfd154f
Merge pull request #14893 from github/redsun82/swift-qldocs
...
Codegen: fix bug where stub rewriting globbles too much code
2023-11-23 19:04:49 +01:00
Mathias Vorreiter Pedersen
5604fd7d80
C++: Rewrite 'cpp/user-controlled-bypass' away from 'DefaultTaintTracking'.
2023-11-23 17:35:54 +00:00
Mathias Vorreiter Pedersen
97319854e2
C++: Accept test changes.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
6f5cfca84c
C++: Sync identical files.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
cc261bfabb
C++: Recurse through 'LogicalNotInstruction' in 'getConstantValue'.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
98bf748e64
C++: Accept test changes.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
7364634a6b
C++: No need to special-case negations in IRGuards.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
3af3a72161
C++: Don't short-circuit negations in conditions.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
257d94be20
Merge pull request #14886 from jketema/rewrite-tainted-condition
...
C++: Rewrite `cpp/tainted-permissions-check` to not use `DefaultTaintTracking`
2023-11-23 16:18:03 +00:00
Paolo Tranquilli
a18f1ef7cd
Codegen: fix bug where stub rewriting globbles too much code
2023-11-23 17:14:32 +01:00
Alex Denisov
f5ea133067
Swift: trick codegen into not breaking my code
2023-11-23 16:37:09 +01:00
Alex Denisov
f6f6c98306
Swift: use multiline comments for docs
2023-11-23 16:33:15 +01:00
Alex Denisov
f77fd812a9
Swift: add predicates to MacroRole
2023-11-23 16:23:25 +01:00
Pierre
6e4ad58a80
Merge pull request #14889 from github/changedocs/2.15.3
...
Fix changelog docs based on latest generator version
2023-11-23 15:43:02 +01:00
Mathias Vorreiter Pedersen
149fb7bbc2
Merge pull request #14881 from MathiasVP/no-dtt-in-user-controlled-null-termination-tainted
...
C++: Rewrite `cpp/user-controlled-null-termination-tainted` away from `DefaultTaintTracking`
2023-11-23 14:41:33 +00:00
Ian Lynagh
c4d3d505ca
Kotlin: Accept changes in Kotlin2 ExtractorInformation test
2023-11-23 14:30:50 +00:00
Owen Mansel-Chan
2c99e70e2b
Merge pull request #14890 from owen-mc/go/fix-change-note-query-reference
...
Go: Change how we refer to a query in a change note
2023-11-23 14:15:05 +00:00
Mathias Vorreiter Pedersen
401a378598
C++: Accept test changes.
2023-11-23 14:12:16 +00:00
Mathias Vorreiter Pedersen
b774ae07c8
Update cpp/ql/src/Security/CWE/CWE-170/ImproperNullTerminationTainted.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-11-23 14:10:57 +00:00
Jeroen Ketema
7834626e26
C++: Rewrite cpp/tainted-permissions-check to not use DefaultTaintTracking
2023-11-23 14:52:53 +01:00
Owen Mansel-Chan
436fd9e736
Merge pull request #14775 from aydinnyunus/main
...
Golang: Web Cache Deception Vulnerability
2023-11-23 13:50:10 +00:00
Alex Denisov
197e5d0267
Swift: regenerate QL after merging main
2023-11-23 14:44:39 +01:00
Owen Mansel-Chan
25a2aef623
Update library name in change note
2023-11-23 13:42:21 +00:00
Alex Denisov
79adc9bfe9
Merge branch 'main' into alexdenisov/macros
2023-11-23 14:42:07 +01:00
Owen Mansel-Chan
25d5104468
Change how we refer to a query in a change note
2023-11-23 13:22:05 +00:00
Joe Farebrother
561b769a79
Merge pull request #14343 from joefarebrother/csharp-xss-flow-step
...
C#: Add flow steps for View calls refering to Razor pages
2023-11-23 13:05:02 +00:00
Rasmus Wriedt Larsen
4e0cca9a41
Merge pull request #14353 from GeekMasher/py-restframework
...
Python: support `*args` and `**kwargs` in request handlers
2023-11-23 14:04:36 +01:00
amammad
60b422a35c
fix second round of code review. improve documents, fix better-sqlite3 method
2023-11-23 14:01:38 +01:00
Pierre
bff86ed210
Fix changelog docs based on latest generator version
2023-11-23 13:53:14 +01:00
Paolo Tranquilli
7588813864
Merge pull request #14864 from github/redsun82/swift-qldocs
...
Swift: generate more QLdocs
2023-11-23 13:42:46 +01:00
Ian Lynagh
69cfc79561
Kotlin: Add LighterAST support to numlines extraction
2023-11-23 12:02:27 +00:00
Maiky
6739750d2a
Add Unsafe Unpacking Query (CWE-022)
2023-11-23 12:48:33 +01:00
Joe Farebrother
befb1ccd84
Fix integration tests for windows
2023-11-23 10:56:45 +00:00
Joe Farebrother
e4edb19f43
Update to hasFullyQualifiedName
2023-11-23 10:56:45 +00:00
Joe Farebrother
f24c042d04
Rename Razor Page class to Razor View class
2023-11-23 10:56:45 +00:00
Joe Farebrother
aa3fd6add0
Fix standalone tests
2023-11-23 10:56:45 +00:00
Joe Farebrother
33186ac797
Add integration tests
2023-11-23 10:56:45 +00:00
Joe Farebrother
82fbae3e5a
Handle standalone extraction case in which generated files list absolute paths
2023-11-23 10:56:45 +00:00
Joe Farebrother
26c048a650
Minor refactoring
2023-11-23 10:56:44 +00:00
Joe Farebrother
e2e4642037
Remove redundant import
2023-11-23 10:56:44 +00:00
Joe Farebrother
7a098dde50
Remove AdditionalTaintStep (redundant with NonLocalJumpNode)
2023-11-23 10:56:44 +00:00
Joe Farebrother
9af44ed0a2
Convert flow steps to value steps
2023-11-23 10:56:44 +00:00
Joe Farebrother
052166f17e
Fix issue in genfiles.py + add help text
2023-11-23 10:56:44 +00:00
Joe Farebrother
96bddde7c1
Review suggestions - Remove unneeded import in tests, rename RazorPage to RazorPageClass
2023-11-23 10:56:44 +00:00
Joe Farebrother
ef15980bb6
Remove unnecessary check for the name parameter as parameter 1
2023-11-23 10:56:43 +00:00
Joe Farebrother
2416040854
Review suggestions - make import private and update change note
2023-11-23 10:56:43 +00:00
Joe Farebrother
047f8e485a
Make the additional flow steps generally applicible to all queries
2023-11-23 10:56:43 +00:00
Joe Farebrother
0ed7b3c3ad
Update qldoc
2023-11-23 10:56:43 +00:00
Joe Farebrother
7371751801
Add change note
2023-11-23 10:56:43 +00:00
Joe Farebrother
826111dc08
Separate area view discovery list for increased precision
2023-11-23 10:56:42 +00:00
Joe Farebrother
f2c3d83d9e
Add tests for area cases
2023-11-23 10:56:42 +00:00
Joe Farebrother
7bd7cc5dbe
Fix tests
2023-11-23 10:56:42 +00:00
Joe Farebrother
f1b0f1a35d
Use shared filepath normalization libary
2023-11-23 10:56:42 +00:00
Joe Farebrother
7194113a64
Add areas
2023-11-23 10:56:42 +00:00
Joe Farebrother
7691cbce87
Add additional test cases
2023-11-23 10:56:42 +00:00
Joe Farebrother
f84b2a96af
Add support for view locations defined in code through RazoeViewEngineOptions
2023-11-23 10:56:42 +00:00
Joe Farebrother
4f5ecb899b
Add unit tests + fix issue in stubs
2023-11-23 10:56:41 +00:00
Joe Farebrother
ac3f642b45
Unit tests - Write script to aid generating necessary code from .cshtml files.
2023-11-23 10:56:41 +00:00
Joe Farebrother
12a579e0aa
Add relative filepath lookup
2023-11-23 10:56:41 +00:00
Joe Farebrother
40a7223620
Implement xss flow step for absolute filepath case
2023-11-23 10:56:41 +00:00
Rasmus Wriedt Larsen
d056706af5
Merge pull request #14725 from RasmusWL/re-modeling
...
Python: Add taint-flow modeling for `re` module
2023-11-23 11:35:36 +01:00
Erik Krogh Kristensen
ef8d38e9e0
Merge pull request #14885 from erik-krogh/update-changenotes
...
JS: update the JS change notes to mention security severity instead of just severity
2023-11-23 11:17:53 +01:00
Rasmus Wriedt Larsen
3d46129bbf
Python: Remove intermediary steps from taint-test
...
These were leftovers from old way of propagating taint
2023-11-23 10:40:25 +01:00
erik-krogh
dd1e71ace9
update the JS change notes to mention security severity instead of just severity
2023-11-23 10:28:22 +01:00
Paolo Tranquilli
ff529c34b4
Codegen: use re.escape
2023-11-23 09:37:44 +01:00
Yunus AYDIN
ca56b0157d
Merge branch 'github:main' into main
2023-11-22 22:56:23 +03:00
Jeroen Ketema
257fe1ad6b
Merge pull request #14801 from jketema/rewrite-tainted-format-string
...
C++: Rewrite `cpp/tainted-format-string` away from `DefaultTaintTracking`
2023-11-22 17:55:36 +01:00
Owen Mansel-Chan
a130c0f6b3
Merge branch 'main' into main
2023-11-22 16:50:41 +00:00
Owen Mansel-Chan
dd8fb29a65
Improve QLDocs of CallNode and MethodCallNode
...
When a function is assigned to a variable and called through that
variable then we can't always tell it was a method.
2023-11-22 16:32:10 +00:00
Pierre
98ddbe0d83
Merge pull request #14880 from github/geoffw0-patch-2
2023-11-22 17:31:44 +01:00
Geoffrey White
bcf76b1ac0
Update change note 0.3.3.md
...
Update original change note in line with the change here: https://github.com/github/codeql/pull/14876#discussion_r1402142306
2023-11-22 16:20:05 +00:00
Jeroen Ketema
1fbe23228e
C++: Update test to reflect updated test results
2023-11-22 16:49:13 +01:00
Jeroen Ketema
bb1945f899
C++: Rewrite cpp/tainted-format-string away from DefaultTaintTracking
2023-11-22 16:49:13 +01:00
Mathias Vorreiter Pedersen
640e2f56d5
C++: Accept test changes.
2023-11-22 15:43:24 +00:00
Mathias Vorreiter Pedersen
306440ce6e
C++: Convert 'cpp/user-controlled-null-termination-tainted' away from 'DefaultTaintTracking'.
2023-11-22 15:43:24 +00:00
Arthur Baars
29c950035d
Merge pull request #14877 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-22 16:39:09 +01:00
Geoffrey White
012dc59bf3
Swift: Change note.
2023-11-22 15:24:19 +00:00
Geoffrey White
5723a75f3c
Swift: Add heuristic model for init(contentsOfFile) and similar.
2023-11-22 15:24:19 +00:00
Pierre
60ebe3b179
Merge pull request #14876 from github/changedocs/2.15.3
...
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-22 16:22:56 +01:00
Ian Lynagh
1f2d9dc95c
Merge pull request #14862 from igfoo/igfoo/test-kotlin1
...
Kotlin: Move tests from test/kotlin to test-kotlin1
2023-11-22 14:45:13 +00:00
github-actions[bot]
0783758bd1
Post-release preparation for codeql-cli-2.15.3
2023-11-22 14:20:26 +00:00
Pierre
9b9a78851d
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-22 15:05:17 +01:00
Rasmus Wriedt Larsen
4a98ed903e
Python: Fix consistency for bound-methods used in list-comp
2023-11-22 14:07:40 +01:00
Tom Hvitved
979bcf4ef3
Merge pull request #14868 from hvitved/ssa/locations
...
SSA: Add locations to ease debugging
2023-11-22 13:26:41 +01:00
Geoffrey White
94cb09e539
Swift: Add test cases.
2023-11-22 11:39:27 +00:00
Ian Lynagh
3dee16c50c
Merge pull request #14860 from igfoo/igfoo/isFake
...
Kotlin 2: isFake is currently broken, so assume not fake for now
2023-11-22 11:07:04 +00:00
Rasmus Wriedt Larsen
67b1414177
Python: Highlight even more cases for multipleArgumentCallExclude
2023-11-22 11:25:23 +01:00
Harry Maclean
288fbfd2ec
Ruby: Add test for missing block flow
2023-11-22 09:59:55 +00:00
Paolo Tranquilli
369431125e
Codegen: insert doc explaining _patch_class_qldoc
2023-11-22 10:26:04 +01:00
Paolo Tranquilli
f5633be837
Codegen: rename has_doc to has_qldoc
2023-11-22 10:19:36 +01:00
Paolo Tranquilli
418118fc89
Codegen: use more robust regex to patch qldocs
2023-11-22 10:11:05 +01:00
Rasmus Wriedt Larsen
30891ca4aa
Merge pull request #14861 from yoff/python/demonstrate-def-use-explosion
...
Python: test demonstrating the need for phi nodes
2023-11-22 09:57:10 +01:00
yoff
4785048076
Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-11-22 09:29:07 +01:00
Tamás Vajk
ace633cb1d
Merge pull request #14855 from tamasvajk/standalone/logMessageSink
...
C#: Tolerate missing call targets in LogMessageSink
2023-11-22 08:37:53 +01:00
Tom Hvitved
1a6886cf99
SSA: Add locations to ease debugging
2023-11-22 08:37:02 +01:00
amammad
eb552b7c93
add failingPositiveTests to inlinetests
2023-11-22 08:00:38 +01:00
Owen Mansel-Chan
b147bacd48
Merge branch 'main' into amammad-go-fastHttp
2023-11-21 21:36:11 +00:00
amammad
fabde6e0ff
fix tests and remove tarfile tar.Reader as sink
2023-11-21 20:54:38 +01:00
amammad
75e01d3648
Thanks to @owen-mc that provided a good solution of that I couldn't solve that myself
2023-11-21 20:15:27 +01:00
amammad
0328a2986d
move TypeORM library file and tests to experimental
...
add inline tests :)
Fix TypeORM fuzzy method according to Review
2023-11-21 19:59:06 +01:00
amammad
999ec7053e
fix Query class docstring
2023-11-21 18:56:05 +01:00
Mathias Vorreiter Pedersen
a80dbc5200
C++: Accept test changes.
2023-11-21 17:50:11 +00:00
Mathias Vorreiter Pedersen
976adc3c7c
C++: Fixup queries to keep the old results.
2023-11-21 17:50:08 +00:00
Mathias Vorreiter Pedersen
ef2caa3944
C++: Add a new API for mapping a dataflow node to a definition. This means we can reduce duplication from 'asExpr'.
2023-11-21 17:49:02 +00:00
amammad
2ad59a5403
fix SSRF sinks
2023-11-21 18:46:35 +01:00
Ian Lynagh
45bbcccd1a
Kotlin: Copy TestUtilities into the kotlin testsuites
2023-11-21 17:16:54 +00:00
Robert Marsh
396b9e38c5
Swift: move keypath dataflow writes to fix types
2023-11-21 17:06:21 +00:00
Paolo Tranquilli
30161b0f12
Codegen: patch customized stubs with QLdoc
2023-11-21 17:51:27 +01:00
Paolo Tranquilli
d659709695
Codegen: add render_str
2023-11-21 17:28:12 +01:00
Paolo Tranquilli
e40c53a340
Swift: add full docs to stub classes
2023-11-21 17:27:30 +01:00
Ian Lynagh
7ba199a8c3
Kotlin: Update CODEOWNERS
2023-11-21 16:19:09 +00:00
Rasmus Lerchedahl Petersen
d288c4a709
Python: rename folder
2023-11-21 16:48:41 +01:00
yoff
4f7fde7b87
Merge pull request #14858 from yoff/python/demonstrate-use-use-explosion
...
Python: Test demonstrating the need for phi-read-nodes
2023-11-21 16:44:11 +01:00
Ian Lynagh
1fb19191ba
Kotlin: Add a qlpack.yml to the test-kotlin1 tests
2023-11-21 15:31:18 +00:00
Ian Lynagh
f48cc1a526
Kotlin: Move tests from test/kotlin to test-kotlin1
...
Matches test-kotlin2
2023-11-21 15:28:12 +00:00
Paolo Tranquilli
b4fd95bd6a
Swift: move stub QLdocs to separate templates
2023-11-21 16:25:21 +01:00
Paolo Tranquilli
5b724a7aaf
Swift: add QLdoc for Generated modules
2023-11-21 16:18:28 +01:00
Alex Denisov
dd6c5ba383
Swift: update docs
2023-11-21 16:03:18 +01:00
Alex Denisov
7b74478e47
Swift: update tests
2023-11-21 16:03:06 +01:00
Rasmus Wriedt Larsen
63fcaca82f
Python: add change-note
2023-11-21 16:02:41 +01:00
Rasmus Wriedt Larsen
a0867b4f66
Python: More HTTP request handler *args/**kwargs modeling
...
I looked through all `override Parameter getARoutedParameter() {` in our
codebase, and we now modeling *args/**kwargs for all of them 👍
2023-11-21 16:02:40 +01:00
Rasmus Wriedt Larsen
f9d7becd04
Python: Make multipleArgumentCallExclude more specific
2023-11-21 15:57:12 +01:00
Rasmus Lerchedahl Petersen
c552bc5eb1
Python: fix test output
2023-11-21 15:48:22 +01:00
Rasmus Lerchedahl Petersen
077e51c6c6
Python: fix test output
2023-11-21 15:47:18 +01:00
Rasmus Lerchedahl Petersen
4857960f72
Python: test demonstrating the need for phi nodes
...
or a dataflow node playing that role, at least.
2023-11-21 15:40:05 +01:00
Ian Lynagh
1998e29639
Kotlin 2: isFake is currently broken, so assume not fake for now
...
We'll want to find a Kotlin-2-compatible replacement for this.
2023-11-21 14:37:53 +00:00
Ian Lynagh
6bd269502f
Kotlin: Pull out a tryIsHiddenToOvercomeSignatureClash method
2023-11-21 14:36:10 +00:00
Stephan Brandauer
f2de449ce4
Merge branch 'main' into kaeluka/automodel-extraction-skip-primitive-types-candidates
2023-11-21 14:57:24 +01:00
Alex Denisov
b9952618ff
Swift: fix and update change note date
2023-11-21 14:52:28 +01:00
Alex Denisov
b269b79bb3
Merge branch 'main' into alexdenisov/macros
2023-11-21 14:51:00 +01:00
Max Schaefer
2c5ce3216e
Merge pull request #14846 from github/max-schaefer/js/path-injection
...
Update qhelp for js/path-injection.
2023-11-21 13:50:41 +00:00
Alex Denisov
dde2ad1290
Swift: do not print MacroRole as part of AST
2023-11-21 14:49:55 +01:00
Geoffrey White
c89be6a1de
Swift: Refine the heuristic (mostly narrower).
2023-11-21 13:49:53 +00:00
Rasmus Lerchedahl Petersen
f138fc0d2d
Python: Test demonstrating need for phi-read-nodes
...
Or for a data flow node filling that role, at least.
2023-11-21 13:54:02 +01:00
Rasmus Wriedt Larsen
37d03ee0f3
Python: Accept .expected changes
...
Note that in this case, since there is a known `django.urls.path`
route-setup, we know that the request-handler will only be passed
keyword arguments, so it is not a mistake that `*args` is not considered
a routed-parameter here (although it certainly wouldn't have hurt us if
we did consider it a routed-parameter either).
2023-11-21 13:46:55 +01:00
Rasmus Wriedt Larsen
1bc8a6de61
Python: Fixup mistaken modelling
2023-11-21 13:46:23 +01:00
Ian Lynagh
08383eaea5
Merge pull request #14837 from igfoo/igfoo/owners
...
Kotlin: Add more CODEOWNERS entries
2023-11-21 12:25:17 +00:00
Ian Lynagh
2c2dccabe9
Merge pull request #14833 from igfoo/igfoo/kot2tests
...
Kotlin: Add a kotlin2 copy of the testsuite
2023-11-21 12:24:49 +00:00
Rasmus Wriedt Larsen
36a846ee32
Python: Fix django regex path handling
2023-11-21 13:08:45 +01:00
Rasmus Wriedt Larsen
c51c15ae74
Python: Add test of routed parameters to *args
...
Also move the **kwargs and *args test to a more appropriate file
2023-11-21 13:01:01 +01:00
Owen Mansel-Chan
d26dc68baa
Merge pull request #14798 from owen-mc/go/improve-value-flow-through-slice-exprs
...
Go: model value flow with array content through slice expressions
2023-11-21 11:50:08 +00:00
Rasmus Wriedt Larsen
2ec1822e9c
Python: Accept consistency-errors in django-orm
2023-11-21 12:44:42 +01:00
Geoffrey White
5bbc61e83c
Swift: Add a few more test cases.
2023-11-21 11:32:40 +00:00
Rasmus Wriedt Larsen
5f26790b90
Merge branch 'main' into py-restframework
2023-11-21 11:57:48 +01:00
Rasmus Wriedt Larsen
df9fb141b8
Python: Remove old manual consistency query tests
2023-11-21 11:50:23 +01:00
Tom Hvitved
12359ba733
Add change note
2023-11-21 11:46:15 +01:00
Ian Lynagh
0668b71538
Merge pull request #14831 from igfoo/igfoo/kot2
...
Kotlin: Add 2.0.0-Beta1
2023-11-21 10:35:12 +00:00
Rasmus Wriedt Larsen
b6df6b7c99
Python: Add dataflow consistency query
2023-11-21 11:33:28 +01:00
Max Schaefer
dfffa1e237
Apply suggestions from code review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-11-21 10:07:11 +00:00
Michael Nebel
d8e7c9c986
Merge pull request #14767 from michaelnebel/csharp/projectframeworkassets
...
C#: Framework dependency detection.
2023-11-21 10:55:30 +01:00
Tamas Vajk
253c658ad2
C#: Tolerate missing call targets in LogMessageSink
2023-11-21 10:13:18 +01:00
Tamas Vajk
f0e20fa69e
C#: Add test case for missing log message sinks with ambiguous types
2023-11-21 10:09:05 +01:00
Rasmus Wriedt Larsen
71c017f053
Python: Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-11-21 10:07:42 +01:00
Geoffrey White
57a1becd22
Swift: Add missing QLDoc.
2023-11-21 08:55:52 +00:00
Erik Krogh Kristensen
7263d4d650
Merge pull request #14510 from aibaars/ts53-ts
...
JS: update typescript extractor to use 5.3 .
2023-11-21 09:10:43 +01:00
Rasmus Lerchedahl Petersen
c8b87f71c5
Python: add change note
2023-11-20 21:44:16 +01:00
Rasmus Lerchedahl Petersen
421d4f3497
Python: filter more sinks in stdlib
...
Rename variable to reflect larger scope
We had test results inside `os.py`, I suppose we have found a little extra flow.
2023-11-20 21:35:52 +01:00
Rasmus Lerchedahl Petersen
11c71fdd18
Python: remove EssaNodes
...
This commit removes SSA nodes from the data flow graph. Specifically, for a definition and use such as
```python
x = expr
y = x + 2
```
we used to have flow from `expr` to an SSA variable representing x and from that SSA variable to the use of `x` in the definition of `y`. Now we instead have flow from `expr` to the control flow node for `x` at line 1 and from there to the control flow node for `x` at line 2.
Specific changes:
- `EssaNode` from the data flow layer no longer exists.
- Several glue steps between `EssaNode`s and `CfgNode`s have been deleted.
- Entry nodes are now admitted as `CfgNodes` in the data flow layer (they were filtered out before).
- Entry nodes now have a new `toString` taking into account that the module name may be ambigous.
- Some tests have been rewritten to accomodate the changes, but only `python/ql/test/experimental/dataflow/basic/maximalFlowsConfig.qll` should have semantic changes.
- Comments have been updated
- Test output has been updated, but apart from `python/ql/test/experimental/dataflow/basic/maximalFlows.expected` only `python/ql/test/experimental/dataflow/typetracking-summaries/summaries.py` should have a semantic change. This is a bonus fix, probably meaning that something was never connected up correctly.
2023-11-20 21:35:32 +01:00
erik-krogh
5611a3e417
use exact version
2023-11-20 20:48:51 +01:00
erik-krogh
10b3efa667
update to the stable version of TypeScript 5.3
2023-11-20 20:32:24 +01:00
erik-krogh
dde9a7cd7e
Merge branch 'main' into ts53-ts
2023-11-20 20:31:00 +01:00
Geoffrey White
b4b78a1bce
Swift: Minor corrections.
2023-11-20 19:29:35 +00:00
Geoffrey White
50120f65a3
Swift: Change note.
2023-11-20 18:43:48 +00:00
Geoffrey White
3cecf69818
Swift: Fix spurious results for 'login' functions.
2023-11-20 18:38:47 +00:00
Geoffrey White
aa93165d24
Swift: Add heuristic sinks.
2023-11-20 18:38:47 +00:00
Geoffrey White
d91c5c0486
Swift: Model NSException sinks.
2023-11-20 18:38:46 +00:00
Geoffrey White
7e02c05164
Swift: Address the sprintf case.
2023-11-20 18:38:46 +00:00
Geoffrey White
835967a33e
Swift: Fix for autoclosure sinks.
2023-11-20 18:15:16 +00:00
Geoffrey White
795f16ba56
Swift: Model 'printf' variants as cleartext logging sinks.
2023-11-20 18:15:06 +00:00
Geoffrey White
06c2c423b3
Swift: Clean up the test logic slightly.
2023-11-20 18:12:15 +00:00
Geoffrey White
b348dc2a32
Swift: Extend cleartext logging tests (test cases).
2023-11-20 18:11:52 +00:00
Geoffrey White
2a69b03092
Swift: Extend cleartext logging tests (stubs).
2023-11-20 18:11:41 +00:00
Mathias Vorreiter Pedersen
75f860595a
Merge pull request #14838 from MathiasVP/no-dtt-in-arithmetic-with-extreme-values
...
C++: Convert `cpp/arithmetic-with-extreme-values` away from `DefaultTaintTracking`
2023-11-20 16:39:58 +00:00
Rasmus Wriedt Larsen
c8301fc5f0
Merge pull request #14851 from RasmusWL/variable-caputre-list-comprehension
...
Python: Add test for variable reference in list comprehension
2023-11-20 17:10:34 +01:00
Ian Lynagh
95de7495d1
Kotlin: Fix build with 2.0.0-Beta1
2023-11-20 16:08:02 +00:00
Ian Lynagh
72bafd86df
Kotlin: Tweak the regex we use to find the installed Kotlin version
2023-11-20 16:08:02 +00:00
Ian Lynagh
452b68c0ca
Kotlin: Add 2.0.0-Beta1 to versions
2023-11-20 16:08:02 +00:00
Rasmus Wriedt Larsen
db1499d5b0
Python: Add test for variable reference in list comprehension
2023-11-20 16:41:34 +01:00
Max Schaefer
b5c92408f4
Merge pull request #14845 from github/max-schaefer/minor
...
Automodel: Fix a few nits.
2023-11-20 15:24:45 +00:00
Tom Hvitved
6ce8e0510f
Ruby: Adopt shared type tracking library
2023-11-20 16:03:24 +01:00
Tom Hvitved
620e8dcb37
Merge pull request #14787 from hvitved/ruby/prune-dataflow-nodes
...
Ruby: Prune irrelevant data flow nodes and edges
2023-11-20 16:03:00 +01:00
Taus
5b4a8884b4
Merge pull request #14636 from github/tausbn/python-add-support-for-python-3.12-type-syntax
...
Python: Add support for Python 3.12 type syntax
2023-11-20 15:52:48 +01:00
Stephan Brandauer
737aab66f5
Java automodel: drop primitive parameters from endpoints
2023-11-20 15:09:05 +01:00
Mathias Vorreiter Pedersen
ab6260600e
Merge pull request #14822 from MathiasVP/fix-global-variable-flow-for-arrays
...
C++: Fix global-variable flow for array types
2023-11-20 13:46:05 +00:00
Taus
10b72a0c39
Python: Fix scope of type parameters
...
This takes care of scoping for type parameters on functions, but not
type aliases or classes.
For classes, the _type parameters_ now have the correct `Class` as scope,
but all their child nodes do not (e.g. the `Name` inside a `TypeParameter`).
This has to do with how the `py_scopes` relation is emitted by the extractor,
since `Name`s are expressions.
2023-11-20 13:31:21 +00:00
Taus
36201105b9
Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax
2023-11-20 13:27:54 +00:00
Stephan Brandauer
e34a9de008
Java Automodel: drop return values of primitive return type methods from consideration for extraction in framework mode
2023-11-20 14:11:14 +01:00
Rasmus Wriedt Larsen
9bdc2d1c02
Merge pull request #14847 from ctcampbell/main
...
Update cryptography bill of materials queries
2023-11-20 14:08:11 +01:00
Stephan Brandauer
212a515fa9
Java Automodel: drop return values void methods other than ctors from consideration for extraction in framework mode
2023-11-20 14:00:59 +01:00
Stephan Brandauer
d84501d65c
Java automodel extraction: test case for framework mode extraction showing how primitives are currently candidates
2023-11-20 13:36:41 +01:00
Mathias Vorreiter Pedersen
dcba8e5408
C++: Fix global variable flow for array types.
2023-11-20 12:15:55 +00:00
Mathias Vorreiter Pedersen
8039e117ba
C++: Add more global-variable flow tests.
2023-11-20 12:15:52 +00:00
Chris Campbell
27a2781954
Merge branch 'github:main' into main
2023-11-20 12:15:45 +00:00
Ian Lynagh
b8a2716ced
Merge pull request #14835 from igfoo/igfoo/findTopLevelFunctionOrWarn
...
Kotlin: Fix findTopLevelFunctionOrWarn for Kotlin 2
2023-11-20 12:11:58 +00:00
Max Schaefer
d147faba4e
Update qhelp for js/path-injection.
2023-11-20 11:58:00 +00:00
Max Schaefer
1bed9f9003
Automodel: Fix a few nits.
2023-11-20 11:06:02 +00:00
Tom Hvitved
fab6813a49
Merge pull request #14815 from hvitved/type-tracking/param-consistency-checks
...
Type tracking: Parameterize consistency checks
2023-11-20 11:05:06 +01:00
Michael Nebel
cf696f2639
Merge pull request #14843 from michaelnebel/csharp/postreviewcomments
...
C#: In Assets parser let TryReadAllText return null on read error.
2023-11-20 10:18:34 +01:00
Michael Nebel
a9a55dfcd6
C#: In Assets parser let TryReadAllText return null on read error.
2023-11-20 08:35:50 +01:00
Michael Nebel
d3e047f078
Merge pull request #14834 from michaelnebel/csharp/robustassetsfileread
...
C#: Make assets file reading more robust.
2023-11-20 08:28:07 +01:00
Arthur Baars
db180d9872
Merge pull request #14823 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-19 12:13:42 +01:00
masterofnow
2952d8f65a
Updated query to cover broader detection.
2023-11-18 18:52:47 +08:00
Mathias Vorreiter Pedersen
c65c2489cf
C++: Rewrite 'cpp/arithmetic-with-extreme-values' away from 'DefaultTaintTracking'.
2023-11-17 16:38:35 +00:00
Ian Lynagh
db76681744
Kotlin: Add more CODEOWNERS entries
2023-11-17 16:05:30 +00:00
Ian Lynagh
5c36e63dfe
Kotlin: Fix findTopLevelFunctionOrWarn for Kotlin 2
...
The AST when the parent class is a file class is different in
Kotlin 2 mode.
2023-11-17 15:25:53 +00:00
Michael Nebel
7531852ea6
C#: Log information about asset file read errors.
2023-11-17 15:40:58 +01:00
Michael Nebel
cd9786a952
C#: Assets paths should contain at least one character.
2023-11-17 15:36:15 +01:00
github-actions[bot]
bad499e360
Post-release preparation for codeql-cli-2.15.3
2023-11-17 14:35:41 +00:00
Tamás Vajk
7c3122aade
Merge pull request #14828 from tamasvajk/docs/insecure-randomness
...
C#: Update insecure randomness query description to match implementation
2023-11-17 15:31:33 +01:00
Ian Lynagh
007f181ff5
K2: library-tests/properties: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
90ba3812fe
K2: library-tests/private-anonymous-types: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
e63ddd2071
K2: library-tests/operator-overloads: Accept changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
8f8f5f8826
K2: library-tests/methods-mixed-java-and-kotlin: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
584ba80ec7
K2: library-tests/literals: Accept changes
...
Some literals that were negative are now unaryMiunus applied to a
positive literal.
2023-11-17 14:07:15 +00:00
Ian Lynagh
4ad874a089
K2: library-tests/lateinit: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
a3ed965032
K2: library-tests/jvmstatic-annotation: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
2bd18ab41d
K2: library-tests/jvmoverloads_flow: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
713695f8f9
K2: library-tests/jvmoverloads-annotation: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
bb1d5d3c8c
K2: library-tests/java_and_kotlin_internal: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
737e9d8844
K2: library-tests/java-lang-number-conversions: Accept changes
...
With
fun f(b: kotlin.Byte) {
val x = b.describeConstable()
}
and -language-version 1.9 we get
test.kt:2:15: warning: 'describeConstable(): Optional<DynamicConstantDesc<Byte!>!>!' is deprecated. This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version
and with 2.0
test.kt:2:15: error: unresolved reference 'describeConstable'.
2023-11-17 14:07:15 +00:00
Ian Lynagh
02ed6e03e2
K2: library-tests/internal-public-alias: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
0a4ba8e8c7
K2: library-tests/interface-delegate: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
081a4ad021
K2: library-tests/inherited-default-value: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
23d881baa4
K2: library-tests/generics: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
91a48856c5
K2: library-tests/generic-instance-methods: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
b97f4401c0
K2: library-tests/exprs_typeaccess: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
11a664d707
K2: library-tests/dataflow/notnullexpr: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
46e155d327
K2: library-tests/controlflow/dominance: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
5ab2e30ba3
K2: library-tests/controlflow/basic: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
b4534fe9ff
K2: library-tests/classes: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
8099a8c851
K2: library-tests/annotations/jvmName: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
0f9afca2ab
K2: library-tests/annotation_classes: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
2151b6d8c5
K2: library-tests/extensions: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
ad1906e871
K2: library-tests/companion_objects: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
400f892376
K2: library-tests/no-when-branch-found: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
5db6afa84a
K2: library-tests/trap: Accept location changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
da606dd77b
K2: library-tests/underscore-parameters: Accept p0 -> _ parameter name change
2023-11-17 14:07:14 +00:00
Ian Lynagh
fc59b7f3a7
K2: library-tests/generic-inner-classes: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
4fafed2542
K2: library-tests/generic-selective-extraction: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
366b919107
K2: library-tests/methods/methods: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
2b24298d7f
K2: library-tests/methods/parameters: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
7a49d6e9bd
K2: query-tests/UselessNullCheck: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
cb088c3ee1
K2: library-tests/variables: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
3a0c4c4d6f
K2: library-tests/jvmoverloads_generics: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
d52f2e510b
K2: library-tests/lazy-val-multiple-constructors: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
ed8e105452
K2: library-tests/java_and_kotlin: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
f1cfc5d1b8
K2: library-tests/properties: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
e3f4bb84d4
K2: library-tests/modifiers: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
905583e00a
Kotlin: Add a Kotlin 2 copy of the testsuite
2023-11-17 14:07:13 +00:00
Ian Lynagh
e6f31c965e
Kotlin: Add qlpack for the Kotlin 2 tests
2023-11-17 14:07:12 +00:00
Tamás Vajk
b2c8049a77
Merge branch 'main' into docs/insecure-randomness
2023-11-17 13:37:27 +01:00
Yunus AYDIN
9e5a80ac59
update select clause and expected file
2023-11-17 13:37:17 +03:00
Arthur Baars
ff65ffafb0
Merge pull request #14830 from aibaars/csharp/fixintegrationtests
...
C# fix integration tests
2023-11-17 11:17:31 +01:00
Yunus AYDIN
7bf7e59017
update expected file
2023-11-17 13:06:46 +03:00
Michael B. Gale
97402fdf36
C#: Fix dotnet_test_mstest
2023-11-17 10:35:14 +01:00
Michael Nebel
2662a4c651
C#: Fix the dotnet pack integration test.
2023-11-17 10:35:14 +01:00
Ian Lynagh
8a8031df0e
Merge pull request #14814 from igfoo/igfoo/build_ver
...
Kotlin: Build: Refactor version handling
2023-11-17 09:32:06 +00:00
Michael Nebel
b7b10ce549
C#: Address review comments.
2023-11-17 09:47:36 +01:00
Michael Nebel
49b2209c62
C#: Update and more assets unit tests.
2023-11-17 09:39:51 +01:00
Michael Nebel
890cba6e95
C#: Disregard _._ dependencies and only default to use an entire framework in case the compile section is empty.
2023-11-17 09:39:51 +01:00
Michael Nebel
e89fe8ddde
C#: Re-factor the hardcoded package names into a separate class.
2023-11-17 09:39:51 +01:00
Michael Nebel
98dbbe907e
C#: Update unit tests.
2023-11-17 09:39:51 +01:00
Michael Nebel
7b75a30851
C#: Add framework detection to the assets.json parser.
2023-11-17 09:39:51 +01:00
Michael Nebel
20b31d0b4e
Merge pull request #14825 from michaelnebel/csharp/fixintegrationtests
...
C#: Fix integration test failures after dotnet upgrade on runners.
2023-11-17 08:53:42 +01:00
Yunus AYDIN
4f6421946c
update the rule and select clause
2023-11-17 10:49:02 +03:00
Tamas Vajk
9a8ad7d590
C#: Update insecure randomness query description to match implementation
2023-11-17 08:48:38 +01:00
Yunus AYDIN
43f100fd69
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-17 10:40:42 +03:00
Yunus AYDIN
96646abab9
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-17 10:40:32 +03:00
Yunus AYDIN
0091b83258
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-17 10:40:18 +03:00
Yunus AYDIN
8ff38321a3
update rule and expected file
2023-11-17 00:08:01 +03:00
Michael B. Gale
d7760de4c6
C#: Fix dotnet_test_mstest
2023-11-16 19:56:01 +00:00
Michael Nebel
cca78ca190
C#: Fix the dotnet pack integration test.
2023-11-16 19:05:59 +01:00
Arthur Baars
dce03569e5
Merge pull request #14813 from github/release-prep/2.15.3
...
Release preparation for version 2.15.3
2023-11-16 18:42:17 +01:00
Arthur Baars
93eaeaec75
Merge pull request #14816 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-16 18:20:48 +01:00
Paolo Tranquilli
9b840aa20c
Merge pull request #14820 from github/redsun82/rename-cc_binary_add_features
...
Bazel/CMake: small compatibility fix
2023-11-16 17:47:27 +01:00
Shati Patel
8b6a9180dc
Merge pull request #14819 from p-/p--fix-doc-vscode-ext-property
...
Doc: Fix name of VS Code settings property to use extension packs
2023-11-16 16:23:54 +00:00
Stephan Brandauer
cb7213d87a
Merge pull request #14818 from github/kaeluka/application-mode-erase-type-signatures-of-generic-types
...
Java Automodel extraction: fix extracted meta information by using Object for the type of generic parameters
2023-11-16 17:17:47 +01:00
Paolo Tranquilli
9a4b56162e
Bazel/CMake: small compatibility fix
2023-11-16 17:16:14 +01:00
Paolo Tranquilli
f3482684a6
Merge pull request #14805 from github/redsun82/rename-cc_binary_add_features
...
Bazel/CMake: support new internal transition rules
2023-11-16 17:10:40 +01:00
Mathias Vorreiter Pedersen
a10f94af81
Merge pull request #14810 from MathiasVP/fix-ref-deref-duplication
...
C++: Fix dataflow duplication from `ReferenceDereference` expressions
2023-11-16 16:10:07 +00:00
Peter Stöckli
de3d15b277
Doc: Fix name of VS Code settings property to use extension packs
2023-11-16 16:53:12 +01:00
Chris Campbell
114b694553
Remove @precision values, correct missing tags
2023-11-16 15:50:41 +00:00
Taus
216cd88225
Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax
2023-11-16 15:25:06 +00:00
Mathias Vorreiter Pedersen
c5d2866948
Merge pull request #14812 from MathiasVP/no-dtt-in-Integer-overflow-tainted
...
C++: Convert `cpp/integer-overflow-tainted` away from DefaultTaintTracking
2023-11-16 15:24:13 +00:00
Taus
635bcd4fa2
Python: Add change note
2023-11-16 15:14:30 +00:00
Stephan Brandauer
74a195b4f4
Java Automodel extraction: fix extracted meta information by using Object for the type of generic parameters
2023-11-16 16:08:04 +01:00
Ian Lynagh
e9800d11b6
Kotlin: Build: Refactor version handling
...
We now have a proper class to represent versions, rather than using
tuples. The version is passed deeper down, so we can now have
version-dependent compilation flags.
2023-11-16 14:25:41 +00:00
Tom Hvitved
40a07de566
Type tracking: Parameterize consistency checks
2023-11-16 15:23:23 +01:00
Max Schaefer
ca334021ad
Merge pull request #14793 from github/max-schaefer/tainted-path-qhelp
...
Java: Improve QHelp for `java/path-injection` to mention less disruptive fixes.
2023-11-16 14:09:55 +00:00
Stephan Brandauer
69ab389d9f
Merge pull request #14795 from github/kaeluka/skip-this-qualifier-ctor-candidates
...
Java: Automodel Extraction: Remove Qualifier Endpoints of Constructors
2023-11-16 14:54:19 +01:00
Mathias Vorreiter Pedersen
da2215e7e5
C++: Accept test changes.
2023-11-16 13:54:13 +00:00
Mathias Vorreiter Pedersen
30f0b8ab2b
Merge pull request #14808 from jketema/jketema/del-fmt-global
...
C++: Delete `cpp/tainted-format-string-through-global`
2023-11-16 13:44:21 +00:00
github-actions[bot]
6ec9b95072
Release preparation for version 2.15.3
2023-11-16 13:07:16 +00:00
Arthur Baars
641646ac08
Rename change note
2023-11-16 14:04:25 +01:00
Tom Hvitved
b2f1022e5c
Ruby: Prune irrelevant data flow nodes and edges
2023-11-16 13:52:07 +01:00
Tom Hvitved
75f42f4614
Merge pull request #14783 from hvitved/ruby/hash-array-literal
...
Ruby: Include more nodes in `{Hash,Array}LiteralCfgNode`
2023-11-16 13:51:35 +01:00
Henry Mercer
0c1fb8c881
Merge pull request #14811 from github/henrymercer/remove-lines-of-non-user-code-from-summary
...
Remove LoC metrics from the analysis summary
2023-11-16 12:30:55 +00:00
Rasmus Wriedt Larsen
4f9303eb02
Merge pull request #14790 from RasmusWL/clean-tests
...
Python: Accept new ordering of query predicates in `.expected`
2023-11-16 13:23:35 +01:00
Mathias Vorreiter Pedersen
078f223052
C++: Rewrite 'cpp/cpp/integer-overflow-tainted' away from DefaultTaintTracking.
2023-11-16 12:01:38 +00:00
Tom Hvitved
2c23dacca1
Ruby: Add more hash/array literal tests
2023-11-16 12:58:53 +01:00
Max Schaefer
a5e7ef424e
Revert "Add additional example."
...
This reverts commit 947b094387 .
2023-11-16 11:54:16 +00:00
Stephan Brandauer
84e58b77aa
Java Automodel: remove Qualifiers of constructors from endpoints
2023-11-16 12:44:53 +01:00
Stephan Brandauer
3092640115
Java Automodel: make test case for Argument[this] sink candidates in ctors in framework mode
2023-11-16 12:42:50 +01:00
Max Schaefer
143e1680bd
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-16 11:42:35 +00:00
Henry Mercer
de83929a60
Remove LoC metrics from the analysis summary
2023-11-16 11:36:44 +00:00
Stephan Brandauer
d7c97d9d92
Java Automodel: remove constructor instance arguments from endpoints and update test expectations
2023-11-16 12:27:23 +01:00
Stephan Brandauer
30925da7d9
Java Automodel: tests that demonstrate that there is no sink candidate of an object being constructed in app mode
2023-11-16 12:24:41 +01:00
Mathias Vorreiter Pedersen
d25c24b64d
C++: Reduce code duplication by moving shared code into a module.
2023-11-16 10:52:46 +00:00
Mathias Vorreiter Pedersen
5a7cb8f25a
C++: Fix duplication on reference dereference expressions.
2023-11-16 10:52:35 +00:00
Mathias Vorreiter Pedersen
799873113f
C++: Add a test that demonstrates reference dereference duplication.
2023-11-16 10:52:14 +00:00
Mathias Vorreiter Pedersen
f8feb84958
C++: Accept test changes from refactoring QL files.
2023-11-16 10:52:10 +00:00
Mathias Vorreiter Pedersen
6a1504b91c
C++: Slightly refactor test QL files so that we can add a test which tests the nodes being selected.
2023-11-16 10:50:56 +00:00
Stephan Brandauer
f1001374fd
Merge pull request #14642 from github/kaeluka/publish-automodel-querypack-007
...
Java: Publish Automodel query pack 0.0.7
2023-11-16 11:50:32 +01:00
Rasmus Wriedt Larsen
25d3af9236
Merge branch 'main' into clean-tests
2023-11-16 11:21:01 +01:00
Jeroen Ketema
1f3f1b5ec4
Merge pull request #14809 from MathiasVP/move-change-note
...
C++: Move change note
2023-11-16 11:14:14 +01:00
Max Schaefer
947b094387
Add additional example.
2023-11-16 10:06:19 +00:00
Max Schaefer
009d58034f
Address suggestions from review.
2023-11-16 10:05:54 +00:00
Taus
fd750a3bf0
Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax
2023-11-16 09:59:44 +00:00
Mathias Vorreiter Pedersen
5c0fb2030d
C++: Move change note.
2023-11-16 09:57:08 +00:00
Jeroen Ketema
2eb67549e6
C++: Tweak change note slightly
2023-11-16 10:56:47 +01:00
Jeroen Ketema
afe318edbe
C++: Delete cpp/tainted-format-string-through-global
2023-11-16 10:52:05 +01:00
Rasmus Wriedt Larsen
71ef98584d
Merge pull request #14791 from RasmusWL/python-3.12
...
Python: Update `.expected` to support Python 3.12
2023-11-16 10:42:48 +01:00
Tom Hvitved
6bba191407
Merge pull request #14710 from hvitved/type-tracking/prepare-ruby
...
Prepare shared type tracking library for adoption by Ruby
2023-11-16 10:34:32 +01:00
Rasmus Wriedt Larsen
df144f3a1e
Merge pull request #14406 from amammad/amammad-python-FileSystemAccess
...
Python: New FileSystem Access
2023-11-16 10:25:34 +01:00
Geoffrey White
8b628e3ad3
Swift: Change note.
2023-11-16 09:04:52 +00:00
Geoffrey White
c49f05aa2b
Swift: Fix false positive / result overlap.
2023-11-16 09:00:35 +00:00
Geoffrey White
96b4a12af7
Swift: Add heuristic sinks.
2023-11-16 09:00:35 +00:00
Geoffrey White
697c3df74a
Swift: Model C printf variants.
2023-11-16 09:00:34 +00:00
Geoffrey White
1040561ec1
Swift: Model formatting append methods.
2023-11-16 09:00:34 +00:00
Rasmus Wriedt Larsen
a46dc55e84
Merge branch 'main' into python-3.12
2023-11-16 09:34:06 +01:00
Paolo Tranquilli
615a128770
Bazel/CMake: support new internal transition rules
2023-11-16 09:04:58 +01:00
Tamás Vajk
14268f3c63
Merge pull request #14792 from tamasvajk/standalone/assembly-attribute
...
C#: Fix assembly attribute extraction in standalone mode
2023-11-16 08:09:14 +01:00
Sam Browning
408ba517e5
Merge pull request #14776 from github/sabrowning1/queries-panel-language-selector
...
Add content for the queries panel and language selector
2023-11-15 17:30:21 -05:00
Mathias Vorreiter Pedersen
4d4ca6b948
Merge pull request #14794 from MathiasVP/catch-more-return-stack-allocated-memory
...
C++: Catch more returns of stack-allocated memory
2023-11-15 19:23:24 +00:00
Geoffrey White
a6fe620bcb
Swift: Fix Swift warnings in the test.
2023-11-15 18:06:38 +00:00
Geoffrey White
3a38f3b947
Swift: Add test cases.
2023-11-15 18:06:37 +00:00
Geoffrey White
0ae04de7f0
Swift: Test stubs / classes.
2023-11-15 17:23:22 +00:00
Yunus AYDIN
8a24daf293
modify tests and rule
2023-11-15 19:38:16 +03:00
Sam Browning
d443354651
Apply feedback and fix syntax
2023-11-15 11:35:33 -05:00
Ian Lynagh
72af41b196
Kotlin: Prepare for a Kotlin2 copy of the testsuite
2023-11-15 16:14:34 +00:00
Tom Hvitved
57f6859ddc
Shared: Update type tracking consistency checks
2023-11-15 17:08:05 +01:00
Tom Hvitved
5f087f0084
Shared: Port features from Ruby's type tracking library to the shared library
...
- Cache relevant predicates.
- Expose some predicates and classes (only exposed internally).
- Make some top-level `inline_late` predicates member predicates.
- Actually eliminate type check in `flowsTo`.
- Fix bug in `getACompatibleTypeTracker`.
- Adopt the `CallGraphConstruction` module.
2023-11-15 17:08:05 +01:00
Tom Hvitved
f66f7ce8d7
Shared: Split up TypeTracking.qll into two files
2023-11-15 17:07:27 +01:00
Owen Mansel-Chan
64bf6cc62b
Update existing test (extra nodes, no extra alerts)
2023-11-15 15:33:09 +00:00
Owen Mansel-Chan
1ac3a9e8d3
Add change note
2023-11-15 15:12:58 +00:00
Owen Mansel-Chan
e0879969c9
Update tests
2023-11-15 15:08:48 +00:00
Jeroen Ketema
f22979f4b6
Merge pull request #14561 from jketema/rewrite-uncontrolled-process-operation
...
C++: Rewrite `cpp/uncontrolled-process-operation` to not use `DefaultTaintTracking`
2023-11-15 16:03:58 +01:00
Owen Mansel-Chan
aaa8f9c41f
Add read and store steps for SliceElementNode
2023-11-15 14:58:23 +00:00
Owen Mansel-Chan
2b897a9825
Add synthetic SliceElementNode
2023-11-15 14:58:21 +00:00
Owen Mansel-Chan
5af3e119a6
Test value flow through SliceExpr with array content
2023-11-15 14:57:53 +00:00
Geoffrey White
0b82f8a6e6
Swift: Make QL-for-QL happy.
2023-11-15 14:32:07 +00:00
Jeroen Ketema
46e6e72593
C++: Address review comments
2023-11-15 14:57:53 +01:00
Jeroen Ketema
92c18960c5
C++: Rewrite cpp/uncontrolled-process-operation to not use DefaultTaintTracking
2023-11-15 14:57:53 +01:00
Geoffrey White
4afcbb1bc4
Swift: Autoformat.
2023-11-15 13:38:07 +00:00
Rasmus Wriedt Larsen
e349891cff
Python: Apply suggestions from code review
2023-11-15 14:35:52 +01:00
Geoffrey White
3a13759f10
Swift: Clean up the test.
2023-11-15 13:35:18 +00:00
Rasmus Wriedt Larsen
e02c32f3d4
Python: options file was not enough, split into 2/3
...
I reckon this is due to the Python 3 version used by the Python 2 tests
is different from 3.12, so even with --lang=3 the tests are still using
an incompatible version :(
2023-11-15 14:24:11 +01:00
Geoffrey White
17dd119545
Swift: Fix performance.
2023-11-15 13:18:09 +00:00
Yunus AYDIN
7877082869
fix tests code issues and expected file
2023-11-15 16:08:20 +03:00
Alex Denisov
7129ffc199
Swift: add database migration scripts
2023-11-15 14:07:45 +01:00
Alex Denisov
1f5be03137
Swift: add change note
2023-11-15 14:07:45 +01:00
Alex Denisov
423c85377b
Swift: skip MacroExpansionExpr/MacroExpansionDecl
...
They only appear in an intermediate AST and disappear as soon as the
macro is expanded.
The only way to get these in is to construct an "incorrect" AST, e.g.:
```
let x = #does_not_exist() // MacroExpansionExpr
struct S {
#does_not_exist() // MacroExpansionDecl
}
```
2023-11-15 14:07:45 +01:00
Alex Denisov
8b126fe51a
Swift: extract MacroDecl
2023-11-15 14:07:45 +01:00
Yunus AYDIN
1ed4d2ada7
remove database
2023-11-15 15:49:31 +03:00
Yunus AYDIN
1e915720e9
fix the rule issues
2023-11-15 15:49:09 +03:00
Rasmus Wriedt Larsen
0f1dc9b2d9
Python: Add missing options file
2023-11-15 13:24:08 +01:00
Rasmus Wriedt Larsen
ae6c95ff95
Python: Fix asyncio.coroutine deprecation
...
Was removed in 3.11, see https://docs.python.org/3.10/library/asyncio-task.html#asyncio.coroutine
I couldn't make the __awwait__ actually give the result to the agen function...
I also tried looking into
https://docs.python.org/3/library/types.html#types.coroutine , but also
failed to make that work.
Without the Future, such as doing `yield SOURCE` inside `__await__` it
complains `RuntimeError: Task got bad yield: 'source'`
2023-11-15 13:24:08 +01:00
Yunus AYDIN
d5f254781e
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-15 15:11:02 +03:00
Yunus AYDIN
fa1fa0d19d
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-15 15:08:29 +03:00
Yunus AYDIN
74f1344ac5
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-15 15:08:14 +03:00
Mathias Vorreiter Pedersen
bae7e10e46
C++: Also add MSVC-related 'alloca'-like functions.
2023-11-15 12:07:17 +00:00
Mathias Vorreiter Pedersen
ec63099c54
C++: Add change note.
2023-11-15 11:57:09 +00:00
Mathias Vorreiter Pedersen
2b8b5cf1b8
C++: Accept test changes.
2023-11-15 11:52:14 +00:00
Mathias Vorreiter Pedersen
6730f57d5c
C++: Also flag up 'alloca' and friends.
2023-11-15 11:51:57 +00:00
Mathias Vorreiter Pedersen
118d50236f
C++: Add failing tests.
2023-11-15 11:48:37 +00:00
Max Schaefer
a46a7fadb2
Java: Improve QHelp for java/path-injection to mention less disruptive fixes.
2023-11-15 11:25:13 +00:00
Tamas Vajk
7a001f4905
C#: Fix assembly attribute extraction in standalone mode
2023-11-15 12:21:03 +01:00
Owen Mansel-Chan
803ed20962
Merge pull request #14778 from owen-mc/go/improve-value-flow-through-arrays
...
Go: improve value flow through arrays
2023-11-15 11:13:15 +00:00
Rasmus Wriedt Larsen
4256fbf11a
Python: Accept changes from Python 3.12
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
f3dd002ba9
Python: Copy tests to Python 3
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
f9e9ae91f7
Python: Move tests that would change under Python 3.12 to lang specific directory
...
This moves the tests to Python 2, next we copy them to Python 3.
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
23419ee634
Python: Update .expected to support Python 3.12
...
You might wonder why the number of lines changed, but it's due to `tty`
module receiving its' first update since 2001, so the actual number of
lines DID change :phew:
https://github.com/python/cpython/commits/3.12/Lib/tty.py
Since there is now a difference between Python 2 and Python 3, we need to restrict the lines of code test to only run as Python 3.
2023-11-15 11:42:38 +01:00
Mathias Vorreiter Pedersen
b8f0f85840
Merge pull request #14784 from MathiasVP/no-dtt-in-tainted-arithmetic
...
C++: Rewrite `cpp/tainted-arithmetic` away from `DefaultTaintTracking`
2023-11-15 10:19:25 +00:00
Rasmus Wriedt Larsen
69453aa144
Python: Fix missing newline in .expected
2023-11-15 10:10:23 +01:00
Rasmus Wriedt Larsen
55f5b26ba6
Python: Accept new ordering of query predicates in .expected
2023-11-15 10:09:54 +01:00
Rasmus Wriedt Larsen
721bde1ce8
Python: Delete orphaned .expected files
2023-11-15 09:59:26 +01:00
Rasmus Wriedt Larsen
2e9d548083
Merge pull request #14706 from RasmusWL/class-attribute-flow
...
Python: Add basic flow for class attributes
2023-11-15 09:06:25 +01:00
Yunus AYDIN
fdefcd6a84
Merge branch 'main' of github.com:aydinnyunus/codeql
2023-11-15 09:34:06 +03:00
Yunus AYDIN
9178cec0e6
fix test errors
2023-11-15 09:33:52 +03:00
Owen Mansel-Chan
83d1fc33e1
Add change note
2023-11-14 23:16:32 +00:00
Erik Krogh Kristensen
14e51627c5
Merge pull request #14419 from rvermeulen/rvermeulen/javascript-adjust-security-severity
...
JavaScript: Adjust XSS and log injection query severities
2023-11-14 21:34:25 +01:00
Yunus AYDIN
b1702ab87e
Merge branch 'main' into main
2023-11-14 23:17:49 +03:00
Remco Vermeulen
52540b42fc
Merge branch 'main' into rvermeulen/javascript-adjust-security-severity
2023-11-14 11:21:38 -08:00
Remco Vermeulen
6bd7047e41
Restore XssThroughDom.ql's severity
2023-11-14 11:20:51 -08:00
AlexDenisov
57f1f5b829
Merge pull request #14768 from github/alexdenisov/move-semantics
...
Swift: extract AST nodes related to move semantics
2023-11-14 19:13:27 +01:00
Yunus AYDIN
9548a0e8fb
Merge branch 'main' into main
2023-11-14 20:25:28 +03:00
Yunus AYDIN
ba672e5b35
Merge branch 'main' of github.com:aydinnyunus/codeql
2023-11-14 20:20:28 +03:00
Yunus AYDIN
2cea720f6e
remove wcd directory
2023-11-14 20:19:49 +03:00
Yunus AYDIN
dbdf9e1a4f
remove change-notes and fix build error
2023-11-14 20:19:28 +03:00
Mathias Vorreiter Pedersen
bff93c4484
Merge branch 'main' into no-dtt-in-tainted-arithmetic
2023-11-14 17:12:34 +00:00
Geoffrey White
0342b3eba2
Merge pull request #14772 from geoffw0/webview
...
Swift: Use TaintInheritingContent in WebView.qll
2023-11-14 16:29:32 +00:00
Geoffrey White
d28e7920b3
Merge pull request #14773 from geoffw0/fixmodel
...
Swift: Fix odds and ends
2023-11-14 16:28:33 +00:00
Yunus AYDIN
ec7309c735
Merge branch 'main' into main
2023-11-14 19:19:09 +03:00
Tamás Vajk
331ca61be9
Merge pull request #14789 from tamasvajk/autobuild/arm-nuget-restore
...
C#: Do not call nuget.exe on Apple Silicon
2023-11-14 17:13:42 +01:00
Alex Denisov
559b965e74
Swift: add change note
2023-11-14 16:11:28 +01:00
Yunus AYDIN
9f63613cf8
Merge branch 'main' into main
2023-11-14 17:29:57 +03:00
Yunus AYDIN
e576650293
remove qhelp file and add qlref
2023-11-14 17:23:42 +03:00
Felicity Chapman
6299b844f8
Merge pull request #14785 from github/felicitymay-security-severity
...
Update metadata-for-codeql-queries.rst
2023-11-14 14:13:53 +00:00
Sam Browning
4385b316c0
Apply feedback from code review
2023-11-14 09:10:07 -05:00
Sam Browning
b1dc6099ff
Apply feedback from code review
2023-11-14 09:01:54 -05:00
Sam Browning
15099b3db0
Update docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-14 08:57:52 -05:00
Tamas Vajk
8334c6db91
C#: Do not call nuget.exe on Apple Silicon
2023-11-14 14:50:29 +01:00
Alex Denisov
1c75e5b2a6
Swift: add database migration scripts for move semantics
2023-11-14 14:35:58 +01:00
Mathias Vorreiter Pedersen
1623bba18a
Merge branch 'main' into no-dtt-in-tainted-arithmetic
2023-11-14 13:35:15 +00:00
Tom Hvitved
475d8da342
Ruby: Include more nodes in {Hash,Array}LiteralCfgNode
2023-11-14 13:50:46 +01:00
Tom Hvitved
ae09499905
Merge pull request #14781 from hvitved/ruby/ssa-unitialized-to-string
...
Ruby: Include name of variable in `UninitializedDefinition.toString`
2023-11-14 13:49:27 +01:00
Mathias Vorreiter Pedersen
c950e26b3e
C++: Rewrite 'cpp/cpp/tainted-arithmetic' away from DefaultTaintTracking.
2023-11-14 12:19:12 +00:00
Felicity Chapman
f75c062949
Update metadata-for-codeql-queries.rst
...
Replace link to blog with trackable GH.io link
2023-11-14 12:06:44 +00:00
Mathias Vorreiter Pedersen
f22d87b7c7
Merge pull request #14771 from MathiasVP/fix-missing-unbounded-write-results
...
C++: Fix missing results in `cpp/unbounded-write`
2023-11-14 12:03:13 +00:00
Tamás Vajk
e11a68803e
Merge pull request #14782 from github/criemen/disable-int-test
...
Disable the nuget standalone dependencies test on ARM-osx.
2023-11-14 12:32:48 +01:00
Owen Mansel-Chan
45faed057c
Improve SliceExpr documentation
2023-11-14 11:25:16 +00:00
Tom Hvitved
f1b67ade9b
Ruby: Include name of variable in UninitializedDefinition.toString
2023-11-14 11:33:59 +01:00
Cornelius Riemenschneider
f9ae7c5454
Disable the nuget standalone dependencies test on ARM-osx.
...
The test is failing currently, and that needs further investigation.
This is a temporary workaround to allow us to continue to work on
some necessary infrastructure investments around these tests.
2023-11-14 11:13:55 +01:00
Geoffrey White
4bfdb769a0
Swift: Change note.
2023-11-14 10:10:04 +00:00
Geoffrey White
6783707e2c
Swift: Add heuristic sink. We don't catch everything, but the simple heuristic was better than anything else I tried.
2023-11-14 10:07:12 +00:00
Geoffrey White
80cfb934ce
Swift: Add some tests.
2023-11-14 09:52:53 +00:00
Geoffrey White
296dee90dd
Merge remote-tracking branch 'upstream/main' into fixmodel
2023-11-14 09:38:14 +00:00
Mathias Vorreiter Pedersen
967bbbc1a7
C++: Block flow out of sinks that are qualifiers. This removes the new result duplication and keeps the new result.
2023-11-14 09:29:47 +00:00
Tamás Vajk
28a5a1d507
Merge pull request #14760 from tamasvajk/apple-silicon-check
...
C#: Change IsARM to Apple silicon check
2023-11-14 10:27:42 +01:00
Tamas Vajk
5b38ba87df
Code quality improvement
2023-11-14 08:08:46 +01:00
Erik Krogh Kristensen
db42b60015
Merge pull request #14779 from github/dependabot/cargo/ql/tracing-subscriber-0.3.18
...
Bump tracing-subscriber from 0.3.17 to 0.3.18 in /ql
2023-11-14 07:57:55 +01:00
Yunus AYDIN
47ef123601
Fix Pull Requests Problems
2023-11-14 09:26:37 +03:00
dependabot[bot]
f8c8d59cb5
Bump tracing-subscriber from 0.3.17 to 0.3.18 in /ql
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 03:56:51 +00:00
masterofnow
7d774f1a51
Merge branch 'main' into LoadClassNoSignatureCheck
2023-11-14 09:22:30 +08:00
Owen Mansel-Chan
c8779d0d0b
Fix another test
...
No change in alerts, just 3 extra nodes.
2023-11-13 23:56:25 +00:00
Owen Mansel-Chan
28160e418c
Update tests
2023-11-13 23:26:30 +00:00
Owen Mansel-Chan
ed349f7d6b
Improve value flow through arrays
2023-11-13 23:26:16 +00:00
Sam Browning
fa569dcef4
Delete requirements.txt
2023-11-13 17:28:14 -05:00
Sam Browning
040d971588
Merge branch 'main' into sabrowning1/queries-panel-language-selector
2023-11-13 17:27:35 -05:00
Sam Browning
e95bfc816e
Clarify that queries run against selected database
2023-11-13 17:15:41 -05:00
Sam Browning
44935cef63
Tweak for style
2023-11-13 17:08:31 -05:00
Sam Browning
190050f577
Tweak formatting and styling
2023-11-13 16:52:33 -05:00
Yunus AYDIN
bf59c94d24
fix changelog pipeline error
2023-11-14 00:11:27 +03:00
Yunus AYDIN
2f50618e62
Merge branch 'main' of github.com:aydinnyunus/codeql
2023-11-14 00:09:36 +03:00
Yunus AYDIN
5468767fa0
fix changelog pipeline error
2023-11-14 00:09:05 +03:00
Yunus AYDIN
a007d6edb0
Merge branch 'github:main' into main
2023-11-14 00:03:25 +03:00
Yunus AYDIN
1c0aa679a6
Add Changelog for the Pull Request
2023-11-14 00:02:56 +03:00
Sam Browning
458baeff32
Add content on queries panel and language selector
2023-11-13 15:59:51 -05:00
Yunus AYDIN
4317e58414
Add Web Cache Deception QHelp and Example Code Snippet for Vulnerable and Fixed Version
2023-11-13 23:54:29 +03:00
Yunus AYDIN
78a6522190
Rename Folder
2023-11-13 23:40:51 +03:00
Yunus AYDIN
95395322a8
Format Document
2023-11-13 23:39:58 +03:00
Yunus AYDIN
1eb1293230
Add Web Cache Deception Query and Example Code Snippet
2023-11-13 23:35:17 +03:00
Geoffrey White
c14d4042e0
Merge pull request #14748 from geoffw0/pathinjectionsinks
...
Swift: Add more path injection sinks
2023-11-13 20:15:16 +00:00
Geoffrey White
5a451e964d
Swift: Model mainDocumentURL.
2023-11-13 19:51:51 +00:00
Geoffrey White
b157d73c10
Swift: Make the URLRequest test more accurate.
2023-11-13 19:36:03 +00:00
Geoffrey White
985d1990eb
Swift: Fix typo.
2023-11-13 18:55:11 +00:00
Geoffrey White
463096e4be
Swift: Modernize tainted content in WebView.qll.
2023-11-13 18:30:40 +00:00
Geoffrey White
892beeab6d
Swift: Add test case.
2023-11-13 18:25:59 +00:00
Geoffrey White
9ec2f9204b
Swift: Correct components(separatedBy:) models.
2023-11-13 17:43:21 +00:00
Mathias Vorreiter Pedersen
c73e6f1fa8
C++: Accept more test changes.
2023-11-13 16:51:07 +00:00
Mathias Vorreiter Pedersen
9aafbfce13
C++: Fix test annotation.
2023-11-13 16:17:18 +00:00
Mathias Vorreiter Pedersen
cc6268339b
C++: Fix failing test and accept test cases.
2023-11-13 15:57:22 +00:00
Mathias Vorreiter Pedersen
834b07e6ad
C++: Add failing tests.
2023-11-13 15:54:41 +00:00
Mathias Vorreiter Pedersen
8be6aeda3e
Merge pull request #14769 from MathiasVP/fix-nonterminating-test
...
C++: Fix nonterminating test
2023-11-13 15:49:39 +00:00
Owen Mansel-Chan
359dcf37e9
Merge pull request #14649 from Kwstubbs/go-cors
...
Go: Add Cors Gin Support
2023-11-13 15:46:59 +00:00
Mathias Vorreiter Pedersen
eb263e747f
C++: Make sure the test terminates.
2023-11-13 15:25:48 +00:00
Mathias Vorreiter Pedersen
bc576f658e
C++: Add a test that fails because of a non-terminating test that dominates this one.
2023-11-13 15:24:56 +00:00
Taus
cfdeb0edf5
Python: Define getScope and getAChildNode for new nodes
2023-11-13 15:19:54 +00:00
Geoffrey White
6f56a656e4
Merge pull request #14761 from geoffw0/moderntest
...
Swift: Update the inline dataflow tests
2023-11-13 14:59:08 +00:00
Alex Denisov
031f453af8
Swift: CFG for Copy/Consume expressions
2023-11-13 15:55:37 +01:00
Alex Denisov
002f2a0985
Swift: extract BorrowExpr
2023-11-13 15:55:37 +01:00
Alex Denisov
d21e27c717
Swift: extract ConsumeExpr
2023-11-13 15:55:37 +01:00
Alex Denisov
30e4822fb7
Swift: extract CopyExpr
2023-11-13 15:55:37 +01:00
Owen Mansel-Chan
d931ade182
Merge pull request #13366 from maikypedia/maikypedia/go-ldap-improper-auth
...
Go: Add Improper LDAP Authentication query (CWE-287)
2023-11-13 14:48:19 +00:00
Sam Browning
ed9a0ea155
Merge branch 'main' of https://github.com/github/codeql
2023-11-13 08:40:42 -05:00
Geoffrey White
c3577b34d3
Swift: Clean up logic.
2023-11-13 12:37:35 +00:00
Geoffrey White
e4da8da5d9
Swift: Update the example code.
2023-11-13 12:33:20 +00:00
Tamas Vajk
b455b2c1a6
C#: Change IsARM to Apple silicon check
2023-11-13 13:20:13 +01:00
Anders Schack-Mulligen
dc4dda1dbc
Merge pull request #14757 from aschackmull/rangeanalysis/simplify
...
Rangeanalysis: Misc simplifications
2023-11-13 13:16:04 +01:00
Geoffrey White
098ea50068
Swift: Repair non-inline dataflow test.
2023-11-13 12:09:08 +00:00
Geoffrey White
6e291711ac
Swift: Update just enough tests to prove that that source labels are working.
2023-11-13 11:47:24 +00:00
Geoffrey White
fca6ccd2f1
Swift: Remove more unused code.
2023-11-13 11:47:22 +00:00
AlexDenisov
291bb2210c
Merge pull request #14759 from github/alexdenisov/experimental-tuple
...
Swift: mark BuiltinTuple as experimental
2023-11-13 12:24:06 +01:00
Geoffrey White
4bf717c3e4
Swift: Use InlineFlowTest.qll in the data flow inline tests, so that we have less code duplication and can use flow labels.
2023-11-13 11:06:05 +00:00
Geoffrey White
d15c46836b
Swift: Add features tom InlineFlowTest.qll: extended source/sink names, custom flow tags, use of line-numbers as a fallback value.
2023-11-13 10:55:17 +00:00
Alex Denisov
c0fce80b7d
Swift: mark BuiltinTuple as experimental
2023-11-13 11:34:51 +01:00
Cornelius Riemenschneider
1b7e3814b0
Merge pull request #14719 from github/criemen/java-int-tests
...
Java integration tests: More preparations to be executed on GH M1 machines
2023-11-13 11:16:51 +01:00
Rasmus Wriedt Larsen
e1c47f5584
Python: Reorganize taint tests of re
...
Mostly to highlight that with flow-summary modeling, we don't expect
taint for a lot of these.
I aslo opted to make `finditer()` tainted for consistency.
2023-11-13 10:56:29 +01:00
Rasmus Wriedt Larsen
ffc27b5301
Python: Solve problems with missing TTupleElementContent
...
Ruby uses 10 as their number. I considered doing the same, but didn't
really care _too_ much about it 🤷
14cfb82a8c/ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll (L636)
2023-11-13 10:48:51 +01:00
Rasmus Wriedt Larsen
c3fa3f26a7
Python: Fix problems with missing TAttributeContent
2023-11-13 10:46:40 +01:00
Rasmus Wriedt Larsen
943b2a2ed1
Python: Highlight problem with flow summaries and TAttributeContent
2023-11-13 10:42:13 +01:00
Anders Schack-Mulligen
bf6cfd3bef
Rangeanalysis: Simplify api.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
30aefabb2a
Rangeanalysis: Rename predicate.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
f05b75e04f
Rangeanalysis: RIP standard order.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
c28f54a78b
Rangeanalysis: Remove superfluous pragmas. These appear useless after the abolishment of the different delta orders.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
66b03bfb12
Java: Remove unused import
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
71e25521cf
Rangeanalysis: Use SsaReadPositionBlock.getAnSsaRead.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
27e6173bb7
C++: Remove SemSsaExplicitUpdate.getSourceExpr.
2023-11-13 10:35:43 +01:00
Anders Schack-Mulligen
3a73faf061
Rangeanalysis: Remove unused getAlternateType predicates.
2023-11-13 10:35:43 +01:00
AlexDenisov
352ec91a08
Merge pull request #14756 from github/alexdenisov/do-not-extract-non-ast-types
...
Swift: do not extract non-AST types, NFC
2023-11-13 10:35:00 +01:00
Anders Schack-Mulligen
00549e36ed
Merge pull request #14742 from aschackmull/rangeanalysis/share-util-3
...
Java/C++/Rangeanalysis: Share more range analysis utility predicates.
2023-11-13 10:19:41 +01:00
Alex Denisov
b385ddbab1
Swift: do not extract non-AST types
2023-11-13 09:12:22 +01:00
AlexDenisov
f599c6d8a9
Merge pull request #14734 from github/alexdenisov/parameter-packs
...
Swift: extract parameter packs
2023-11-13 08:44:39 +01:00
Paolo Tranquilli
df967ce43f
Merge pull request #14750 from github/alexdenisov/update-wordings
...
Swift: update wordings in a downgrade script
2023-11-13 07:00:39 +01:00
masterofnow
532f6a5b0c
Removed @kind path-problem in comment. Added text message in select.
2023-11-13 08:27:07 +08:00
Maiky
6e533c6284
Import PathGraph
2023-11-12 18:22:14 +01:00
Maiky
2b1b4cd85d
Remove unused LdapConn
2023-11-12 18:18:43 +01:00
Maiky
5280d69500
Change to DataFlow::ConfigSig
2023-11-12 18:17:09 +01:00
Maiky
39ed7876c3
Merge branch 'github:main' into maikypedia/go-ldap-improper-auth
2023-11-12 18:14:05 +01:00
Maiky
882280309f
equalityAsSanitizerGuard and add empty string comment
2023-11-12 17:42:56 +01:00
masterofnow
20592352d0
Updated text in LoadClassNoSignatureCheck.qhelp
2023-11-12 20:48:49 +08:00
masterofnow
fd66f47d82
Added LoadClassNoSignatureCheck.ql
2023-11-12 20:27:49 +08:00
Mathias Vorreiter Pedersen
01a074c146
Merge pull request #14749 from MathiasVP/less-code-duplication
2023-11-10 19:45:56 +00:00
Geoffrey White
d56625cb8b
Swift: Rename the capture test to look more like the others.
2023-11-10 17:59:44 +00:00
Alex Denisov
8f10667ee1
Swift: update wordings in a downgrade script
2023-11-10 18:10:43 +01:00
AlexDenisov
837cdc8301
Merge pull request #14745 from github/alexdenisov/parameter-packs-db-upgrade
...
Swift: parameter packs migration scripts
2023-11-10 18:07:10 +01:00
Jeroen Ketema
3a62628938
Merge pull request #14735 from jketema/strl
...
C++: Add models for `strlcpy` and `strlcat`
2023-11-10 17:51:59 +01:00
Mathias Vorreiter Pedersen
9062fb666a
C++: Move a couple of predicates to 'Node0Impl'.
2023-11-10 16:26:03 +00:00
Jeroen Ketema
b48d483eba
C++: Add change note
2023-11-10 17:25:19 +01:00
Geoffrey White
c327f0f0a7
Merge branch 'main' into pathinjectionsinks
2023-11-10 16:04:56 +00:00
Rasmus Wriedt Larsen
c85d99d949
Merge branch 'main' into re-modeling
2023-11-10 16:32:50 +01:00
Alex Denisov
393aad5935
Swift: downgrade parameter packs
2023-11-10 16:22:09 +01:00
Geoffrey White
8f141cb157
Swift: Change note.
2023-11-10 15:13:51 +00:00
Geoffrey White
5a09a325f2
Swift: Add heuristic path injection sinks.
2023-11-10 15:13:51 +00:00
Mathias Vorreiter Pedersen
18c0bcec0b
Merge pull request #14669 from MathiasVP/no-dtt-in-unbounded-write
...
C++: Rewrite `cpp/unbounded-write` away from `DefaultTaintTracking`
2023-11-10 15:08:42 +00:00
Rasmus Wriedt Larsen
5fc8a00487
Python: Rename test function
2023-11-10 15:58:20 +01:00
Rasmus Wriedt Larsen
b3feb4d7e9
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-11-10 15:57:00 +01:00
Mathias Vorreiter Pedersen
2ceb4cffbc
Merge pull request #14736 from MathiasVP/fix-global-indirect-flow
...
C++: Fix indirect global-variable flow
2023-11-10 14:25:23 +00:00
Anders Schack-Mulligen
0d8986cfad
Java: Accept test changes.
2023-11-10 14:04:45 +01:00
Jeroen Ketema
c71bdce2d0
Merge pull request #14744 from jketema/fgets
...
C++: Fix `hasRemoteFlowSource` for `fgets`
2023-11-10 14:03:40 +01:00
Mathias Vorreiter Pedersen
4f6b6b4a6f
Merge branch 'main' into no-dtt-in-unbounded-write
2023-11-10 12:57:42 +00:00
Jeroen Ketema
617d950a25
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-11-10 13:55:39 +01:00
Tamás Vajk
340b20f93d
Merge pull request #14743 from tamasvajk/standalone/adjust-nuget-test
...
C#: Adjust standalone integration test to not reference mono assemblies
2023-11-10 13:43:54 +01:00
Tom Hvitved
9f0b0733a6
Merge pull request #14589 from hvitved/csharp/fqn-backticks
...
C#: Use `C'X` fully-qualified-name format instead of `C<,...,>`
2023-11-10 13:33:36 +01:00
Jeroen Ketema
1c87875049
C++: Drop the size return value of strlcat from hasTaintFlow
2023-11-10 13:15:57 +01:00
Jeroen Ketema
5e21a5d284
C++: Fix flow for return values of strlcat and strlcpy
2023-11-10 12:28:48 +01:00
Jeroen Ketema
ba51b65d84
C++: Fix hasRemoteFlowSource for fgets
...
Also add the test that exposed this. Note that the test would only have started
failing after `cpp/uncontrolled-process-operation` with the rewrite of the
query away from default taint tracking, which has not happened yet.
2023-11-10 11:56:23 +01:00
Tamas Vajk
334fb1fc95
C#: Adjust standalone integration test to not reference mono assemblies
2023-11-10 11:47:28 +01:00
Alex Denisov
0fb439b54d
Swift: test ElementArchetypeType via PackType
2023-11-10 11:44:45 +01:00
Alex Denisov
e865c3cbd3
Swift: extract parameter packs
2023-11-10 10:20:14 +01:00
Jeroen Ketema
e4c8406365
C++: Split strlcat off in a separate model
2023-11-10 10:11:57 +01:00
Tony Torralba
1f0d9e50c5
Merge pull request #14739 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-11-10 09:25:02 +01:00
Tom Hvitved
ae3d98fd6f
C#: Add change note
2023-11-10 08:57:13 +01:00
Tom Hvitved
57ec0948cf
C#: Update expected test output
2023-11-10 08:46:15 +01:00
Tom Hvitved
2971a20760
C#: Update MaD rows
2023-11-10 08:46:15 +01:00
Tom Hvitved
b72f34591d
C#: Use {get,has}FullyQualifiedName throughout
2023-11-10 08:46:15 +01:00
Tom Hvitved
66dc5501e8
C#: Deprecate {get,has}QualifiedName and replace with {get,has}FullyQualifiedName
2023-11-10 08:46:01 +01:00
Paolo Tranquilli
b611e7cebf
Merge pull request #14715 from github/redsun82/gen-file-docs
...
Swift: add more doc strings to generated things
2023-11-10 07:41:41 +01:00
github-actions[bot]
01a1b4aa50
Add changed framework coverage reports
2023-11-10 00:15:57 +00:00
Maiky
2d387a98ce
Add go.mod
2023-11-10 01:00:01 +01:00
Maiky
78a65a7787
Remove import
2023-11-09 23:35:33 +01:00
Maiky
6d7598115e
Undo changes in modules
2023-11-09 23:26:38 +01:00
Maiky
a7264c2b5c
Requested Changes
2023-11-09 23:17:45 +01:00
Maiky
dc265e7542
Requested Changes
2023-11-09 23:17:15 +01:00
Mathias Vorreiter Pedersen
b858a284c9
Merge pull request #14726 from microsoft/28-strsafe-library-updates2
2023-11-09 21:39:10 +00:00
Cornelius Riemenschneider
246c169540
Merge pull request #14738 from github/criemen/fix-path
...
Take our node, not the one that comes first on the PATH.
2023-11-09 22:20:44 +01:00
Cornelius Riemenschneider
97fd2033f1
Take our node, not the one that comes first on the PATH.
2023-11-09 22:00:00 +01:00
Mathias Vorreiter Pedersen
39b9d2ea83
C++: Accept test changes.
2023-11-09 20:28:55 +00:00
Mathias Vorreiter Pedersen
eb1024c79b
C++: Improve (and simplify) 'toString's.
2023-11-09 20:27:23 +00:00
Mathias Vorreiter Pedersen
86e791980c
C++: Simplify 'isGlobalUse' and 'isGlobalDefImpl'.
2023-11-09 20:27:23 +00:00
Mathias Vorreiter Pedersen
9762313500
C++: Implement jumpStep using the indirection instead of index.
2023-11-09 20:27:23 +00:00
Mathias Vorreiter Pedersen
95bb70f577
C++: Also add a 'getIndirection' on 'GlobalDef' as well. This will be useful in the next commit.
2023-11-09 20:25:29 +00:00
Benjamin Rodes
5e140021fb
Removed non-ascii characters.
2023-11-09 15:24:58 -05:00
Mathias Vorreiter Pedersen
fd26ae18bf
C++: Obtain the SSA variable of a 'GlobalUse' using the indirection instead of the index (like we do for non-global uses as well).
2023-11-09 20:20:27 +00:00
Mathias Vorreiter Pedersen
bb5a78d3f1
C++: Factor the IPA body of 'TGlobalUse' and 'TGlobalDef' out into predicates.
2023-11-09 20:17:47 +00:00
Tamás Vajk
7112409d27
Merge pull request #14723 from tamasvajk/standalone/include-nuget-restored-folders
...
C#: Include all (legacy) nuget restored folders in standalone references
2023-11-09 20:27:44 +01:00
Anders Schack-Mulligen
657c29f409
Java/C++: Share valueFlowStep.
2023-11-09 20:24:28 +01:00
Tom Hvitved
94d08aa443
Merge pull request #14662 from hvitved/csharp/mad-generics
...
C#: Include type parameters in MaD format for generics
2023-11-09 19:46:01 +01:00
Benjamin Rodes
8674139de6
Change log file name change
2023-11-09 13:24:14 -05:00
Geoffrey White
ebf7231be7
Swift: Make the 'completePath' models work.
2023-11-09 18:21:12 +00:00
Geoffrey White
9b5556e245
Swift: Test 'completePath' more carefully.
2023-11-09 18:21:12 +00:00
Geoffrey White
2d313ef4c7
Swift: Add some path injection sink models.
2023-11-09 18:21:12 +00:00
Mathias Vorreiter Pedersen
0963af2ee7
C++: Add failing tests.
2023-11-09 18:01:22 +00:00
Jeroen Ketema
a051a57e00
Update cpp/ql/lib/semmle/code/cpp/models/implementations/Strcat.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-11-09 17:48:45 +01:00
Jeroen Ketema
0b91310357
C++: Add models for strlcpy and strlcat
2023-11-09 17:21:37 +01:00
Anders Schack-Mulligen
b8e7e1d15e
Java/C++: Share ssaUpdateStep.
2023-11-09 16:02:44 +01:00
Anders Schack-Mulligen
daffae020b
Java/C++: Share eqFlowCond.
2023-11-09 16:00:46 +01:00
Anders Schack-Mulligen
cad003a39e
Merge pull request #14732 from aschackmull/cpp/range-ssa
...
C++: Fix operand ssa variables for range analysis.
2023-11-09 15:17:47 +01:00
Chris Smowton
c060827a5d
Merge pull request #14699 from smowton/smowton/feature/jdk21-sequenced-collections-models
...
Java: model JDK21 SequencedCollection, Set and Map
2023-11-09 14:15:08 +00:00
Mathias Vorreiter Pedersen
7048190929
Update cpp/ql/src/Security/CWE/CWE-120/UnboundedWrite.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-11-09 12:39:10 +00:00
Owen Mansel-Chan
e16647fc87
Merge pull request #14731 from owen-mc/docs/dataflow-never-skip
...
Docs: document dataflow `neverSkip` (and expand section on hidden nodes)
2023-11-09 12:08:00 +00:00
Michael Nebel
4cc75c5bd6
Merge pull request #14564 from michaelnebel/csharp/cildefaultfalse
...
C#: Disable CIL extraction by default.
2023-11-09 13:06:54 +01:00
Owen Mansel-Chan
38766c497a
Document neverSkip to show nodes in paths
2023-11-09 11:59:04 +00:00
Geoffrey White
cd147038cd
Swift: Fill some gaps in the URL, NSURL models.
2023-11-09 11:51:18 +00:00
Geoffrey White
a86862d578
Swift: Add test cases (heuristic).
2023-11-09 11:33:10 +00:00
Geoffrey White
04016ebd20
Swift: Add test cases (more library functions).
2023-11-09 11:31:58 +00:00
Geoffrey White
f99df55e94
Swift: Add test stubs.
2023-11-09 11:28:33 +00:00
Anders Schack-Mulligen
abe0bb70ac
C++: Fix operand ssa variables for range analysis.
2023-11-09 12:26:53 +01:00
Paolo Tranquilli
331fbf3251
Merge branch 'main' into redsun82/gen-file-docs
2023-11-09 12:14:10 +01:00
Paolo Tranquilli
dcb2117b31
Swift: tweak generated doc comments
2023-11-09 12:12:07 +01:00
Owen Mansel-Chan
5eaf682b77
Expand documentation of hidden nodes
2023-11-09 10:37:21 +00:00
Tom Hvitved
f58ff6ac6f
C#: Manually update two more MaD rows
2023-11-09 11:25:09 +01:00
Anders Schack-Mulligen
ff6b8c4eb1
Merge pull request #14721 from aschackmull/shared/ssareadpos-share
...
Java/C++/RangeAnalysis: Move SsaReadPosition to shared qlpack.
2023-11-09 11:22:20 +01:00
Tamas Vajk
5c05a4c752
Restore nuget.exe and dotnet restore packages to separate folders
2023-11-09 11:20:00 +01:00
Cornelius Riemenschneider
3dcb039c76
Merge branch 'main' into criemen/java-int-tests
2023-11-09 11:19:04 +01:00
Tamas Vajk
d44d980003
C#: Exclude tools folders in legacy nuget packages
2023-11-09 11:19:02 +01:00
Cornelius Riemenschneider
cfa47a6d8e
Merge pull request #14677 from github/criemen/js-bazel
...
JS: Move the language pack build and tests to Bazel
2023-11-09 11:15:42 +01:00
Chris Smowton
db045e0d9e
Merge pull request #14729 from github/dependabot/go_modules/go/extractor/extractor-dependencies-479a80dd5e
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-11-09 09:40:13 +00:00
Tamas Vajk
fd99e1f6a5
C#: Add test case with nuget package containing tools
2023-11-09 10:33:34 +01:00
Cornelius Riemenschneider
b4ec13235d
Address review.
2023-11-09 09:40:29 +01:00
Tom Hvitved
5ae025f39a
C#: Add change note
2023-11-09 08:45:25 +01:00
Tom Hvitved
76e6f81075
C#: Allow for explicit interface names in MaD consistency check
2023-11-09 08:34:36 +01:00
Tom Hvitved
136adb2df2
C#: Regenerate dotnet/runtime models
2023-11-09 08:34:36 +01:00
Tom Hvitved
f920bc164a
C#: Update model generator to output one file per namespace
2023-11-09 08:34:36 +01:00
Tom Hvitved
7aed6f9233
C#: Manually update some MaD rows
2023-11-09 08:34:36 +01:00
Tom Hvitved
11c113bbd5
C#: Use new format for generics when parsing MaD rows
2023-11-09 08:34:36 +01:00
Tom Hvitved
84773fcde4
C#: Convert existing models using model converter
2023-11-09 08:34:35 +01:00
Tom Hvitved
74f483a6f5
C#: Update model conversion queries
2023-11-09 08:34:35 +01:00
Tom Hvitved
6f4311d656
C#: Include type parameters when printing MaD rows with generics
2023-11-09 08:34:06 +01:00
dependabot[bot]
8a3f29a6bf
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.14.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-09 03:49:54 +00:00
Ben Rodes
79dcb4b48c
Update cpp/ql/lib/change-notes/2023-11-8-strsafe-models.md
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-11-08 12:37:55 -05:00
Benjamin Rodes
bdae2af0e2
Adding missing strsafe sprintf variants.
2023-11-08 12:20:53 -05:00
Benjamin Rodes
c3ff181198
Adding change log
2023-11-08 12:20:04 -05:00
Rasmus Wriedt Larsen
3023d3b8c0
Python: Add change-note
2023-11-08 17:20:05 +01:00
Rasmus Wriedt Larsen
4943fc5a57
Python: Model taint from re.<func> calls
2023-11-08 17:18:40 +01:00
Rasmus Wriedt Larsen
851c30e797
Python: Add taint modeling of re.Match objects
2023-11-08 17:18:09 +01:00
Mathias Vorreiter Pedersen
68e7f84c23
Merge pull request #14661 from geoffw0/commandinject4
...
Swift: Fix defaultImplicitTaintRead on fields
2023-11-08 15:52:18 +00:00
Geoffrey White
6b434d10ce
Merge pull request #14701 from geoffw0/promotecmdline
...
Swift: Promote the command injection query out of experimental
2023-11-08 15:46:29 +00:00
Paolo Tranquilli
e68826bf99
Merge pull request #14261 from github/alexdenisov/upgrade-to-swift-5.9
...
Swift: upgrade to 5.9
2023-11-08 16:15:41 +01:00
Cornelius Riemenschneider
6b37d2009b
Merge branch 'main' into criemen/js-bazel
2023-11-08 16:11:47 +01:00
Mathias Vorreiter Pedersen
38bd893c81
Merge branch 'main' into no-dtt-in-unbounded-write
2023-11-08 15:06:59 +00:00
Rasmus Wriedt Larsen
ea4761d3b6
Python: Add tests of taint-flow for re module
2023-11-08 16:05:22 +01:00
Mathias Vorreiter Pedersen
e90803a81c
C++: Rewrite 'cpp/unbounded-write' away from DefaultTaintTracking.
2023-11-08 14:57:04 +00:00
Cornelius Riemenschneider
512c6a59c5
Merge pull request #14718 from github/criemen/go-ub
...
Restructure go Makefile: Build the per-platform target.
2023-11-08 15:30:57 +01:00
Mathias Vorreiter Pedersen
d8e75e66d7
Merge pull request #14717 from github/alexdenisov/fix-cfg-for-single-value-stmt-expr
...
Swlft: fix CFG for SingleValueStmtExpr
2023-11-08 14:26:00 +00:00
Rasmus Wriedt Larsen
9b0ad8295e
Python: Add test of nested classes
2023-11-08 14:58:40 +01:00
Shati Patel
3586231e7d
Merge pull request #14668 from github/shati-patel/docs-databases
...
VS Code extension docs: Changes to database downloads
2023-11-08 13:55:43 +00:00
Rasmus Wriedt Larsen
9d5cf0b331
Merge branch 'main' into class-attribute-flow
2023-11-08 14:30:53 +01:00
Rasmus Wriedt Larsen
6d4e000c7c
Merge pull request #14590 from RasmusWL/fix-dataflow-class-scope
...
Python: Fix dataflow consistency error due to missing class scope
2023-11-08 14:30:34 +01:00
Rasmus Wriedt Larsen
43d9d2ceb7
Merge pull request #14603 from github/max-schaefer/broken-crypto-algorithm-link
...
JavaScript/Python/Ruby: Improve alert message for `*/weak-cryptographic-algorithm`.
2023-11-08 14:29:24 +01:00
amammad
c361caf0b0
fix tests for FileSystemAccess, add comments for adding some functions in future, remove old comments
2023-11-08 14:15:26 +01:00
Anders Schack-Mulligen
f9132c5ff0
Java: Duplicate a bit more code to postpone Java-C# cleanup.
2023-11-08 14:04:34 +01:00
Tamas Vajk
2273bb13b8
C#: Include all (legacy) nuget restored folders in standalone references
2023-11-08 14:02:41 +01:00
Tamas Vajk
b782e5bf44
C#: Add test case with legacy nuget restore
2023-11-08 14:01:10 +01:00
Tamás Vajk
4ae35d179e
Merge pull request #14707 from tamasvajk/standalone/framework-nuget-1
...
C#: Keep only one framework reference nuget package in standalone
2023-11-08 12:52:52 +01:00
Alex Denisov
d510739ca2
Swift: add 5.9 chagenote
2023-11-08 12:20:33 +01:00
Anders Schack-Mulligen
1f4cd74a1c
Java/C++: Move SsaReadPosition to shared qlpack.
2023-11-08 12:11:17 +01:00
Michael Nebel
795e32c681
Merge pull request #14693 from michaelnebel/csharp/fixcompilerwarning
...
C#: Fix compiler warning of possible null de-reference.
2023-11-08 12:04:41 +01:00
Michael Nebel
b1c3915fd9
Merge pull request #14712 from michaelnebel/csharp/tracerdotnettest
...
C#: Tracer improvement for `dotnet test`
2023-11-08 12:03:19 +01:00
Geoffrey White
d78a7b9d94
Swift: Add credit to change note.
2023-11-08 10:46:57 +00:00
Michael Nebel
0cf00ebb5d
C#: Re-introduce null check in cached entity hash code calculation.
2023-11-08 10:59:06 +01:00
Cornelius Riemenschneider
f12310cb86
The java-version-too-old relies on a Java 8 installation.
...
We don't have a Java 8 build on the M1 machines, therefore skip this test.
2023-11-08 10:36:47 +01:00
Cornelius Riemenschneider
137403f649
Java: Move more tests to use the try_use_java11() helper.
...
This is in preparation of executing these tests on GH-hosted M1 runners,
where we need to have architecture-specific path handling.
It's nicer to fix all of this in one place (the helper), than to run around
fixing individual tests.
2023-11-08 10:33:50 +01:00
Mathias Vorreiter Pedersen
ab64d9a9d6
Merge pull request #14713 from MathiasVP/no-gvn-as-ssa-in-range-analysis
...
C++: Don't use GVN as SSAVariable in new range analysis
2023-11-08 09:28:15 +00:00
Michael Nebel
69e8621062
C#: Fix compiler warning of possible null de-reference.
2023-11-08 10:21:26 +01:00
Paolo Tranquilli
ac838d72de
Codegen: mark all generated files and classes as INTERNAL
2023-11-08 10:02:17 +01:00
Paolo Tranquilli
b7543f5dc7
Codegen: pass ql_internal to Stub
2023-11-08 09:54:21 +01:00
Michael Nebel
cd4a546763
C#: Add CIL extraction change note.
2023-11-08 09:40:01 +01:00
Michael Nebel
8f23ba83be
C#: Update Options unit tests to reflect the new default.
2023-11-08 09:40:01 +01:00
Michael Nebel
9b56e83745
C#: Set CIL extraction default to false.
2023-11-08 09:40:01 +01:00
Tony Torralba
5442cdb49c
Merge pull request #14610 from atorralba/atorralba/java/jms-deserialization
...
Java: Add JMS sink to java/unsafe-deserialization
2023-11-08 09:10:20 +01:00
Erik Krogh Kristensen
f643fd7d74
Merge pull request #14716 from erik-krogh/invalid-main
...
JS: catch when the main: path is invalid on Windows
2023-11-08 08:33:58 +01:00
Anders Schack-Mulligen
45ae4ed362
Merge pull request #14711 from aschackmull/shared/rangeutil-share2
...
Java/C++/RangeAnalysis: Move a couple of utility predicates to shared qlpack
2023-11-08 08:33:12 +01:00
Mathias Vorreiter Pedersen
a8eed6bd7e
Merge pull request #14704 from MathiasVP/fix-uninitialized-local
...
C++: IR'ify `cpp/uninitialized-local` and fix FPs
2023-11-07 22:45:34 +00:00
Cornelius Riemenschneider
3f95dd6916
Restructure go Makefile: Build the per-platform target.
...
This changes the default build target we use to build the go extractor
to use th per-platform targets (requires internal change to follow up).
This also builds the macos target as universal binary.
2023-11-07 20:21:10 +01:00
Geoffrey White
b63294764b
Merge pull request #14705 from geoffw0/qhelplink
...
Fix a dead ReDoS link in docs
2023-11-07 17:40:19 +00:00
Mathias Vorreiter Pedersen
69502d0c31
C++: Add some more tests.
2023-11-07 17:31:01 +00:00
Alex Denisov
12f9e3a1dd
Swlft: fix CFG for SingleValueStmtExpr
2023-11-07 18:12:39 +01:00
erik-krogh
ae577d1e44
catch when the main: path is invalid on Windows
2023-11-07 17:42:21 +01:00
Alex Denisov
dd20a9b009
Swlft: fix wording in the comment
2023-11-07 17:28:37 +01:00
Alex Denisov
df256e601a
Swlft: add explicit SingleValueStmtExpr test
2023-11-07 17:26:44 +01:00
Mathias Vorreiter Pedersen
5a9867c5b0
Merge pull request #14714 from MathiasVP/geoffw0-follow-up-comment
...
C++: Add comment to testcase
2023-11-07 15:33:15 +00:00
Paolo Tranquilli
10afa4381a
Swift: add more doc strings to generated things
2023-11-07 16:29:03 +01:00
Mathias Vorreiter Pedersen
1c8f474848
C++: Add comment as suggested in the PR review for #14708 .
2023-11-07 15:16:38 +00:00
Mathias Vorreiter Pedersen
2787f0a0fc
Merge pull request #14708 from MathiasVP/add-testcase-for-range-analysis
...
C++: Add range analysis testcase
2023-11-07 15:15:45 +00:00
Mathias Vorreiter Pedersen
2d43eec3c3
C++: Accept test changes.
2023-11-07 14:57:30 +00:00
Mathias Vorreiter Pedersen
91b29eee53
C++: Don't use GVN as an SSAVariable in range analysis.
2023-11-07 14:52:50 +00:00
Mathias Vorreiter Pedersen
a04830b8b2
Merge pull request #14697 from MathiasVP/range-analysis-simplify-conversions
...
C++: Simplify the definition of `SemExpr` for range analysis
2023-11-07 14:52:09 +00:00
Rasmus Wriedt Larsen
5433907c33
Python: Accept more test changes
...
All are for the better 🎉
2023-11-07 15:49:14 +01:00
Michael Nebel
21cb4909cf
C#: Add integration test.
2023-11-07 15:26:55 +01:00
Anders Schack-Mulligen
12cba7909b
Java/C++: Move range util guard-controls predicates to shared pack.
2023-11-07 15:14:34 +01:00
Anders Schack-Mulligen
f2ca52d951
Java/C++: Move range util backEdge predicate to shared pack.
2023-11-07 15:14:34 +01:00
Tom Hvitved
b2512eb212
Merge pull request #14678 from hvitved/csharp/mad-operator-fix
...
C#: Correctly parse operator names in MaD
2023-11-07 15:11:01 +01:00
Rasmus Wriedt Larsen
dc8ca70ab5
Merge pull request #14694 from RasmusWL/python-validtest-success
...
Python: Misc: show that all tests passed in validTest
2023-11-07 14:56:57 +01:00
Michael Nebel
7ea8f88d47
C#: Allow exe and dll files for dotnet test to start with any character.
2023-11-07 14:52:37 +01:00
Cornelius Riemenschneider
9c8e2321be
Merge branch 'main' into criemen/js-bazel
2023-11-07 14:36:45 +01:00
Cornelius Riemenschneider
697a7b8a60
Merge pull request #14702 from github/criemen/java-int-test
...
Java: Make integration test more robust wrt recent Java versions.
2023-11-07 14:00:40 +01:00
Alex Denisov
2b7ce23653
Swlft: add database upgrade scripts
2023-11-07 13:40:42 +01:00
Alex Denisov
33de177fea
Swift: extract SingleValueStmtExpr
2023-11-07 13:40:35 +01:00
Alex Denisov
bbde709b3f
Swift: upgrade to 5.9.1
2023-11-07 13:40:28 +01:00
Tamas Vajk
a70d9691da
C#: Add standalone test with multiple targets
2023-11-07 13:39:43 +01:00
Tom Hvitved
af7b295c59
Address review comments
2023-11-07 13:01:19 +01:00
Mathias Vorreiter Pedersen
9dca6697fb
C++: Add a testcase that fails to terminate in modulus analysis when we don't have IR operands as SSA variables.
2023-11-07 11:52:35 +00:00
Tamas Vajk
0f31fc7cbe
C#: Keep only one framework reference nuget package in standalone
2023-11-07 12:12:59 +01:00
Rasmus Wriedt Larsen
5220a8d3f8
Update python/ql/test/experimental/dataflow/validTest.py
...
Co-authored-by: Taus <tausbn@github.com >
2023-11-07 11:30:13 +01:00
Rasmus Wriedt Larsen
9f43108ba8
Python: Fix DataFlowCall.getEnclosingCallable
...
Now it is aligned with the implementation of DataFlow::Node
See 4bc4e0845d/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll (L134-L138)
2023-11-07 11:29:23 +01:00
Rasmus Wriedt Larsen
904a8b1ea9
Python: Add consistency tests for class scope
2023-11-07 11:29:23 +01:00
Rasmus Wriedt Larsen
5bee44dcfe
Python: add change-note
2023-11-07 11:27:11 +01:00
Rasmus Wriedt Larsen
6568332e3d
Python: Add basic flow for class attributes
2023-11-07 11:23:42 +01:00
Rasmus Wriedt Larsen
6c50c2bfe6
Python: Highlight missing flow for class attributes
2023-11-07 11:23:42 +01:00
Cornelius Riemenschneider
ccaa792343
Address on-slack review.
2023-11-07 11:07:37 +01:00
Mathias Vorreiter Pedersen
6669cf805f
C++: Add change note.
2023-11-07 09:32:07 +00:00
Mathias Vorreiter Pedersen
0fd4d4a114
C++: Add QLDoc.
2023-11-07 09:29:34 +00:00
Geoffrey White
e8a466a02c
Update dead link.
2023-11-07 09:26:07 +00:00
Mathias Vorreiter Pedersen
022c9eb3cd
C++: Add a barrier feature to 'MustFlow'.
2023-11-07 09:23:42 +00:00
Mathias Vorreiter Pedersen
6bf2d47321
C++: Allow source = sink in 'MustFlow'.
2023-11-07 09:23:42 +00:00
Mathias Vorreiter Pedersen
1dc08941f8
C++: Use 'MustFlow' in 'cpp/uninitialized-local'.
2023-11-07 09:23:41 +00:00
AlexDenisov
a0e73eaab0
Merge pull request #14696 from github/alexdenisov/force-canonical-types
...
Swlft: force canonical type computation before using the type
2023-11-07 10:23:16 +01:00
Mathias Vorreiter Pedersen
a17cd9bc1c
Merge pull request #14667 from MathiasVP/more-function-input-and-output-ipa-numbers
...
C++: Allocate more `FunctionInput` and `FunctionOutput`s
2023-11-07 08:57:31 +00:00
Geoffrey White
4ce8d953d2
Merge pull request #14698 from geoffw0/realmswift
...
Swift: Fix an issue with Realm sinks for swift/cleartext-storage-database
2023-11-07 08:37:27 +00:00
amammad
f58462bee9
fix tests
2023-11-07 06:32:15 +01:00
Cornelius Riemenschneider
cff9bcfabc
Revert "Revert "Java: Make integration test more robust wrt recent Java versions.""
...
This reverts commit 4e70e674fd .
2023-11-06 23:29:33 +01:00
Cornelius Riemenschneider
4e70e674fd
Revert "Java: Make integration test more robust wrt recent Java versions."
...
This reverts commit ae21bbf0b2 .
2023-11-06 23:26:21 +01:00
Cornelius Riemenschneider
ae21bbf0b2
Java: Make integration test more robust wrt recent Java versions.
...
I've been investigating moving the Java integration tests to a
GH-hosted macos runner, instead of a self-hosted one.
This test is not compatible with a GH-hosted runners Java setup.
It is also not compatible to being exposed to JAVA_21_HOME_X64 variable yet.
This PR fixes both issues.
2023-11-06 23:22:05 +01:00
Jorge
b08d57a85f
Add {{! to TEMPLATE_EXPR_OPENING_TAG
2023-11-06 20:40:00 +00:00
Geoffrey White
3465c34cb6
Merge pull request #14680 from geoffw0/dataclosure
...
Swift: Generalize flow through subscript writes / test and fix some closure methods of Data
2023-11-06 19:39:08 +00:00
amammad
e8eff78799
fix tests because of error in Frameworks.qll
2023-11-06 19:19:36 +01:00
amammad
ad756d59c8
put new frameworks in Frameworks.qll and fix some mistakes of Baize
2023-11-06 19:17:50 +01:00
amammad
315bdc2b48
add tests for new frameworks
2023-11-06 19:13:57 +01:00
amammad
637c52d10a
separate each new FileSystemAccess packages.
2023-11-06 19:03:55 +01:00
Geoffrey White
c85bdcd5ab
Swift: Change note.
2023-11-06 17:36:58 +00:00
Mathias Vorreiter Pedersen
4455ed982d
C++: Accept query test changes.
2023-11-06 17:33:46 +00:00
Geoffrey White
1c6a4b8cbf
Swift: Update the test .qlref.
2023-11-06 17:32:25 +00:00
Mathias Vorreiter Pedersen
84594e66bc
Merge pull request #14682 from geoffw0/filepathclosure
...
Swift: Correct a couple of FilePath models.
2023-11-06 17:31:17 +00:00
Geoffrey White
127f819762
Swift: Move command injection query out from experimental.
2023-11-06 17:23:28 +00:00
Ian Lynagh
e0c89a700f
Merge pull request #14695 from igfoo/igfoo/order
...
Docs: Put lists in supported-frameworks.rst in more alphabetical order
2023-11-06 17:00:39 +00:00
Cornelius Riemenschneider
be02512dfe
Add a build system for the junit tests.
...
This is a bit more complicated than our usual setup, as we both need to
unzip the typescript parser wrapper, and make node accessible on the path.
2023-11-06 17:58:28 +01:00
Chris Smowton
24b4b05be8
Add models for new Collections methods
2023-11-06 16:44:40 +00:00
Chris Smowton
d30d71e048
Add change note
2023-11-06 16:38:44 +00:00
Geoffrey White
426bdc0011
Swift: Add test cases. Before the changes, we don't catch the cases for return values from the closures.
2023-11-06 16:32:23 +00:00
Mathias Vorreiter Pedersen
d38fa13299
C++: Remove more uses of 'getConverted' and 'getUnconverted'.
2023-11-06 16:11:55 +00:00
Chris Smowton
5b72aee3ae
Java: model JDK21 SequencedCollection, Set and Map
2023-11-06 16:04:13 +00:00
Mathias Vorreiter Pedersen
e91987b1a9
C++: Accept test changes.
2023-11-06 16:02:06 +00:00
Mathias Vorreiter Pedersen
d544f47746
C++: Simplify the definition of 'SemExpr' by instead making non-overflowing conversions copy value expressions.
2023-11-06 16:01:59 +00:00
Geoffrey White
e4f6b1ac27
Swift: Change note.
2023-11-06 16:00:22 +00:00
Geoffrey White
77e48f72ec
Swift: Detect Realm sinks more reliably.
2023-11-06 15:54:17 +00:00
Geoffrey White
9ec5e6e35e
Swift: Re-organize the RealmStore constructor.
2023-11-06 15:54:17 +00:00
Geoffrey White
424046d238
Swift: Add test case.
2023-11-06 15:54:17 +00:00
Alex Denisov
80c4b7357a
Swlft: force canonical type computation before using the type
...
`getCanonicalType` will force computation of the canonical type.
Without canonical type computed. `getString` may cause crashes in
certain cases.
2023-11-06 16:53:38 +01:00
Mathias Vorreiter Pedersen
31c2a3be98
C++: Don't redefine the meaning of the single-parameter 'isParameterDeref' and accept test changes.
2023-11-06 15:52:58 +00:00
Ian Lynagh
decbaa9dc7
Docs: Put lists in supported-frameworks.rst in more alphabetical order
...
They were almost alphabetical, but not quite.
Python was ordered by category first, and by name within each catogory.
I've left it like that, but it would probably be better to be
consistent between languages, one way or the other.
2023-11-06 15:49:16 +00:00
Michael Nebel
3f0be47c7b
Merge pull request #14655 from michaelnebel/csharp/projectassetspackages
...
C#: Use `project.assets.json` for package dependencies.
2023-11-06 16:26:38 +01:00
amammad
36f0a78450
fix typeorm test.ts according to Review
2023-11-06 16:23:35 +01:00
Robert Marsh
49428c4585
Merge pull request #14683 from geoffw0/nsstringclosure
...
Swift: Model NSString.enumerate*
2023-11-06 10:19:25 -05:00
Rasmus Wriedt Larsen
43f1d092f1
Python: Misc: show that all tests passed in validTest
2023-11-06 16:04:58 +01:00
Tom Hvitved
d86293f9b4
Merge pull request #14690 from hvitved/csharp/gvn-unbound-type
2023-11-06 15:30:53 +01:00
amammad
d7f1e19d40
fix sqlite.js test according to Review
2023-11-06 15:22:36 +01:00
amammad
cc5dd3180a
fix better-sqlite3 tests according to Review
2023-11-06 15:18:55 +01:00
amammad
c858e4974d
fix Sqlite and BetterSqlite3 issues according to Review
2023-11-06 14:57:40 +01:00
Mathias Vorreiter Pedersen
ff30308a2b
C++: Only the first indirection of the argument should be the remote flow sink.
2023-11-06 13:57:14 +00:00
Taus
75e6de8311
Python: Add test
2023-11-06 13:50:55 +00:00
Taus
f67c68da9a
Python: Make TypeParameter extend AstNode
...
With `AstNode` defined as a union of other classes, we don't get this for free.
(Compare with `DictItem`, which is in a similar situation.)
2023-11-06 13:50:55 +00:00
Taus
878299823c
Python: Add up-/downgrade scripts
...
In the upgrade direction, we simply do nothing.
In the downgrade direction, we remove the two new relations, and
also any `Stmt` nodes corresponding to `TypeAlias` nodes.
2023-11-06 13:50:55 +00:00
Taus
9cd1e0e546
Python: Add stats for new relations
2023-11-06 13:50:55 +00:00
Taus
e8209a6a10
Python: Fix missing override compilation error
2023-11-06 13:50:55 +00:00
Taus
2e77b8d3c2
Python: Add wrapper classes around the newly added AST nodes
2023-11-06 13:50:55 +00:00
Taus
c397f707a1
Python: Add automatically generated files
...
For these, I opted for a placement that would cause as few changes to the
dbscheme as possible. This puts the new `type_parameters` fields as the
last field on function and class definitions.
2023-11-06 13:50:55 +00:00
Tom Hvitved
4b9430d59e
Merge pull request #14688 from hvitved/csharp/deprecate-get-instance-type
...
C#: Deprecate `UnboundGenericType::getInstanceType/0`
2023-11-06 14:32:54 +01:00
Mathias Vorreiter Pedersen
cd2eec0aa0
C++: Also override the single-parameter 'isParameterDeref' in 'InParameterDeref'.
2023-11-06 13:23:31 +00:00
Cornelius Riemenschneider
52fcc5f435
Export test data directories.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
63854e36b4
Use the TestPaths helper to lookup files.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
a773532d07
Refactor JS test suite to be more in line with other Java projects.
...
Therefore, we move the test suite out of the `src` directory.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
6c7ea86a12
Introduce a bazel-based build for the entire JS pack.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
465eb00228
More fine-grained dependency on internal extractors.
2023-11-06 13:44:28 +01:00
Arthur Baars
01e7d57dba
Add changenote
2023-11-06 13:38:33 +01:00
Arthur Baars
7f4bcdfa64
Rename test files
2023-11-06 13:38:33 +01:00
Arthur Baars
eecf32db4d
Add tests for deprecated 'assert' syntax
2023-11-06 13:38:33 +01:00
Arthur Baars
4192d09e5c
Add tests for deprecated 'assert' syntax
2023-11-06 13:38:33 +01:00
Arthur Baars
b4d89f7554
Replace 'assert' with 'with' in QL test files
2023-11-06 13:38:33 +01:00
Arthur Baars
3d45944649
Rename 'assertions' to 'attributes' in JS extractor
2023-11-06 13:38:32 +01:00
Arthur Baars
bd62ec294e
Support TS 5.3 import attributes (previously import assertions)
2023-11-06 13:38:32 +01:00
Arthur Baars
1067dd9dd3
Auto-format
2023-11-06 13:38:32 +01:00
Arthur Baars
ec075f8fbe
Upgrade typescript to 5.3.1-rc
2023-11-06 13:38:24 +01:00
Geoffrey White
b926090f0d
Swift: Simplify AdoptsWkNavigationDelegate in WebView.qll.
2023-11-06 12:29:32 +00:00
Rasmus Wriedt Larsen
f6ae7523b5
Merge pull request #14591 from RasmusWL/minor-stringpool-improvement
...
Python: Minor cleanup for string pool interaction
2023-11-06 13:13:27 +01:00
Tom Hvitved
12cd1c1011
C#: Deprecate UnboundGenericType::getInstanceType/0
2023-11-06 13:01:57 +01:00
Geoffrey White
4e214e1c7c
Merge pull request #14691 from geoffw0/webview2
...
Swift: Add a webview test case
2023-11-06 11:08:09 +00:00
shati-patel
68da5e2bbe
Fix some names + a spurious quotation mark
2023-11-06 10:56:03 +00:00
Rasmus Wriedt Larsen
92b13c4259
Merge branch 'main' into amammad-python-FileSystemAccess
2023-11-06 11:30:09 +01:00
Rasmus Wriedt Larsen
3d8a7e0ee3
Python: Add change-note
2023-11-06 11:29:52 +01:00
Chris Smowton
c6193ebc0c
Merge pull request #14687 from github/dependabot/go_modules/go/extractor/extractor-dependencies-a562808574
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-11-06 10:05:44 +00:00
amammad
b8c800608e
add an extended Class of string for FlowState
2023-11-06 11:01:01 +01:00
amammad
7af4b8de7b
fix isBarrier according to code review
2023-11-06 10:58:00 +01:00
amammad
e421c49440
fix multipart mistake :(
2023-11-06 10:53:52 +01:00
Geoffrey White
838a00bbc9
Swift: Add a webview test case from a branch that didn't make it.
2023-11-06 09:44:53 +00:00
amammad
0d670f81fb
fix type assertion errors and create more source()s for better tests
2023-11-06 10:39:30 +01:00
amammad
ea40081204
Merge branch 'amammad-go-fastHttp' of https://github.com/amammad/codeql into amammad-go-fastHttp
2023-11-06 10:38:18 +01:00
Erik Krogh Kristensen
2abdf7dbbd
Merge pull request #14686 from erik-krogh/delete-yarn
...
JS: remove the remaining yarn files
2023-11-06 10:37:06 +01:00
Tom Hvitved
602d16d73f
C#: Add another data flow test
2023-11-06 10:18:32 +01:00
Geoffrey White
b99e44c3ca
Swift: Fix the Data test.
2023-11-06 09:18:27 +00:00
Michael Nebel
4bcf9e50a0
C#: Address review comments.
2023-11-06 10:02:53 +01:00
Tom Hvitved
467854ba4b
C#: Convert a data flow test to use inline test expectations
2023-11-06 09:54:34 +01:00
Kevin Stubbings
57c645bd24
Added support for same struct and added new test
2023-11-05 22:34:35 -08:00
dependabot[bot]
2d9ff85753
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
- [Commits](https://github.com/golang/mod/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-06 03:19:42 +00:00
Kevin Stubbings
1f2e8d898d
Address Feedback
2023-11-05 14:28:34 -08:00
Tom Hvitved
3e3ea51e69
C#: Correctly parse operator names in MaD
2023-11-05 20:58:47 +01:00
Tom Hvitved
2a33a86c9d
C#: Merge ExternalFlow.qll and ExternalFlowExtensions.qll, and move to internal
2023-11-05 20:58:47 +01:00
Tom Hvitved
aa521ecd59
C#: Include more libraries in flow summaries test
2023-11-05 20:23:10 +01:00
erik-krogh
abcb5a7a95
remove the remaining yarn files
2023-11-05 19:24:59 +01:00
amammad
2624f365c3
update inline flow tests of AddittionalTaintSteps
2023-11-05 17:49:32 +03:30
amammad
88e75a6ec8
add flow summary instead of additional flow steps
2023-11-05 17:49:32 +03:30
amammad
23f7f9a24a
fix some grammer mistakes, an unnecessary import, put blank like after go generate
2023-11-05 17:49:32 +03:30
amammad
2f86c2588b
fix autoformatting
2023-11-05 17:49:32 +03:30
amammad
56bcbf3a41
add additional taint steps to SSRF query
2023-11-05 17:49:32 +03:30
amammad
e38cb0f36e
fix a issue in fasthttp library, add SSRF inline queires
2023-11-05 17:49:32 +03:30
amammad
7bc07d959b
add additional taint steps inline tests
2023-11-05 17:49:32 +03:30
amammad
3bc24c3534
add inline tests for open redirect,xss, fix some issues in fasthttp.qll
2023-11-05 17:49:32 +03:30
amammad
29219922ac
add inline tests for UntrustedFlowSource, and fix some not necessarily flow sources
2023-11-05 17:49:32 +03:30
amammad
defe964f3a
update tests
2023-11-05 17:49:32 +03:30
amammad
5232d28617
fix a mistake: replaces tests after gofmt
2023-11-05 17:49:32 +03:30
amammad
c6acb1012c
perfomed gofmt on fasthttp.go
2023-11-05 17:49:32 +03:30
amammad
1ff1c5cfe0
fix two bugs, make package path more neat
2023-11-05 17:49:32 +03:30
amammad
345fdf12e5
added the go generate commands for depstubber
2023-11-05 17:49:32 +03:30
amammad
2048d8945b
fix qldoc and tests
2023-11-05 17:49:32 +03:30
amammad
8aba71f678
upgrade tests
2023-11-05 17:49:32 +03:30
amammad
1c657a62c1
fix stub
2023-11-05 17:49:32 +03:30
amammad
de391ffa4d
fix qlDOC one missed mistake
2023-11-05 17:49:32 +03:30
amammad
b7ef215504
fix change notes
2023-11-05 17:49:32 +03:30
amammad
693539a604
fix qhelps
2023-11-05 17:49:32 +03:30
amammad
2ac906395f
fix tests
2023-11-05 17:49:32 +03:30
amammad
1fc7758dfb
add change note
2023-11-05 17:49:32 +03:30
amammad
80e5fb81bc
fix library-tests
2023-11-05 17:49:32 +03:30
amammad
2ee2ac383d
fix some mistakes:(
2023-11-05 17:49:32 +03:30
amammad
377d1f55be
add proper test cases
2023-11-05 17:49:32 +03:30
amammad
543684904f
fix go.mod
2023-11-05 17:49:32 +03:30
amammad
c25bb3cde0
remove tmp test
2023-11-05 17:49:32 +03:30
amammad
3226184547
add tests
2023-11-05 17:49:32 +03:30
amammad
cddd27c5f8
V1
2023-11-05 17:49:32 +03:30
amammad
d1926f9061
update inline flow tests of AddittionalTaintSteps
2023-11-05 15:17:06 +01:00
Geoffrey White
e621d208e4
Merge branch 'main' into nsstringclosure
2023-11-03 20:54:53 +00:00
Geoffrey White
55ec27f47f
Merge branch 'main' into filepathclosure
2023-11-03 20:54:16 +00:00
Geoffrey White
e90b630c9b
Merge branch 'main' into dataclosure
2023-11-03 20:50:20 +00:00
Geoffrey White
c6bc1a3f3a
Merge pull request #14684 from geoffw0/testsfix
...
Swift: Fix failing tests
2023-11-03 19:24:03 +00:00
Geoffrey White
07eba4e3b1
Swift: Fix some failing tests, looks like this could be the result of some recently merged PRs interacting (positively!)
2023-11-03 17:08:05 +00:00
Geoffrey White
041dc19055
Swift: Change note.
2023-11-03 16:22:46 +00:00
Geoffrey White
989a546796
Swift: Model the NSString.enumerate* methods.
2023-11-03 16:22:45 +00:00
Geoffrey White
d0ca7045d4
Swift: Fix some NSString models.
2023-11-03 16:07:34 +00:00
Geoffrey White
a59ed5bc49
Swift: Add test cases.
2023-11-03 15:45:45 +00:00
Geoffrey White
06191922c3
Swift: Correct a couple of FilePath models.
2023-11-03 15:12:31 +00:00
Geoffrey White
71ad6a8262
Swift: Change note.
2023-11-03 14:53:37 +00:00
Geoffrey White
0d7943031c
Swift: Generalize subscript assignment storeStep.
2023-11-03 14:53:37 +00:00
yoff
f969274a29
Merge pull request #14644 from yoff/python/filter-local-self-loops
...
Python: filter local self loops
2023-11-03 15:45:09 +01:00
Sam Browning
225c96ec9f
Merge branch 'main' of https://github.com/github/codeql
2023-11-03 09:42:55 -04:00
Geoffrey White
245f475fdb
Swift: Remove duplicate model.
2023-11-03 12:55:36 +00:00
Michael Nebel
df4f2a367b
C#: Update unit tests.
2023-11-03 13:42:32 +01:00
Michael Nebel
31f602cd47
C#: Make path concatenation OS invariant.
2023-11-03 13:35:06 +01:00
Michael Nebel
4689bdb468
C#: Log unused downloaded packages.
2023-11-03 13:27:51 +01:00
Michael Nebel
1054e7a4ee
C#: Update assets unit tests.
2023-11-03 13:27:51 +01:00
Michael Nebel
003166af13
C#: Collect information about used dependencies in a Dependencies object.
2023-11-03 13:27:51 +01:00
Geoffrey White
e7e6529df6
Swift: Add tests.
2023-11-03 12:21:32 +00:00
yoff
8d3ed68b68
Merge pull request #14653 from yoff/python/add-aws-to-supported-frameworks
...
Python: Add AWS Lambda as a supported framework
2023-11-03 13:14:30 +01:00
Geoffrey White
49add7d8ce
Swift: Add stubs to test.
2023-11-03 12:07:15 +00:00
Michael Nebel
eb228b6e68
C#: Address some review comments.
2023-11-03 11:32:53 +01:00
Michael Nebel
62dd86bacb
C#: Update standalone integration tests expected output.
2023-11-03 11:32:48 +01:00
Michael Nebel
7b91be6c52
C#: Allways add Windows Desktop App dlls if the NuGet package is downloaded.
2023-11-03 11:31:28 +01:00
Michael Nebel
11505d6842
C#: Make the assembly cache more robust against non-existing paths.
2023-11-03 11:31:27 +01:00
Michael Nebel
56a70da28f
C#: Remove package cleanup in the dependency manager.
2023-11-03 11:31:27 +01:00
Michael Nebel
70996a4c7e
C#: Rename dllDirNames to dllPaths.
2023-11-03 11:31:27 +01:00
Michael Nebel
576eda3ec6
C#: Add missing package directory to included dlls.
2023-11-03 11:31:27 +01:00
Michael Nebel
4cebb7e848
C#: Integrate the assets parsing and fetching in the dependency manager.
2023-11-03 11:31:27 +01:00
Michael Nebel
f8d427336e
C#: Add assets parsing unit test.
2023-11-03 11:31:27 +01:00
Michael Nebel
7bbf1a24d4
C#: Add assets.json parser.
2023-11-03 11:31:27 +01:00
Michael Nebel
c6c00e7179
C#: Add tests cases for parsing dotnet restore output to find assets.json files.
2023-11-03 11:31:27 +01:00
Michael Nebel
3a7df994cb
C#: The dependency manager should find assets.json files when doing a project or solution restore.
2023-11-03 11:31:27 +01:00
Michael Nebel
387a241efd
C#: Set output verbosity to normal for both solution and project restore (needed to identify where assets file are located).
2023-11-03 11:31:27 +01:00
Paolo Tranquilli
506b911767
Merge pull request #14629 from github/redsun82/rework-resource-dir
...
Swift: rework resource dir
2023-11-03 11:14:49 +01:00
Michael Nebel
4009f03087
Merge pull request #14665 from michaelnebel/csharp/projectreference
...
C#: Update DependencyManager logic to exclude commented out references.
2023-11-03 10:30:03 +01:00
Tom Hvitved
9807a8e1d3
Merge pull request #14675 from hvitved/csharp/split-generated-mad-files-take2
...
C#: Split `generated/dotnet_runtime.yml` into separate files (take 2)
2023-11-03 10:24:38 +01:00
Tom Hvitved
af524f0043
Revert "C#: Temporary changes to model generator"
...
This reverts commit 0f6cea6bd6ecd61139dc09e7b68bf0b8ebc009fe.
2023-11-03 09:51:40 +01:00
Tom Hvitved
894f9ab8fa
C#: Split generated/dotnet_runtime.yml into separate files
2023-11-03 09:51:40 +01:00
Tom Hvitved
7082efa037
C#: Temporary changes to model generator
2023-11-03 09:51:40 +01:00
Tom Hvitved
c34ad25cf9
Merge pull request #14674 from github/revert-14663-csharp/split-generated-mad-files
...
Revert "C#: Split `generated/dotnet_runtime.yml` into separate files"
2023-11-03 09:51:22 +01:00
Tom Hvitved
13e60d7b11
Revert "C#: Split generated/dotnet_runtime.yml into separate files"
2023-11-03 09:07:54 +01:00
Anders Schack-Mulligen
132cc03e3b
Merge pull request #14664 from aschackmull/shared/modulus-step
...
RangeAnalysis: Improve bounds that rely on relative modulus.
2023-11-03 08:16:48 +01:00
amammad
bd1ee9b937
fix tests
2023-11-02 21:26:05 +01:00
amammad
1fc18bee5d
Merge branch 'main' into amammad-go-bombs
2023-11-02 23:33:27 +03:30
amammad
a1a49bdddf
Merge branch 'main' into amammad-go-bombs
2023-11-02 21:01:13 +01:00
amammad
761aede2df
perfomed review suggestions, make Decompression Sink simpler, uncomment the isBarrier, fix some naming issues in tests
2023-11-02 21:01:05 +01:00
Mathias Vorreiter Pedersen
679d64f0e8
Merge pull request #14647 from microsoft/24-odbc-model-instantiation-upstream2
...
C++: Adding a model implementation for ODBC.
2023-11-02 19:42:27 +00:00
amammad
9f8871746b
add flow summary instead of additional flow steps
2023-11-02 20:12:50 +01:00
Benjamin Rodes
30a512c96b
Formatting
2023-11-02 15:01:15 -04:00
Robert Marsh
81d77bf37c
Merge pull request #14578 from geoffw0/stringwith
...
Swift: Models for String methods involving closures.
2023-11-02 13:53:22 -04:00
Benjamin Rodes
947e0274c7
Adding sql injection test for ODBC.
2023-11-02 13:27:42 -04:00
shati-patel
ac0fd93cb3
Update docs for customizing settings
2023-11-02 17:17:02 +00:00
shati-patel
2f4eea5a0d
Update docs for exploring ASTs
2023-11-02 17:16:47 +00:00
Benjamin Rodes
f404d7a5f8
Changes to address pr comments.
2023-11-02 13:11:23 -04:00
Mathias Vorreiter Pedersen
392b2af923
C++: Only the second indirection of the argument should be the remote flow source.
2023-11-02 16:51:24 +00:00
Mathias Vorreiter Pedersen
b82dfa9a21
C++: Fix failing test by allocating 'TFunctionInput's and 'TFunctionOutput's for more indirections. Note that we now mark two output nodes coming out of 'getaddrinfo' as a remote flow source (the first indirection and the second indirection). We'll fix that in the next commit.
2023-11-02 16:45:50 +00:00
Mathias Vorreiter Pedersen
5487b404ed
C++: Add failing test.
2023-11-02 16:41:19 +00:00
amammad
fc3b90915b
fix some grammer mistakes, an unnecessary import, put blank like after go generate
2023-11-02 17:29:11 +01:00
Michael Nebel
0bf2d77a7e
C#: Update integration tests.
2023-11-02 15:46:54 +01:00
Michael Nebel
a161d6e666
C#: Update unit tests.
2023-11-02 15:46:39 +01:00
Michael Nebel
9ea6ef06ef
C#: Commented out references in project files should not be used.
2023-11-02 15:45:30 +01:00
Anders Schack-Mulligen
f2b52650d5
Rangeanalysis: Filter useless modulo results.
2023-11-02 15:29:56 +01:00
Tom Hvitved
a35bda2946
Merge pull request #14663 from hvitved/csharp/split-generated-mad-files
...
C#: Split `generated/dotnet_runtime.yml` into separate files
2023-11-02 14:36:48 +01:00
Tom Hvitved
f82f1df5d6
Merge pull request #14657 from hvitved/csharp/qualified-name
...
C#: Move qualified name computation into `QualifiedName.qll`
2023-11-02 14:36:13 +01:00
Anders Schack-Mulligen
7bf271fb6c
RangeAnalysis: Improve bounds that rely on relative modulus.
2023-11-02 12:51:48 +01:00
Tom Hvitved
a9e2f55b61
C#: Split generated/dotnet_runtime.yml into separate files
2023-11-02 12:45:47 +01:00
Anders Schack-Mulligen
484d0fe4cd
Merge pull request #14659 from aschackmull/shared/modulus-analysis
...
Java/C++: Share modulus analysis
2023-11-02 12:45:35 +01:00
Tom Hvitved
12d856737a
Address review comments
2023-11-02 12:38:35 +01:00
Tony Torralba
8f4509f434
Merge pull request #14651 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-11-02 10:48:32 +01:00
Geoffrey White
431d9d58f1
Merge pull request #14639 from geoffw0/anchorquery
...
Swift: New query for Missing Regular Expression Anchor
2023-11-02 09:20:19 +00:00
Geoffrey White
242399817a
Swift: Remove 'only'.
2023-11-02 08:32:36 +00:00
yoff
fd757b0089
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-11-02 09:31:28 +01:00
Rasmus Lerchedahl Petersen
58bf70d61b
Python: filter self steps from use-use flow
...
Factor out use-use flow in order to do this.
Also improve names and comments.
I also wanted to change the types in `difinitionFlowStep`, but
that broke the module instantiation.
2023-11-02 09:31:28 +01:00
Rasmus Lerchedahl Petersen
613831b2e1
Python: add test for post-update loop flow
2023-11-02 09:31:28 +01:00
Geoffrey White
c937230f1a
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-02 08:30:53 +00:00
yoff
c26c68c286
Merge pull request #14617 from yoff/python/module-for-import-time-flow
...
Python: module for import time flow
2023-11-02 09:28:51 +01:00
Anders Schack-Mulligen
7c3684dbb7
RangeAnalysis: Rename semExprModulus to exprModulus.
2023-11-02 08:19:23 +01:00
Anders Schack-Mulligen
400910e4d3
C++: Fix modulus analysis test.
2023-11-02 08:19:23 +01:00
github-actions[bot]
155073c498
Add changed framework coverage reports
2023-11-02 00:16:04 +00:00
Geoffrey White
48c3db2290
Swift: Change note.
2023-11-01 18:49:45 +00:00
Geoffrey White
206acea41c
Swift: Fix defaultImplicitTaintRead for sinks that are field accesses on a subclass of the type containing the field.
2023-11-01 17:49:25 +00:00
Geoffrey White
727a7e804c
Update swift/ql/src/queries/Security/CWE-020/MissingRegexAnchor.qhelp
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-01 16:32:25 +00:00
Sam Browning
37361d9f79
Merge branch 'main' of https://github.com/github/codeql
2023-11-01 11:43:33 -04:00
Anders Schack-Mulligen
f8ab64dff0
Java: Switch to shared modulus analysis.
2023-11-01 16:34:28 +01:00
Tom Hvitved
c717e346fb
C#: Move qualified name computation into QualifiedName.qll
2023-11-01 16:21:55 +01:00
Anders Schack-Mulligen
ac115e0a6f
Rangeanalysis: Reshuffle perf fix. This should result in the same join-order, but with less materialisation.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
bb2bbd2d4d
Rangeanalysis: Remove useless pragma.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
f6794fe859
Rangeanalysis: Adjust modulo analysis comment.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
8e9aa5b560
C++: Switch to shared modulus analysis.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
a7f3ef1a6c
Rangeanalysis: Parameterise shared modulus analysis.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
8e2b17cd86
Rangeanalysis: Copy C++ ModulusAnalysis file verbatim.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
6d859daf3d
Merge pull request #14656 from aschackmull/shared/range-utils
...
Rangeanalysis: Share ssaRead predicate
2023-11-01 15:57:52 +01:00
Mathias Vorreiter Pedersen
b54b5ae0a9
Merge pull request #14648 from MathiasVP/simplify-invalid-ptr-deref
...
C++: Remove one use of range analysis in `cpp/invalid-pointer-deref`
2023-11-01 14:42:20 +00:00
Geoffrey White
b3fa59d94b
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-01 13:15:06 +00:00
Tom Hvitved
3c86aad16d
Merge pull request #14628 from hvitved/ruby/type-tracking-store-post-update
...
Ruby: Summarized type-tracking stores should target post-update nodes
2023-11-01 13:54:21 +01:00
yoff
4ce1b680c2
Merge pull request #14654 from yoff/python/update-partial-flow-debug-query
...
Python: Update debug query to changed API
2023-11-01 13:32:09 +01:00
Anders Schack-Mulligen
048a7c4e42
Rangeanalysis: Rename SsaBound.getAVariable to getVariable.
2023-11-01 11:58:06 +01:00
Anders Schack-Mulligen
48291dd32d
Rangeanalysis: Remove superfluous ignoreZeroLowerBound.
2023-11-01 11:51:46 +01:00
Rasmus Lerchedahl Petersen
0b45b63bd2
Python: Update debug query to changed API
...
The change is commented out by default
which is why no compilation tests failed
when the API changed.
2023-11-01 11:39:51 +01:00
Tom Hvitved
0c5b528d54
Address review comments
2023-11-01 11:32:57 +01:00
Rasmus Lerchedahl Petersen
1366247f4c
Python: Add AWS Lambda as a supported framework
2023-11-01 10:51:35 +01:00
Rasmus Lerchedahl Petersen
f7a8a8ae19
Python: Fix QL alert
2023-11-01 09:24:59 +01:00
Mathias Vorreiter Pedersen
9736936e54
Merge pull request #14635 from MathiasVP/assign-pointer-add-and-sub-is-not-bitwise
2023-11-01 00:40:39 +01:00
Erik Krogh Kristensen
ddb145f15f
Merge pull request #14645 from erik-krogh/rerun-tests
...
JS: re-order expected test output of all JS tests
2023-10-31 21:52:52 +01:00
Rasmus Lerchedahl Petersen
38b811b050
Python: Separate -> PhaseDependentFlow
2023-10-31 21:50:33 +01:00
Edward Minnix III
1ec1dd368d
Merge pull request #13978 from egregius313/egregius313/java/mad/convert-sensitive-api-to-mad
...
Java: Convert `SensitiveApi.qll` to use Models-as-Data
2023-10-31 15:25:42 -04:00
Kevin Stubbings
3697ef72c4
Small changes
2023-10-31 12:23:18 -07:00
Mathias Vorreiter Pedersen
6e385cabd8
C++: Add change note.
2023-10-31 19:16:36 +00:00
Mathias Vorreiter Pedersen
37a536baf9
Merge pull request #14650 from jketema/invalid-experimental
...
C++: Drop `experimental` tag from `cpp/invalid-pointer-deref`
2023-10-31 20:14:25 +01:00
Kevin Stubbings
5cab25662c
Address issues
2023-10-31 11:50:51 -07:00
Jeroen Ketema
3478890090
C++: Drop experimental tag from cpp/invalid-pointer-deref
2023-10-31 19:46:22 +01:00
Kevin Stubbings
8ed10317bd
Test comment changes
2023-10-31 11:07:41 -07:00
Kevin Stubbings
dd9a2db137
Minor name changes
2023-10-31 11:03:54 -07:00
Kevin Stubbings
020b4becfd
Finish up
2023-10-31 11:00:00 -07:00
Mathias Vorreiter Pedersen
b79a5fee14
Merge pull request #14637 from MathiasVP/dataflow-for-realloc
...
C++: Add a taint model for `realloc`
2023-10-31 18:24:04 +01:00
Geoffrey White
554007b305
Swift: Add a couple more test cases close to the failures.
2023-10-31 17:19:28 +00:00
Geoffrey White
c82eb4dff3
Swift: Test spacing.
2023-10-31 17:18:08 +00:00
Benjamin Rodes
b9ac038de2
Moving change log.
2023-10-31 09:21:01 -07:00
Ian Lynagh
ceb3d14fe0
Merge pull request #14614 from igfoo/igfoo/enum
...
Kotlin: Make the enum test more precise
2023-10-31 16:18:12 +00:00
Benjamin Rodes
07ded4278f
Change log
2023-10-31 09:14:47 -07:00
Paolo Tranquilli
051a77fd79
Merge pull request #14537 from github/alexdenisov/remove-outdated-cli-arg
...
Swift: remove outdated CLI argument
2023-10-31 17:06:52 +01:00
Benjamin Rodes
18c8d90a1a
Adding a model implementation for ODBC.
...
(cherry picked from commit 04147f8d91cdf018ec03cbfdb953253e23687944)
2023-10-31 08:52:05 -07:00
Tony Torralba
107a05af71
Update MaD Declarations after Triage
2023-10-31 16:52:02 +01:00
erik-krogh
688afddaf2
Re-order expected test output of all JS tests
2023-10-31 16:38:22 +01:00
Erik Krogh Kristensen
8f58685b38
Merge pull request #14643 from aibaars/express-req-path
...
Javascript: add `req.path` as remote flow source
2023-10-31 16:36:48 +01:00
Paolo Tranquilli
567aa1102a
Swift: fix toolchain SHAs
2023-10-31 16:20:58 +01:00
Paolo Tranquilli
bc34374075
Swift: switch to downloading the 20.04 toolchain
2023-10-31 16:20:58 +01:00
Paolo Tranquilli
e25a655509
Swift: fix Linux compatibility problem and fetch resource dir from toolchain
...
This fetches the resource directory directly from the released
toolchains, allowing us to stop prebuilding and assembling them.
Moreover insertion of our resource directory is moved to the lua
tracing configuration (solving a `TODO`) and enhanced. Now all options
that start with the original resource directory (either explicit or
implied) are redirected to our resource directory.
This solves a problem where `-I <original resource dir>/some/path` was
passed to the extractor and did not work.
This works around the 5.9 linux compatibility problem by including the
`PackageDescription` swift modules in the in-dist toolchain. Copying the
toolchain and fixing the `-I` flag was not enough as for some reason
compilation of `PackageDescription.swiftinterface` was causing a crash
in the SIL pass. We work around that by pre-compiling those modules
during the build and including `.swiftmodule` files in the resource
directory.
TODO (apart from testing):
* the libraries included in the macOS toolchain are now fat (they were
intel only before), occupying more space. We should see if we need to
trim them down.
* there might be other swiftinterface files causing problems on linux
lurking around...
* if we go with this, we can simplify and trim down the prebuilding we
do leaving out the resource directory.
2023-10-31 16:20:58 +01:00
Mathias Vorreiter Pedersen
b9dfeb3aac
Merge pull request #14444 from alexet/range-cases
...
CPP: Add some range analysis cases
2023-10-31 15:55:41 +01:00
Anders Schack-Mulligen
34b9791e46
Rangeanalysis: Remove superfluous ignoreSsaReadCopy.
2023-10-31 15:32:25 +01:00
Anders Schack-Mulligen
322e6c91be
Rangeanalysis: Remove superfluous specificSsaRead.
2023-10-31 15:30:36 +01:00
Anders Schack-Mulligen
8b6c940e76
Rangeanalysis: Remove superfluous ignoreSsaReadAssignment.
2023-10-31 15:28:37 +01:00
Anders Schack-Mulligen
6d6f89e71e
Rangeanalysis: Remove superfluous ignoreSsaReadArithmeticExpr.
2023-10-31 15:25:28 +01:00
Anders Schack-Mulligen
a39a94ca8e
Rangeanalysis: Switch to shared ssaRead predicate.
2023-10-31 15:23:05 +01:00
Anders Schack-Mulligen
19644a8f07
Rangeanalysis: Implement shared ssaRead predicate
2023-10-31 15:07:11 +01:00
Rasmus Lerchedahl Petersen
7f6ae8b2ab
Python: improve readability
2023-10-31 14:52:37 +01:00
Alexander Eyers-Taylor
11152deeb5
Update cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-31 13:52:33 +00:00
yoff
f76cde36bb
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2023-10-31 14:12:24 +01:00
Ian Lynagh
e1f7f3cbd4
Kotlin: Add more info to enum test
2023-10-31 12:17:44 +00:00
Mathias Vorreiter Pedersen
e75562e508
Merge pull request #14633 from github/redsun82/capture-list-vars
...
Swift: add `VarDecl` children to `CaptureListExpr`
2023-10-31 12:48:14 +01:00
Arthur Baars
5cc94e1105
Express.js: add req.path as remote input source
2023-10-31 12:44:26 +01:00
Arthur Baars
21b7a51d0a
Add test case for req.path
2023-10-31 12:44:25 +01:00
Arthur Baars
1479509d93
Re-order expected test ouput
2023-10-31 12:44:25 +01:00
Mathias Vorreiter Pedersen
377da9fa66
C++: Accept test changes.
2023-10-31 11:18:35 +00:00
Mathias Vorreiter Pedersen
4a1bf95a87
C++: Expose a public memset model and use it in the exposure queries.
2023-10-31 11:17:51 +00:00
Mathias Vorreiter Pedersen
e8c18a3883
C++: Add FP in query test.
2023-10-31 11:17:51 +00:00
Chris Smowton
98032d58b8
Merge pull request #14640 from github/smowton/admin/make-go-tests-serial
...
Go: mark all integration tests non-parallelisable
2023-10-31 10:58:41 +00:00
Stephan Brandauer
5385cc3aaa
Merge branch 'main' into kaeluka/publish-automodel-querypack-007
2023-10-31 11:48:22 +01:00
Mathias Vorreiter Pedersen
5b17066e6c
Merge pull request #14638 from geoffw0/jsevaltest
...
Swift: Clean up the swift/unsafe-js-eval test
2023-10-31 11:43:41 +01:00
Paolo Tranquilli
ea04b500a3
Swift: tweak dataflow test
2023-10-31 11:39:25 +01:00
Ian Lynagh
b841d5f923
Merge pull request #14622 from igfoo/igfoo/JavaBinarySourceElement
...
Kotlin: Add support for JavaBinarySourceElement sources
2023-10-31 10:33:48 +00:00
Tamás Vajk
81b3ff2bb8
Merge pull request #14545 from tamasvajk/standalone/remove-netstandard.library.ref
...
C#: Handle `netstandard` references in standalone extraction
2023-10-31 11:32:42 +01:00
Chris Smowton
79e1aa0498
Merge pull request #14634 from github/post-release-prep/codeql-cli-2.15.2
...
Post-release preparation for codeql-cli-2.15.2
2023-10-31 10:24:53 +00:00
Chris Smowton
05a4c7fdc1
Add non-comment lines specifying serialisation group
2023-10-31 10:21:55 +00:00
Mathias Vorreiter Pedersen
66f4eccc30
Merge pull request #14632 from MathiasVP/share-ipa-numbering-for-indirect-nodes
...
C++: Share IPA numbering for indirect nodes
2023-10-31 11:20:41 +01:00
Stephan Brandauer
9087259b1b
Java: add instructions to automodel query publish script
2023-10-31 11:11:22 +01:00
Stephan Brandauer
968127eaa3
Java: release automodel extraction queries 0.0.7
2023-10-31 11:09:02 +01:00
Paolo Tranquilli
5407b57261
Swift: add change note
2023-10-31 10:57:02 +01:00
Paolo Tranquilli
aac6cf60ee
Swift: add explicative comment
2023-10-31 10:46:12 +01:00
Paolo Tranquilli
ffff10a7e8
Swift: synthesize CaptureListExpr::getVariable in QL instead of extracting it
2023-10-31 10:44:50 +01:00
Paolo Tranquilli
7bae2d9192
Swift: fix tests
2023-10-31 10:44:41 +01:00
Geoffrey White
6b031a4623
Swift: Fix the example links properly.
2023-10-31 08:52:24 +00:00
Geoffrey White
785175e77f
Swift: Fix QL-for-QL warning.
2023-10-31 08:49:48 +00:00
Geoffrey White
bfd852aacd
Swift: Fix the example links.
2023-10-31 08:48:56 +00:00
Chris Smowton
ec72150893
Go: mark all integration tests non-parallelisable
2023-10-30 22:16:26 +00:00
Tom Hvitved
435b7df764
Merge pull request #14607 from hvitved/csharp/type-ref-dedup
...
C#: Only use `getTypeRef` when there is not already a type available
2023-10-30 19:52:58 +01:00
Geoffrey White
8913638b25
Swift: I'm happy with 'high' precision for this query (as the Go version already is).
2023-10-30 18:45:19 +00:00
Geoffrey White
b259a0ff6a
Swift: get rid of getRemoteData() in the tests, it's obfuscating results.
2023-10-30 17:48:51 +00:00
Geoffrey White
c8706e2ad7
Swift: Add some annotations to the clarify UnsafeJSEval.swift test.
2023-10-30 17:43:37 +00:00
Mathias Vorreiter Pedersen
65081a9a1f
C++: Add change note.
2023-10-30 17:11:44 +00:00
Mathias Vorreiter Pedersen
08b528b5c4
C++: Add a taint-model for 'realloc' and accept test changes.
2023-10-30 17:08:01 +00:00
Mathias Vorreiter Pedersen
0837e400a2
C++: Add failing test.
2023-10-30 17:05:43 +00:00
Mathias Vorreiter Pedersen
efe064284b
C++: Add up and downgrade scripts.
2023-10-30 16:07:57 +00:00
Mathias Vorreiter Pedersen
86fe5b47db
C++: Remove 'assignpaddexpr' and 'assignpsubexpr' from the 'assign_bitwise_expr' type.
2023-10-30 16:06:53 +00:00
github-actions[bot]
2b939fdf08
Post-release preparation for codeql-cli-2.15.2
2023-10-30 16:06:51 +00:00
Paolo Tranquilli
f81a3ec464
Swift: add VarDecl children to CaptureListExpr
2023-10-30 17:04:53 +01:00
Mathias Vorreiter Pedersen
375f0ea8b6
C++: Update documentation.
2023-10-30 15:57:30 +00:00
Mathias Vorreiter Pedersen
1e699ec0e5
C++: Simplify 'InvalidPointerToDereference.qll' now that the difference between 'derefSource' and 'pai' is always 0.
2023-10-30 15:53:48 +00:00
Mathias Vorreiter Pedersen
c8edf3151b
C++: Remove the use of range analysis in 'invalidPointerToDerefSource'.
2023-10-30 15:47:47 +00:00
Tony Torralba
45cf50c2af
Apply JMS sink only when there isn't an implementation available
2023-10-30 15:56:24 +01:00
Geoffrey White
c233094846
Swift: Change note.
2023-10-30 14:33:43 +00:00
Geoffrey White
fa3d401226
Swift: Update the qhelp.
2023-10-30 14:33:43 +00:00
Geoffrey White
7cf5210063
Swift: Port the qhelp examples to Swift.
2023-10-30 14:33:43 +00:00
Geoffrey White
9a95b9bcda
Swift: Enable the isLineAnchoredHostnameRegExp case (not working).
2023-10-30 14:33:42 +00:00
Geoffrey White
c09df2e3f1
Swift: Add test cases for the isLineAnchoredHostnameRegExp query case.
2023-10-30 14:33:42 +00:00
Geoffrey White
8f115bfd06
Swift: Implement 'isUsedAsReplace'.
2023-10-30 14:33:42 +00:00
Mathias Vorreiter Pedersen
91d224eea5
Merge pull request #14623 from alexet/dataflow-fps
...
CPP: Add dataflow FP with output arguments
2023-10-30 14:30:51 +00:00
Alex Eyers-Taylor
fb0f9ec601
CPP: Add missing rnage analysis ranges in test.
2023-10-30 14:17:03 +00:00
Alexander Eyers-Taylor
b8d45ae927
Update cpp/ql/test/library-tests/dataflow/dataflow-tests/flowOut.cpp
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-10-30 14:04:45 +00:00
Ian Lynagh
e2ef0dc71d
Merge pull request #14621 from igfoo/igfoo/getFileClassFqName_IrField
...
Kotlin: Fix getFileClassFqName for IrField
2023-10-30 13:54:08 +00:00
Ian Lynagh
d46442245b
Merge pull request #14518 from igfoo/igfoo/trap_files
...
Kotlin: Log when we start and finish writing to TRAP files
2023-10-30 13:53:04 +00:00
Geoffrey White
435638a5bb
Swift: Port the JS tests to Swift.
2023-10-30 13:08:11 +00:00
Geoffrey White
954b0612d5
Swift: Initial state of the existing test.
2023-10-30 13:08:10 +00:00
Geoffrey White
14db0dfcc7
Swift: Fairly minimal fix to get the query and test working for Swift.
2023-10-30 13:08:10 +00:00
Geoffrey White
c040d4847b
Swift: Copy MissingRegexAnchor query from JS.
2023-10-30 13:08:10 +00:00
Harry Maclean
dc9f171ee6
Merge pull request #14631 from hmac/hmac-dynamic-neutral-model
...
JS/Ruby/Python: Add neutralModel extensible predicate
2023-10-30 12:50:09 +00:00
Mathias Vorreiter Pedersen
b4958e7d58
C++: Accept path changes.
2023-10-30 12:44:30 +00:00
Mathias Vorreiter Pedersen
a077b70d66
C++: Accept test changes.
2023-10-30 11:54:24 +00:00
Mathias Vorreiter Pedersen
535d1e2565
C++: Define indirect instructions (and operands) using a 'Node0Impl' column instead of an instruction (or operand).
2023-10-30 11:54:24 +00:00
Ian Lynagh
55df481e5c
Kotlin: Add support for JavaBinarySourceElement sources
2023-10-30 11:43:36 +00:00
Harry Maclean
083be305e1
Shared: Add neutralModel extensible predicate
...
The neutralModel extensible predicate already exists in Java and C#, so
this change brings the dynamic languages more in line with static
languages. The Model Editor uses this predicate to mark endpoints as
"not interesting" from a data flow perspective.
2023-10-30 11:31:57 +00:00
Harry Maclean
38ecde0cc1
Shared: Include data extensions in workspace
...
This change allows codeql to see data extensions stored in the .github
directory inside the codeql repo. This is useful when using the CodeQL
Model Editor whilst working inside the codeql repo.
2023-10-30 11:31:56 +00:00
Chris Smowton
78fcbd07d6
Merge pull request #14630 from github/release-prep/2.15.2
...
Release preparation for version 2.15.2
2023-10-30 11:26:32 +00:00
Mathias Vorreiter Pedersen
3a9ffe189e
Merge pull request #14567 from github/redsun82/swift-case-variables
...
Swift: clean up `VarDecl`, `NamedPattern` and `SwitchStmt` interactions
2023-10-30 11:23:38 +00:00
github-actions[bot]
4641990021
Release preparation for version 2.15.2
2023-10-30 11:05:53 +00:00
Mathias Vorreiter Pedersen
9e2f0b5ed0
Merge branch 'main' into redsun82/swift-case-variables
2023-10-30 10:14:45 +00:00
Mathias Vorreiter Pedersen
c4521a30aa
Merge pull request #14113 from geoffw0/implicitflow
...
Swift: Flow through OpenExistentialExpr
2023-10-30 10:08:29 +00:00
Mathias Vorreiter Pedersen
4e08ba6820
Merge pull request #14618 from geoffw0/qldoc
...
Swift: QLDoc and test for getCanonicalType
2023-10-30 10:06:26 +00:00
Tom Hvitved
bf3fb685ad
Python: Sync in changes to SummaryTypeTracker.qll
2023-10-30 10:52:07 +01:00
Tamás Vajk
b9c89750b9
Merge pull request #14493 from tamasvajk/fix/params-attribute-argument
...
C#: Fix params attribute argument extraction
2023-10-30 10:50:02 +01:00
Tom Hvitved
14cfb82a8c
Ruby: Summarized type-tracking stores should target post-update nodes
2023-10-30 10:47:29 +01:00
Alex Ford
8db23dc775
Ruby: refine ActiveRecord update_all as an SQL sink
2023-10-30 09:47:16 +00:00
Mathias Vorreiter Pedersen
342b3d7733
Merge pull request #14619 from MathiasVP/fix-strtol-model
...
C++: Fix `strtol` model
2023-10-30 09:41:23 +00:00
Alex Ford
013e7aae97
Ruby: test whitespace changes
2023-10-30 09:32:44 +00:00
Kevin Stubbings
e0782683eb
Added gin cors framework
2023-10-27 17:50:43 -07:00
Geoffrey White
1929dead39
Merge branch 'main' into implicitflow
2023-10-27 23:35:54 +01:00
Owen Mansel-Chan
c1ecd5a0da
Merge pull request #14608 from Kwstubbs/golang-cookie-reflectedxss-sanitizer
...
Go: GoAdd Cookie Sanitizer to Reflected XSS
2023-10-27 21:47:39 +01:00
Kevin Stubbings
57cbacb495
test.go change
2023-10-27 12:07:51 -07:00
Kevin Stubbings
ce0104799a
Fix minor issues
2023-10-27 11:42:22 -07:00
Alex Eyers-Taylor
60f3598da9
CPP: Add dataflow FP with output arguments
2023-10-27 19:07:10 +01:00
Ian Lynagh
e25c0498d4
Kotlin: Fix getFileClassFqName for IrField
2023-10-27 18:00:33 +01:00
Geoffrey White
8937e0b313
Swift: == -> =
2023-10-27 17:18:09 +01:00
Alex Ford
cb1cd5ed2a
Merge pull request #14560 from alexrford/rb/modgen
...
Ruby: add a query and script for autogenerating typeModel and summaryModel data extensions entries
2023-10-27 16:43:42 +01:00
Mathias Vorreiter Pedersen
28eb2caacb
Swift: Accept test changes.
2023-10-27 16:30:01 +01:00
Mathias Vorreiter Pedersen
33494fe9e1
C++: Extend the taint model and accept test changes.
2023-10-27 16:26:37 +01:00
Mathias Vorreiter Pedersen
e4683449cb
C++: Add failing test.
2023-10-27 16:26:37 +01:00
Mathias Vorreiter Pedersen
8bf8888c24
C++: Simplify 'parameterNeverEscapes' and add a comment.
2023-10-27 16:26:37 +01:00
Mathias Vorreiter Pedersen
6538a7645d
Swift: Add up and downgrade scripts.
2023-10-27 15:55:12 +01:00
Mathias Vorreiter Pedersen
6062fbb475
Merge pull request #14383 from geoffw0/nsstringregex
...
Swift: Add regular expression evaluation models for StringProtocol and NSString methods
2023-10-27 15:49:23 +01:00
Mathias Vorreiter Pedersen
572cec2c55
C++: Accept test changes.
2023-10-27 15:00:25 +01:00
Mathias Vorreiter Pedersen
43e8b900bf
C++: Fix 'strtol' model.
2023-10-27 14:59:11 +01:00
Geoffrey White
2a552d9721
Swift: Address QL-for-QL warning.
2023-10-27 14:56:19 +01:00
Mathias Vorreiter Pedersen
d6b6c432d9
C++: Add test with incorrect IR due to wrong model.
2023-10-27 14:53:06 +01:00
Owen Mansel-Chan
d534c93ff1
Merge pull request #14606 from owen-mc/go/incorrect-integer-conversion-fixes
...
Go: Two fixes to upper bound checks in "incorrect integer conversion" query
2023-10-27 14:50:11 +01:00
Alex Ford
f6ac63b259
Ruby: modgen - use FeatureEqualSourceSinkCallContext feature rather than late filtering for method context
2023-10-27 14:48:50 +01:00
Geoffrey White
12201d2e8e
Swift: Codegen.
2023-10-27 14:37:06 +01:00
Geoffrey White
6ad5c9542b
Swift: Add getCanonicalType to the NominalType test as well.
2023-10-27 14:37:06 +01:00
Dave Bartolomeo
b18a6d5e0b
Merge pull request #14582 from github/dbartol/threat-models-2
...
Java: Threat model implementation with priorities.
2023-10-27 09:33:53 -04:00
Geoffrey White
ce471105e2
Swift: QLDoc getCanonicalType.
2023-10-27 14:23:51 +01:00
Mathias Vorreiter Pedersen
4aed638066
Merge pull request #14577 from MathiasVP/capture-flow-swift
...
Swift: Add variable-capture flow
2023-10-27 14:09:04 +01:00
Rasmus Lerchedahl Petersen
1f8a51cffe
Python: add module for post-update flow
...
The logic for adding flow out of post-update-nodes
was also duplicated, so I added a module for that also.
The two modules are now only used together. I did not
fuse them, though, as I think they may not be used
together in the case of use-use-flow.
2023-10-27 15:07:49 +02:00
Rasmus Lerchedahl Petersen
e745df6478
Python: module for import time flow
...
The logic for separating local flow into _import time_
and _runtime_ was duplicated a few times.
Create a module for it instead, and add a good qldoc.
2023-10-27 15:07:49 +02:00
Erik Krogh Kristensen
c1a1ebfb60
Merge pull request #14616 from erik-krogh/identity-severity
...
JS: lower the severity of js/identity-replacement to medium
2023-10-27 14:27:05 +02:00
Anders Schack-Mulligen
e9cb272396
Merge pull request #14615 from aschackmull/dataflow/stage-alias
...
Dataflow: simplify using stage aliases.
2023-10-27 14:17:30 +02:00
Tom Hvitved
6ad8a4db1c
C#: Only use getTypeRef when there is not already a type available
2023-10-27 14:11:55 +02:00
erik-krogh
cf958f0828
lower the severity of js/identity-replacement to medium
2023-10-27 13:54:17 +02:00
Anders Schack-Mulligen
10c657bc23
Dataflow: simplify using stage aliases.
2023-10-27 13:40:21 +02:00
Ian Lynagh
0cf702a74f
Kotlin: Tweak the logs test to not be confused by the new logs
2023-10-27 12:04:43 +01:00
Alex Ford
0818354ad7
Ruby: modgen - fix unbound variable
2023-10-27 11:46:09 +01:00
Owen Mansel-Chan
00ba7e42b1
Merge pull request #14613 from owen-mc/change-note-check-on-shared
...
Update `Change-note-check` workflow to detect changes in shared folder
2023-10-27 11:45:03 +01:00
Anders Schack-Mulligen
c7be5ac527
Merge pull request #14602 from aschackmull/java/split-dispatch-cached-stages
...
Java: Split the different layers of virtual dispatch into separate cached stages.
2023-10-27 12:36:29 +02:00
Owen Mansel-Chan
1db622e740
Make check-change-note workflow include shared
2023-10-27 11:26:13 +01:00
Mathias Vorreiter Pedersen
68999f3cef
Swift: Fix test by including the 'allowParameterReturnInSelf' hook from the variable capture library.
2023-10-27 11:25:19 +01:00
Mathias Vorreiter Pedersen
9b150e4ea9
Swift: Add failing test.
2023-10-27 11:22:56 +01:00
Mathias Vorreiter Pedersen
a5a7d27c4b
Swift: Add change note.
2023-10-27 11:16:32 +01:00
Ian Lynagh
3c5b9ce0cd
Kotlin: Make the enum test more precise
...
In Kotlin 2 mode, there are more library classes matching Enum%, so the
output was spuriously different.
2023-10-27 11:15:12 +01:00
Owen Mansel-Chan
3c9783c7c9
Add change note
2023-10-27 11:12:37 +01:00
Mathias Vorreiter Pedersen
b41ec37993
Swift: Remove the code related to constructor capture (and the related TODO). This cannot happen in Swift.
2023-10-27 11:05:48 +01:00
Tom Hvitved
ee5c014382
Merge pull request #14609 from hvitved/csharp/stub-gen-attribute-usage
...
C#: Include `AttributeUsages` in stub generator
2023-10-27 12:05:34 +02:00
Owen Mansel-Chan
581305b234
Improve QLDoc for UpperBoundCheckGuard
2023-10-27 10:59:20 +01:00
Owen Mansel-Chan
8beacb8d4a
Change predicate name from getX to getOrder
2023-10-27 10:44:42 +01:00
Mathias Vorreiter Pedersen
9cae488ef4
Merge pull request #14612 from aschackmull/dataflow/type-doc
...
Dataflow: Improve qldoc on the type system.
2023-10-27 10:39:57 +01:00
Mathias Vorreiter Pedersen
65e13aa5ed
Swift: Add simple version of the 'captureList' test that works.
2023-10-27 10:27:35 +01:00
Mathias Vorreiter Pedersen
93234c0b5c
Swift: Add model for 'withVaList' and accept test changes.
2023-10-27 10:21:12 +01:00
Mathias Vorreiter Pedersen
9e2dd09ddc
Swift: Accept test regression (caused by no model for 'withVaList').
2023-10-27 10:20:07 +01:00
Max Schaefer
104700f6d3
Address review comment.
2023-10-27 10:19:28 +01:00
Anders Schack-Mulligen
0f4ea10638
Merge pull request #14611 from aschackmull/dataflow/partialflow-changenote
...
Dataflow: Add change note for partial flow api change.
2023-10-27 10:57:17 +02:00
Anders Schack-Mulligen
776e35279d
Dataflow: Improve qldoc on the type system.
2023-10-27 10:43:54 +02:00
Michael Nebel
e4276f7adb
Java: Apply suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-27 10:34:20 +02:00
Anders Schack-Mulligen
b106db6fda
Dataflow: Add change note for partial flow api change.
2023-10-27 09:46:46 +02:00
Anders Schack-Mulligen
9769953669
Java: Split the different layers of virtual dispatch into separate cached stages.
2023-10-27 09:40:20 +02:00
Kevin Stubbings
52a0fdabcf
formatting
2023-10-27 00:03:30 -07:00
Tom Hvitved
08d6379563
C#: Regenerate stubs for (Asp)NetCore.App
2023-10-27 08:34:55 +02:00
Tom Hvitved
abc16abf6f
C#: Include AttributeUsages in stub generator
2023-10-27 08:34:20 +02:00
Kevin Stubbings
135923c9c1
Change XNetHtmltest
2023-10-26 20:48:38 -07:00
Mathias Vorreiter Pedersen
63525a9d9e
Swift: Delete one TODO (it has been converted to an internal issue) and fix another.
2023-10-26 21:48:41 +01:00
Kevin Stubbings
e6e87a44a3
Add change note
2023-10-26 12:36:35 -07:00
Dave Bartolomeo
d2afb20f3f
Merge remote-tracking branch 'origin/main' into dbartol/threat-models-2
2023-10-26 14:05:40 -04:00
Erik Krogh Kristensen
a5bfeb68a8
Merge pull request #14604 from erik-krogh/fix-thistype
...
JS: fix `TypeExprKinds` crashing on a `ThisExpression`
2023-10-26 20:05:26 +02:00
Dave Bartolomeo
9800458467
Update shared/threat-models/codeql/threatmodels/ThreatModels.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-10-26 13:46:55 -04:00
Dave Bartolomeo
927eb8424d
Update shared/threat-models/codeql/threatmodels/ThreatModels.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-10-26 13:46:37 -04:00
Dave Bartolomeo
8d9e4d391f
Update shared/threat-models/codeql/threatmodels/ThreatModels.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-10-26 13:46:28 -04:00
Alexander Eyers-Taylor
55ec9d0a91
Merge pull request #14601 from aschackmull/java/fix-tests
...
Java: Update tests to new partial flow api
2023-10-26 17:52:01 +01:00
Alex Ford
5a1a3f0727
Ruby: modgen - deduplicate getAnyParameter logic
2023-10-26 17:45:47 +01:00
Alex Ford
86ba75cadf
Ruby: modgen - support self arguments
2023-10-26 17:42:46 +01:00
Alex Ford
6203887645
fixup
2023-10-26 17:38:43 +01:00
Mathias Vorreiter Pedersen
784bb72b33
Swift: Add some more tests.
2023-10-26 17:29:26 +01:00
Owen Mansel-Chan
b451adabfc
Two small QLDoc improvements
2023-10-26 17:10:12 +01:00
Owen Mansel-Chan
896a3c65be
Avoid doing float arithmetic with large integers
...
There is the possibility of overflow.
2023-10-26 17:09:53 +01:00
Owen Mansel-Chan
570ca3b6fe
Fix upper bound check to make test pass
2023-10-26 17:08:19 +01:00
Alex Ford
24946c0dfd
Ruby: modgen - restrict flow summaries to public methods
2023-10-26 17:05:31 +01:00
Alex Ford
fef2932f56
Apply suggestions from code review
...
Co-authored-by: Harry Maclean <hmac@github.com >
2023-10-26 17:04:51 +01:00
Owen Mansel-Chan
773f46d3b4
Add failing test for upper bound checks
2023-10-26 16:58:36 +01:00
Mathias Vorreiter Pedersen
30ecb4b0c8
Merge pull request #14588 from aschackmull/shared/rangeanalysis
...
C++/Java: Share core range analysis
2023-10-26 16:32:46 +01:00
yoff
867a39083e
Merge pull request #14114 from yoff/python/allow-namespace-packages
...
Python: Allow namespace packages
2023-10-26 16:56:05 +02:00
Tony Torralba
7af3d239ab
Java: Add JMS sink to java/unsafe-deserialization
2023-10-26 16:46:19 +02:00
Max Schaefer
08cc8b8e80
Autoformat.
2023-10-26 15:36:06 +01:00
erik-krogh
302199a74a
fix TypeExprKinds crashing on a ThisExpression
2023-10-26 16:33:54 +02:00
Max Schaefer
abef8483bd
Merge pull request #14600 from github/max-schaefer/express-rate-limit
...
JavaScript: Add support for importing `express-rate-limit` using a named import.
2023-10-26 15:15:22 +01:00
Max Schaefer
f42bd28ca9
Port changes to Ruby.
2023-10-26 15:06:45 +01:00
Mathias Vorreiter Pedersen
96a37f3a3c
Swift: Simplify more tests.
2023-10-26 14:55:17 +01:00
Max Schaefer
741735cc83
Port changes to JavaScript.
2023-10-26 14:47:24 +01:00
Mathias Vorreiter Pedersen
2ad121a8a5
Swift: Simplify test.
2023-10-26 14:46:59 +01:00
Rasmus Lerchedahl Petersen
dcc778520a
Python: refactor code
...
Also add explanatory comment.
Co-authored-by: Taus <tausbn@github.com >
2023-10-26 15:00:02 +02:00
Rasmus Lerchedahl Petersen
50041f07a3
Python: fix comment
2023-10-26 14:28:00 +02:00
Anders Schack-Mulligen
35f6e6ebb4
Java: Update tests to new partial flow api
2023-10-26 14:09:03 +02:00
Max Schaefer
aff848b038
Update javascript/ql/lib/semmle/javascript/security/dataflow/MissingRateLimiting.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-10-26 13:06:52 +01:00
Jeroen Ketema
dbb4167f80
Merge pull request #14579 from jketema/ir-backwards
...
C++: Define an extractor version table and use in IR generation
2023-10-26 13:36:15 +02:00
Owen Mansel-Chan
0ed01453b9
Fix getMaxIntValue to accept bitSize 64
2023-10-26 12:27:43 +01:00
Max Schaefer
2c7291336d
Move test files into right directory.
2023-10-26 12:16:52 +01:00
Max Schaefer
bb146a1758
JavaScript: Add support for rateLimit export from express-rate-limit package.
2023-10-26 12:14:57 +01:00
Mathias Vorreiter Pedersen
2465cc20f0
Swift: Don't define 'ClosureSelfParameterNode' as the expression node of the closure.
2023-10-26 11:56:27 +01:00
Max Schaefer
3939167ba2
Include more details in the message for py/weak-cryptographic-algorithm.
...
Specifically, we add a link to the location where the cryptographic algorithm is configured, which can be far away from its use.
2023-10-26 11:28:09 +01:00
Jeroen Ketema
64004926bc
C++: Use a more declarative predicate name
2023-10-26 12:07:19 +02:00
Jeroen Ketema
903f376620
C++: Define an extractor version table and use in IR generation
2023-10-26 12:07:19 +02:00
Mathias Vorreiter Pedersen
b1d4ca505d
Merge pull request #14599 from aschackmull/dataflow/partialflow-separate
...
Dataflow: Restrict partial flow to either forward or reverse flow.
2023-10-26 11:01:03 +01:00
Anders Schack-Mulligen
bbc3cfba6f
Dataflow: Fix documentation.
2023-10-26 11:29:16 +02:00
Anders Schack-Mulligen
a2e3b37847
Dataflow: Fix accidental visibility.
2023-10-26 11:28:52 +02:00
Chris Smowton
8198898d73
Merge pull request #14583 from smowton/smowton/admin/really-deprecate-old-java-names
...
Java: Deprecate MethodAccess and SuperMethodAccess
2023-10-26 10:25:05 +01:00
Owen Mansel-Chan
39eeed9238
Add failing test showcasing problem
2023-10-26 10:20:27 +01:00
Stephan Brandauer
5fe6a5a730
Merge pull request #14487 from github/kaeluka/extraction-query-docs
...
Java: basic version of automodel extraction query docs
2023-10-26 11:10:01 +02:00
Anders Schack-Mulligen
4dca4a7389
Dataflow: Restrict partial flow to either forward or reverse flow.
2023-10-26 10:33:03 +02:00
Anders Schack-Mulligen
ec58b209e3
Merge pull request #14584 from Marcono1234/kotlin-Literal-getLiteral
...
Kotlin: Mention `Literal::getLiteral()` difference from source code
2023-10-26 10:03:57 +02:00
Kevin Stubbings
21e4a5b2d5
Add Cookie Sanitizer
2023-10-25 22:07:08 -07:00
Kevin Stubbings
dafcd5ec98
Added support for Gin CORS
2023-10-25 17:23:10 -07:00
Maiky
a1e38c3444
Remove unnecessary imports and add returns
2023-10-26 01:16:43 +02:00
Chris Smowton
29d57d82b7
Deprecate MethodAccess and SuperMethodAccess
2023-10-25 22:26:38 +01:00
Ed Minnix
9d90c24006
Refactor to using MethodCall instead of MethodAccess
2023-10-25 14:31:56 -04:00
Ed Minnix
f288ddc3d5
Add signature back to trilead ssh2 model
2023-10-25 14:31:56 -04:00
Ed Minnix
d923784ae4
Add signatures to models
2023-10-25 14:31:56 -04:00
Ed Minnix
90c63ab6b0
Remove additional net.schmizz.sshj models
2023-10-25 14:31:56 -04:00
Edward Minnix III
2fb4dfeb90
TrustType should be nested in sun.security.pkcs11.Secmod models
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:55 -04:00
Ed Minnix
665b140a8a
Make SaltAndParams be nested
2023-10-25 14:31:55 -04:00
Edward Minnix III
700201556c
Remove extra model
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:55 -04:00
Ed Minnix
58dae6d1c6
Set provenance of models from otherApiCallableCredentialParam to manual and remove extra models
2023-10-25 14:31:55 -04:00
Edward Minnix III
2a91743477
Re-add IvParameterSpec constructor to otherApiCallableCredentialParam
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-10-25 14:31:55 -04:00
Ed Minnix
a28f19c857
Remove initialization vectors from SensitiveApi
2023-10-25 14:31:55 -04:00
Ed Minnix
c689065f83
Experiment: Remove IVs from credentials
2023-10-25 14:31:55 -04:00
Ed Minnix
855d96db66
Remove extra models
2023-10-25 14:31:55 -04:00
Ed Minnix
d85284da55
Update change note file date
2023-10-25 14:31:55 -04:00
Ed Minnix
02c98fae5f
Use hq-generated provenance
2023-10-25 14:31:55 -04:00
Ed Minnix
1ad06f3293
Add missing GaloisCounterMode model
2023-10-25 14:31:55 -04:00
Ed Minnix
9c15cf18e8
Refactor deprecated predicates to use new classes
...
Modified the predicates in `SensitiveApi` to rely on the new classes
which are using models as data. This allows us to remove the old
predicates containing the pre-MaD versions of the models.
2023-10-25 14:31:55 -04:00
Ed Minnix
3b0b5e403c
Replace crypto-parameter with credentials-key
2023-10-25 14:31:55 -04:00
Ed Minnix
a2bcc97a74
Remove CipherBlockChaining#init
2023-10-25 14:31:55 -04:00
Ed Minnix
743814a234
Delete private methods
2023-10-25 14:31:55 -04:00
Ed Minnix
c2d072e3f8
Remove redundant Cipher init methods
...
Remove redundant `init` methods which are overriding `FeedbackCipher`
and `SymmetricCipher`.
2023-10-25 14:31:54 -04:00
Ed Minnix
22d968fba3
Delete private methods
2023-10-25 14:31:54 -04:00
Ed Minnix
31b069041f
Initialization vector models
2023-10-25 14:31:54 -04:00
Ed Minnix
a8eb95a688
Remove redundant engineUnwrap method models
...
Most implementations of `engineUnwrap` are overriding the method from
`javax.crypto.CipherSpi`. Therefore, these models can be compressed into
a single model.
2023-10-25 14:31:54 -04:00
Ed Minnix
64d23d4f9b
Delete private methods
2023-10-25 14:31:54 -04:00
Ed Minnix
5b2d226c35
Remove unneeded models
2023-10-25 14:31:54 -04:00
Ed Minnix
1edca19419
Remove redundant KeyStoreSpi models
...
`java.security.KeyStoreSpi` is an abstract class. This removes its
subclasses' models, and instead uses model-as-data's capability to use
subclasses.
2023-10-25 14:31:54 -04:00
Ed Minnix
24c809b3b5
Move credentials-% sink kinds to "shared" status
2023-10-25 14:31:54 -04:00
Edward Minnix III
72a1289eba
Rename class to CredentialsSinkNode to better align with naming convention
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:54 -04:00
Ed Minnix
c6641dfbf3
fix model validator to credentials-password
2023-10-25 14:31:54 -04:00
Ed Minnix
a85df81b67
Rename sink kind to "credentials-username" to match naming convention
2023-10-25 14:31:54 -04:00
Ed Minnix
0612b3795a
Rename sink kind to "credentials-password" to match naming convention
2023-10-25 14:31:54 -04:00
Ed Minnix
3ee0fa9bc4
Add deprecation messages
2023-10-25 14:31:54 -04:00
Ed Minnix
b77b3763be
Fix com.amazonaws.auth models
2023-10-25 14:31:54 -04:00
Ed Minnix
8eeb861963
ch.ethz.ssh2 fixes
2023-10-25 14:31:54 -04:00
Edward Minnix III
2f53adf2c2
Fix typo
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:54 -04:00
Ed Minnix
dbb5aa9aad
Change note
2023-10-25 14:31:54 -04:00
Ed Minnix
083a5068c3
Remove unnecessary models
2023-10-25 14:31:53 -04:00
Ed Minnix
886c85ddc1
Fix net.schmizz.sshj models
2023-10-25 14:31:53 -04:00
Ed Minnix
958c6ff289
Remove credential-other
2023-10-25 14:31:53 -04:00
Ed Minnix
ee6cb96d07
Add a superclass for credential nodes
2023-10-25 14:31:53 -04:00
Ed Minnix
3219edc603
Change credential-other to more appropriate sink kinds
2023-10-25 14:31:53 -04:00
Ed Minnix
6b94b77a0a
Remove spaces in sig field of models
2023-10-25 14:31:53 -04:00
Ed Minnix
f8c3b2977a
Fix credential-other
2023-10-25 14:31:53 -04:00
Ed Minnix
f783ca7940
Fix credential-username
2023-10-25 14:31:53 -04:00
Ed Minnix
96d6ecb108
Fix crypto parameters
2023-10-25 14:31:53 -04:00
Ed Minnix
35e19eac96
Fix password models
2023-10-25 14:31:53 -04:00
Ed Minnix
4f8908106b
Refactor HardcodedCredentials to use new SensitiveApi api
2023-10-25 14:31:53 -04:00
Ed Minnix
f7c07d55ed
Credential-other sinks
2023-10-25 14:31:53 -04:00
Ed Minnix
49218cdbfb
Credential-username models
2023-10-25 14:31:53 -04:00
Ed Minnix
18661eee77
Crypto-parameter models
2023-10-25 14:31:53 -04:00
Ed Minnix
66486b08dc
Password models
2023-10-25 14:31:53 -04:00
Ed Minnix
4aec302fb7
Create new sink kinds
2023-10-25 14:31:53 -04:00
Jami
c7b9e405b7
Merge pull request #14517 from jcogs33/jcogs33/update-framework-cov-diff-workflow
...
CI: Update framework coverage difference commenter
2023-10-25 14:31:00 -04:00
Geoffrey White
2cfca032de
Swift: Fix use of deprecated predicate.
2023-10-25 17:32:55 +01:00
Maiky
eccde3f4f1
Add Tests
2023-10-25 18:31:51 +02:00
Geoffrey White
82b92c38f9
Swift: Change method types to DataFlow::Node / go ahead with planned deprecations.
2023-10-25 17:11:21 +01:00
Geoffrey White
bfd150a1d3
Swift: Clarify comment.
2023-10-25 16:38:59 +01:00
Geoffrey White
ff15b73250
Swift: Update the change note.
2023-10-25 16:32:59 +01:00
Geoffrey White
4a08ca39d6
Swift: Replace PotentialRegexEval with a more specialized solution.
2023-10-25 16:26:46 +01:00
Alex Ford
16c5edd3ca
Ruby: add a query and script for autogenerating typeModel and summaryModel data extensions entries
2023-10-25 15:52:02 +01:00
Mathias Vorreiter Pedersen
11194e574c
Swift: Get rid of the unnecessary parameter/argument position for the closure. Instead, we can just reuse the 'this' parameter and argument.
2023-10-25 15:46:10 +01:00
Geoffrey White
354983087e
Swift: this.(PotentialRegexEval) -> super. or this. .
2023-10-25 15:25:12 +01:00
Rasmus Wriedt Larsen
be494b73d4
Python: Minor cleanup for string pool interaction
...
This doesn't really seem to impact performance, is just a bit cleaner way to write the QL code.
In the worst case, since we do string concat with empty string, we would need to load string + attempt to store new string in string pool, which is useless since we can surely just reuse the integer ID.
-- Previously
Evaluated non-recursive predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0#join_rhs#CSE@5fdc6eia in 1ms (size: 2).
Evaluated relational algebra for predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0#join_rhs#CSE@5fdc6eia with tuple counts:
1 ~0% {1} r1 = CONSTANT(unique string)[""]
1 ~0% {1} r2 = CONSTANT(unique string)[".__init__"]
2 ~0% {1} r3 = r1 UNION r2
return r3
Evaluated recursive predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@b4f54xlv in 72ms on iteration 1 (delta size: 26339).
Evaluated relational algebra for predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@b4f54xlv on iteration 1 running pipeline base with tuple counts:
6382 ~0% {3} r1 = JOIN ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0#join_rhs#CSE WITH Module#68efc075::Module::getFile#0#dispred#ff CARTESIAN PRODUCT OUTPUT Rhs.1, Lhs.0, Rhs.0
6066 ~2% {4} r2 = JOIN r1 WITH Module#68efc075::isPreferredModuleForName#2#ff ON FIRST 1 OUTPUT Lhs.2, _, Lhs.1, Rhs.1
{2} r3 = REWRITE r2 WITH Tmp.1 := "", Out.1 := InverseAppend(Tmp.1,In.2,In.3) KEEPING 2
3721 ~0% {2} r4 = SCAN r3 OUTPUT In.1, In.0
25945 ~2% {2} r5 = JOIN r4 WITH ImportResolution#f829f0f0::ImportResolution::getReferenceToModuleName#1#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
38 ~4% {3} r6 = SCAN SsaDefinitions#9197156e::SsaSource::init_module_submodule_defn#2#ff OUTPUT In.1, _, In.0
38 ~1% {3} r7 = REWRITE r6 WITH Out.1 := -1
38 ~1% {2} r8 = JOIN r7 WITH py_scope_flow_021#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2
38 ~0% {2} r9 = JOIN r8 WITH Module#68efc075::Module::getPackageName#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
394 ~2% {2} r10 = JOIN r9 WITH Essa#24e22a14::EssaVariable::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~0% {3} r11 = JOIN r10 WITH DataFlowPublic#c4b6ce7e::EssaNode#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1
394 ~0% {5} r12 = JOIN r11 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1, _
394 ~0% {2} r13 = REWRITE r12 WITH Tmp.0 := ".", Tmp.4 := "", Out.0 := (In.2 ++ Tmp.0 ++ In.3 ++ Tmp.4) KEEPING 2
394 ~0% {5} r14 = JOIN r11 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1, _
394 ~1% {2} r15 = REWRITE r14 WITH Tmp.0 := ".", Tmp.4 := ".__init__", Out.0 := (In.2 ++ Tmp.0 ++ In.3 ++ Tmp.4) KEEPING 2
788 ~3% {2} r16 = r13 UNION r15
401 ~2% {2} r17 = JOIN r16 WITH Module#68efc075::isPreferredModuleForName#2#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~1% {2} r18 = JOIN r17 WITH Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
26339 ~1% {2} r19 = r5 UNION r18
return r19
-- Now
Evaluated recursive predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@409a0xhe in 8ms on iteration 1 (delta size: 26339).
Evaluated relational algebra for predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@409a0xhe on iteration 1 running pipeline base with tuple counts:
3033 ~0% {2} r1 = JOIN Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs WITH Module#68efc075::isPreferredModuleForName#2#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3033 ~0% {4} r2 = JOIN Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs WITH Module#68efc075::isPreferredModuleForName#2#ff ON FIRST 1 OUTPUT Lhs.1, _, Rhs.1, _
{2} r3 = REWRITE r2 WITH Tmp.1 := "", Tmp.3 := ".__init__", Out.1 := InverseAppend(Tmp.1,Tmp.3,In.2) KEEPING 2
688 ~0% {2} r4 = SCAN r3 OUTPUT In.1, In.0
3721 ~0% {2} r5 = r1 UNION r4
25945 ~2% {2} r6 = JOIN r5 WITH ImportResolution#f829f0f0::ImportResolution::getReferenceToModuleName#1#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
38 ~4% {3} r7 = SCAN SsaDefinitions#9197156e::SsaSource::init_module_submodule_defn#2#ff OUTPUT In.1, _, In.0
38 ~1% {3} r8 = REWRITE r7 WITH Out.1 := -1
38 ~1% {2} r9 = JOIN r8 WITH py_scope_flow_021#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2
38 ~0% {2} r10 = JOIN r9 WITH Module#68efc075::Module::getPackageName#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
394 ~2% {2} r11 = JOIN r10 WITH Essa#24e22a14::EssaVariable::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~0% {3} r12 = JOIN r11 WITH DataFlowPublic#c4b6ce7e::EssaNode#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1
394 ~2% {4} r13 = JOIN r12 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1
394 ~0% {2} r14 = REWRITE r13 WITH Tmp.0 := ".", Out.0 := (In.2 ++ Tmp.0 ++ In.3) KEEPING 2
394 ~0% {5} r15 = JOIN r12 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1, _
394 ~5% {2} r16 = REWRITE r15 WITH Tmp.0 := ".", Tmp.0 := (In.2 ++ Tmp.0 ++ In.3), Tmp.4 := ".__init__", Out.0 := (Tmp.0 ++ Tmp.4) KEEPING 2
788 ~0% {2} r17 = r14 UNION r16
401 ~1% {2} r18 = JOIN r17 WITH Module#68efc075::isPreferredModuleForName#2#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~1% {2} r19 = JOIN r18 WITH Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
26339 ~0% {2} r20 = r6 UNION r19
return r20
2023-10-25 14:53:51 +01:00
Mathias Vorreiter Pedersen
951b6beeb1
Swift: Untangle the confusion between 'getParameter' and 'asParameter'.
2023-10-25 14:44:09 +01:00
Jeroen Ketema
990d7161b2
Merge pull request #14337 from aschackmull/cpp/container-not-locatable
...
C++: Remove getLocation from Container.
2023-10-25 15:37:57 +02:00
Mathias Vorreiter Pedersen
78e08cf63c
Swift: Remove irrelevant TODO.
2023-10-25 13:55:07 +01:00
Anders Schack-Mulligen
6882504397
C#: Fix compilation
2023-10-25 14:31:49 +02:00
Anders Schack-Mulligen
5ded55cd9f
C#: Sync Bound.qll
2023-10-25 14:08:48 +02:00
Anders Schack-Mulligen
283d6efdf8
Rangeanalysis/Java/C++: Address some ql4ql findings.
2023-10-25 14:06:35 +02:00
Jeroen Ketema
75a1173d63
C++: Add change note
2023-10-25 14:05:38 +02:00
Jeroen Ketema
dc512728fa
C++: Make File extend Locatable
2023-10-25 14:05:38 +02:00
Jeroen Ketema
4ea5c13390
C++: Add back getLocation in File
2023-10-25 14:05:38 +02:00
Anders Schack-Mulligen
7124a53c9c
C++: Remove getLocation from Container.
2023-10-25 14:05:38 +02:00
Jami
53d92d58fc
Merge pull request #14581 from jcogs33/jcogs33/add-internal-to-model-exclusions
...
Java: exclude internal packages globally from MaD models
2023-10-25 08:04:03 -04:00
Michael Nebel
b3e5b86f0a
Java: Cleanup threat models tests.
2023-10-25 14:02:31 +02:00
Mathias Vorreiter Pedersen
05385eb704
Merge pull request #14587 from MathiasVP/fix-indirect-strtok-model
...
C++: Fix `strtok` model for indirections
2023-10-25 12:09:13 +01:00
Owen Mansel-Chan
27646ce971
Merge pull request #14547 from owen-mc/go/enable-data-flow-consistency-checks
...
Go: make data flow consistency checks available (and fix some)
2023-10-25 11:15:44 +01:00
Paolo Tranquilli
fb470e4140
Swift: remove useless commented-out line
2023-10-25 12:15:25 +02:00
Geoffrey White
bf503849ea
Swift: Fixup line numbers after merge.
2023-10-25 11:09:13 +01:00
Geoffrey White
bf6e6a1e68
Merge branch 'main' into stringwith
2023-10-25 10:58:25 +01:00
Geoffrey White
a3d53ba9ec
Merge pull request #14574 from github/geoffw0-patch-2
...
Swift: Update README.md
2023-10-25 10:56:01 +01:00
Geoffrey White
7029f14651
Merge pull request #14511 from geoffw0/substring
...
Swift: Model Substring
2023-10-25 10:46:47 +01:00
Anders Schack-Mulligen
2592c94c54
Java: Replace range analysis with shared version.
2023-10-25 11:29:55 +02:00
Anders Schack-Mulligen
36082808d3
Java: Implement shared range analysis signatures.
2023-10-25 11:29:55 +02:00
Anders Schack-Mulligen
c1c4a5bfcf
Rangeanalysis: Copy qldoc and simplification from Java.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
cd44d67529
Rangeanalysis: Add temporary Java compatibility flag.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
06fe10bbe9
Rangeanalysis: Bugfix division with float representation.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
7b214a24df
C++: Add division test
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
232c147f6b
Rangeanalysis: Port join-order fix from Java version.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
ec39de20d8
C++: Convert to qlpack version of core range analysis.
2023-10-25 11:17:01 +02:00
Anders Schack-Mulligen
38274db205
Rangeanalysis: Parameterise library.
2023-10-25 11:17:01 +02:00
Anders Schack-Mulligen
169ba03778
Rangeanalysis: Copy C++ version verbatim.
2023-10-25 11:17:01 +02:00
Anders Schack-Mulligen
aed830cf1b
Rangeanalysis: Make new qlpack
2023-10-25 11:17:01 +02:00
Paolo Tranquilli
a245d0019e
Swift: tiny cosmetic tweak
2023-10-25 10:56:21 +02:00
Mathias Vorreiter Pedersen
032572b924
C++: Fix 'strtok' model.
2023-10-25 09:39:36 +01:00
Mathias Vorreiter Pedersen
f54379d096
C++: Add failing test.
2023-10-25 09:38:49 +01:00
Paolo Tranquilli
9196939384
Swift: canonicalize all VarDecls
2023-10-25 10:38:17 +02:00
Tony Torralba
4920c7f8b0
Merge pull request #14585 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-10-25 10:02:50 +02:00
Stephan Brandauer
cffcc7334d
Java: automodel extraction docs: add two intro sentences
2023-10-25 09:45:00 +02:00
Stephan Brandauer
0f2db1bcdb
Java: automodel extraction docs: use markdown footnote
2023-10-25 09:32:59 +02:00
Stephan Brandauer
3eeb6ffec4
Java: automodel extraction docs: spell out positive and negative
2023-10-25 09:05:22 +02:00
Stephan Brandauer
44c87561b3
Java: review suggestion from adityasharad
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2023-10-25 09:00:28 +02:00
Stephan Brandauer
c240c1b3f5
Java: review suggestions from aeisenberg
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-10-25 08:59:21 +02:00
github-actions[bot]
6cbadece0e
Add changed framework coverage reports
2023-10-25 00:15:35 +00:00
Marcono1234
bf20b8e5a5
Kotlin: Mention Literal::getLiteral() difference from source code
...
It appears the Kotlin extractor does not have access to the actual
string representation in the source code, and for most literal types
uses simply the represented value also as `getLiteral` result, see
https://github.com/github/codeql/blob/codeql-cli/v2.15.1/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt#L4443
2023-10-25 02:04:54 +02:00
Geoffrey White
8a5f3e4825
Swift: Fix an issue with RegexTracking.qll using PotentialRegexEval rather than RegexEval.
2023-10-24 22:49:19 +01:00
Jami
7c053ed428
CI: add .strip() to comment/ID file read
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2023-10-24 17:48:38 -04:00
Geoffrey White
021ed88a0a
Swift: Add a test revealing unevaluated regexs.
2023-10-24 22:42:15 +01:00
Chris Smowton
12d0f1a84b
Merge pull request #14575 from github/smowton/feature/more-intuitive-java-class-names
...
Java: Replace MethodAccess, LValue, RValue with more intuitive names. Introduce NewClassExpr.
2023-10-24 19:01:37 +01:00
Dave Bartolomeo
33f10d8d19
Better handling of all threat model without too many binding sets
2023-10-24 13:59:15 -04:00
Cornelius Riemenschneider
790615fbc2
Merge pull request #14552 from github/criemen/bazel-js
...
Javascript extractor: Bazel-based build
2023-10-24 19:36:39 +02:00
Dave Bartolomeo
5fd56ce866
Alternate threat model implementation
2023-10-24 13:12:37 -04:00
Jami Cogswell
121fd0896b
Java: exclude internal packages in general from models
2023-10-24 12:49:49 -04:00
Geoffrey White
42a2ec9891
Merge branch 'main' into substring
2023-10-24 17:03:00 +01:00
Tony Torralba
9f7a8aa18c
Update MaD Declarations after Triage
2023-10-24 17:42:03 +02:00
Geoffrey White
06b1cd939c
Merge pull request #14502 from geoffw0/xmlquery
...
Swift: Model RawRepresentable
2023-10-24 16:25:15 +01:00
Geoffrey White
d2d70cc782
Swift: Change note.
2023-10-24 16:17:21 +01:00
Geoffrey White
79f675cdb7
Swift: Fix a model.
2023-10-24 16:17:21 +01:00
Geoffrey White
a5206028b0
Swift: Expand a test to explore why it fails (lack of pointer models and closure capture flow).
2023-10-24 16:17:21 +01:00
Chris Smowton
30610c9a3f
Temporarily de-deprecate SuperMethodAccess to accommodate private tests
2023-10-24 16:05:52 +01:00
Geoffrey White
3bcee63980
Update README.md
...
Change the Warning to a Note and rephrase.
2023-10-24 15:46:32 +01:00
Mathias Vorreiter Pedersen
862de152a1
Swift: Add required qldoc.
2023-10-24 15:45:17 +01:00
Mathias Vorreiter Pedersen
6f37d7c374
Swift: Accept changes in paths.
2023-10-24 15:39:19 +01:00
Mathias Vorreiter Pedersen
9652679c6f
Merge pull request #14568 from alexet/alexet/add-fn-tests
...
CPP: Add test demonstrating use-after-free false negatives.
2023-10-24 15:38:01 +01:00
Stephan Brandauer
e97456f5fc
Java: automodel extraction docs: note on packaging and backwards compatibility
2023-10-24 16:30:59 +02:00
Mathias Vorreiter Pedersen
56b49a4de3
Swift: Add a closure flow step from the right-hand side of variable declarations to the underlying pattern.
2023-10-24 15:28:28 +01:00
Mathias Vorreiter Pedersen
3d5098aaeb
Swift: Add failing test.
2023-10-24 15:28:25 +01:00
Mathias Vorreiter Pedersen
1c298e6001
Swift: Fix 'parameter' -> 'argument' flow into closures.
2023-10-24 15:28:01 +01:00
Mathias Vorreiter Pedersen
310ebe47b3
Swift: Clean up test file.
2023-10-24 15:27:59 +01:00
Cornelius Riemenschneider
42c343e820
Address review
2023-10-24 16:03:35 +02:00
Chris Smowton
92d3d9d83f
Update integration test expectations
2023-10-24 14:47:19 +01:00
Chris Smowton
4205f1bd03
Temporarily un-deprecate MethodAccess to decouple from private tests
2023-10-24 14:03:26 +01:00
Chris Smowton
b849a66c97
Update test expectations
2023-10-24 14:02:30 +01:00
Nora Dimitrijević
9dbf7e818d
Swift: align definition of InputSig slightly closer to Java version
...
Though there is a regression in the tests, so more work is needed.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
9de3cc703a
Swift: add CapturePostUpdateNode
...
However, this doesn't change any of the test results.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
5418d39a0d
Swift: add and accept a few new simple test cases
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
af49a3aa64
Swift: accept new results in old tests
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
8115774a7a
Swift: Add the capture flow step as part of the normal data flow relation
...
TODO: see if we need to exclude duplicate SSA steps
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
4e1b44a059
Swift: port simpleAstFlowStep/hasAliasedAccess
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
21a369de13
Swift: Add closure content read-write steps
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
c04654d8f9
Swift: getImmediateBasicBlockDominator/2 should use immediatelyDominates/0.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
95a7d6559c
Swift: initial version of a swift port of most of the java code
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
3253c0425c
Swift: s/getName/getShortName/ in InlineFlowTest.qll
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
050b8e682f
Swift: add failing inline expectation test based on closure AST tests.
2023-10-24 13:56:31 +01:00
Jeroen Ketema
ba67217b44
Merge pull request #14571 from MathiasVP/fix-indirect-taint
...
C++: Fix indirect taint
2023-10-24 14:47:43 +02:00
Chris Smowton
06238dd5f6
Improve reflective class names
2023-10-24 13:29:32 +01:00
Chris Smowton
011666b48c
Fix description and improve predicate name of VarWrite.
2023-10-24 12:59:57 +01:00
Geoffrey White
d3063e849e
Swift: Model string closure methods.
2023-10-24 12:58:38 +01:00
Chris Smowton
ede17585a6
Amend NewClassExpr description
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-24 12:51:42 +01:00
Chris Smowton
e3edea2a5f
Apply simple suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-24 12:51:03 +01:00
Stephan Brandauer
eb97ce3294
Java: automodel extraction query docs, candidate examples
2023-10-24 13:49:38 +02:00
Chris Smowton
efb63aada3
Add change note
2023-10-24 11:45:41 +01:00
Chris Smowton
3627eb2bcf
Add missing qldoc
2023-10-24 11:15:08 +01:00
Chris Smowton
e8c9708282
Autoformat
2023-10-24 11:06:19 +01:00
Chris Smowton
09e83d1173
Fix isEnclosingMethodAccess wrapper
2023-10-24 11:03:57 +01:00
Chris Smowton
ac38d4c9c6
Mass rename L/RValue -> VarWrite/Read
2023-10-24 10:58:29 +01:00
Chris Smowton
59a49eef0b
Add aliases for public, importable renamed classes and predicates.
...
Also rename and aliases a couple of uses of Access noted along the way.
2023-10-24 10:54:35 +01:00
Chris Smowton
f552a15aae
Mass-rename MethodAccess -> MethodCall
2023-10-24 10:30:26 +01:00
Geoffrey White
f597f0272a
Update README.md
...
Turned the warning at the top into a warning box.
Made the section headers consistent.
I was going to add a section, but I realized it belongs somewhere else. :)
2023-10-24 10:12:20 +01:00
Michael Nebel
26f767073d
Merge pull request #14363 from michaelnebel/csharp/sunsetqlstubgen
...
C#: Sunset QL based stub generator.
2023-10-24 11:05:56 +02:00
Chris Smowton
a10731c591
Java: introduce more-intuitive names for ClassInstanceExpr, L/RValue and MethodAccess.
2023-10-24 09:38:49 +01:00
Mathias Vorreiter Pedersen
1fce26534f
C++: Remove implied conjunct.
2023-10-24 09:25:32 +01:00
Tony Torralba
4e823b4306
Merge pull request #14566 from atorralba/atorralba/java/springframework-6-models
...
Java: Added up to date models for Spring's ResponseEntity
2023-10-24 09:11:37 +02:00
Geoffrey White
4cf40ed259
Swift: Add a test case for withMutableCharacters.
2023-10-23 23:30:19 +01:00
Mathias Vorreiter Pedersen
67ed12c916
C++: Correctly model that 'operator->', and 'get'
...
on smart pointers perform a load.
2023-10-23 20:11:23 +01:00
Mathias Vorreiter Pedersen
b107c4c641
C++: Fix missing result in 'ModelUtil'. The problem was that 'n.asInstruction()' on line 81 wasn't necessarily a 'CallInstruction' (it could be a conversion).
2023-10-23 19:34:25 +01:00
Mathias Vorreiter Pedersen
c0b04eac7c
C++: Add failing test.
2023-10-23 19:29:28 +01:00
Alex Eyers-Taylor
26b0363707
CPP: Add test demonstrating use-after-free false negatives.
2023-10-23 17:01:52 +01:00
Paolo Tranquilli
2f0ee12584
Swift: fix patterns/bound_and_unbound.ql test
2023-10-23 17:36:42 +02:00
Paolo Tranquilli
f22d60f011
Swift: clean up VarDecl, NamedPattern and SwitchStmt interactions
...
* `variables` under `CaseStmt` are now AST children, which solves
orphan `VarDecl`s in that case
* reordered `CaseStmt` AST children to be `labels > variables > body`
(was `body > labels`)
* made `NamedPattern::getVarDecl` an extracted property instead of
`getName`
* The above led to duplicate DB entities because of a quirk in the
Swift compiler code. This is solved by tweaking the extraction of
`variables` under `CaseStmt` to not use `getCaseBodyVariables`.
2023-10-23 17:36:42 +02:00
Paolo Tranquilli
140ff723e4
Merge pull request #14563 from github/redsun82/codegen-test-with
...
Codegen: add `@qltest.test_with`
2023-10-23 17:35:31 +02:00
Rasmus Wriedt Larsen
e8f548ab52
Python: Model routed parameter flow to *args and **kwargs in Django + rest framework
2023-10-23 17:18:22 +02:00
Joe Farebrother
3f11d83b7b
Merge pull request #14500 from joefarebrother/shared-filepath-normalize
...
Shared: Add library for filepath normalization
2023-10-23 16:09:44 +01:00
Paolo Tranquilli
02a2debe94
Codegen: fix python compatibility problem
2023-10-23 16:56:44 +02:00
Rasmus Wriedt Larsen
24687b4156
Python: Add test highlighting missing routed parameter flow to **kwargs parameter of request handler function
2023-10-23 16:49:43 +02:00
Rasmus Wriedt Larsen
8b23140a08
Python: Remove trailing ,
2023-10-23 16:45:08 +02:00
Rasmus Wriedt Larsen
60e7786b04
Python: Use explicit keyword parameter
2023-10-23 16:44:54 +02:00
Rasmus Wriedt Larsen
46e44a0036
Python: Fix import
2023-10-23 16:42:55 +02:00
Tony Torralba
cd10dc8a27
Java: Added up to date models for Spring's ResponseEntity
2023-10-23 16:06:11 +02:00
Chris Smowton
e301223644
Merge pull request #14541 from JarLob/patch-3
...
fix CWE number
2023-10-23 15:05:02 +01:00
Michael Nebel
743be92624
C#: Adjust workflow to point to the new location for the script.
2023-10-23 15:10:20 +02:00
Michael Nebel
5ba0e0ffce
C#: Adjust the relative path to the stub generator project file.
2023-10-23 15:09:38 +02:00
Michael Nebel
d4af05cbf9
C#: Move stub generator script.
2023-10-23 15:09:38 +02:00
Michael Nebel
ed6a068ebc
C#: Update the stub generator readme.
2023-10-23 15:09:38 +02:00
Michael Nebel
4e99266b65
C#: Sunset the QL based stub generator.
2023-10-23 15:09:38 +02:00
Paolo Tranquilli
7cc20587ad
Codegen: add @qltest.test_with
...
This allows to group together related AST classes to reuse the same
test source and extraction. For example this is useful for
`EnumDecl/EnumCaseDecl/EnumElementDecl`, where this is applied to.
2023-10-23 14:51:22 +02:00
Ian Lynagh
b89088737a
Merge pull request #14551 from igfoo/igfoo/loc
...
Java/Kotlin: Reshuffle our LoC queries
2023-10-23 11:50:03 +01:00
Stephan Brandauer
319b799f95
Merge pull request #14553 from github/kaeluka/fix-positive-example-query
...
Java: Automodel Framework Mode Extraction Bug
2023-10-23 09:48:49 +02:00
amammad
e3dbdc3887
add custom query builder and active record querybuilder support
2023-10-22 21:39:59 +02:00
Jami Cogswell
687ecffe71
CI: don't upload comment/ID artifact if no existing comment
2023-10-22 15:28:07 -04:00
amammad
a0e2e1ef21
add to Frameworks.qll
2023-10-21 19:49:27 +02:00
amammad
1fe565a46f
cherrypy framework file system access Sinks are added
2023-10-21 19:47:30 +02:00
Maiky
d8aa0e2d7e
Remove unnecessary import
2023-10-21 17:29:08 +02:00
Maiky
35d390ad06
Add Insecure Randomness Query (CWE-338)
2023-10-21 17:23:41 +02:00
Owen Mansel-Chan
b46174f464
Merge pull request #14536 from owen-mc/go/amend-library-coverage
...
Go: Add Go frameworks for automated coverage reports
2023-10-20 21:28:30 +01:00
Dave Bartolomeo
76a9b71231
Merge branch 'main' into dbartol/threat-models
2023-10-20 14:05:17 -04:00
Stephan Brandauer
1d7c2f4799
Java: format
2023-10-20 16:37:46 +02:00
Stephan Brandauer
f0c0bbf4c8
remove bug: needless restriction to sink examples in framework mode +examples
2023-10-20 16:34:29 +02:00
Mathias Vorreiter Pedersen
6c10ba2fb1
Merge pull request #14495 from github/calumgrant/comp-generated-this
...
C++: Fix ImplicitThisFieldAccess
2023-10-20 15:25:26 +01:00
Cornelius Riemenschneider
9ba32a0440
Add bazel-based build for the Javascript extractor.
2023-10-20 16:23:50 +02:00
Cornelius Riemenschneider
de85f2bbf8
Fix errorprone violations.
2023-10-20 16:23:35 +02:00
Calum Grant
8054a5d086
C++: Add changenote
2023-10-20 14:48:20 +01:00
Tamas Vajk
3f1e145d2c
C#: Rework .net framework reference removal
2023-10-20 14:40:13 +02:00
Owen Mansel-Chan
0ba0063e6d
Update go/ql/lib/change-notes/2023-10-20-enclosing-callable-for-external-files.md
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2023-10-20 13:37:44 +01:00
Erik Krogh Kristensen
f562d5319f
Merge pull request #14539 from flyboss/main
...
fix typo ('Configration' to ‘Configuration’)
2023-10-20 14:10:42 +02:00
Ian Lynagh
26634a3266
Java/Kotlin: Add a changenote for the lines-of-code changes
2023-10-20 13:04:39 +01:00
Ian Lynagh
d816035da6
Java/Kotlin: Tweak LoC message
2023-10-20 13:02:11 +01:00
Ian Lynagh
13a9e83e6a
Java/Kotlin: Reshuffle our LoC queries
...
There's now a single lines-of-code query that gives the total number of
lines of code over both languages.
Per-language LoC queries are now just summaries.
2023-10-20 12:43:41 +01:00
Mathew Payne
a24e168ec0
Merge branch 'main' into py-restframework
2023-10-20 11:39:07 +01:00
Paolo Tranquilli
c92519ed6b
Merge pull request #14538 from github/redsun82/add-unspecified-element-children
...
Swift: add children to `UnspecifiedElement`
2023-10-20 12:27:05 +02:00
Owen Mansel-Chan
da68153a96
Fix change note name and location
2023-10-20 11:24:25 +01:00
Owen Mansel-Chan
5d729616cd
Add change note
2023-10-20 11:20:10 +01:00
Michael B. Gale
58fe66f5a8
Merge pull request #14550 from github/mbg/docs/bump-to-go1.21
...
Bump to Go 1.21 in supported compilers docs
2023-10-20 11:09:59 +01:00
flyboss
ee813c1e61
Update UnsafeHtmlConstructionQuery.qll
...
add a deprecated alias in case anyone depends on the misspelled name.
2023-10-20 17:57:23 +08:00
Michael B. Gale
46aa712c28
Bump to Go 1.21 in supported compilers docs
2023-10-20 10:49:02 +01:00
Esben Sparre Andreasen
1b9b6ae5b5
Merge pull request #14542 from github/esbena/proper-check-change-note
...
Improve change note checking
2023-10-20 11:47:53 +02:00
Ian Lynagh
a4ef183a2e
Merge pull request #14529 from igfoo/igfoo/classid_fqname
...
Kotlin: Don't convert back and forth between ClassId and FqName
2023-10-20 10:28:25 +01:00
Tamas Vajk
36f1070b93
Adjust expected test files
2023-10-20 09:42:00 +02:00
Tamas Vajk
fc1fc05d16
C#: Rework .net framework reference removal
2023-10-20 09:22:14 +02:00
Jami Cogswell
ee4a9c3f8d
CI: remove extraneous quotes that were causing 'get_previous_run_id' to always fail with a 'list index out of bounds' error
2023-10-19 19:23:14 -04:00
Jami Cogswell
6e29b70100
CI: update comment (if it exists)
2023-10-19 19:19:25 -04:00
Jami Cogswell
9263cfdf56
CI: save and upload comment id (if it exists)
2023-10-19 19:14:23 -04:00
Dave Bartolomeo
15e9838f16
Add a readme file
2023-10-19 17:27:21 -04:00
Dave Bartolomeo
fb1b41b649
Fix formatting
2023-10-19 17:20:38 -04:00
Dave Bartolomeo
c268163804
warnOnImplicitThis
2023-10-19 17:18:47 -04:00
Dave Bartolomeo
910b2a98f1
Merge remote-tracking branch 'origin/main' into dbartol/threat-models
2023-10-19 17:07:38 -04:00
Dave Bartolomeo
bd7de83aab
Use extension packs for threat models
2023-10-19 17:07:26 -04:00
Dave Bartolomeo
07eb60d044
Merge pull request #14531 from github/post-release-prep/codeql-cli-2.15.1
...
Post-release preparation for codeql-cli-2.15.1
2023-10-19 13:32:33 -04:00
Dave Bartolomeo
712f7758cf
Merge branch 'main' into post-release-prep/codeql-cli-2.15.1
2023-10-19 12:14:07 -04:00
Owen Mansel-Chan
e19ebf9ca8
Add external file scope
2023-10-19 16:48:38 +01:00
Owen Mansel-Chan
563805ff0c
Fix nodeGetEnclosingCallable
...
It wasn't updated when MkImplicitVarargsSlice was added as a branch of
TNode. This meant that it gave no result for `ImplicitVarargsSlice`s
in function calls used to initialise variables declared at file level.
2023-10-19 16:48:37 +01:00
Owen Mansel-Chan
a3cecd178f
Add consistency query
...
This can be run on an existing database to check for any assumptions
of the data flow library which do not hold.
2023-10-19 16:47:56 +01:00
Tamas Vajk
fbfafbfdd4
C#: Remove netstandard.library.ref from the references
2023-10-19 15:49:16 +02:00
Erik Krogh Kristensen
2a1ca637fd
Merge pull request #14543 from erik-krogh/string-not-int
...
move the documentation of codePointAt and codePointCount to the string type instead of the int type
2023-10-19 14:39:10 +02:00
Peter Stöckli
09cf76a880
Ruby: additional unsafe deserialization sinks for ox, oj
2023-10-19 14:04:48 +02:00
erik-krogh
5cd732b3c6
move the documentation of codePointAt and codePointCount to the string type instead of the int type
2023-10-19 12:57:06 +02:00
Owen Mansel-Chan
67601b5312
Add DataFlowImplConsistency.qll for Go library
2023-10-19 11:43:00 +01:00
Mathias Vorreiter Pedersen
0ab159f803
Merge pull request #14135 from github/sashabu/frontend-update
...
C++: Update for changes in frontend.
2023-10-19 11:40:24 +01:00
Esben Sparre Andreasen
2c99e2f3d5
improve change note file name checks
2023-10-19 12:16:27 +02:00
Esben Sparre Andreasen
836bb6006c
improve env var usage in check-change-note.yml
2023-10-19 12:05:29 +02:00
Mathias Vorreiter Pedersen
0bfa53cfd6
Merge pull request #14524 from MathiasVP/add-more-dataflow-documentation
...
C++: Add more documentation about dataflow through indirections
2023-10-19 10:32:12 +01:00
Mathias Vorreiter Pedersen
4feda50add
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-19 11:00:42 +02:00
Mathias Vorreiter Pedersen
b5cbd909f7
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-19 11:00:33 +02:00
Mathias Vorreiter Pedersen
35702a9fdf
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-19 11:00:18 +02:00
Jeroen Ketema
a972d0943a
C++: Accept test changes after changes in IR generation
2023-10-19 10:45:14 +02:00
Jeroen Ketema
2a64552979
C++: Add support for C23/C++23 floating-point types
2023-10-19 10:45:14 +02:00
Jeroen Ketema
7e71d9e619
C++: Update expected test results after outputting less loads from the extractor
2023-10-19 10:45:14 +02:00
Jeroen Ketema
bec3e62771
C++: Update cpp/constant-array-overflow test results after frontend update
2023-10-19 10:45:14 +02:00
Jeroen Ketema
23c6027386
C++: Update expected test changes after frontend update
2023-10-19 10:45:13 +02:00
Jeroen Ketema
8b8a2726d4
C++: Accept semantic range analysis test changes due to extra loads in the IR
2023-10-19 10:45:13 +02:00
Jeroen Ketema
554087161b
C++: Accept sign analysis test changes
...
The IR now contains extra loads that need to be accounted for.
2023-10-19 10:45:13 +02:00
Jeroen Ketema
5036135f01
C++: Fix IR generation for the comma operator
2023-10-19 10:45:13 +02:00
Jeroen Ketema
0fceecee6d
C++: Fix extractor options for deprecated_with_msg test
...
The previous extractor options no longer work, because the default assumed
compiler versions have changed in the frontend.
2023-10-19 10:45:13 +02:00
Jeroen Ketema
e271c7e5e7
C++: Accept IR GVN test changes a CopyValue is now Load due to IR changes
2023-10-19 10:45:13 +02:00
Jeroen Ketema
91a98f3512
C++: Accept new dataflow IR inconsistencies
...
These are due to additional loads being generated on fields, and should not
cause any problems. Ideally, we should tune the definition of
`TPostFieldUpdateNode` to make these go away.
2023-10-19 10:45:13 +02:00
Jeroen Ketema
231e9ef098
C++: Accept PrintAST value category changes after frontend update
2023-10-19 10:45:13 +02:00
Jeroen Ketema
a6dae91215
C++: Accept IR test changes after value category updates
2023-10-19 10:45:12 +02:00
Jeroen Ketema
3202bcce70
C++: Handle ternary operators whose value category is a prvalue with a load
2023-10-19 10:45:12 +02:00
Jeroen Ketema
c60cb136bb
C++: Do not generate loads for ParenthesisExprs
2023-10-19 10:45:12 +02:00
Jeroen Ketema
4339e18ed6
C++: Update IR generation for changes in frontend
2023-10-19 10:45:12 +02:00
Jaroslav Lobačevski
2b541b78ac
fix CWE number
2023-10-19 09:36:25 +02:00
Tony Torralba
049ba54948
Merge pull request #14533 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-10-19 08:56:36 +02:00
Erik Krogh Kristensen
daca5121f6
Merge pull request #14540 from github/dependabot/cargo/ql/tracing-0.1.40
...
Bump tracing from 0.1.39 to 0.1.40 in /ql
2023-10-19 08:47:56 +02:00
dependabot[bot]
2af1302a4a
Bump tracing from 0.1.39 to 0.1.40 in /ql
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.39 to 0.1.40.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.39...tracing-0.1.40 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-19 03:33:14 +00:00
flyboss
86336565eb
fix typo
2023-10-19 02:34:31 +00:00
github-actions[bot]
065353667f
Add changed framework coverage reports
2023-10-19 00:15:51 +00:00
Tony Torralba
da44b13fd4
Merge pull request #14515 from atorralba/atorralba/java/spring-csrf-improv
...
Java: Improve java/spring-disabled-csrf-protection
2023-10-18 17:49:10 +02:00
Paolo Tranquilli
d55289bf68
Swift: add children to UnspecifiedElement
...
This will allow better downgrade scripts in the future.
2023-10-18 16:42:04 +02:00
Michael B. Gale
4246ebf9e0
Merge pull request #14535 from github/mbg/go/dependabot-ignore-tests
...
Go: Add Dependabot config for `go/ql/test` which ignores all dependencies
2023-10-18 14:40:16 +01:00
Michael B. Gale
771b5eca47
No allow, only ignore
2023-10-18 14:25:38 +01:00
Michael B. Gale
10e9c6defd
Update .github/dependabot.yml
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-18 14:23:32 +01:00
Michael B. Gale
df191e4b6d
Update .github/dependabot.yml
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-18 14:22:06 +01:00
Mathias Vorreiter Pedersen
7f97492580
C++: Make sphinx happy.
2023-10-18 14:15:55 +01:00
Mathias Vorreiter Pedersen
a36d432184
C++: Simplify a paragraph and use line numbers in CPP code.
2023-10-18 14:15:01 +01:00
Mathias Vorreiter Pedersen
c04546da98
C++: Use named code blocks.
2023-10-18 14:03:09 +01:00
Mathias Vorreiter Pedersen
308d027d1e
C++: Fix typo.
2023-10-18 14:02:05 +01:00
Mathias Vorreiter Pedersen
44e214b933
C++: Stick to the pointer vs. indirection terminology.
2023-10-18 13:47:09 +01:00
Alex Denisov
eb3e140008
Swift: remove outdated CLI argument
2023-10-18 14:44:47 +02:00
Mathias Vorreiter Pedersen
f6b1d66167
C++: Convert another paragraph to a numbered list.
2023-10-18 13:38:50 +01:00
Mathias Vorreiter Pedersen
1b1a78bf04
C++: Convert a paragraph to a numbered list.
2023-10-18 13:34:32 +01:00
Mathias Vorreiter Pedersen
342f4f867b
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
2023-10-18 14:30:46 +02:00
Mathias Vorreiter Pedersen
9d2e21e470
C++: Move the note in the beginning of the document into a reusable file.
2023-10-18 13:29:52 +01:00
Mathias Vorreiter Pedersen
ff3d4b8b40
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:18:23 +02:00
Mathias Vorreiter Pedersen
3b6c43c9a1
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:18:05 +02:00
Mathias Vorreiter Pedersen
8812567c69
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:15:11 +02:00
Mathias Vorreiter Pedersen
0d36d918c9
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:11:58 +02:00
Mathias Vorreiter Pedersen
d4cbb8cb22
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:11:24 +02:00
Mathias Vorreiter Pedersen
9a91145d7e
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:09:39 +02:00
Mathias Vorreiter Pedersen
efe7153ac2
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:09:05 +02:00
Mathias Vorreiter Pedersen
9ad461daa0
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:08:40 +02:00
Mathias Vorreiter Pedersen
59b26c0dad
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
2023-10-18 14:08:20 +02:00
Mathias Vorreiter Pedersen
b71248face
Update docs/codeql/codeql-language-guides/codeql-for-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:06:14 +02:00
Mathias Vorreiter Pedersen
dc77614bd1
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:59 +02:00
Mathias Vorreiter Pedersen
56a1a7cc4d
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:45 +02:00
Mathias Vorreiter Pedersen
f3dd2ebe7d
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:19 +02:00
Mathias Vorreiter Pedersen
16fbffe47b
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:05 +02:00
Mathias Vorreiter Pedersen
51cf400669
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:04:39 +02:00
Mathias Vorreiter Pedersen
02e3d2704c
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:03:50 +02:00
Mathias Vorreiter Pedersen
e6ae3ffe7a
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:03:41 +02:00
Mathias Vorreiter Pedersen
d21943137f
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:03:28 +02:00
Owen Mansel-Chan
bddd448fdf
Add Go frameworks for automated coverage reports
...
Note that the space at the beginning of the package patterns for the
standard library is deliberate, because builtin functions use the empty
string as their package and we want to attribute them to the standard
library.
2023-10-18 12:49:31 +01:00
Calum Grant
6472ed7fe0
C++: Fix GVN for ImplicitThisFieldAccess
2023-10-18 12:40:55 +01:00
Calum Grant
c51efb1477
C++: Tighten up definitions of field accesses
2023-10-18 11:39:09 +01:00
Michael B. Gale
bd811f25da
Add Dependabot config for go/ql/test
2023-10-18 11:06:02 +01:00
github-actions[bot]
8dcd8b9e5b
Post-release preparation for codeql-cli-2.15.1
2023-10-17 20:24:00 +00:00
Chris Smowton
70aa490bbd
Merge pull request #14503 from smowton/smowton/admin/adapt-tests-to-jdk21
...
Java: Adapt tests to JDK21
2023-10-17 20:07:47 +01:00
Edward Minnix III
15afc3ed64
Merge pull request #14491 from egregius313/egregius313/java/mad/convert-iv
...
Java: Refactor `java/static-initialization-vector` to use Models as Data
2023-10-17 13:15:45 -04:00
Geoffrey White
b93442a2b6
Merge pull request #14523 from geoffw0/appendingformat
...
Swift: Model StringProtocol.appendingformat and String.decodecstring
2023-10-17 18:04:29 +01:00
Ian Lynagh
ab891465a4
Kotlin: Don't convert back and forth between ClassId and FqName
...
This showed up as a bug in Kotlin 2 mode:
We were starting with the Class Id "java/util/Map.Entry", which we then
converted to the FqName "java.util.Map.Entry", and then back to a
Class Id with ClassId.topLevel. This gave us a Class Id that
referenceClass wasn't able to resolve.
Now we just stick with the Class Id that we started with, and the class
can be resolved by Kotlin 2.
2023-10-17 17:01:53 +01:00
Robert Marsh
53e80e0f27
Merge pull request #14398 from rdmarsh2/rdmarsh2/swift/autoclosure-cfg
...
Swift: add CFG for normal autoclosures
2023-10-17 11:50:24 -04:00
Mathias Vorreiter Pedersen
c8e8ac0b55
C++: Make sphinx happy.
2023-10-17 16:15:59 +01:00
Mathias Vorreiter Pedersen
9a6fc967db
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 17:05:27 +02:00
Mathias Vorreiter Pedersen
17ee7c2352
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 17:04:33 +02:00
Mathias Vorreiter Pedersen
c4075b3ec7
C++: Make an explanation of 'allowImplicitRead' slightly more explicit.
2023-10-17 16:02:48 +01:00
Mathias Vorreiter Pedersen
d390b6235b
C++: Delete 'we assume'.
2023-10-17 16:00:09 +01:00
Ed Minnix
8ed5bfb27d
Remove reference to DataFlow2
2023-10-17 10:59:36 -04:00
Mathias Vorreiter Pedersen
0a71705dfe
C++: Add a small note about performance.
2023-10-17 15:57:37 +01:00
Mathias Vorreiter Pedersen
2fcf0abb7f
C++: Fix phinx syntax.
2023-10-17 15:45:16 +01:00
Mathias Vorreiter Pedersen
c5307bed2b
C++: Replace 'use_data' with 'read_data'.
2023-10-17 15:36:14 +01:00
Mathias Vorreiter Pedersen
d6ccd63ed2
C++: Reorganize the setup in the 'Flow from a qualifier to a field access' section.
2023-10-17 15:33:25 +01:00
Mathias Vorreiter Pedersen
3de32e813b
C++: Simplify introductory text and code.
2023-10-17 15:19:59 +01:00
Mathias Vorreiter Pedersen
bbf9bcde2a
Merge pull request #14482 from MathiasVP/additional-call-targets-for-cpp
...
C++: Add an abstract class that can be used to extend `viableCallable`
2023-10-17 14:57:21 +01:00
Mathias Vorreiter Pedersen
e264bddb25
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 15:51:20 +02:00
Mathias Vorreiter Pedersen
fa3053f7fa
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 15:50:55 +02:00
AlexDenisov
401639e10b
Merge pull request #14528 from github/alexdenisov/debug-notes-on-db-upgrades
...
Docs: add a note on db migration scripts debugging
2023-10-17 15:49:39 +02:00
Alex Denisov
057172c391
Docs: add a note on db migration scripts debugging
2023-10-17 14:55:35 +02:00
Rasmus Wriedt Larsen
28bedda5ea
Merge pull request #14513 from RasmusWL/yield-modeling
...
Python: Improve `yield` modeling
2023-10-17 14:15:01 +02:00
Stephan Brandauer
9d719aa44e
Merge pull request #13444 from github/java/update-mad-decls-after-triage-2023-06-13T14-50-57
...
Java: Update MaD Declarations after Triage
2023-10-17 13:54:10 +02:00
Joe Farebrother
aa418dc7d0
Add more line breaks in qldoc
2023-10-17 12:51:22 +01:00
Mathias Vorreiter Pedersen
68f2501bf0
Merge pull request #14496 from geoffw0/memberinittest
...
Swift: Add data flow tests for member initialization.
2023-10-17 12:35:07 +01:00
Mathias Vorreiter Pedersen
9a2c1daebe
C++: Add tests for 'AdditionalCallTarget'.
2023-10-17 11:48:44 +01:00
Geoffrey White
5ffb773568
Swift: Explore instantiated / not instantiated classes.
2023-10-17 11:30:03 +01:00
Mathias Vorreiter Pedersen
0ad338f04a
Merge pull request #14521 from geoffw0/defaultstep
...
Swift: Add CollectionContent to defaultImplicitTaintRead
2023-10-17 11:07:10 +01:00
Tony Torralba
96d6e8e3f2
Update change note
2023-10-17 11:57:53 +02:00
Tony Torralba
3cd06b0026
More review suggestions
2023-10-17 11:54:32 +02:00
Tony Torralba
62a9ffd277
Apply suggestions from code review
2023-10-17 11:51:55 +02:00
Mathias Vorreiter Pedersen
75a8f01f65
C++: Add more documentation about dataflow through indirections.
2023-10-17 09:53:40 +01:00
Tony Torralba
4ecda9cccd
Add consistency check exception
2023-10-17 10:18:19 +02:00
Rasmus Wriedt Larsen
80506f1028
Python: Accept .expected changes
2023-10-17 10:11:39 +02:00
Rasmus Wriedt Larsen
62a992473f
Python: Update QLDoc
2023-10-17 10:09:19 +02:00
Rasmus Wriedt Larsen
2bf4c32433
Python: Add syntactic support for yield in contextlib.contextmanager
2023-10-17 09:51:20 +02:00
Rasmus Wriedt Larsen
2399793c8a
Python: Expand contextmanager test even more
2023-10-17 09:41:30 +02:00
amammad
9d4a16750c
fix autoformatting
2023-10-17 01:02:16 +02:00
amammad
b3be2a4929
add additional taint steps to SSRF query
2023-10-17 01:00:25 +02:00
Chris Smowton
3145c53a19
Accept test changes for JDK21
2023-10-16 22:00:41 +01:00
Chris Smowton
bd77f572f1
Compile collections test for Java 11
2023-10-16 21:54:09 +01:00
Geoffrey White
0a96eb0a40
Swift: Change note.
2023-10-16 21:43:55 +01:00
Geoffrey White
2679d1fdb5
Swift: Add models.
2023-10-16 21:40:38 +01:00
Erik Krogh Kristensen
24e779b826
Merge pull request #14520 from github/dependabot/cargo/ql/regex-1.10.2
...
Bump regex from 1.10.0 to 1.10.2 in /ql
2023-10-16 22:27:50 +02:00
Geoffrey White
451d779f4a
Swift: Test String.decodeCString.
2023-10-16 21:22:03 +01:00
Geoffrey White
459b006244
Swift: Test StringProtocol.appendingFormat.
2023-10-16 21:22:03 +01:00
Dave Bartolomeo
8e890571ed
Merge pull request #14519 from github/release-prep/2.15.1
...
Release preparation for version 2.15.1
2023-10-16 13:55:45 -04:00
dependabot[bot]
cf0173acad
Bump regex from 1.10.0 to 1.10.2 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.0 to 1.10.2.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.0...1.10.2 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-16 17:49:47 +00:00
github-actions[bot]
3b3c036626
Release preparation for version 2.15.1
2023-10-16 17:49:39 +00:00
Michael B. Gale
d15c60ba76
Merge pull request #14516 from github/mbg/go/fix-dependabot-yml-again
2023-10-16 18:48:26 +01:00
Geoffrey White
c6ff42986d
Swift: Change note.
2023-10-16 18:43:03 +01:00
Geoffrey White
990c40c8c8
Swift: Barrier for duplicate results in constant queries, resulting from sources like [1, 2, 3].
2023-10-16 18:28:51 +01:00
Geoffrey White
6108f787dd
Swift: Effect on query tests.
2023-10-16 18:28:51 +01:00
Geoffrey White
0509c0fdf3
Swift: Effect on dataflow tests.
2023-10-16 18:28:50 +01:00
Geoffrey White
89867d6214
Swift: Default content read step.
2023-10-16 18:28:50 +01:00
Robert Marsh
efb04f6db4
Swift: update generated files list
2023-10-16 17:22:52 +00:00
Robert Marsh
d0ec2fd643
Swift: fix QLDoc typos
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-16 13:20:41 -04:00
Dave Bartolomeo
e4e472ee74
Merge pull request #14512 from MathiasVP/fix-size-in-invalid-ptr-deref
...
C++: Fix size deduction in `cpp/invalid-pointer-deref`
2023-10-16 11:22:41 -04:00
Ian Lynagh
0a0ce1f202
Kotlin: Log when we start and finish writing to TRAP files
2023-10-16 16:14:23 +01:00
Alex Ford
25c416ec8a
Merge pull request #14061 from maikypedia/maikypedia/ruby-jwt
...
Ruby: JWT Security Queries (CWE-347)
2023-10-16 15:42:31 +01:00
Edward Minnix III
21bea38ec8
Merge pull request #14472 from egregius313/egregius313/sync-local-and-remote-queries
...
Java: Synchronize `*Local` versions of queries with their remote counterpart
2023-10-16 10:31:40 -04:00
Ed Minnix
c65d407937
Remove old DataFlow2 import
2023-10-16 10:30:00 -04:00
Tony Torralba
d08ee76b16
Java: Improve java/spring-disabled-csrf-protection
2023-10-16 16:01:14 +02:00
Michael B. Gale
8c818a8657
group => groups
2023-10-16 14:53:03 +01:00
Mathias Vorreiter Pedersen
26a665369b
C++: Add QLDoc.
2023-10-16 14:15:55 +01:00
Michael B. Gale
822f37156e
Merge pull request #14483 from github/mbg/go/dependabot
...
Go: Improve Dependabot configuration
2023-10-16 14:05:36 +01:00
Joe Farebrother
05162c68ec
Fix typo
2023-10-16 13:43:06 +01:00
Alex Ford
22850b28df
Ruby: update alert message test output
2023-10-16 13:08:49 +01:00
Joe Farebrother
aade79f723
Improve qldoc and fix changenote
2023-10-16 13:02:28 +01:00
Alex Ford
66d230a207
ruby: qlformat
2023-10-16 12:45:46 +01:00
Alex Ford
3dd042c38a
Merge remote-tracking branch 'origin/main' into maikypedia/ruby-jwt
2023-10-16 12:42:19 +01:00
Mathias Vorreiter Pedersen
79947956bc
Merge pull request #14509 from MathiasVP/tag-redundant-null-check-simple-as-security
...
C++: Mark `cpp/redundant-null-check-simple` as a security query
2023-10-16 11:58:21 +01:00
Mathias Vorreiter Pedersen
ba27a0d515
Update cpp/ql/src/change-notes/2023-10-16-redundant-null-check-simple.md
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-10-16 12:48:53 +02:00
Geoffrey White
1f92267786
Swift: Sort out identical files situation.
2023-10-16 11:26:12 +01:00
Geoffrey White
890b9d59ed
Swift: Fix line numbers.
2023-10-16 11:09:54 +01:00
Rasmus Wriedt Larsen
883bd9f3b3
Python: Add test for type-tracking with yield
2023-10-16 12:09:07 +02:00
Mathias Vorreiter Pedersen
32d82380f1
C++: Add change note.
2023-10-16 11:08:27 +01:00
Geoffrey White
225a9fe2d8
Merge branch 'main' into implicitflow
2023-10-16 11:02:34 +01:00
Mathias Vorreiter Pedersen
d8a049f5cc
C++: Accept test changes.
2023-10-16 10:51:47 +01:00
Geoffrey White
0e1da37379
Revert "Swift: Hide OpenExistentialExpr from the AST instead."
...
This reverts commit 9ad1749957 .
2023-10-16 10:49:39 +01:00
Mathias Vorreiter Pedersen
7e6857d36b
C++: Make 'hasSize' slightly smarter when handling ternary operators.
2023-10-16 10:48:28 +01:00
Mathias Vorreiter Pedersen
6a7b2e4aa4
C++: Add failing test.
2023-10-16 10:47:45 +01:00
Joe Farebrother
fe2468e7d0
Merge pull request #14498 from joefarebrother/csharp-missing-access-control
...
C#: Fix FP in Missing Function Level Access Control and Insecure Direct Object Reference
2023-10-16 10:46:19 +01:00
Geoffrey White
39a6375606
Swift: Change note.
2023-10-16 10:17:32 +01:00
Geoffrey White
613c7b24b5
Swift: Model .base, withUTF8(_:).
2023-10-16 10:17:32 +01:00
Geoffrey White
0bc24b8641
Swift: Model replaceSubrange more generally.
2023-10-16 10:17:32 +01:00
Geoffrey White
c6f2a2936b
Swift: Widen the StringProtocol model.
2023-10-16 10:14:43 +01:00
Geoffrey White
dcba1b9913
Swift: Tests for Substring.
2023-10-16 10:14:42 +01:00
Mathias Vorreiter Pedersen
20c3984872
C++: Add the 'security' tag and add a 'security-severity' rating to 'cpp/redundant-null-check-simple'.
2023-10-16 09:54:36 +01:00
Arthur Baars
0e3369f93f
Merge pull request #14484 from aibaars/ts53-js
...
JS: Support import attributes
2023-10-16 10:47:49 +02:00
Erik Krogh Kristensen
80c5e1ea77
Merge pull request #14497 from erik-krogh/jsp
...
JS: add support for extracting `.jsp` files
2023-10-16 09:27:46 +02:00
Erik Krogh Kristensen
c30e004506
Merge pull request #14506 from github/dependabot/cargo/ql/tracing-0.1.39
...
Bump tracing from 0.1.38 to 0.1.39 in /ql
2023-10-16 09:24:12 +02:00
Tony Torralba
ae8e237f2c
Merge pull request #14494 from atorralba/atorralba/remove-library
...
Java/C/C#: Remove library annotations
2023-10-16 09:01:40 +02:00
Tamás Vajk
d723905035
Merge pull request #14368 from tamasvajk/standalone/use-legacy-framework-dlls
...
C#: Choose between .NET framework or core DLLs in standalone
2023-10-16 08:53:55 +02:00
dependabot[bot]
7700210ed2
Bump tracing from 0.1.38 to 0.1.39 in /ql
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.38 to 0.1.39.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.38...tracing-0.1.39 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-16 03:21:13 +00:00
Owen Mansel-Chan
53561008a1
Merge pull request #14445 from owen-mc/go/automated-mad-coverage-report
...
Go: automated mad coverage report
2023-10-15 21:49:47 +01:00
Owen Mansel-Chan
39bca2d4bb
Merge pull request #14276 from tunnelshade/enable-gokit-by-default
...
Go: Enable GoKit module into the default list
2023-10-15 21:44:27 +01:00
Maiky
20bf3c7f67
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-15 15:47:19 +02:00
Maiky
e204100701
Resolve conflict in Concepts.qll
2023-10-15 10:37:10 +02:00
Maiky
17210c76a5
change-note edition
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-10-15 10:25:58 +02:00
BD
0ef83b3c74
Merge branch 'main' into enable-gokit-by-default
2023-10-15 10:22:27 +05:30
Chris Smowton
7fbba3a659
Java: adapt stub to ExecutorService change in JDK19
2023-10-13 20:30:28 +01:00
Chris Smowton
8f985e0045
Java: restrict test to source classes
2023-10-13 20:30:28 +01:00
Chris Smowton
0510b0c825
Java: restrict test to source methods
...
Otherwise it finds standard library methods that depend on stdlib internals as to what happens to get extracted. In particular the extractor bump to JDK21 led to MethodHandles being in scope and a new method being found; seems better to avoid considering the standard library at all.
2023-10-13 20:30:28 +01:00
Geoffrey White
cea87a53e0
Swift: Fix LocalTaint.expected.
2023-10-13 18:19:26 +01:00
Ed Minnix
3356261031
Static IV refactor to MaD
2023-10-13 12:50:49 -04:00
Geoffrey White
e2ac3769bc
Swift: Change note.
2023-10-13 17:42:14 +01:00
Geoffrey White
aa0db1426d
Swift: Simplify the QL a bit further.
2023-10-13 17:42:14 +01:00
Geoffrey White
d0f214a9a7
Swift: Widen the model to include things that are not strictly RawRepresentable but which appear similar. This fixes the XXE test cases. Unclear whether xmlParserOption in the test should in fact extend RawRepresentable, or not.
2023-10-13 17:35:05 +01:00
Joe Farebrother
9097d93ac7
Add shared library for filepath normalization
2023-10-13 17:07:47 +01:00
Jeroen Ketema
d56a9f0781
Merge pull request #14424 from jketema/rewrite-cgi-xss
...
C++: Rewrite `cpp/cgi-xss` to not use default taint tracking
2023-10-13 17:57:04 +02:00
Mathias Vorreiter Pedersen
fb0016e4f6
Merge pull request #14485 from geoffw0/logging
...
Swift: Add more sinks to `swift/cleartext-logging`
2023-10-13 16:09:19 +01:00
Mathias Vorreiter Pedersen
9a2ac65f53
Merge pull request #14394 from geoffw0/sqlpathinject3
...
Swift: Add sinks for sqlite3 and SQLite.swift to swift/hardcoded-key
2023-10-13 16:07:09 +01:00
Robert Marsh
b832fc8e32
Swift: additional QLDoc around closures
2023-10-13 14:54:38 +00:00
Mathias Vorreiter Pedersen
140ff537c0
C++: Split 'defaultViableCallable' and 'viableCallable'.
2023-10-13 15:47:02 +01:00
Geoffrey White
4e29ed5ff0
Swift: Model RawRepresentable.
2023-10-13 15:00:49 +01:00
Geoffrey White
228aaee0bf
Swift: Add data flow tests for RawRepresentable, OptionSet.
2023-10-13 14:34:05 +01:00
Joe Farebrother
915352861d
Check for generic base types in Missing Function Level Access Control and Insecure Direct Object Reference.
2023-10-13 14:22:45 +01:00
erik-krogh
69c3e62965
add change-note
2023-10-13 15:16:39 +02:00
Geoffrey White
9e473ebda4
Swift: Remove the 'rawValue' step as well.
2023-10-13 14:02:15 +01:00
Geoffrey White
da14f428e2
Swift: Remove now redundant additional taint step. from the XXE query.
2023-10-13 13:57:54 +01:00
Tamas Vajk
15ec0a10c9
Code quality improvements
2023-10-13 14:09:58 +02:00
Calum Grant
192c16bbb3
C++: Format QL and delete note
2023-10-13 13:07:43 +01:00
Jeroen Ketema
61676277e8
C++: Fix barrier in cpp/cgi-xss
2023-10-13 14:05:47 +02:00
Geoffrey White
33f83a2089
Swift: Add some failing data flow test cases.
2023-10-13 12:24:43 +01:00
Calum Grant
552221868f
C++: Expand ImplicitThisFieldAccess
2023-10-13 12:05:20 +01:00
Tony Torralba
0cea3f8531
Remove library annotations
2023-10-13 12:46:56 +02:00
Harry Maclean
1297acf5b1
Merge pull request #14216 from hmac/hmac-graphql-enum
...
Ruby: Restrict GraphQL remote flow sources
2023-10-13 11:31:50 +01:00
erik-krogh
9080e84fc9
add support for extracting .jsp files
2023-10-13 12:09:27 +02:00
Tamas Vajk
791a6422b3
C#: Fix params attribute argument extraction
2023-10-13 11:30:02 +02:00
Tamas Vajk
e730815f41
C#: Add test case for params arguments in attributes
2023-10-13 11:29:32 +02:00
Tony Torralba
5e921784fb
Merge pull request #14399 from ebickle/fix/thread-resource-arithmetic
...
Java: Flow taint through arithmetic expressions for java/thread-resource-abuse experimental query
2023-10-13 10:06:33 +02:00
Erik Krogh Kristensen
b1ad61e27d
Merge pull request #14481 from erik-krogh/proper-codepoints
...
ReDoS: use the new codePointAt and codePointCount methods instead of regex hacks
2023-10-13 09:35:55 +02:00
Felicity Chapman
2ddcd1d9cc
Merge pull request #14489 from github/felicitymay-typo-fix
...
Fix typo in link
2023-10-12 21:45:30 +01:00
Felicity Chapman
8f70b55158
Fix typo in link
2023-10-12 20:53:44 +01:00
Ian Lynagh
2edc70da79
Merge pull request #14390 from igfoo/igfoo/compr
...
Kotlin: Improve support for TRAP compression options
2023-10-12 20:22:10 +01:00
Robert Marsh
dd71204128
Swift: update test expectations for for-in locations
2023-10-12 18:59:36 +00:00
Geoffrey White
fe57cd0784
Merge pull request #14488 from geoffw0/strlentest
...
Swift: Additional test cases for `swift\string-length-conflation`
2023-10-12 19:39:43 +01:00
AlexDenisov
6ab2de10e3
Merge pull request #14437 from github/alexdenisov/ignore-unavailable-declarations
...
Swift: skip declarations marked as unavailable
2023-10-12 20:08:18 +02:00
Ian Lynagh
ed9502fd0b
Kotlin: Enhance the TRAP compression test
2023-10-12 18:13:07 +01:00
Ian Lynagh
adb47399c7
Kotlin: Improve support for TRAP compression options
...
While you could control compression with
CODEQL_EXTRACTOR_JAVA_OPTION_TRAP_COMPRESSION
before, most TRAP files used gzip regardless for compatibility with the
Java extractor. Now Java understands the option too we can use it for
shared TRAP files.
2023-10-12 18:13:06 +01:00
Mathias Vorreiter Pedersen
3c34638438
Merge pull request #14486 from MathiasVP/simplify-overrun-write
...
C++: Remove unnecessary `FlowState` from `cpp/overrun-write`
2023-10-12 17:48:52 +01:00
Geoffrey White
9f683b8630
Swift: Remove duplicate results.
2023-10-12 17:38:58 +01:00
Geoffrey White
cf7f355fc4
Swift: Additional test cases.
2023-10-12 17:11:56 +01:00
Stephan Brandauer
bcde466d6c
use of characteristics
2023-10-12 17:22:05 +02:00
Stephan Brandauer
1bbf88f208
Java: basic version of automodel extraction queries
2023-10-12 17:07:46 +02:00
Ed Minnix
31c04b50f7
Change note
2023-10-12 09:58:09 -04:00
Ed Minnix
4eeaf84133
Sync NumericCastTaintedQuery
2023-10-12 09:58:08 -04:00
Ed Minnix
ec84f072eb
Sync ArithmeticTaintedLocalQuery
2023-10-12 09:58:08 -04:00
Ed Minnix
da933fb77a
Sync ExternallyControlledFormatStringLocalQuery
2023-10-12 09:58:08 -04:00
Ed Minnix
f1886320e5
Sync ImproperValidationOfArrayIndexLocalQuery
2023-10-12 09:58:08 -04:00
Ed Minnix
69531b9f7c
Sync ResponseSplittingLocalQuery
2023-10-12 09:58:08 -04:00
Ed Minnix
ef282955fd
Sync SqlTaintedLocalQuery with SqlInjectionQuery
2023-10-12 09:58:08 -04:00
Ed Minnix
e4f567979a
Sync XSS Local
2023-10-12 09:58:08 -04:00
Mathias Vorreiter Pedersen
64fa6c8bbd
C++: Remove the hacky flow state since this is no longer needed after #13717 .
2023-10-12 13:58:36 +01:00
Geoffrey White
5c0085880f
Swift: Change note.
2023-10-12 13:24:10 +01:00
Geoffrey White
e2a8569940
Swift: Clean up indentation.
2023-10-12 13:05:20 +01:00
Geoffrey White
8f852f2e7d
Swift: Turn sink models into flow summary models, where appropriate.
2023-10-12 12:57:05 +01:00
erik-krogh
fa1e8ee426
add getACodepoint to the shared Strings library, and use it in NfaUtils
2023-10-12 13:38:19 +02:00
erik-krogh
822ba2ae59
add documentation for the new string methods in ql-language-specification.rst
2023-10-12 13:38:19 +02:00
erik-krogh
116025c569
use the new codePointAt and codePointCount methods instead of regex hacks
2023-10-12 13:38:19 +02:00
Arthur Baars
a4d0ef6350
Add changenote
2023-10-12 13:04:00 +02:00
Arthur Baars
a9a21aa313
Rename DynamicImportExpr::getImport{Attributes => Options}
2023-10-12 13:00:39 +02:00
Arthur Baars
1f4fcf1f31
Rename test files
2023-10-12 13:00:39 +02:00
Arthur Baars
a1c1f7b910
Add tests for deprecated 'assert' syntax
2023-10-12 13:00:39 +02:00
Arthur Baars
f38d2e1b89
Replace 'assert' with 'with' in QL test files
2023-10-12 13:00:39 +02:00
Arthur Baars
c28004f2a6
Rename 'getImportAssertion()' to 'getImportAttributes()' in QL library
2023-10-12 13:00:39 +02:00
Arthur Baars
07172da1bc
Add tests for deprecated 'assert' syntax
2023-10-12 12:51:13 +02:00
Arthur Baars
f7b02c01dd
Rename getAssertion() to getAttributes() in the extractor
2023-10-12 12:51:13 +02:00
Arthur Baars
1d9ee5da3c
Rename 'assertions' to 'attributes' in JS extractor
2023-10-12 12:49:25 +02:00
Erik Krogh Kristensen
59c43c7904
Merge pull request #14410 from erik-krogh/bigger-compilation-cache
...
use a bigger compilation cache in the compile-queries workflow
2023-10-12 12:35:44 +02:00
Mathias Vorreiter Pedersen
782ecd77b7
C++: Add change notes.
2023-10-12 11:15:41 +01:00
Mathias Vorreiter Pedersen
02f73145d6
Merge pull request #14354 from geoffw0/conversions2
...
Swift: Improve models for Numeric, RangeReplaceableCollection
2023-10-12 11:13:50 +01:00
Michael B. Gale
75900f05c9
Go: group golang.org dependencies
2023-10-12 10:55:45 +01:00
Michael B. Gale
114a875f3d
Go: re-add Dependabot allow list
2023-10-12 10:55:31 +01:00
Arthur Baars
b936e91fe9
Support JS import attributes (previously import assertions)
2023-10-12 11:43:42 +02:00
Mathias Vorreiter Pedersen
6865ce56bc
C++: Add an abstract class that can be used to extend 'viableCallable'.
2023-10-12 10:35:36 +01:00
Michael B. Gale
f6570710e7
Merge pull request #14441 from github/dependabot/go_modules/go/extractor/golang.org/x/tools-0.14.0
...
Bump golang.org/x/tools from 0.13.0 to 0.14.0 in /go/extractor
2023-10-12 10:19:34 +01:00
Tamas Vajk
3b4ea27caf
Be more explicit about expected assembly loading exceptions
2023-10-12 11:10:30 +02:00
Tamas Vajk
09c1c715a3
Filter analyzer assemblies from nuget packages
2023-10-12 11:10:30 +02:00
Geoffrey White
7916bd39b4
Swift: Generalize 'write' models.
2023-10-12 09:21:33 +01:00
Geoffrey White
09974b5176
Swift: Extend sink models.
2023-10-12 09:17:04 +01:00
amammad
cc1b8b2e02
fix a issue in fasthttp library, add SSRF inline queires
2023-10-12 09:55:14 +02:00
amammad
b5c4b5e482
add additional taint steps inline tests
2023-10-12 09:45:25 +02:00
Tamas Vajk
8a0dc31ab0
Revert "Add source generators to framework stubs"
...
This reverts commit 2e8a91efda .
2023-10-12 09:35:08 +02:00
amammad
acee50c9df
add inline tests for open redirect,xss, fix some issues in fasthttp.qll
2023-10-12 09:10:16 +02:00
Tamas Vajk
2e8a91efda
Add source generators to framework stubs
2023-10-12 08:51:06 +02:00
Tamas Vajk
534ea3ecac
Adjust stub generator test to fix the nuget package version
2023-10-12 08:50:32 +02:00
amammad
720565f442
add inline tests for UntrustedFlowSource, and fix some not necessarily flow sources
2023-10-12 08:32:33 +02:00
amammad
ac5e9c75e1
fix a mistake: remove vendor dir from go root directory
2023-10-12 08:06:45 +02:00
Owen Mansel-Chan
5fcdb9e112
Merge pull request #14442 from owen-mc/go/test-qldoc-coverage
...
Fix module name
2023-10-11 23:45:53 +01:00
Owen Mansel-Chan
286271340e
Merge branch 'main' into go/automated-mad-coverage-report
2023-10-11 21:31:25 +01:00
Tamas Vajk
e82076d558
Lock SDK version in standalone test
2023-10-11 22:28:47 +02:00
Owen Mansel-Chan
e300440a8b
Delete redundant import
2023-10-11 21:28:31 +01:00
Owen Mansel-Chan
dfcdb4ace8
Update CSV to MaD in description for java and C#
2023-10-11 21:09:59 +01:00
Eric Bickle
ee2d8f84de
Merge branch 'main' into fix/thread-resource-arithmetic
2023-10-11 13:09:57 -07:00
Owen Mansel-Chan
e5e9c33005
Generated reports
2023-10-11 21:09:55 +01:00
Owen Mansel-Chan
06a600c7fb
Set up automated coverage reports for Go
...
Copied from https://github.com/github/codeql/pull/6148
2023-10-11 21:09:54 +01:00
Eric Bickle
f018d83951
Merge branch 'fix/thread-resource-arithmetic' of https://github.com/ebickle/codeql into fix/thread-resource-arithmetic
2023-10-11 13:09:39 -07:00
Eric Bickle
4cb78ab3c7
Remove change notes
2023-10-11 13:08:56 -07:00
Tamas Vajk
da096553a2
Do not throw exception when working directory cleanup fails
2023-10-11 20:48:17 +02:00
Geoffrey White
0e4cd7f52f
Swift: Additional test cases.
2023-10-11 18:37:24 +01:00
amammad
3926fd7333
update tests
2023-10-11 19:27:57 +02:00
Henry Mercer
1a370bfbbe
Merge pull request #14443 from github/post-release-prep/codeql-cli-2.15.0
...
Post-release preparation for codeql-cli-2.15.0
2023-10-11 17:39:04 +01:00
amammad
7d60f03131
fix tests
2023-10-11 18:04:35 +02:00
amammad
8e5be13466
fix conflict
2023-10-11 18:02:55 +02:00
Tamas Vajk
4f31b5a214
C#: Fix stub generator to use framework references from nuget packages
2023-10-11 16:40:09 +02:00
Rasmus Lerchedahl Petersen
a4117538ab
Python: update test expectations
...
This update looks different locally for me,
so this is slightly sketchy..
2023-10-11 16:31:56 +02:00
Tamas Vajk
ada5dcced4
Adjust expected test result in windows standalone test
2023-10-11 16:25:35 +02:00
Tamas Vajk
e718796f23
Separate standalone dependency integration tests by platform
2023-10-11 16:25:35 +02:00
Tamas Vajk
e1b283c14a
Exclude nuget packages with prefix runtime. from the references
2023-10-11 16:25:34 +02:00
Tamas Vajk
93380f8cbb
Force the nuget download of dotnet framework reference assemblies
2023-10-11 16:25:34 +02:00
Tamas Vajk
12fdb3427b
Add integration test targetting .NET 4.8
2023-10-11 16:25:34 +02:00
Tamas Vajk
b8effa3a1c
Add integration test listing standalone extracted assemblies
2023-10-11 16:25:34 +02:00
Tamas Vajk
4e2c6ff8d7
C#: Consider possibly restored reference assemblies
2023-10-11 16:25:34 +02:00
Tamas Vajk
4887c697c9
C#: Choose between .NET framework or core DLLs in standalone
2023-10-11 16:25:34 +02:00
github-actions[bot]
ae6af17c74
Post-release preparation for codeql-cli-2.15.0
2023-10-11 14:19:20 +00:00
Tamás Vajk
a31f946d6f
Merge pull request #14436 from tamasvajk/void-type-value-type
...
C#: Include the `void` type in value types
2023-10-11 16:16:06 +02:00
Asger F
7780fe9472
Merge pull request #14435 from asgerf/ruby/port-synced-queries
...
JS/Ruby: desync two queries and port the Ruby version to ConfigSig-style
2023-10-11 15:50:58 +02:00
Owen Mansel-Chan
b6bf4d04ff
Fix module name
2023-10-11 14:47:46 +01:00
dependabot[bot]
442a4fe9cf
Bump golang.org/x/tools from 0.13.0 to 0.14.0 in /go/extractor
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-11 13:12:49 +00:00
Michael B. Gale
7a98afe6ec
Merge pull request #14439 from github/mbg/go/workspace-experiments
...
Go: Move `go.mod` into `extractor` subdirectory
2023-10-11 14:11:07 +01:00
amammad
46616d6b42
fix a qldoc isuse
2023-10-11 14:53:08 +02:00
Jean Helie
a4eb3fd997
Merge pull request #14438 from github/jhelie/fix-automodel-extraction-queries
...
Automodel: Fix automodel extraction queries
2023-10-11 14:30:01 +02:00
Michael B. Gale
7d7d90e7e0
Update expected test output
2023-10-11 13:18:27 +01:00
Michael B. Gale
94b0bc1e35
Move go.mod into extractor directory
2023-10-11 13:10:20 +01:00
Jean Helie
6260768e6a
update query message to incoude extensibleType
2023-10-11 14:02:24 +02:00
Jean Helie
c41676a21a
update query message to incoude extensibleType
2023-10-11 14:02:12 +02:00
Owen Mansel-Chan
477d8f8b9a
Merge pull request #14064 from amammad/amammad-go-NewFileSystemAccess
...
Go: New File System Access Sinks
2023-10-11 12:58:38 +01:00
Owen Mansel-Chan
96543b8337
Merge pull request #14075 from amammad/amammad-go-JWT
...
Go: Improved JWT query, JWT decoding without verification
2023-10-11 12:31:43 +01:00
amammad
c630300374
fix a tests
2023-10-11 13:18:55 +02:00
amammad
d63b33bb08
fix a tests
2023-10-11 13:16:30 +02:00
Mathias Vorreiter Pedersen
02915582eb
Merge pull request #14432 from MathiasVP/select-the-right-node-for-flow-sources
...
C++: Use fully converted instructions as the target of modelled functions
2023-10-11 13:04:16 +02:00
Owen Mansel-Chan
8a3aa2c767
Fix formatting
2023-10-11 11:46:31 +01:00
Tamas Vajk
267fd23b26
C#: Include the void type in value types
2023-10-11 12:01:17 +02:00
Tamás Vajk
304d7a4395
Merge pull request #14429 from tamasvajk/relax-metadata_handle-keyset
...
C#: Remove `keyset` from `metadata_handle` relation
2023-10-11 12:00:11 +02:00
Erik Krogh Kristensen
85bb14f04f
Merge pull request #14405 from erik-krogh/tagCall
...
JS: recognize tagged template literals as `DataFlow::CallNode`
2023-10-11 11:25:34 +02:00
Mathias Vorreiter Pedersen
d54ab640c7
Merge branch 'main' into select-the-right-node-for-flow-sources
2023-10-11 10:17:10 +01:00
Alex Denisov
4133284bc8
Swift: skip declarations marked as unavailable
2023-10-11 10:55:49 +02:00
Tamás Vajk
aa7a667919
Merge pull request #14421 from tamasvajk/csharp/autobuilder-test
...
C#: Add autobuilder test with global.json
2023-10-11 10:35:53 +02:00
amammad
5e273238ca
fix qldoc
2023-10-11 10:33:44 +02:00
Asger F
89bd00a4ec
Ruby: port queries to ConfigSig-style
2023-10-11 10:06:19 +02:00
Asger F
6df919a917
JS/Ruby: remove sync between two queries
2023-10-11 10:06:11 +02:00
Rasmus Wriedt Larsen
68d00a829e
Merge pull request #14430 from RasmusWL/api-graph-import-star
...
Python: Better allow `import *` to work with API graphs
2023-10-11 10:03:46 +02:00
Erik Krogh Kristensen
6377e92067
Update javascript/ql/lib/semmle/javascript/dataflow/DataFlow.qll
...
Co-authored-by: Asger F <asgerf@github.com >
2023-10-11 09:52:48 +02:00
Erik Krogh Kristensen
e99b1598d1
Merge pull request #14433 from erik-krogh/delete-expected
...
JS: delete an .expected file outside the test directories
2023-10-11 09:44:04 +02:00
Tamás Vajk
c587dbb72a
Merge pull request #14428 from tamasvajk/feature/deterministic-conflict-resolution
...
C#: Make conflicting assembly selection deterministic in standalone
2023-10-11 08:40:50 +02:00
amammad
4499048d8e
better query quality thanks to owen
2023-10-10 23:41:45 +02:00
amammad
877605d31b
change c to C for fixing the qhelp error :)
2023-10-10 23:35:05 +02:00
amammad
b6968d9260
fix beego tests
2023-10-10 23:30:26 +02:00
amammad
8d6f985aea
fix afero additional step and tests
2023-10-10 23:24:04 +02:00
amammad
db9f74bc78
fix tests
2023-10-10 23:15:07 +02:00
amammad
82483a206e
fix tests
2023-10-10 23:14:11 +02:00
amammad
38b0ed8176
fix issues according to codereview
2023-10-10 23:12:30 +02:00
amammad
14d1e08051
reformat
2023-10-10 22:34:26 +02:00
erik-krogh
ccd06c78b9
delete an .expected file outside the test directories
2023-10-10 21:35:19 +02:00
Alex Eyers-Taylor
3ac3169278
CPP: Add some range analysis cases
2023-10-10 20:01:14 +01:00
Robert Marsh
484d020c39
Merge branch 'main' into rdmarsh2/swift/autoclosure-cfg
2023-10-10 18:47:13 +00:00
Eric Bickle
7a4382fb69
Merge branch 'main' into fix/thread-resource-arithmetic
2023-10-10 09:38:16 -07:00
Eric Bickle
80c8259e34
Remove unnecessary AdditionalValueStep check
2023-10-10 09:35:45 -07:00
Mathias Vorreiter Pedersen
f1cefc8900
Merge branch 'main' into select-the-right-node-for-flow-sources
2023-10-10 17:35:37 +01:00
Mathias Vorreiter Pedersen
496f190d70
C++: Accept test changes.
2023-10-10 16:45:31 +01:00
Mathias Vorreiter Pedersen
512c10ec59
C++: Use the fully converted expression when converting models to dataflow nodes.
2023-10-10 16:45:25 +01:00
Rasmus Wriedt Larsen
ee75b104eb
Python: Add change-note
2023-10-10 17:45:11 +02:00
Rasmus Wriedt Larsen
72d0dcdaba
Python: Workaround for module level items from import * not being LocalSourceNodes
2023-10-10 17:45:11 +02:00
Rasmus Wriedt Larsen
6521e5165c
Python: Extend import * with plain use
...
(no calls or anything)
2023-10-10 17:45:11 +02:00
yoff
f1266a3e81
Merge pull request #14417 from github/tausbn/python-add-flow-for-assignment-expressions
2023-10-10 17:09:20 +02:00
Tamas Vajk
4c6073ebce
C#: Remove keyset from metadata_handle relation
2023-10-10 16:49:48 +02:00
Tamas Vajk
2378e31c5e
C#: Make conflicting assembly selection deterministic
2023-10-10 16:32:02 +02:00
Michael B. Gale
be16cb4190
Merge pull request #14415 from github/mbg/go/dependabot-config
2023-10-10 14:36:34 +01:00
Michael B. Gale
ce905bba41
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-10 14:21:20 +01:00
Tamás Vajk
bc1c22cda2
Merge pull request #14425 from tamasvajk/standalone/nuget-download-lazy
...
C#: Only download nuget.exe if there are packages.config files
2023-10-10 14:28:43 +02:00
Rasmus Wriedt Larsen
2d947a4f53
Merge pull request #13781 from maikypedia/maikypedia/python-unsafe-deserialization
...
Python: Add unsafe deserialization sinks (CWE-502)
2023-10-10 13:30:38 +02:00
Owen Mansel-Chan
542d5a2451
Merge pull request #14414 from owen-mc/go/fix-incorrect-integer-conversion-performance-regression
...
Go: Change MaxValueState API to get architecture bit size
2023-10-10 11:27:18 +01:00
Jeroen Ketema
3b777c2764
C++: Rewrite cpp/cgi-xss to not use default taint tracking
...
Also add a test that demonstrates that we need to look at inidrect expressions
and not direct ones.
2023-10-10 11:56:39 +02:00
amammad
242f7e1c53
update pg :)
2023-10-10 11:42:32 +02:00
Tamas Vajk
1872a937d5
C#: Only download nuget.exe if there are packages.config files
2023-10-10 11:39:39 +02:00
Owen Mansel-Chan
fd9c1d30f9
Remove argument that is always one value
2023-10-10 10:35:04 +01:00
Owen Mansel-Chan
cf0411e7e2
Change MaxValueState API to get architecture bit size
...
This fixes a performance regression, though it is not clear why.
2023-10-10 10:35:02 +01:00
Taus
8e1bb4b364
Python: Accept moved consistency test results
...
Co-authored-by: Rasmus Lerchedahl Petersen <yoff@github.com >
2023-10-10 09:22:36 +00:00
amammad
18edef6ea4
add better-sqlite3 tests
2023-10-10 11:20:17 +02:00
amammad
bbeb7b39d7
add better-sqlite3
2023-10-10 11:17:04 +02:00
Geoffrey White
0d562d4874
Swift: Autoformat.
2023-10-10 10:01:37 +01:00
Geoffrey White
48ee4add08
Merge branch 'main' into sqlpathinject3
2023-10-10 08:54:44 +01:00
Geoffrey White
0374414798
Swift: Fix TupleElement syntax.
2023-10-10 08:31:50 +01:00
Michael Nebel
5c44f8bbad
Merge pull request #14370 from michaelnebel/java/enablethreatmodels
...
Java: Enable threat models for most Java queries.
2023-10-10 09:25:47 +02:00
Tamas Vajk
538df1bb6d
C#: Add autobuilder test with global.json
2023-10-10 09:11:40 +02:00
Erik Krogh Kristensen
5cb3543899
Merge pull request #14420 from github/dependabot/cargo/ql/regex-1.10.0
...
Bump regex from 1.9.6 to 1.10.0 in /ql
2023-10-10 08:43:46 +02:00
dependabot[bot]
0e09420e7b
Bump regex from 1.9.6 to 1.10.0 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.6 to 1.10.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.6...1.10.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-10 03:56:00 +00:00
amammad
4283bb7d48
clean up unused vars,fix tests
2023-10-09 23:15:58 +02:00
amammad
9d86e7946c
move library file to experimental lib directory
2023-10-09 23:10:30 +02:00
amammad
1318afdb27
modularize
2023-10-09 23:07:52 +02:00
Remco Vermeulen
76e56cdac7
Adjust query severities
2023-10-09 12:52:09 -07:00
Erik Krogh Kristensen
4489e2bf28
Merge pull request #14403 from erik-krogh/dDEps
...
All: delete outdated deprecations
2023-10-09 21:04:55 +02:00
amammad
3175db226e
upgrade fastAPI remote sources
2023-10-09 20:51:19 +02:00
amammad
2579791f51
fix examples
2023-10-09 19:00:55 +02:00
Jeroen Ketema
fe60269fdd
Merge pull request #14416 from jketema/revert-cgi-xss-rewrite
...
Revert "C++: Rewrite `cpp/cgi-xss` to not use default taint tracking"
2023-10-09 18:52:54 +02:00
Jeroen Ketema
6ff8e06ace
Revert "C++: Rewrite cpp/cgi-xss to not use default taint tracking"
...
This reverts commit b6132d2a0f .
2023-10-09 16:30:21 +02:00
Robert Marsh
dab9a859f3
Merge branch 'main' into rdmarsh2/swift/autoclosure-cfg
2023-10-09 14:21:28 +00:00
Taus
e8ac258994
Python: Add missing flow for AssignmentExpr nodes
...
Also extend the tests surrounding this construct to be a bit more comprehensive.
Co-authored-by: Rasmus Lerchedahl Petersen <yoff@github.com >
2023-10-09 14:16:03 +00:00
Michael B. Gale
f186b93c93
Add dependabot configuration for Go dependencies
2023-10-09 15:14:17 +01:00
Robert Marsh
8af727734e
Merge pull request #13909 from rdmarsh2/rdmarsh2/swift/for-in
...
Swift: dataflow for `for-in` loops
2023-10-09 10:00:27 -04:00
Michael B. Gale
ebd640da04
Merge pull request #14391 from github/mbg/go/update-newer-go-version-needed
...
Go: Fix version detection and test for `newer-go-version-needed`
2023-10-09 14:47:37 +01:00
Erik Krogh Kristensen
625e889c62
Merge pull request #14339 from erik-krogh/range-printing
...
JS/PY/RB/Java: escape unicode chars in overly-large-range
2023-10-09 14:22:38 +02:00
Geoffrey White
57e32b47b7
Merge pull request #14386 from geoffw0/swiftperf
...
Swift: defaultImplicitTaintRead performance improvement
2023-10-09 13:07:11 +01:00
Geoffrey White
62b0ebf2fe
Merge pull request #14407 from geoffw0/grdbsinks
...
Swift: Add sinks for the GRDB database library to swift/hardcoded-key
2023-10-09 12:58:17 +01:00
erik-krogh
e1b2f81f43
Revert "update doc example to not use isBarrierGuard"
...
This reverts commit 28f8c1cc11 .
2023-10-09 13:29:41 +02:00
erik-krogh
ef63d9dd47
use a bigger compilation cache in the compile-queries workflow
2023-10-09 13:21:37 +02:00
Michael Nebel
cf3a62d201
Java: Address review comments.
2023-10-09 13:06:59 +02:00
Anders Schack-Mulligen
4a0ab4a050
Merge pull request #14402 from Marcono1234/marcono1234/MemberRefExpr-getReceiverExpr
...
Java: Add predicate `MemberRefExpr::getReceiverExpr`
2023-10-09 13:01:36 +02:00
Anders Schack-Mulligen
8c6a1be070
Merge pull request #14401 from Marcono1234/marcono1234/ClassInstanceExpr-type-argument-doc
...
Java: Adjust `ClassInstanceExpr` type argument predicates docs
2023-10-09 13:01:18 +02:00
Robert
e38ba27a65
Merge pull request #14408 from github/robertbrignull/telemetryLevel-docs
...
Update about-telemetry-in-codeql-for-visual-studio-code.rst to mention telemtry.telemetryLevel
2023-10-09 11:38:33 +01:00
Robert
ada331588f
Update about-telemetry-in-codeql-for-visual-studio-code.rst to mention telemtry.telemetryLevel
2023-10-09 11:04:52 +01:00
Jeroen Ketema
f7bd801e00
Merge pull request #11716 from jketema/rewrite-cgi-xss
...
C++: Rewrite `cpp/cgi-xss` to not use default taint tracking
2023-10-09 11:26:14 +02:00
Mathias Vorreiter Pedersen
a1d417d8b6
Merge pull request #14385 from alexet/ir-debug-perf
...
CPP: Improve performance of IR debugging
2023-10-09 11:21:03 +02:00
Tony Torralba
0258dd4fed
Merge pull request #14379 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-10-09 10:06:22 +02:00
erik-krogh
a7ab9fd93b
add change-notes
2023-10-09 09:43:06 +02:00
erik-krogh
f48b47c656
JavaScript: add import that populate the shared abstract classes
2023-10-09 09:14:55 +02:00
erik-krogh
57c757c0a6
Ruby: delete outdated deprecation in test code
2023-10-09 09:14:55 +02:00
erik-krogh
194f918c0b
Python: delete various outdated deprecations
2023-10-09 09:14:55 +02:00
erik-krogh
c2942b37a7
JS: delete various outdated deprecations
2023-10-09 09:14:55 +02:00
erik-krogh
e0fefce2a3
Ruby: delete various deprecated predicates
2023-10-09 09:14:54 +02:00
erik-krogh
e3e8f3d7c4
Java: delete various outdated deprecations
2023-10-09 09:14:54 +02:00
erik-krogh
689eda4dae
CPP: delete the deprecated AnalysedString class
2023-10-09 09:14:54 +02:00
erik-krogh
1c9f59e491
Python:delete deprecated files modelling web frameworks
2023-10-09 09:14:54 +02:00
erik-krogh
0d992a3d1f
delete old deprecated aliases of various regex libraries
2023-10-09 09:14:54 +02:00
erik-krogh
28f8c1cc11
update doc example to not use isBarrierGuard
2023-10-09 09:14:51 +02:00
github-actions[bot]
7c332a31a8
Add changed framework coverage reports
2023-10-09 00:16:19 +00:00
amammad
ad2631202d
fix comments
2023-10-08 21:32:04 +02:00
amammad
6c8cc79b4d
v1
2023-10-08 21:24:54 +02:00
Geoffrey White
8a7325268a
Swift: Change note.
2023-10-07 23:19:24 +01:00
Geoffrey White
c492b5f2dd
Swift: Model sinks.
2023-10-07 23:19:09 +01:00
Geoffrey White
8bf6fd67d1
Swift: Add a test for GRDB hardcoded key sinks.
2023-10-07 23:07:32 +01:00
erik-krogh
4bc4e0845d
delete the deprecated isBarrierGuard predicate from the shared dataflow library, and its uses
2023-10-07 21:48:49 +02:00
erik-krogh
d261cec3cd
add change-note
2023-10-07 15:41:08 +02:00
Marcono1234
f3e5045259
Java: Add predicate MemberRefExpr::getReceiverExpr
2023-10-07 14:53:07 +02:00
erik-krogh
56e9eda2b9
fix performance by caching getArgument
2023-10-07 13:06:45 +02:00
Marcono1234
b8f6877aba
Merge branch 'main' into patch-1
2023-10-07 03:46:12 +02:00
Marcono1234
2c0dcd3a2d
Java: Adjust ClassInstanceExpr type argument predicates docs
...
The type arguments which these predicates have as result are for the
type of the created instance.
Previously the documentation said "provided to the constructor", which
is misleading / incorrect. Type arguments provided to the constructor
are specified directly after the `new` keyword:
```
class C {
<T> C() {
}
}
new <String> C();
```
And those are not part of the results of these predicates.
2023-10-07 03:43:58 +02:00
Eric Bickle
4dca396106
Add change notes for ThreadResourceAbuse ArithExpr fix
2023-10-06 14:31:37 -07:00
Eric Bickle
000c1f7ec8
Java: Flow taint through ArithExpr for ThreadResourceAbuse
...
Ensure that tainted values flow through arithmetic operations when
checking for ThreadResourceAbuse vulnerabilities.
For example, multiplying 'number of seconds' by 1000 as an input
to Thread.Sleep, which accepts milliseconds, is a common scenario.
2023-10-06 14:24:37 -07:00
amammad
13577f71d6
fix tests, add more comments
2023-10-06 22:34:31 +02:00
Robert Marsh
30a9656ebb
Swift: change note for autoclosure cfg
2023-10-06 20:19:35 +00:00
Robert Marsh
cb749bd973
Swift: CFG for normal autoclosure exprs
2023-10-06 20:14:49 +00:00
Robert Marsh
661da76838
Swift: add function call autoclosure tests
2023-10-06 19:49:33 +00:00
erik-krogh
7ca0996912
add a taint-tracking tests for calls to tagged template strings
2023-10-06 21:39:42 +02:00
erik-krogh
9b6501787a
add API-graph test for the new tagged template calls
2023-10-06 21:25:34 +02:00
Geoffrey White
0918e50b05
Swift: Switch pragma to inline_late.
2023-10-06 20:23:51 +01:00
erik-krogh
18e6a5491c
recognize tagged templates as DataFlow::CallNode
2023-10-06 21:14:00 +02:00
erik-krogh
951ed01d6b
combine the library-tests/CallGraphs/FullTest tests into one file
2023-10-06 20:57:09 +02:00
amammad
21f477a674
revert go/vendor/ :(
2023-10-06 19:39:18 +02:00
amammad
d4b2ca5cee
add vendor for tests, update test results, revert go/vendor/modules.txt :(
2023-10-06 19:34:13 +02:00
Geoffrey White
7c28528eac
Swift: Change note.
2023-10-06 18:26:21 +01:00
Geoffrey White
676179620a
Swift: Get sqlite3 C API results (model Data.withUnsafeBytes, Data.withUnsafeMutableBytes, permit flow out of collections at the query sink)
2023-10-06 18:26:20 +01:00
Geoffrey White
bc9d8cc40f
Swift: Get another SQLite.swift result.
2023-10-06 18:26:20 +01:00
Geoffrey White
691665fca8
Swift: Add models for SQLite.swift.
2023-10-06 18:26:19 +01:00
Geoffrey White
bece2e8689
Swift: Add models for sqlite3 C API.
2023-10-06 18:26:19 +01:00
Geoffrey White
9a628d4165
Swift: Add test for sqlite3 C API.
2023-10-06 18:26:18 +01:00
Geoffrey White
8006996f46
Swift: Add test for SQLite.swift.
2023-10-06 18:26:18 +01:00
Geoffrey White
9ad1749957
Swift: Hide OpenExistentialExpr from the AST instead.
2023-10-06 17:55:29 +01:00
amammad
31cae204f6
make DecompressionBombs module and extention points
2023-10-06 18:14:05 +02:00
Geoffrey White
76db1c5c8b
Swift: Add the same code to the AST test as well.
2023-10-06 17:13:49 +01:00
Robert Marsh
85587413d0
Swift: fix QLDoc formatting for getSequence
2023-10-06 15:29:56 +00:00
Robert Marsh
c281db6b5b
Swift: improve QLDoc for getSequence
2023-10-06 15:23:58 +00:00
Robert Marsh
ec292ca4e1
Swift: Split for-each change note into two lines
2023-10-06 15:21:55 +00:00
Ian Lynagh
d34b85cf03
Kotlin: Remove 1.4 compatibility
...
We now only build with >= 1.5
2023-10-06 15:17:32 +01:00
amammad
7d36c23d59
fix qhelp and PascalCase issues
2023-10-06 16:14:10 +02:00
Jeroen Ketema
b6132d2a0f
C++: Rewrite cpp/cgi-xss to not use default taint tracking
2023-10-06 16:11:13 +02:00
Michael Nebel
dca39348ab
Java: Add change note.
2023-10-06 15:09:16 +02:00
Michael Nebel
fb10af9042
Jave: Remove the local threat model from the default configuration.
2023-10-06 14:58:48 +02:00
amammad
7d73808d60
fix a test mistake, add comments for JWT extension points
2023-10-06 13:31:09 +02:00
amammad
aa127b1662
do review improvements
2023-10-06 13:22:43 +02:00
Michael B. Gale
0b13da35eb
Go: Update newer-go-version-needed test
...
- Use a version that is accepted by Go tooling
- Run is no longer successful with Go 1.21
2023-10-06 11:57:47 +01:00
Michael B. Gale
01a1d814f4
Do not call EmitNewerGoVersionNeeded for v1.21+
2023-10-06 11:57:37 +01:00
Michael B. Gale
c63f6807c4
Go: Run go version with GOTOOLCHAIN=local
2023-10-06 11:57:26 +01:00
Michael B. Gale
76781e5d75
Go: Add GoVersionInfo type
...
Refactors `tryReadGoDirective` to return this instead of a pair.
This will make it easier to return multiple versions.
2023-10-06 11:57:08 +01:00
Mathias Vorreiter Pedersen
a08356979f
Merge pull request #14382 from MathiasVP/deduplicate-why
...
C++: Project away `why` to prevent tuple duplication in `Buffer.qll`
2023-10-06 12:52:58 +02:00
Geoffrey White
b0c7964ea6
Swift: Add the same code to the CFG test as well.
2023-10-06 10:07:52 +01:00
Geoffrey White
b3185e9519
Swift: Expand the test case.
2023-10-06 09:43:33 +01:00
Mathias Vorreiter Pedersen
eb3f1967a5
Merge pull request #14365 from MathiasVP/disable-flow-through-pointer-arith-for-size
...
C++: Disable size-flow through pointer arithmetics in `cpp/invalid-pointer-deref`
2023-10-06 10:14:31 +02:00
Asger F
97b3ebe385
Merge pull request #14380 from asgerf/js/amd-range
...
JS: Add AmdModuleDefinition::Range
2023-10-05 21:05:28 +02:00
Mathias Vorreiter Pedersen
b231b1ccaf
Merge pull request #14384 from MathiasVP/handle-instructions-in-reverse-flow
2023-10-05 20:26:38 +02:00
Robert Marsh
bbec4082c0
Merge pull request #14312 from geoffw0/sqlpathinject2
...
Swift: Add sinks for sqlite3 and SQLite.swift to swift/cleartext-storage-database
2023-10-05 14:08:55 -04:00
Geoffrey White
66637e8c03
Swift: Autoformat.
2023-10-05 18:53:30 +01:00
Geoffrey White
81d4ec1e98
pragma node
2023-10-05 18:30:50 +01:00
Alex Eyers-Taylor
c79ec8c37a
CPP: Improve performance of IR debugging
2023-10-05 17:35:52 +01:00
Geoffrey White
fdcc6b482d
Swift: Simplify allowImplicitRead slightly.
2023-10-05 16:42:43 +01:00
Geoffrey White
7ddece1560
Swift: Update .expected after merge.
2023-10-05 16:20:56 +01:00
Geoffrey White
6bea7f89a8
Merge branch 'main' into sqlpathinject2
2023-10-05 16:15:37 +01:00
Cornelius Riemenschneider
d3a1dbc0c7
Merge pull request #14381 from github/criemen/add-bazel-dbschemes
...
Add skeleton bazel files for accessing the dbschemes.
2023-10-05 16:53:45 +02:00
Geoffrey White
e31ca58a2f
Swift: Post-merge fix.
2023-10-05 15:45:22 +01:00
Geoffrey White
17894db501
Merge branch 'main' into conversions2
2023-10-05 15:33:05 +01:00
Mathias Vorreiter Pedersen
20900dafc0
C++: Handle reverse flow when 'nodeTo' is an instruction.
2023-10-05 16:28:57 +02:00
Michael Nebel
96f93cefba
UNDO AGAIN: Add local threat models.
2023-10-05 16:16:00 +02:00
Ian Lynagh
e124a70380
Merge pull request #14378 from igfoo/igfoo/compr
...
Kotlin: Some compression simplification
2023-10-05 13:16:00 +01:00
Ian Lynagh
0cf309b64e
Merge pull request #14369 from igfoo/igfoo/remove_unused
...
Kotlin: Remove some unused code
2023-10-05 13:15:20 +01:00
Mathias Vorreiter Pedersen
2f39ab1977
C++: Project away 'why' to prevent tuple duplication in 'Buffer.qll'.
2023-10-05 13:32:52 +02:00
Geoffrey White
e225ea6bef
Swift: Remove redundant code.
2023-10-05 11:14:54 +01:00
Geoffrey White
dcd88100f0
Swift: Minor corrections, update parse.expected.
2023-10-05 11:11:52 +01:00
Geoffrey White
446416f1ab
Swift: Change note.
2023-10-05 11:06:11 +01:00
Geoffrey White
a1512c8af0
Swift: This should always have been private.
2023-10-05 11:06:11 +01:00
Geoffrey White
9bdddabd8a
Swift: Avoid changing interfaces we don't need to. Improve QLDoc.
2023-10-05 10:45:59 +01:00
Geoffrey White
fddda0368c
Swift: Add PotentialRegexEval / doesEvaluate mechanism.
2023-10-05 10:45:59 +01:00
Geoffrey White
fa10dbea9f
Swift: Support mode flags through NSString.CompareOptions.
2023-10-05 10:45:59 +01:00
Geoffrey White
a052a4e385
Swift: Update to a proper data flow config so we can add implicit reads from arrays at the sink.
2023-10-05 10:45:58 +01:00
Geoffrey White
cdc0d1fff1
Swift: Check the options flag contains .regularExpression.
2023-10-05 10:45:58 +01:00
Geoffrey White
fe4ef48844
Swift: Rename some predicates and make them work on dataflow nodes.
2023-10-05 10:26:08 +01:00
Owen Mansel-Chan
602bb4083c
Merge pull request #13949 from owen-mc/go/change-flowstate-for-incorrect-integer-conversion
...
Go: Improve incorrect integer conversion
2023-10-05 09:59:36 +01:00
Mathias Vorreiter Pedersen
333e607536
Merge pull request #14376 from MathiasVP/unique-in-hasIRRepresentationOfIndirectInstruction
2023-10-05 10:22:54 +02:00
Chris Smowton
399fab0c6c
Merge pull request #14322 from smowton/smowton/admin/add-buildless-diagnostic-expectations
...
Add Java buildless diagnostic expectations
2023-10-05 09:02:02 +01:00
Cornelius Riemenschneider
96edc1d349
Add skeleton bazel files for accessing the dbschemes.
2023-10-05 09:00:38 +02:00
Asger F
315272839d
JS: Change note
2023-10-05 08:13:43 +02:00
Robert Marsh
a402bfcfb0
Swift: update for-in change note
2023-10-04 20:05:11 +00:00
Robert Marsh
5dd7c14d36
Swift: add getSequence back to ForEachStmt
2023-10-04 20:05:00 +00:00
Asger F
162c477236
JS: Add AmdModuleDefinition::Range
2023-10-04 20:38:37 +02:00
Geoffrey White
b5ff104a00
Swift: Naive model for regular expression evaluations through NSString and StringProtocol methods.
2023-10-04 19:19:29 +01:00
Geoffrey White
5263cccefc
Swift: Bite the bullet and make 'regex' a non-optional field of the regex test, so that we can be confident where we fail to identify them.
2023-10-04 19:19:28 +01:00
Geoffrey White
24c385b1da
Swift: Expand and correct regex tests.
2023-10-04 19:19:28 +01:00
Mathias Vorreiter Pedersen
e38f65981e
C++: Accept test changes.
2023-10-04 20:12:42 +02:00
Ian Lynagh
4d3863461e
Kotlin: Determine our compression method later
...
This way, we already have a logger at the point that we want to log a
warning.
2023-10-04 18:32:12 +01:00
Ian Lynagh
cc63bb55c2
Kotlin: Change how we handle not supporting Brotli
...
This removes the potential for impossible cases.
2023-10-04 18:32:11 +01:00
Mathias Vorreiter Pedersen
75c74d50f9
C++: Use 'unique' in 'hasIRRepresentationOfIndirectInstruction' similar to how it's done in 'hasIRRepresentationOfIndirectOperand'.
2023-10-04 19:00:33 +02:00
Edward Minnix III
8e653d01a8
Merge pull request #14127 from egregius313/egregius313/java/mad/localuserinput
...
Java: Convert implementations of `LocalUserInput` to Models-as-Data
2023-10-04 12:55:44 -04:00
Robert Marsh
9c3b72cf3f
Swift: remove TODO comment
2023-10-04 15:59:12 +00:00
Robert Marsh
00068d6157
Merge branch 'main' into rdmarsh2/swift/for-in
...
Fix conflict in AST test output
2023-10-04 15:58:36 +00:00
Ed Minnix
e2a14c7616
Add note about results to change note
2023-10-04 11:08:40 -04:00
Owen Mansel-Chan
11b92608c7
Add ".md" to the change note filename
2023-10-04 15:49:10 +01:00
Owen Mansel-Chan
ab07a38c25
Use ternary type for architecture bit size
2023-10-04 15:43:51 +01:00
Owen Mansel-Chan
015519e9e0
Combine isBoundFor and isBoundFor2
2023-10-04 15:31:00 +01:00
Owen Mansel-Chan
cd40663ca4
Address lots of review comments
2023-10-04 15:24:56 +01:00
Henry Mercer
74368540ae
Merge pull request #14375 from github/release-prep/2.15.0
...
Release preparation for version 2.15.0
2023-10-04 15:18:55 +01:00
github-actions[bot]
9fe993bec3
Release preparation for version 2.15.0
2023-10-04 14:15:27 +00:00
Robert Marsh
b5f1296cc2
Swift: Use getFullyConverted in CFG generation
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-10-04 09:44:48 -04:00
Robert Marsh
f7ca8e5b39
Merge pull request #14224 from rdmarsh2/rdmarsh2/swift/nil-coalescing-cfg
...
Swift: CFG and data flow for nil coalescing operator
2023-10-04 09:43:31 -04:00
Owen Mansel-Chan
4122fd881f
Move UpperBoundCheckGuard
2023-10-04 14:17:00 +01:00
Mathias Vorreiter Pedersen
843e9ad254
C++: Add more QLDoc.
2023-10-04 14:37:05 +02:00
Michael Nebel
40e63a63e2
Java: Re-factor most queries and tests to use threat models.
2023-10-04 14:01:58 +02:00
amammad
0f5dd40ff1
fix beego tests
2023-10-04 13:41:26 +02:00
amammad
0c2275ddb1
fix Gin tests
2023-10-04 12:57:15 +02:00
Owen Mansel-Chan
3703c5626f
Merge pull request #14364 from owen-mc/go/improve-output-of-check-formatting-in-makefile
...
Go: improve output of check formatting in makefile
2023-10-04 11:54:40 +01:00
amammad
c3a21daf83
fix Echo tests
2023-10-04 12:54:34 +02:00
amammad
06ec3bbbb5
fix beego tests
2023-10-04 12:52:59 +02:00
Rasmus Wriedt Larsen
9c02b4f21c
Merge pull request #14289 from microsoft/jb1/16-cryptography-models-libraries-and-queries-migration
...
16 cryptography models libraries and queries migration
2023-10-04 12:27:59 +02:00
Ian Lynagh
ec3f08037c
Kotlin: Remove some unused code
2023-10-04 11:15:47 +01:00
Owen Mansel-Chan
bd2c49fcf0
Improve message
2023-10-04 11:07:19 +01:00
Owen Mansel-Chan
567052f35e
Keep line breaks in list of files formatting
2023-10-04 10:23:29 +01:00
Henry Mercer
99646ba2a3
Merge pull request #14367 from github/henrymercer/rc-3.11-mergeback
...
Merge `rc/3.11` into `main`
2023-10-04 10:05:38 +01:00
Michael Nebel
f0fb065446
Java: Opt-in the SQL injection query to use threat model flow sources.
2023-10-04 10:51:07 +02:00
Michael Nebel
5fd6dc3b87
Java: Opt-in the XSS query to use threat model flow sources.
2023-10-04 10:48:09 +02:00
Michael Nebel
ecd8561104
C#: Undo poor mans quoting fix as it conflicts with the permanent solution.
2023-10-04 09:19:55 +02:00
BD
31550b22b6
Merge branch 'main' into enable-gokit-by-default
2023-10-04 12:42:09 +05:30
Ed Minnix
581d410304
Add change note
2023-10-03 22:29:00 -04:00
Ed Minnix
e122d81336
Add new source kinds for threat modeling
2023-10-03 22:29:00 -04:00
Edward Minnix III
a1d3667f1c
Refactor Hudson file methods to MaD
2023-10-03 22:28:59 -04:00
Edward Minnix III
3a75c0fde7
Refactor DatabaseInput to MaD
2023-10-03 22:28:59 -04:00
Edward Minnix III
655470f3da
Refactor EnvInput to MaD
2023-10-03 22:28:47 -04:00
Josh Brown
de2e8b0b12
explicit "this" qualifiers
2023-10-03 16:13:54 -07:00
Josh Brown
ad86e576a4
autoformat
2023-10-03 13:40:17 -07:00
Josh Brown
b683a3caf8
Merge branch 'main' into jb1/16-cryptography-models-libraries-and-queries-migration
2023-10-04 07:24:29 +11:00
Robert Marsh
06da5fd05c
Swift: move import to make codegen happy
2023-10-03 17:23:00 +00:00
Geoffrey White
d258f69ab0
Merge pull request #14329 from geoffw0/sinks
...
Swift: Update summary queries
2023-10-03 17:39:00 +01:00
Geoffrey White
34b33e1577
Merge pull request #14328 from geoffw0/debugdesc
...
Swift: Model .description, .debugDescription more generally
2023-10-03 17:37:22 +01:00
Geoffrey White
c518f39a0c
Merge pull request #14357 from geoffw0/commandinject3
...
Swift: Replace two additional taint steps with implicit reads
2023-10-03 17:34:59 +01:00
amammad
22c4b5113d
do gofmt
2023-10-03 18:29:34 +02:00
Henry Mercer
da92da2204
Bump minor versions of packs we regularly release
2023-10-03 16:31:23 +01:00
Henry Mercer
f3847b3f51
Merge branch 'main' into henrymercer/rc-3.11-mergeback
2023-10-03 16:30:23 +01:00
Robert Marsh
cdef0796e3
Swift: QLDoc for NilCoalescingExpr.qll
2023-10-03 15:00:03 +00:00
Robert Marsh
497f0aa8ab
Swift: sync test files and update expectation
2023-10-03 14:57:04 +00:00
Michael Nebel
8224f172b2
Merge pull request #14257 from michaelnebel/java/threatmodelsources
...
Java: Introduce a class of dataflow nodes for the threat modeling.
2023-10-03 16:10:49 +02:00
Mathias Vorreiter Pedersen
9a139ea903
C++: Accept test changes.
2023-10-03 15:58:35 +02:00
Mathias Vorreiter Pedersen
57d3f3f482
C++: Actually propagate the 'isBarrier1' or 'isBarrier2' predicates to the dataflow configurations.
2023-10-03 15:58:24 +02:00
Mathias Vorreiter Pedersen
9df5e43fae
C++: Block flow through indirect flow through pointer-arithmetic instructions when following flow for the allocation size.
2023-10-03 15:31:50 +02:00
Owen Mansel-Chan
7c8233aade
Add change note
2023-10-03 13:35:26 +01:00
Tamás Vajk
df988e46da
Merge pull request #14351 from tamasvajk/csharp/standalone-compilation
...
C#: Extract compilation DB entity in standalone mode
2023-10-03 14:21:21 +02:00
Owen Mansel-Chan
5433636d49
Fix formatting errors in files included in qhelp
2023-10-03 12:48:03 +01:00
Owen Mansel-Chan
2a52455619
Improve output of check-formatting in Makefile
...
The list of files that would change when reformatted is now printed.
Also, parsing errors now make the check fail.
2023-10-03 12:48:01 +01:00
Ian Lynagh
c365f459fd
Merge pull request #14355 from igfoo/igfoo/lang-vers
...
Kotlin: Specify language version when compiling for old compilers
2023-10-03 11:33:23 +01:00
Bharadwaj Machiraju
53a291aeae
Remove GoKit from untrusted flow sources test
2023-10-03 15:39:52 +05:30
Bharadwaj Machiraju
6c8ae55a68
Enable GoKit module into the default list
2023-10-03 15:39:52 +05:30
Mathias Vorreiter Pedersen
dbe3bd0c50
Merge pull request #14360 from MathiasVP/promote-use-after-free-and-double-free
...
C++: Promote `cpp/double-free` and `cpp/use-after-free` to Code Scanning
2023-10-03 11:52:23 +02:00
Michael Nebel
fcbd301de8
Java: Address review comments.
2023-10-03 10:36:45 +02:00
Mathias Vorreiter Pedersen
b6ed9ccfda
C++: Add change notes.
2023-10-03 09:33:40 +02:00
Mathias Vorreiter Pedersen
7084dc1a88
C++: Promote 'cpp/use-after-free' and 'cpp/double-free' to Code Scanning.
2023-10-03 09:22:47 +02:00
Mathias Vorreiter Pedersen
5632dd5e46
Merge pull request #14275 from alexet/fix-use-after-free-fp
...
CPP: Fix some use after free FPs.
2023-10-03 09:16:42 +02:00
Michael Nebel
5b949b19f7
Java: Cleanup threat model taxanomy to align with the EDR.
2023-10-03 09:16:39 +02:00
Michael Nebel
5c700afa27
Java: Add some threat model dataflow tests.
2023-10-03 09:16:39 +02:00
Michael Nebel
537965c0e8
Java: Add some testfiles.
2023-10-03 09:16:39 +02:00
Michael Nebel
2055d5492c
Java: Let RemoteFlowSource and LocalUserInput extends SourceNode and fine grain the LocalUserInput threat models.
2023-10-03 09:16:38 +02:00
Michael Nebel
9a112dde66
Java: Introduce a class of dataflow nodes for the threat modeling.
2023-10-03 09:16:38 +02:00
Geoffrey White
0f1711fe1e
Swift: Test insertMany.
2023-10-02 23:04:07 +01:00
Geoffrey White
bbd3c66d5a
Swift: Update for CollectionContent.
2023-10-02 20:32:24 +01:00
Geoffrey White
81b358a711
Swift: Replace a similar additional taint step in another query.
2023-10-02 20:19:40 +01:00
Geoffrey White
27bdee8058
Swift: Replace additional taint step with implict read.
...
Now that we have array content, this is a more principled approach than having a special case data step.
2023-10-02 20:19:30 +01:00
Robert Marsh
ca722dc74c
Swift: add NilCoalescingTest node to CFG
...
Fixes an issue where a nil-coalescing operation used in a boolean
context would result in no control flow out of the default operand of
the nil-coalescing operator.
2023-10-02 18:07:11 +00:00
Ian Lynagh
513a39f0b4
Kotlin: Specify language versino when compiling for old compilers
...
Otherwise builds with Kotlin 2 won't work with older compilers.
2023-10-02 18:14:01 +01:00
Ian Lynagh
f3c5c01ec5
Kotlin: Drop support for 1.4.32
...
We never claimed to support anything < 1.5.0, and compiling with
-language-version 1.4 fails as it's not meant to support sealed classes.
If we build 1.4.32 with -language-version 1.5 using a 2.0 compiler,
then the resulting plugin also fails.
2023-10-02 17:29:10 +01:00
Geoffrey White
db5e0ff7a8
Swift: Autoformat.
2023-10-02 16:06:38 +01:00
Tom Hvitved
2684a22484
Merge pull request #14255 from hvitved/dataflow/perf-improvements
...
Data flow: Performance improvements
2023-10-02 16:37:24 +02:00
Mathew Payne
a23904ca39
Add taint tests
2023-10-02 15:09:11 +01:00
Mathew Payne
3ab5fd5ca4
Add RestFramework handler kwargs
2023-10-02 14:58:21 +01:00
Tamas Vajk
b2514b3c69
Adjust expected test output
2023-10-02 13:35:16 +02:00
Geoffrey White
3d552d7d5d
Swift: Simplify FloatPoint model now that it works to do so.
2023-10-02 11:59:26 +01:00
Geoffrey White
3265d49a98
Swift: Remove duplicate row.
2023-10-02 11:59:26 +01:00
Geoffrey White
f83456a398
Swift: Change note.
2023-10-02 11:59:25 +01:00
Geoffrey White
c61edc13e7
Swift: Model RangeReplaceableCollection initializers.
2023-10-02 11:59:25 +01:00
Geoffrey White
0c534b69eb
Swift: Extend Numeric models.
2023-10-02 11:59:25 +01:00
Geoffrey White
2863a14cd1
Swift: Add more tests for Arrays.
2023-10-02 11:59:24 +01:00
Geoffrey White
df1bc1a597
Swift: Add more tests for Numerics.
2023-10-02 11:59:24 +01:00
Tamas Vajk
de45a9b137
C#: Extract compilation DB entity in standalone mode
2023-10-02 12:54:49 +02:00
Rasmus Wriedt Larsen
e7384da162
Merge pull request #14341 from GeekMasher/py-django-restframework
...
Python - Add support for RestFramework ModelViewSet functions
2023-10-02 10:50:11 +02:00
Henry Mercer
0dd3837c31
Merge pull request #14345 from github/adityasharad/atm/remove-js-ml-tests
...
ATM/JS: Remove test workflow
2023-10-02 09:44:46 +01:00
Tom Hvitved
4fa93a077c
Address review comments
2023-10-02 09:03:12 +02:00
Erik Krogh Kristensen
5dccc8d33e
Merge pull request #14348 from github/dependabot/cargo/ql/regex-1.9.6
...
Bump regex from 1.9.5 to 1.9.6 in /ql
2023-10-02 08:34:59 +02:00
dependabot[bot]
a86b010504
Bump regex from 1.9.5 to 1.9.6 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.9.6 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-02 03:33:25 +00:00
amammad
00d1b11b0b
chore fix document example
2023-10-01 02:45:51 +10:00
amammad
d99c0a2382
update tests
2023-10-01 02:25:38 +10:00
amammad
9245e1c2a4
remove CLI sources Library file & qldoc warnings
2023-10-01 00:37:56 +10:00
amammad
95363455af
fix tests, and review suggestions.
2023-09-30 22:50:08 +10:00
amammad
f0f60c3b7d
move JWT.qll to experimental
2023-09-30 22:30:30 +10:00
amammad
8ef969fcb9
fix a mistake: replaces tests after gofmt
2023-09-30 22:16:59 +10:00
Aditya Sharad
cf98b84279
ATM/JS: Remove test workflow
...
These queries are deprecated, and upcoming nightly CLIs will no longer support their experimental functionality. To avoid test breakage, remove this workflow.
The code and tests can be cleaned up as future follow-up.
2023-09-29 15:19:45 -07:00
amammad
2961b79fb9
add multipart sources
2023-09-30 03:09:02 +10:00
amammad
2e7529cc70
remove local sources
2023-09-30 02:41:47 +10:00
Sarita Iyer
178b5c1c30
Merge pull request #14282 from github/saritai/update-language-display-names
...
Update language display names
2023-09-29 11:15:56 -04:00
Sarita Iyer
f29063bca3
Update codeql-for-java.rst
2023-09-29 10:44:27 -04:00
Rasmus Wriedt Larsen
3162033d56
Python: Make tests run for django rest framework
2023-09-29 16:21:04 +02:00
Sarita Iyer
b6b554f384
Apply suggestions from code review
...
Co-authored-by: Henry Mercer <henry.mercer@me.com >
2023-09-29 10:07:22 -04:00
Sarita Iyer
c0653adc85
remove trailing space
2023-09-29 09:57:48 -04:00
Sarita Iyer
925d8e21ce
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-09-29 09:45:34 -04:00
Mathew Payne
41bb8377d9
Add change notes
2023-09-29 14:44:36 +01:00
Mathew Payne
19c93b0228
Add RestFramework tests
2023-09-29 14:41:57 +01:00
Michael Nebel
81e4cddf9f
Merge pull request #14333 from michaelnebel/csharp/windowsunittests
...
C#: Also run extractor unit tests on a windows runner.
2023-09-29 15:28:26 +02:00
Rasmus Lerchedahl Petersen
177db998c7
Python: add change note
2023-09-29 15:28:08 +02:00
Mathew Payne
eb9b32473e
Add support for ModelViewSet functions
2023-09-29 14:26:39 +01:00
Rasmus Lerchedahl Petersen
ed3ffde5e6
Python: modules are now possibly non-unique
...
We should consider if this is the right way..
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
be506c64ba
Python: update test-expectations
...
These are semantic differences.
They generally look good, except perhaps
we should exclude illegal package names?
(It passes `legalShortName`, though).
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
4f35a62583
Python: broaden search for imports
...
This now finds vulnerabilities in
https://github.com/github/field-security-codeql/issues/100
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
d9854eb409
Python: Add QLDoc
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
1d4832cbfe
python: allow namespace packages as packages
...
remove the logic around isPotentialPackage
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
362cf107a4
python: add tests for module import
...
- `--max-import-depth=3` to give points-to a chance
- `not_root` dir to force namespace package logic
- add usage in `example.py` to get files extracted
2023-09-29 15:10:19 +02:00
yoff
dbecb1bd0f
Merge pull request #14070 from yoff/python/promote-nosql-query
...
Python: promote nosql query
2023-09-29 14:21:22 +02:00
Rasmus Wriedt Larsen
9b73bbfc31
Python: Add keyword argument support
...
and a fair bit of refactoring
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
d6d13f84a9
Python: -> NoSQL in QLDocs
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
3676262313
Python: Clean trailing whitespace
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
d7ad5a0f23
Python: List NoSQL injection sinks
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
16e1a00e88
Python: NoSQLInjection -> NoSqlInjection
2023-09-29 13:52:51 +02:00
Rasmus Lerchedahl Petersen
97696680e6
Python: require dict sinks be dangerous.
2023-09-29 13:45:23 +02:00
Rasmus Lerchedahl Petersen
f3a01612e8
Python: rename flow states
...
Close to being a revert of
3043633d9c
but with slightly shorter names and added comments.
2023-09-29 13:23:36 +02:00
Rasmus Lerchedahl Petersen
e1708054a4
Python: fix QL alert
2023-09-29 12:06:51 +02:00
Anders Schack-Mulligen
efb49fcd3e
Merge pull request #14336 from aschackmull/java/switch-rule-stmt-cfg
...
Java: Fix CFG for case rule statements.
2023-09-29 12:02:48 +02:00
Rasmus Lerchedahl Petersen
2d845e3e55
Python: nicer paths
...
turn "the long jump" that would end up
straight at the argument into a short jump
that ends up at the dictionary being written to.
Dataflow takes care of the rest of the path.
2023-09-29 12:02:16 +02:00
Rasmus Lerchedahl Petersen
74d6f37467
Python: update meta query TaintSinks
2023-09-29 12:02:16 +02:00
yoff
2e028a41ee
Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-29 11:32:51 +02:00
Michael Nebel
c25113ae46
C#: Execute tests via the bash shell to ensure that we stop on error.
2023-09-29 09:35:43 +02:00
Michael Nebel
3fd083b249
C#: Enable the stub generator tests.
2023-09-29 09:35:43 +02:00
Michael Nebel
086588982e
C#: Ensure that always use the same newline symbol for stub generation.
2023-09-29 09:35:42 +02:00
Michael Nebel
e42741e8ed
C#: Also run extractor unit tests on a windows runner.
2023-09-29 09:33:33 +02:00
Stephan Brandauer
d7beda79ab
Merge pull request #14197 from github/kaeluka/framework-mode-source-candidates
...
Java: Framework mode source candidates
2023-09-28 21:09:54 +02:00
Ian Lynagh
30d7f0cf0a
Merge pull request #14334 from igfoo/igfoo/ext-frag
...
Kotlin: Handle IrExternalPackageFragment properly for more external entities
2023-09-28 20:01:52 +01:00
erik-krogh
5d4b542995
escape unicode chars in overly-large-range
2023-09-28 20:16:09 +02:00
Ian Lynagh
7f5f25c362
Merge pull request #14338 from igfoo/igfoo/dedupe
...
Kotlin: Differentiate 2 error messages
2023-09-28 17:56:53 +01:00
Alex Eyers-Taylor
6b0ae0f312
CPP: Remove unned argument from use-after-free
2023-09-28 17:53:32 +01:00
amammad
97c27ac11b
revert SqlInjection.ql changes
2023-09-29 01:36:00 +10:00
amammad
58f4cd77dc
add TypeORM to javascript.qll file
...
add tests
improvement on comments
2023-09-29 01:23:22 +10:00
amammad
e3c89011a9
perfomed gofmt on fasthttp.go
2023-09-29 00:57:17 +10:00
amammad
8d47a7b21d
Update python/ql/lib/semmle/python/security/dataflow/PathInjectionQuery.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-28 18:13:34 +03:30
Stephan Brandauer
fdbc553029
Java: Automodel Framework mode: no longer skip non-public methods
2023-09-28 16:17:44 +02:00
Ian Lynagh
e9482fb096
Kotlin: Differentiate 2 error messages
2023-09-28 14:59:21 +01:00
Ian Lynagh
5db283e86a
Kotlin: Fix comment
2023-09-28 14:26:02 +01:00
yoff
bc17bf69f4
Merge pull request #14317 from yoff/python/fix-regex-string-part-locations
...
Python: Improve computation of regex fragments inside string parts
2023-09-28 14:35:27 +02:00
Anders Schack-Mulligen
15e1098791
Java: Add change note.
2023-09-28 14:28:24 +02:00
Rasmus Lerchedahl Petersen
3043633d9c
Python: Some renaming of flow states
2023-09-28 14:24:49 +02:00
Anders Schack-Mulligen
94556078f1
Java: Add guards logic for SwitchExpr default cases.
2023-09-28 14:21:04 +02:00
Rasmus Lerchedahl Petersen
d5b64c5ff2
Python: update test expectations
2023-09-28 14:20:30 +02:00
Anders Schack-Mulligen
917a15647e
Java: Fix CFG for rule statements.
2023-09-28 14:19:36 +02:00
Anders Schack-Mulligen
922a4e8ddf
Java: Add failing test
2023-09-28 14:15:56 +02:00
Rasmus Lerchedahl Petersen
a8e0023f39
Python: forgot to list framework
2023-09-28 13:42:33 +02:00
Rasmus Lerchedahl Petersen
2a7b593285
Python: Fix QL alerts
2023-09-28 13:35:29 +02:00
Ian Lynagh
261ae4ea4d
Kotlin: Handle IrExternalPackageFragment properly for more external entities
2023-09-28 12:12:18 +01:00
Rasmus Lerchedahl Petersen
eb1be08bce
Python: split modelling
2023-09-28 12:54:06 +02:00
Rasmus Lerchedahl Petersen
2a739b3b7a
Python: rename module
2023-09-28 12:54:05 +02:00
Rasmus Lerchedahl Petersen
9682c8218a
Python: rename file
2023-09-28 12:54:05 +02:00
yoff
c2b63830f1
Apply suggestions from code review
...
Claim conversions do not execute inputs in order to remove interaction with `py/unsafe-deserialization`.
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-28 12:40:37 +02:00
Rasmus Lerchedahl Petersen
d90630aa66
Python: fix query file
2023-09-28 12:34:10 +02:00
Owen Mansel-Chan
832e78c518
Unify approach to architecture bit size in isSink2
2023-09-28 11:24:48 +01:00
Koen Vlaswinkel
eb2db59127
Merge pull request #14330 from github/koesie10/csharp-mad-parentheses
...
C#: Fix parentheses in model editor queries
2023-09-28 12:14:52 +02:00
Rasmus Lerchedahl Petersen
3fb579eaff
Python: add test for type tracking
2023-09-28 12:14:12 +02:00
Owen Mansel-Chan
cf5d1e36fe
Add QLDoc
2023-09-28 11:02:04 +01:00
Owen Mansel-Chan
e0b61b2d68
Reduce the number of UpperBoundChecks
...
No need to have a separate class for each state
being blocked.
2023-09-28 11:00:43 +01:00
Owen Mansel-Chan
c0b579c49f
Improve tests
2023-09-28 11:00:41 +01:00
Owen Mansel-Chan
7d34ce4dea
Rewrite with different flow state
2023-09-28 11:00:34 +01:00
Rasmus Lerchedahl Petersen
37a4f35650
Python: further rename
2023-09-28 11:49:42 +02:00
yoff
8156fa9a4d
Apply naming suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-28 11:47:10 +02:00
Asger F
0d96ed8aee
Merge pull request #14305 from asgerf/shared/flow-state-inout-barriers
...
Shared: add in/out barriers with flow state
2023-09-28 11:07:23 +02:00
Koen Vlaswinkel
3f3c662a7d
C#: Fix parentheses in model editor queries
...
The MaD format and the Java model editor queries use parentheses around
the method parameter types, but `parameterQualifiedTypeNamesToString`
returns the parameter types without parentheses. This adds the
parentheses to the result of `getParameterTypes` to ensure consistency
between the Java and C# queries.
2023-09-28 10:51:36 +02:00
Anders Schack-Mulligen
5feb2f7622
Merge pull request #14321 from aschackmull/shared/filesystem
...
All languages: Use shared FileSystem library and minor regex performance improvement.
2023-09-28 10:51:05 +02:00
Rasmus Wriedt Larsen
f3acc89900
Python: Accept .expected
2023-09-28 10:41:16 +02:00
Koen Vlaswinkel
10231e99ce
Merge pull request #14199 from github/koesie10/add-java-model-editor-queries
...
Java: Add VS Code model editor queries
2023-09-28 10:13:13 +02:00
Koen Vlaswinkel
0f4f98787c
Merge pull request #14200 from github/koesie10/add-csharp-model-editor-queries
...
C#: Add VS Code model editor queries
2023-09-28 10:12:57 +02:00
Geoffrey White
8e9ca7bc26
Swift: Improve RegexEvals.ql and summary regex reporting.
2023-09-28 08:31:45 +01:00
Anders Schack-Mulligen
80f00bcb0b
FileSystem: Improve regex by only matching once instead of 3x.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
cfd08f23a5
FileSystem: Fix qldoc.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
20cbab9e8f
C#: Minor simplification.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
68d05eb342
Ruby: Minor simplification.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
855c89667d
JavaScript: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
7bc0c54a41
QL: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
73521ca16b
Python: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
a08fe5b8b1
Go: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
2548939849
C++: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
653844cc46
Java: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Robert Marsh
77fd9172fa
Swift: Fix extra param in downgrade script
2023-09-27 20:55:08 +00:00
Robert Marsh
64e4c1ea6d
Swift: remove another table from downgrade script
2023-09-27 20:52:06 +00:00
Robert Marsh
d71d6b265a
Swift: remove table from downgrade properties
2023-09-27 20:50:21 +00:00
Robert Marsh
4799ba0069
Swift: yet another downgrade script fix
2023-09-27 20:47:45 +00:00
Sarita Iyer
9609cafab4
Update annotations-in-java.rst
2023-09-27 16:27:32 -04:00
Robert Marsh
188ad6a571
Swift: another attempt at fixing downgrade script
2023-09-27 20:07:26 +00:00
Robert Marsh
9975a18a29
Swift: Hopefully fix codegen test failure
2023-09-27 20:06:13 +00:00
Sarita Iyer
8802395587
Merge branch 'saritai/update-language-display-names' of https://github.com/github/codeql into saritai/update-language-display-names
2023-09-27 15:01:44 -04:00
Sarita Iyer
deb47e34b8
fix underlines
2023-09-27 15:01:42 -04:00
Geoffrey White
bb1720d50a
Swift: Fix test after merge.
2023-09-27 19:31:04 +01:00
Geoffrey White
936f846b09
Merge branch 'main' into implicitflow
2023-09-27 19:27:07 +01:00
Geoffrey White
e4e4c5be61
Swift: Make QL-for-QL happy.
2023-09-27 19:12:04 +01:00
Geoffrey White
98b2ef0a2f
Swift: Autoformat.
2023-09-27 19:09:23 +01:00
Robert Marsh
a7a50cfc9a
Swift: more downgrade script fixes
2023-09-27 18:01:17 +00:00
Alex Eyers-Taylor
2860c0c0d4
CPP: Move test into correct file.
2023-09-27 18:42:26 +01:00
Geoffrey White
87696e58ab
Swift: Break the 'taint reach' metric off into its own query (it's expensive to compute).
2023-09-27 18:34:55 +01:00
Geoffrey White
ec573bdda8
Swift: Clean up and improve consistency.
2023-09-27 18:34:40 +01:00
Geoffrey White
ee83ad730b
Swift: Add a summary query for regex evals.
2023-09-27 18:34:32 +01:00
Geoffrey White
9f1332bdb2
Swift: Add a summary query for query sinks.
2023-09-27 18:34:32 +01:00
Sarita Iyer
16fb482767
Merge branch 'main' into saritai/update-language-display-names
2023-09-27 13:20:22 -04:00
Sarita Iyer
ee9873fdce
add kotlin to Java language guides
2023-09-27 13:16:58 -04:00
Benjamin Rodes
25203db4e7
Removing 'security' tags from all queries.
2023-09-27 12:43:51 -04:00
Owen Mansel-Chan
84c0c09673
Always use getters for FlowState
2023-09-27 17:13:58 +01:00
Owen Mansel-Chan
72ca6b8c5f
Add isSigned to IntegerParsers
2023-09-27 17:13:56 +01:00
Owen Mansel-Chan
c796cba02f
Improve UpperBoundCheckGuard.isBoundFor
2023-09-27 17:13:55 +01:00
Geoffrey White
e6dc4d324f
Swift: Change note.
2023-09-27 16:58:59 +01:00
Geoffrey White
b6f0160760
Swift: Effect on recently added tests.
2023-09-27 16:52:31 +01:00
Geoffrey White
6a2911ae01
Swift: Make the tests more accurate.
2023-09-27 16:39:55 +01:00
Geoffrey White
086002f7cb
Swift: Add a general model for description, debugDescription.
2023-09-27 16:39:54 +01:00
Geoffrey White
f12e45b243
Swift: Delete the specific description, debugDescription models.
2023-09-27 16:39:54 +01:00
amammad
7d5bbc3b1e
put each new sink in its own framework
2023-09-28 01:02:05 +10:00
Alexander Eyers-Taylor
79b044d670
Merge pull request #14271 from github/post-release-prep/codeql-cli-2.14.6
...
Post-release preparation for codeql-cli-2.14.6
2023-09-27 15:19:12 +01:00
Michael Nebel
39499142a6
Merge pull request #14327 from michaelnebel/csharp/disablestubgentests
...
C#: Disable unit tests (need to fix line ending issues).
2023-09-27 16:06:33 +02:00
Taus
ad86aed363
Merge pull request #14326 from github/tausbn/clean-up-nodeinfo
...
Shared: Clean up `NodeInfo` in shared extractor
2023-09-27 15:55:27 +02:00
amammad
f2505eada8
fix two bugs, make package path more neat
2023-09-27 23:35:56 +10:00
Michael Nebel
cb1647cd02
C#: Disable unit tests (need to fix line ending issues).
2023-09-27 15:35:48 +02:00
amammad
32f41de3be
Merge branch 'main' into amammad-go-fastHttp
2023-09-27 23:33:51 +10:00
amammad
9598bb5a68
stash
2023-09-27 23:22:29 +10:00
Tom Hvitved
56f8d5d57d
Merge pull request #14229 from hvitved/ruby/splat-flow-performance
...
Ruby: Improve performance of flow through (hash) splats
2023-09-27 14:41:33 +02:00
Asger F
ba1f8766aa
Shared: update PartialPathNode accordingly
2023-09-27 14:38:28 +02:00
Asger F
6792592a15
Shared: add late checks for stateful in/out barriers
2023-09-27 14:38:28 +02:00
Asger F
6d6cdf89ce
Java: add a failing test for stateful in/out barriers
2023-09-27 14:38:21 +02:00
Taus
ff35f9fb8c
Shared: Clean up NodeInfo in shared extractor
...
I was perusing the shared extractor the other day, when I came across
the `NodeInfo` struct. I noticed that the `fields` and `subtypes` fields
on this struct had two seemingly identical ways of expressing the same
thing: `None` and `Some(empty)` (where `empty` is respectively the empty
map and the empty vector). As far as I can tell, there's no semantic
difference in either case, so we can just elide the option type entirely
and use the empty value directly. This has the nice side-effect of
cleaning up some of the other code.
2023-09-27 12:29:07 +00:00
Ian Lynagh
f24abee285
Merge pull request #14323 from igfoo/igfoo/supportk2
...
Kotlin: Claim to support Kotlin 2
2023-09-27 13:28:57 +01:00
Michael Nebel
13d3e973b1
Merge pull request #14319 from michaelnebel/csharp/stubunittest
...
C#: Base a few more query tests on stubs.
2023-09-27 14:03:58 +02:00
Michael Nebel
30e1925025
Merge pull request #14325 from michaelnebel/csharp/stubgentests
...
C#: Add a couple of stub generator unit tests
2023-09-27 13:56:50 +02:00
amammad
c6ad358751
fix package FPs, fix additioanlstep issue
2023-09-27 21:11:07 +10:00
amammad
c78f390128
add go generate support, upgrade JWT.qll
2023-09-27 20:17:31 +10:00
Tom Hvitved
c570083163
Ruby: Improve performance of flow through (hash) splats
2023-09-27 11:49:31 +02:00
Michael Nebel
53c947dd9d
C#: Add a couple of unit tests.
2023-09-27 11:44:17 +02:00
Michael Nebel
4c3cbad8fe
C#: Prepare stub generator for unit testing and expose internals to the Test project.
2023-09-27 11:44:17 +02:00
Harry Maclean
dc2acf5a39
Merge pull request #14090 from hmac/splat-flow-4
...
Ruby: More splat flow (alternative)
2023-09-27 10:22:57 +01:00
Michael Nebel
577ea50ec9
C#: Base ConstantComparison and PossibleLossOfPrecision tests on stubs.
2023-09-27 09:35:57 +02:00
Michael Nebel
68fd25cd9c
C#: Base DeadStoreOfLocal test on stubs.
2023-09-27 09:35:57 +02:00
Michael Nebel
f7daa863e2
Merge pull request #14318 from michaelnebel/csharp/readonlyfieldsinstubs
...
C#: Add readonly modifier to fields and constant values.
2023-09-27 09:28:55 +02:00
amammad
bb30689a6e
added the go generate commands for depstubber
2023-09-27 06:41:09 +10:00
amammad
73803eaac9
fix tests
...
add missed afero sinks
2023-09-27 06:27:05 +10:00
Robert Marsh
50521f7b45
Swift: fix ql reference in downgrade script
2023-09-26 20:08:23 +00:00
amammad
cea44e2bee
added the go generate commands for depstubber
2023-09-27 05:22:52 +10:00
amammad
3febbec64e
fix qldoc and review suggestions
2023-09-27 05:16:35 +10:00
Rasmus Lerchedahl Petersen
8ade9ed164
Python: fix inconsistency
...
Since we calculate the end column by offset,
we must believ that the end line is the same
as the start line.
2023-09-26 21:02:14 +02:00
Rasmus Lerchedahl Petersen
db95eade64
Python: accept improved test output
2023-09-26 20:58:51 +02:00
Rasmus Lerchedahl Petersen
35f28c832a
Python: small refactor (reviewer suggestion)
2023-09-26 20:55:35 +02:00
Rasmus Lerchedahl Petersen
f5059a6918
Python: fix computation at part boundaries
2023-09-26 20:51:15 +02:00
Rasmus Lerchedahl Petersen
cdf1db09bd
Python: add test for part boundaries
2023-09-26 20:50:08 +02:00
Rasmus Lerchedahl Petersen
73aa302bd2
Python: only expose lengths of quote and prefix
2023-09-26 20:45:24 +02:00
Tom Hvitved
e7a3dc83bc
Data flow: Performance improvements
2023-09-26 20:42:03 +02:00
Rasmus Lerchedahl Petersen
d25b93d944
Python: fix ql alerts
2023-09-26 20:33:24 +02:00
amammad
ad999a0174
fix qldoc and tests
2023-09-27 04:21:49 +10:00
Robert Marsh
81ee932e62
Swift: Fix db types in downgrade script for for-in
2023-09-26 18:03:08 +00:00
Michael B. Gale
539199bb40
Merge pull request #14314 from taigrr/main
...
update go tools version from v0.11.1 to v0.13.0
2023-09-26 17:33:52 +01:00
Ian Lynagh
497d48bd63
Kotlin: Claim to support Kotlin 2
...
We don't fully support it yet, but if we don't claim to support it then
Kotlin fails early.
2023-09-26 17:24:11 +01:00
Robert Marsh
293400a623
Swift: change note for for-in dataflow
2023-09-26 15:13:05 +00:00
Robert Marsh
ae1072e09f
Merge branch 'main' into rdmarsh2/swift/for-in
2023-09-26 15:12:46 +00:00
Geoffrey White
49d47a3da4
Merge pull request #14209 from geoffw0/regexport
...
Swift: Port regex mode flag fix from Python to Swift
2023-09-26 15:41:10 +01:00
Chris Smowton
a123f62a38
Add Java buildless diagnostic expectations
2023-09-26 15:25:58 +01:00
Geoffrey White
eb78d401da
Swift: Add to change note.
2023-09-26 14:56:32 +01:00
Asger F
6e869452b5
Shared: remove pragma[inline] implied by bindingset
2023-09-26 15:42:24 +02:00
Asger F
c7e892fa8e
Shared: change note
2023-09-26 15:24:29 +02:00
Michael Nebel
5e3ae0afac
C#: Update .NET and ASP.NET stubs.
2023-09-26 15:09:10 +02:00
Michael Nebel
839ef7fef5
C#: Add compile time constants for some types of fields in the stub generator.
2023-09-26 15:06:30 +02:00
Anders Schack-Mulligen
e6d832c7e5
Merge pull request #14297 from aschackmull/java/additional-steps-and-nodes
...
Java: Add support for additional nodes, read steps, and store steps for QL models and model ThreadLocal.initialValue
2023-09-26 14:50:37 +02:00
Geoffrey White
6b0271d4e5
Swift: Address review comment.
2023-09-26 13:40:46 +01:00
Geoffrey White
7a450c9941
Swift: Change note for mode flags.
2023-09-26 13:40:46 +01:00
Geoffrey White
33a5ba04cb
Swift: Add explanatory comments and (minimal) support for additional regex mode flags.
2023-09-26 13:40:46 +01:00
Michael Nebel
d00ff9665c
C#: Update .NET and ASP.NET stubs.
2023-09-26 12:28:23 +02:00
Michael Nebel
82f5a02729
C#: Add readonly modifier to fields during stub generation.
2023-09-26 12:28:00 +02:00
Rasmus Lerchedahl Petersen
d10b181d89
Python: add change note
2023-09-26 12:13:07 +02:00
Rasmus Lerchedahl Petersen
c1ebde4288
Python: improve location computation
2023-09-26 12:08:50 +02:00
Rasmus Lerchedahl Petersen
aa64390af7
Python: add more tests
2023-09-26 10:54:45 +02:00
Stephan Brandauer
26267b72d4
driveby: bug fix in automodel alert sink util
2023-09-26 10:46:56 +02:00
Stephan Brandauer
53b3755e50
remove now-unused getIndex predicate
...
Co-authored-by: @tausbn <tausbn@github.com >
2023-09-26 10:46:42 +02:00
Stephan Brandauer
9f7f2ab70e
remove redundant fromSource calls
...
Co-authored-by: @tausbn <tausbn@github.com >
2023-09-26 10:45:54 +02:00
Stephan Brandauer
32502d5e2c
Java: Automodel, remove erroneousEndpoints predicate from production queries
2023-09-26 10:45:54 +02:00
Stephan Brandauer
5d608acd0b
Java: Automodel framework mode, fix query string
2023-09-26 10:45:54 +02:00
Stephan Brandauer
e71563e540
Java: Automodel fr mode: remove superfluous module
2023-09-26 10:45:54 +02:00
Stephan Brandauer
2be5b1955f
Java: Automodel fr mode: add support for qualifier source candidates
2023-09-26 10:45:53 +02:00
Stephan Brandauer
dee387622e
Java: Automodel: rename overloadable -> overridable
2023-09-26 10:45:53 +02:00
Stephan Brandauer
6121faf671
Java: Automodel: fr mode: connect new endpoints with MaD models
2023-09-26 10:45:53 +02:00
Stephan Brandauer
7f084c90c5
Java: automodel fr mode: add overloadable parameter candidates
2023-09-26 10:45:53 +02:00
Stephan Brandauer
8ea8123bd5
Java: Automodel ql-for-ql
2023-09-26 10:45:53 +02:00
Stephan Brandauer
86e50699dc
Java: Automodel format
2023-09-26 10:45:53 +02:00
Stephan Brandauer
9e6eebb926
Java: Automodel: drive-by: remove unused message logic for candidate extraction
2023-09-26 10:45:53 +02:00
Stephan Brandauer
0d53600b12
Java: automodel fr mode: update test expectations
2023-09-26 10:45:53 +02:00
Stephan Brandauer
32a538b64c
Java: automodel fr mode: add mad output to extraction metadata
2023-09-26 10:45:53 +02:00
Stephan Brandauer
b2578f0e30
Java: Automodel Fr Mode: add return value endpoint type
2023-09-26 10:45:52 +02:00
Stephan Brandauer
8cc6466c68
Java: Automodel: add extensibleType metadata to framework mode
2023-09-26 10:45:52 +02:00
Tom Hvitved
60b7840389
Merge pull request #14315 from hvitved/csharp/dependency-manager-cleanup
...
C#: Rely on CLI to cleanup scratch dir
2023-09-26 10:08:12 +02:00
Tom Hvitved
486afd9f29
Merge pull request #14310 from hvitved/csharp/stub-generator-test
...
C#: Add stub generator integration test
2023-09-26 10:07:45 +02:00
Anders Starcke Henriksen
464add4e16
Merge pull request #14246 from github/starcke/release-automodel-0.0.3
...
Release automodel queries version 0.0.3
2023-09-26 09:41:33 +02:00
Tom Hvitved
c06833758f
Merge pull request #14313 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-26 09:26:31 +02:00
Tom Hvitved
ef699e5195
C#: Rely on CLI to cleanup scratch dir
2023-09-26 09:15:19 +02:00
Tom Hvitved
5adacb8477
Merge pull request #14311 from hvitved/csharp/dependency-manager-generated-files
...
C#: Expose generated files in `DependencyManager`
2023-09-26 08:15:32 +02:00
Tai Groot
013452c52d
fix vendor
2023-09-25 18:45:37 -07:00
Tai Groot
79dcb9e814
update go tools version from v0.11.1 to v0.13.0
2023-09-25 18:38:24 -07:00
github-actions[bot]
1e57595d2c
Add changed framework coverage reports
2023-09-26 00:15:37 +00:00
Robert Marsh
811c33b016
Swift: finish downgrade script for for-in PR
2023-09-25 20:23:43 +00:00
Robert Marsh
92fdb7a35f
Swift: finish upgrade script for for-in PR
2023-09-25 20:13:52 +00:00
Geoffrey White
f9a617c714
Swift: Change note.
2023-09-25 20:31:00 +01:00
Geoffrey White
51ed824adf
Swift: Add more SQLite.swift models.
2023-09-25 20:30:59 +01:00
Geoffrey White
6be01eac04
Swift: Add implict read steps for dictionary content.
2023-09-25 20:30:59 +01:00
Geoffrey White
4350060b0f
Swift: Add SQLite.swift models.
2023-09-25 20:30:59 +01:00
Geoffrey White
839b9635b9
Swift: Effect of fixing string interpolation bug.
2023-09-25 20:30:58 +01:00
Geoffrey White
16ae637238
Swift: Add sqlite3 models.
2023-09-25 20:30:48 +01:00
Geoffrey White
4245a38de9
Swift: Add SQLite.swift and sqlite3 C API test cases for swift/cleartext-storage-database.
2023-09-25 20:30:48 +01:00
Joe Farebrother
7c230d61a8
Merge pull request #13882 from joefarebrother/csharp-insecure-direct-object-ref
...
C#: Add query for Insecure Direct Object Reference
2023-09-25 20:29:54 +01:00
amammad
fd0d194a8a
add changenote
2023-09-26 05:26:00 +10:00
amammad
b7f874d1f1
fix tests, better afero support!
2023-09-26 05:04:25 +10:00
Tom Hvitved
a045e6b029
C#: Expose generated files in DependencyManager
2023-09-25 20:16:58 +02:00
Tom Hvitved
4183fbe7cb
Merge pull request #14295 from hvitved/csharp/lambda-type-flow
...
C#: Improve lambda dispatch using type flow
2023-09-25 19:19:51 +02:00
amammad
c5faddc2a4
remove fasthttp in favor or fasthttp framework
2023-09-26 03:01:51 +10:00
amammad
9f9c9e0e5e
fix issues according to codereview
2023-09-26 02:06:57 +10:00
amammad
e239d763dc
Merge branch 'main' into amammad-go-NewFileSystemAccess
2023-09-26 02:04:59 +10:00
Tom Hvitved
4262fd5a48
C#: Add stub generator integration test
2023-09-25 17:02:11 +02:00
Joe Farebrother
d7c1be40d9
Fix codescanning alert by tweaking imported modules
2023-09-25 15:47:05 +01:00
Joe Farebrother
3efbbb3645
Elaborate 'guess' to 'guess or determine'
2023-09-25 15:44:40 +01:00
Michael Nebel
2d87d76576
Merge pull request #14272 from michaelnebel/csharp/externalapi
...
C#: Minor improvements to the ExternalApi implementation.
2023-09-25 16:35:58 +02:00
amammad
c3213e4de3
upgrade tests
2023-09-26 00:02:45 +10:00
Michael Nebel
e997a7c923
C#: Address review comment.
2023-09-25 14:59:18 +02:00
Tom Hvitved
f02d281188
Merge pull request #14309 from hvitved/csharp/stub-generator-output
...
C#: Make `GenerateStubs` return list of generated output
2023-09-25 14:46:49 +02:00
Tom Hvitved
ae06040a48
Address review comments
2023-09-25 14:30:08 +02:00
amammad
c1398f2b60
fix stub
2023-09-25 21:48:10 +10:00
yoff
c9976cf724
Merge pull request #14307 from yoff/python/inline-regex-location-tests
...
Python: switch regex location tests to inline expectations
2023-09-25 13:37:48 +02:00
Tom Hvitved
4bfd6771b4
C#: Make GenerateStubs return list of generated output
2023-09-25 13:27:50 +02:00
Tamás Vajk
831e50ccda
Merge pull request #14306 from tamasvajk/standalone/remove-runtime-nuget-packages-2
...
C#: Remove legacy runtime packages from extraction references
2023-09-25 13:23:43 +02:00
amammad
875817222c
fix qlDOC one missed mistake
2023-09-25 21:20:33 +10:00
Ian Lynagh
56a5c7876c
Merge pull request #14220 from igfoo/igfoo/light_comments
...
Kotlin: Extract LighterAST comments as well as PSI comments
2023-09-25 11:50:55 +01:00
Rasmus Lerchedahl Petersen
417907b36d
Python: switch to inline expectations
2023-09-25 11:44:56 +02:00
Tamas Vajk
ed83f59c23
C#: Remove legacy runtime packages from extraction references
2023-09-25 11:34:16 +02:00
Anders Schack-Mulligen
06cb277eb0
Merge pull request #14299 from aschackmull/dataflow/more-defaults
...
Dataflow: Make use of defaults for language-specific hooks.
2023-09-25 11:19:44 +02:00
Joe Farebrother
df5fcc92e7
Apply suggestions from docs review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-09-25 10:13:56 +01:00
Rasmus Wriedt Larsen
05ab28f11d
autoformat
2023-09-25 10:35:18 +02:00
Rasmus Wriedt Larsen
db7b1eea55
Merge branch 'main' into maikypedia/python-unsafe-deserialization
2023-09-25 10:29:18 +02:00
Rasmus Wriedt Larsen
f515559e56
Python: Sort Frameworks.qll
2023-09-25 10:25:43 +02:00
Rasmus Wriedt Larsen
a45e10d64f
Python: Slight rewrite of numpy test
...
To use positional argument for allow_pickle
2023-09-25 10:25:11 +02:00
Rasmus Wriedt Larsen
56d99fbd8a
Add numpy reference
2023-09-25 10:24:53 +02:00
Rasmus Wriedt Larsen
d1caa75053
Python: Fix format for pandas.read_pickle
2023-09-25 10:24:27 +02:00
Koen Vlaswinkel
ced95e0f45
Java: Split API name column into separate columns
2023-09-25 10:16:59 +02:00
Asger F
d501856519
Update DataFlowImpl.qll copies
2023-09-25 10:05:29 +02:00
Koen Vlaswinkel
922ff7bb10
C#: Remove unnecessary import
2023-09-25 10:03:18 +02:00
Koen Vlaswinkel
dc6def79d0
C#: Split API name column into separate columns
2023-09-25 10:02:34 +02:00
Asger F
cfed7e9b6c
Shared: add in/out barriers with flow state
2023-09-25 09:58:49 +02:00
Anders Schack-Mulligen
aa2c7a79d6
Dataflow: Add bindingset
2023-09-25 08:55:09 +02:00
amammad
0eb0c238f3
stash
2023-09-23 20:28:34 +10:00
Tom Hvitved
8f35c99f16
C#: Improve lambda dispatch using type flow
2023-09-23 11:41:03 +02:00
Tom Hvitved
09063c5189
C#: Port and extend type dispatch tests from Java
2023-09-23 11:37:51 +02:00
amammad
bafe357500
V3
2023-09-23 18:22:43 +10:00
amammad
0c40223192
v1
2023-09-23 18:17:49 +10:00
Robert Marsh
8ce79e6be8
Swift: for-in downgrade script
2023-09-22 19:12:27 +00:00
Ian Lynagh
7b779ca9d0
Merge pull request #14186 from igfoo/igfoo/kotlin-expected
...
Kotlin: Regenerate expected test output
2023-09-22 19:40:26 +01:00
Robert Marsh
325d6f738c
Swift: add expr types to for-in upgrade script
2023-09-22 18:14:37 +00:00
Robert Marsh
5b77e7db8a
Swift: for-in upgrade script passing CFG test
2023-09-22 17:44:45 +00:00
Ian Lynagh
56b9fa8e9c
Kotlin: Avoid using a possibly-throwing method
2023-09-22 18:15:28 +01:00
Geoffrey White
ab6e8b9ecd
Merge pull request #14252 from geoffw0/protocol3
...
Swift: Improve getABaseType implementions
2023-09-22 18:13:12 +01:00
Harry Maclean
2214caef4b
Ruby: Identify named graphql params as sources
2023-09-22 17:54:55 +01:00
Geoffrey White
2c9433c621
Merge pull request #13946 from geoffw0/arraysteptest
...
Swift: Models and tests for numeric conversions
2023-09-22 16:26:38 +01:00
Koen Vlaswinkel
0fea21f3e7
C#: Remove unnecessary columns
2023-09-22 16:35:15 +02:00
Koen Vlaswinkel
f4522edc95
Java: Remove unnecessary columns
2023-09-22 16:11:30 +02:00
Koen Vlaswinkel
7dc22e47d6
Java: Switch from problem to table query
2023-09-22 16:08:20 +02:00
Tony Torralba
b1cee2f35c
Merge pull request #14254 from atorralba/atorralba/arithexpr-improv
...
Java: Consider AssignOps in ArithExpr
2023-09-22 15:22:27 +02:00
Anders Schack-Mulligen
6316f61af9
Go: Fix import conflict.
2023-09-22 15:09:25 +02:00
Anders Schack-Mulligen
ae278fcad7
C++: Fix import conflict.
2023-09-22 15:06:21 +02:00
Max Schaefer
363dc49078
Merge pull request #14292 from github/max-schaefer/fix-python-regex-locations
...
Python: Improve source-location information for RegExpTerms.
2023-09-22 13:59:10 +01:00
Anders Schack-Mulligen
66da997b7b
Dataflow: Make use of defaults for language-specific hooks.
2023-09-22 14:54:22 +02:00
amammad
a8aeb1d03e
add active record and data mapper patterns support
2023-09-22 22:50:55 +10:00
Tom Hvitved
13ad6f8690
C#: Add missing flow summary for List<T>.ForEach
2023-09-22 13:48:32 +02:00
Tony Torralba
8f189cb90c
Merge pull request #14290 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-22 13:46:55 +02:00
Anders Schack-Mulligen
b11194e561
Java: Add missing qldoc.
2023-09-22 13:46:08 +02:00
Anders Schack-Mulligen
8ee1f8ae69
Java: Add missing flow step for ThreadLocal.initialValue.
2023-09-22 13:33:45 +02:00
Max Schaefer
dfec1620ea
Update expected test output.
2023-09-22 11:28:50 +01:00
Max Schaefer
6f67055852
Correctly account for length of string literal prefix when computing locations for RegExpTerms.
2023-09-22 11:24:25 +01:00
Max Schaefer
d4ff9c8ed1
Add test for locations of regexp terms.
2023-09-22 11:24:24 +01:00
Tom Hvitved
9638a6cb8f
Merge pull request #14095 from hvitved/csharp/stub-generator
...
C#: Roslyn-based stub generation
2023-09-22 12:12:34 +02:00
Tom Hvitved
e417e862a2
Merge pull request #14283 from hvitved/ruby/collapse-stages
...
Ruby: Collapse DIL stages
2023-09-22 10:58:06 +02:00
amammad
522a2e2594
v2
2023-09-22 18:56:47 +10:00
Geoffrey White
ab54f0cc6c
Merge pull request #14286 from geoffw0/interp
...
Swift: Fix bug in taint flow through string interpolation
2023-09-22 08:52:56 +01:00
Tom Hvitved
831baa867c
C#: Refactor and regenerate stubs
2023-09-22 09:15:01 +02:00
github-actions[bot]
47809a8252
Add changed framework coverage reports
2023-09-22 00:14:56 +00:00
Chris Smowton
0aeec1a1a2
Merge pull request #14288 from smowton/smowton/admin/buildless-snapshot-repositories-test
...
Java: Add test re: buildless mode interaction with snapshot repositories
2023-09-21 21:36:13 +01:00
Josh Brown
7ad2932b3f
Update SymmetricEncryptionAlgorithms.ql
...
Changing metadata to under python namespace
2023-09-21 12:12:16 -07:00
Benjamin Rodes
c0c2ae544b
Updating weak elliptic curve sample queries.
2023-09-21 12:12:16 -07:00
Benjamin Rodes
5fed923af0
Changed python inventory subdirectory structure to add old and new inventory models. Added some example old models.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
50db4fd63e
Moved Cpp into sub directory 'cryptography' instead of crypto. Added python models, inventory, and example alerts.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
7560db66fa
incorrect import path
2023-09-21 12:12:15 -07:00
Benjamin Rodes
fe22dc45b1
Moving inventory queries into a new subdirectory structure for new_models and old_models.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
6d7ac8de28
Adding example alerts
2023-09-21 12:12:15 -07:00
Benjamin Rodes
4c9cc5a21f
Adding inventory queries.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
7256faa7eb
Added modeling infrastructure
2023-09-21 12:12:15 -07:00
Chris Smowton
0b5727f1d1
Add test re: buildless mode interaction with snapshot repositories
2023-09-21 19:46:28 +01:00
Arthur Baars
2d44724acd
Merge pull request #14281 from aibaars/aibaars/java-standalone-test
...
Java: standalone: add basic integration tests
2023-09-21 20:09:02 +02:00
Chris Smowton
ffd0a72e74
Merge pull request #14285 from smowton/smowton/test/module-in-wrongly-named-file
...
Java: Test module definition in a file not named module-info.java in a buildless extraction
2023-09-21 19:03:35 +01:00
Geoffrey White
f2689dd515
Swift: Fix for string interpolation taint flow.
2023-09-21 19:02:16 +01:00
Geoffrey White
c7be9b42b3
Swift: Test demonstrating an issue with taint through string interpolation.
2023-09-21 19:02:06 +01:00
Sarita Iyer
27817ea9f0
fix
2023-09-21 12:07:07 -04:00
Chris Smowton
04258f8cfc
Remove actual file
2023-09-21 16:41:17 +01:00
Alex Ford
67019c6784
Merge pull request #14274 from alexrford/rb/dataflow-tidy
...
Ruby: Minor fixes for dataflow queries
2023-09-21 16:33:34 +01:00
Sarita Iyer
1899a6048d
fix table
2023-09-21 11:25:52 -04:00
Sarita Iyer
9b2b40004c
remove import changes
2023-09-21 10:57:33 -04:00
Sarita Iyer
4d9d748d51
fix underlines
2023-09-21 10:08:41 -04:00
Chris Smowton
14998606b7
Add test for the case of a module definition in a file not named module-info.java in a buildless extraction
2023-09-21 14:40:42 +01:00
Tom Hvitved
f07d02be96
Regenerate stubs
2023-09-21 15:35:50 +02:00
Tom Hvitved
4805e2a47b
Address more review comments
2023-09-21 15:35:50 +02:00
Alex Ford
4031623fda
Ruby: delete identical-files refs to deleted files
2023-09-21 14:22:34 +01:00
Alex Ford
840b1e0a73
Ruby: delete DataFlowImplForHttpClientLibraries
2023-09-21 14:11:46 +01:00
Alex Ford
a64d37211d
Ruby: use new dataflow api in Typhoeus.qll
2023-09-21 14:11:09 +01:00
Alex Ford
699f752ded
Ruby: use new dataflow api in RestClient.qll
2023-09-21 14:09:41 +01:00
Arthur Baars
722ee165d7
Java: standalone: add basic integration tests
2023-09-21 15:09:40 +02:00
Alex Ford
25203d98c3
Ruby: use new dataflow api in OpenURI.qll
2023-09-21 14:08:22 +01:00
Alex Ford
09782296df
Ruby: use new dataflow api in NetHttp.qll
2023-09-21 14:06:40 +01:00
Anders Schack-Mulligen
9f905497a5
Java: Add support for additional read and store steps and additional nodes.
2023-09-21 15:05:30 +02:00
Alex Ford
fc7e753035
Ruby: use new dataflow api in Httparty.qll
2023-09-21 14:04:46 +01:00
Paolo Tranquilli
e9e58d97be
Merge pull request #14280 from github/revert-14011-revert-13991-redsun82/swift-use-concepts
...
Revert "Revert "Swift: use C++20 constraints and concepts to simplify code""
2023-09-21 15:04:30 +02:00
Alex Ford
92941a45f9
Ruby: use new dataflow api in HttpClient.qll
2023-09-21 14:03:09 +01:00
Tom Hvitved
c2306e6713
Ruby: Collapse DIL stages
2023-09-21 14:33:04 +02:00
Geoffrey White
05309810b8
Merge pull request #14266 from geoffw0/quickfix
...
Swift: Improve taint models for NSString
2023-09-21 13:09:01 +01:00
Sarita Iyer
f04a1a534a
one more fix
2023-09-21 08:08:34 -04:00
Alex Ford
1ffcf4b9c4
Ruby: use new dataflow api in Faraday.qll
2023-09-21 13:07:06 +01:00
Alex Ford
1dbba19238
Ruby: use new dataflow api in Excon.qll
2023-09-21 13:00:17 +01:00
Sarita Iyer
36950d9d5c
additional changes
2023-09-21 07:50:12 -04:00
Alex Ford
489f598551
Ruby: delete DataFlowImplForPathname
2023-09-21 12:50:12 +01:00
Anders Schack-Mulligen
7e04ac55b7
Merge pull request #14268 from aschackmull/java/xmlparsers-typetrack
...
Java/Dataflow: Add new light-weight data flow api and use it in XmlParsers
2023-09-21 13:33:21 +02:00
Anders Schack-Mulligen
13f7daf71e
Merge pull request #13982 from aschackmull/dataflow/typeflow-calledge-pruning
...
Dataflow: Add type-based call-edge pruning.
2023-09-21 13:33:08 +02:00
Tom Hvitved
04c4e739ac
Address review comments
2023-09-21 13:33:02 +02:00
Alex Ford
4cb91e022f
Ruby: deprecate some flow states
2023-09-21 12:24:15 +01:00
Alex Ford
9d421ffa8d
Ruby: configsig rb/improper-ldap-auth
2023-09-21 12:24:15 +01:00
Tom Hvitved
2343e5ecd8
C#: Regenerate NHibernate stubs
2023-09-21 12:56:11 +02:00
Tom Hvitved
e944b90eef
C#: Regenerate Microsoft.AspNetCore.App stubs
2023-09-21 12:56:05 +02:00
Tom Hvitved
c547adc9d4
C#: Regenerate Microsoft.NetCore.App stubs
2023-09-21 12:56:04 +02:00
Tom Hvitved
58f45ea198
C#: Regenerate Newtonsoft.Json stubs
2023-09-21 12:56:04 +02:00
Anders Schack-Mulligen
3dadfa2243
Dataflow: review fixes
2023-09-21 11:52:41 +02:00
Tom Hvitved
8b2c233b61
C#: Use new stub generator in make_stubs_nuget.py
2023-09-21 11:33:25 +02:00
Tom Hvitved
e021fb46c8
C#: Roslyn based stub generation
2023-09-21 11:33:25 +02:00
Tom Hvitved
6021d00f7e
C#: Move some methods into newly created Semmle.Extraction.CSharp.Util project
2023-09-21 11:33:25 +02:00
Tom Hvitved
2429a5383d
C#: Move NestPaths to Semmle.Util
2023-09-21 11:33:25 +02:00
Mathias Vorreiter Pedersen
3d8231be1b
Merge pull request #14269 from MathiasVP/add-getParameter-to-parameter-node
2023-09-21 09:20:57 +01:00
Paolo Tranquilli
60b7d79fba
Revert "Revert "Swift: use C++20 constraints and concepts to simplify code""
2023-09-21 10:17:22 +02:00
Tamás Vajk
40bf5c17fb
Merge pull request #14273 from tamasvajk/standalone/remove-runtime-nuget-packages
...
C#: Remove platform-specific runtime nuget packages from the reference list in Standalone
2023-09-21 09:50:10 +02:00
Erik Krogh Kristensen
0783d7b271
Merge pull request #14278 from github/dependabot/cargo/ql/rayon-1.8.0
...
Bump rayon from 1.7.0 to 1.8.0 in /ql
2023-09-21 08:30:41 +02:00
Tamás Vajk
011391bd27
Merge pull request #14243 from tamasvajk/parallelize-restore
...
C#: Parallelize restore logic of missing packages
2023-09-21 08:04:27 +02:00
dependabot[bot]
d0554a05f9
Bump rayon from 1.7.0 to 1.8.0 in /ql
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.7.0 to 1.8.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.7.0...rayon-core-v1.8.0 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 03:10:09 +00:00
Sarita Iyer
292a9481e6
Pending changes exported from your codespace
2023-09-20 22:02:14 +00:00
Alex Eyers-Taylor
d0849311a6
CPP: Fix use after free FPs by elimnatiing freeing nodes rather than freeing expressions.
2023-09-20 18:47:57 +01:00
Alex Eyers-Taylor
9de6230bbf
CPP: Add use after free false positive example.
2023-09-20 18:34:47 +01:00
Geoffrey White
fef5a49fcb
Swift: Remove now duplicate extension logic.
2023-09-20 15:36:15 +01:00
Rasmus Lerchedahl Petersen
12dab88ec7
Python: rename concept
...
`NoSqlQuery` -> `NoSqlExecution`
2023-09-20 15:49:35 +02:00
Rasmus Lerchedahl Petersen
4ec8b3f02f
Python: Model map_reduce
2023-09-20 15:44:12 +02:00
Tamas Vajk
d29585c8b7
C#: Remove platform-specific runtime nuget packages from the reference list in Standalone
2023-09-20 15:24:01 +02:00
Rasmus Lerchedahl Petersen
7c085ecc61
Python: Add test for map_reduce
...
Also log requirement for old versions of `pymongo`
2023-09-20 15:23:18 +02:00
Anders Schack-Mulligen
d285afba08
Typetracking: minor perf fix.
2023-09-20 14:52:49 +02:00
Michael Nebel
0b84dee65e
C#: Minor improvements to the ExternalApi implementation.
2023-09-20 14:34:27 +02:00
Koen Vlaswinkel
9e2984770f
Java: Fix identification of supported endpoints in framework mode
2023-09-20 14:25:06 +02:00
Koen Vlaswinkel
73ebd21c33
Java: Refactor most of the logic out of the model editor query files
2023-09-20 14:13:28 +02:00
Koen Vlaswinkel
509b7fe0f8
Java: Add tests for supported framework methods
2023-09-20 14:11:00 +02:00
Koen Vlaswinkel
6adbc406a7
Java: Add tests for private methods
2023-09-20 14:05:28 +02:00
Koen Vlaswinkel
8e55189b84
Java: Add tests for generic interfaces/classes/methods
2023-09-20 14:02:34 +02:00
Koen Vlaswinkel
6e78aac6cc
Java: Rename CallableMethod to Endpoint
2023-09-20 13:57:27 +02:00
Koen Vlaswinkel
fee9640077
Java: Update query id/tags and documentation
2023-09-20 13:54:35 +02:00
Koen Vlaswinkel
fe7ce0ae0b
Java: Rename queries from fetch methods to endpoints
2023-09-20 13:52:49 +02:00
Koen Vlaswinkel
082a45400d
Java: Rename AutomodelVsCode to ModelEditor
2023-09-20 13:51:05 +02:00
Tom Hvitved
455cde2f64
Merge pull request #14267 from hvitved/ruby/fix-join
...
Ruby: Fix bad join
2023-09-20 13:49:51 +02:00
Michael Nebel
13dd9a6c37
C#: Address review comments.
2023-09-20 13:43:38 +02:00
Michael Nebel
50a9219a3b
C#: Re-factor most of the logic out of the model editor query files.
2023-09-20 13:08:01 +02:00
Michael Nebel
45432f211c
C#: Identify whether callables in the source code are supported in terms of MaD.
2023-09-20 13:01:24 +02:00
github-actions[bot]
3acf5244b0
Post-release preparation for codeql-cli-2.14.6
2023-09-20 10:25:10 +00:00
Chris Smowton
07dbad509c
Merge pull request #14265 from phillmv/patch-1
...
s/Replace/ReplaceAll/ in LogInjectionGood.go
2023-09-20 11:06:15 +01:00
Chris Smowton
a8afa05b1d
Correct ReplaceAll params
...
ReplaceAll doesn't take a count argument
2023-09-20 10:00:53 +01:00
Mathias Vorreiter Pedersen
22d66b6d81
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
2023-09-20 09:56:10 +01:00
Mathias Vorreiter Pedersen
fb1ce2ab70
C++: Lift 'getParameter' to 'ParameterNode'.
2023-09-20 09:51:35 +01:00
Rasmus Wriedt Larsen
8e864ab84a
Merge pull request #14262 from RasmusWL/dataflow-labeler
...
Misc: Update auto labeler for shared dataflow pack
2023-09-20 10:26:44 +02:00
Anders Schack-Mulligen
5c40d553b4
Java: Switch XmlParsers lib to lightweight data flow.
2023-09-20 10:21:53 +02:00
Anders Schack-Mulligen
d7e965f863
Dataflow: Add lightweight api based on TypeTracking.
2023-09-20 10:21:21 +02:00
Anders Schack-Mulligen
d7bd8c7ffd
Shared/TypeTracking: Add support for flow from non-LocalSourceNode source and bugfix in smallstep.
2023-09-20 10:19:33 +02:00
Tom Hvitved
1442bddf36
Ruby: Fix bad join
...
Before
```
Evaluated relational algebra for predicate DataFlowPublic#e1781e31::BarrierGuard#PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#::getAMaybeGuardedCapturedDef#0#f@3c903abq with tuple counts:
280924 ~0% {2} r1 = SCAN Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::definesAt#3#dispred#ffff OUTPUT In.2, In.0
280924 ~0% {2} r2 = JOIN r1 WITH BasicBlocks#d5fe3e99::BasicBlock::getScope#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
103843 ~1% {2} r3 = JOIN r2 WITH SSA#304893e3::Ssa::CapturedEntryDefinition#f ON FIRST 1 OUTPUT Lhs.0, Lhs.1
103843 ~5% {3} r4 = JOIN r3 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
19665045 ~0% {3} r5 = JOIN r4 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1
19497860 ~0% {3} r6 = JOIN r5 WITH Call#841c84e8::MethodCall::getBlock#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
19496808 ~0% {3} r7 = JOIN r6 WITH CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
19496808 ~0% {3} r8 = JOIN r7 WITH CfgNodes#ace8e412::ExprNodes::CallCfgNode#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2
19496808 ~0% {3} r9 = JOIN r8 WITH ControlFlowGraph#46cebcbd::CfgNode::getBasicBlock#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
19496808 ~3% {4} r10 = SCAN r9 OUTPUT In.0, true, In.1, In.2
49434 ~7% {3} r11 = JOIN r10 WITH DataFlowPublic#e1781e31::guardControlsBlock#3#fff_120#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2, Lhs.3
117 ~4% {3} r12 = JOIN r11 WITH PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#3#cpe#12#ff ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1
0 ~0% {1} r13 = JOIN r12 WITH SsaImpl#ff97b16a::Cached::getARead#1#ff ON FIRST 2 OUTPUT Lhs.2
return r13
```
After
```
Evaluated relational algebra for predicate DataFlowPublic#e1781e31::BarrierGuard#PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#::getAMaybeGuardedCapturedDef#0#f@137a23jm with tuple counts:
280924 ~0% {2} r1 = SCAN Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::definesAt#3#dispred#ffff OUTPUT In.2, In.0
280924 ~0% {2} r2 = JOIN r1 WITH BasicBlocks#d5fe3e99::BasicBlock::getScope#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
103843 ~1% {2} r3 = JOIN r2 WITH SSA#304893e3::Ssa::CapturedEntryDefinition#f ON FIRST 1 OUTPUT Lhs.1, Lhs.0
102517 ~1% {2} r4 = JOIN r3 WITH Call#841c84e8::MethodCall::getBlock#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
102378 ~2% {2} r5 = JOIN r4 WITH CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
102378 ~2% {2} r6 = JOIN r5 WITH CfgNodes#ace8e412::ExprNodes::CallCfgNode#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1
102378 ~0% {2} r7 = JOIN r6 WITH ControlFlowGraph#46cebcbd::CfgNode::getBasicBlock#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
102378 ~0% {3} r8 = SCAN r7 OUTPUT In.0, true, In.1
7417 ~5% {2} r9 = JOIN r8 WITH DataFlowPublic#e1781e31::guardControlsBlock#3#fff_120#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2
22 ~0% {2} r10 = JOIN r9 WITH PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#3#cpe#12#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
12 ~0% {2} r11 = JOIN r10 WITH SsaImpl#ff97b16a::Cached::getARead#1#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
12 ~0% {2} r12 = JOIN r11 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
0 ~0% {1} r13 = JOIN r12 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff ON FIRST 2 OUTPUT Lhs.0
return r13
```
2023-09-20 09:51:15 +02:00
Joe Farebrother
4497e22195
Add an additional example and additional test cases for authorize attribute cases
2023-09-20 04:13:34 +01:00
Joe Farebrother
475fe3a2a5
Attempt to improve performance in checksUser
2023-09-20 03:18:20 +01:00
Geoffrey White
af315c5072
Swift: Change note.
2023-09-19 23:02:14 +01:00
Geoffrey White
1b74b49bb3
Swift: Improve NSString models for varargs functions.
2023-09-19 23:02:14 +01:00
Rasmus Lerchedahl Petersen
30c37ca8cb
Python: model §accumulator
...
also slightly rearrange the modelling
2023-09-19 22:21:14 +02:00
Robert Marsh
30b30695e4
Swift: WIP upgrade script for for-each refactor
2023-09-19 19:28:05 +00:00
Phill MV
11218f79c6
s/Replace/ReplaceAll/ in LogInjectionGood.go
2023-09-19 14:43:54 -04:00
Geoffrey White
f8c5a9a264
Swift: Test localizedStringWithFormat a bit better.
2023-09-19 18:43:54 +01:00
Geoffrey White
8354439d8d
Merge pull request #14263 from geoffw0/typos
...
CPP / Swift: Typos
2023-09-19 18:02:33 +01:00
Geoffrey White
a3579f6e38
Merge branch 'main' into typos
2023-09-19 16:44:13 +01:00
Geoffrey White
ae159924a3
Swift: Add numeric barrier to the regular expression injection query as well.
2023-09-19 16:21:43 +01:00
Rasmus Lerchedahl Petersen
5611bda7ee
Python: add test for $accumulator
2023-09-19 17:04:28 +02:00
Owen Mansel-Chan
650d8069f6
Merge pull request #14131 from omahs/patch-1
...
Docs: fix minor typos
2023-09-19 15:53:07 +01:00
Geoffrey White
935b7600ca
Swift: Fix typos.
2023-09-19 15:19:00 +01:00
Geoffrey White
8a0e202b63
CPP: Fix typos.
2023-09-19 15:18:03 +01:00
Rasmus Wriedt Larsen
cc30c062b8
Misc: Update auto labeler for shared dataflow pack
2023-09-19 16:08:43 +02:00
Geoffrey White
e011951e1f
Swift: Added change note for the new barriers.
2023-09-19 14:59:27 +01:00
Koen Vlaswinkel
3ebb9e16be
C#: Update query id/tags and documentation
2023-09-19 15:54:15 +02:00
Koen Vlaswinkel
044fb9f320
C#: Rename queries from fetch methods to endpoints
2023-09-19 15:51:12 +02:00
Mathias Vorreiter Pedersen
2ae342c5c1
Merge pull request #14258 from MathiasVP/explicit-size_t
...
C++: Use `size_t` explicitly in CWE-193 tests
2023-09-19 14:50:54 +01:00
Koen Vlaswinkel
eace7a4bbf
C#: Add tests for supported framework methods
2023-09-19 15:49:35 +02:00
Geoffrey White
32a2930c2f
Swift: Accept bad tag filter test fixes.
2023-09-19 14:47:56 +01:00
Tom Hvitved
7c2df87ea2
Merge pull request #14247 from hvitved/dataflow/fix-consitency-checks
...
Data flow: Fix two consistency checks
2023-09-19 15:45:21 +02:00
omahs
473f17c0e6
fix typo
2023-09-19 14:39:49 +01:00
omahs
884f41b6f0
fix typo
2023-09-19 14:39:49 +01:00
omahs
278d0fb798
fix typo
2023-09-19 14:39:49 +01:00
omahs
f58dd7303c
fix typo
2023-09-19 14:39:49 +01:00
Geoffrey White
5975546098
Swift: Add numeric barrier for predicate injection query as well.
2023-09-19 14:33:24 +01:00
Geoffrey White
2983295ba3
Swift: Add numeric barrier for uncontrolled format string query.
2023-09-19 14:33:23 +01:00
Geoffrey White
f98de85e36
Swift: Add numeric barrier for command injection query.
2023-09-19 14:33:23 +01:00
Geoffrey White
903b0f5bab
Swift: Add numeric barrier for the SQL Injinjection query.
2023-09-19 14:33:23 +01:00
Geoffrey White
ee9a5c751c
Swift: Add numeric barrier for to the JS eval query.
2023-09-19 14:33:22 +01:00
Tamas Vajk
c78cd73edf
Refactor process starting and stdout and stderr reading
2023-09-19 15:20:09 +02:00
Mathias Vorreiter Pedersen
7ef5971337
C++: Use 'size_t' explicitly in test.
2023-09-19 13:58:08 +01:00
Tamas Vajk
edc93dfeb7
Add managed thread ID to extractor log messages
2023-09-19 14:56:27 +02:00
Koen Vlaswinkel
14a2b7f79f
C#: Add tests for private methods and accessors
2023-09-19 14:55:57 +02:00
Mathias Vorreiter Pedersen
9b35202d21
Merge pull request #14249 from MathiasVP/fix-malloc-decl-in-test
...
C++: Fix the declaration of `malloc` in test
2023-09-19 13:53:23 +01:00
Koen Vlaswinkel
dd7904969f
C#: Remove unnecessary isUnboundDeclaration predicates
2023-09-19 14:51:03 +02:00
Tamas Vajk
dfd7f1e78b
C#: Parallelize restore logic of missing packages
2023-09-19 14:43:23 +02:00
amammad
69c2d9ed5c
fix change notes
2023-09-19 22:24:52 +10:00
amammad
da864bf7f7
fix QLDoc
2023-09-19 22:19:18 +10:00
amammad
a96b0011f0
clean tests
2023-09-19 22:12:10 +10:00
Geoffrey White
158008ac4f
Swift: New results in tests.
2023-09-19 13:08:08 +01:00
amammad
1e12a86781
Merge branch 'main' into amammad-go-JWT
2023-09-19 22:01:50 +10:00
amammad
2136929164
clean tests
2023-09-19 22:01:40 +10:00
Michael Nebel
fc3bc95147
Merge pull request #14218 from michaelnebel/csharp/dotnetdotnet
...
Lua: Tracing of `dotnet dotnet`.
2023-09-19 13:21:34 +02:00
Michael Nebel
43cdbf2f86
Merge pull request #14142 from michaelnebel/csharp/dotnetunittests
...
C#: Re-factor Dotnet.cs to enable unit testing.
2023-09-19 13:19:44 +02:00
Owen Mansel-Chan
45484c78e8
Merge pull request #14057 from data-douser/data-douser-patch-1
...
Update codeql-library-for-go.rst
2023-09-19 11:34:44 +01:00
Geoffrey White
48d1b667cf
Swift: Autoformat.
2023-09-19 11:22:12 +01:00
Geoffrey White
2d05b85bb4
Swift: Fix uses of legacy CArrayElement.
2023-09-19 11:20:05 +01:00
Mathias Vorreiter Pedersen
8906a37989
Merge pull request #14250 from MathiasVP/reduce-dataflow-duplication-for-allocations
...
C++: Reduce dataflow duplication for allocations
2023-09-19 11:18:20 +01:00
Tony Torralba
1e95a5a38a
Java: Consider AssignOps in ArithExpr
2023-09-19 12:15:59 +02:00
Anders Schack-Mulligen
42054539f4
Dataflow: Minor review fixes.
2023-09-19 12:12:15 +02:00
Geoffrey White
311daa2539
Swift: Accept fixed test case having merged in main.
2023-09-19 10:39:59 +01:00
Alexander Eyers-Taylor
1f4a5301cd
Merge pull request #14242 from alexet/simplify-ir-guards
...
CPP: Simplify some code in IRGuards.
2023-09-19 10:35:09 +01:00
Geoffrey White
037f246cda
Merge branch 'main' into arraysteptest
2023-09-19 10:33:32 +01:00
yoff
811a7d0671
Merge pull request #14248 from RasmusWL/debug-queries
...
Python: Add debug queries
2023-09-19 11:27:27 +02:00
Michael Nebel
a3da11a962
C#: Rename DotNetCliWrapper to DotNet.
2023-09-19 11:12:36 +02:00
Geoffrey White
34240f7328
Swift: Accept generated changes.
2023-09-19 10:08:08 +01:00
Michael Nebel
6c0afab0aa
C#: Rename DotnetVersion to DotNetVersion.
2023-09-19 11:03:26 +02:00
Michael Nebel
31327f4f73
C#: Only access the DotNetCliWrapper using the IDotNet interface.
2023-09-19 11:03:26 +02:00
Michael Nebel
1fd85f4fe3
C#: Rename DotNet to DotNetCliWrapper.
2023-09-19 11:03:26 +02:00
Michael Nebel
82e56e6dae
C#: Rename DotnetCommand to DotNetCliInvoker.
2023-09-19 11:03:26 +02:00
Michael Nebel
05c5f3e050
C#: Make ReadOutput more robust and re-factor RunCommand methods.
2023-09-19 11:03:26 +02:00
Michael Nebel
d60055b148
C#: Add unit tests for DotNet.
2023-09-19 11:03:25 +02:00
Michael Nebel
f00b6e27a7
C#: Re-factor Dotnet to enable unit testing.
2023-09-19 11:03:25 +02:00
Tony Torralba
c45ca7212a
Merge pull request #14126 from intrigus-lgtm/patch-9
...
Java: Fix alert message
2023-09-19 09:52:42 +02:00
Tony Torralba
9340347799
Merge pull request #14253 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-19 09:52:04 +02:00
github-actions[bot]
562dbf1b8d
Add changed framework coverage reports
2023-09-19 00:15:19 +00:00
Geoffrey White
bcf990b362
Swift: Add change note.
2023-09-18 22:17:43 +01:00
amammad
bc6a0fc776
move to CWE-347
2023-09-19 07:15:46 +10:00
amammad
3585459548
fix qhelps
2023-09-19 06:17:31 +10:00
Geoffrey White
df29f3974b
Swift: Update uses of getABaseType() and similar to do things correctly now.
2023-09-18 20:50:47 +01:00
Geoffrey White
37edcad1b0
Swift: Go through protocols added in extensions also.
2023-09-18 20:03:08 +01:00
Geoffrey White
f604b28ab5
Swift: Resolve type aliases (1) in base class declarations, not before them and (2) consistently. This is not behaviour preserving.
2023-09-18 20:01:46 +01:00
Geoffrey White
c78f5ce4cc
Swift: Move NominalType.getABaseType() implementation out from NominalType (inconsistent, difficult to find) to Type.
2023-09-18 20:00:22 +01:00
Geoffrey White
b048268042
Swift: Add some QLDoc.
2023-09-18 20:00:19 +01:00
Geoffrey White
4f39cb65c2
ed test
2023-09-18 19:59:59 +01:00
Rasmus Wriedt Larsen
fd8d186b34
Python: Add debug queries
...
For manually debugging things, it's nice to be able to share debug
queries.
I had the DebugStats.ql lying around from way back, and thought it was
kinda cute. I've extended it with a bunch of things, not too sure if
they're all important, but I think it's kinda fun to see the
distribution of things 😊
2023-09-18 20:46:52 +02:00
Geoffrey White
ef8a997c99
Swift: Extend the test.
2023-09-18 19:37:20 +01:00
amammad
a6996c5d21
fix tests
2023-09-19 03:48:31 +10:00
amammad
c195a9f05d
Merge branch 'main' into amammad-go-fastHttp
2023-09-19 03:07:27 +10:00
Mathias Vorreiter Pedersen
fda52a568d
C++: Accept test changes.
2023-09-18 17:55:25 +01:00
Mathias Vorreiter Pedersen
d2e66a1186
C++: Ignore addresses of 'InitializeDynamicAllocationInstruction' in 'unique' when converting between instructions and expression in dataflow.
2023-09-18 17:55:19 +01:00
Mathias Vorreiter Pedersen
8a2d4852c6
C++: Add another testcase.
2023-09-18 16:48:03 +01:00
Rasmus Wriedt Larsen
3df36ec89c
Merge pull request #14245 from RasmusWL/minor-modeling-fixup
...
Python: Modernize modeling of `BaseHTTPRequestHandler`
2023-09-18 17:43:06 +02:00
Mathias Vorreiter Pedersen
bc0b2e5318
C++: Fix the return type and parameter type of 'malloc' in test.
2023-09-18 16:40:46 +01:00
Mathias Vorreiter Pedersen
6a2a029c4c
Merge pull request #14244 from MathiasVP/remove-unnecessary-size_t-cast
...
C++: Remove unnecessary `size_t` cast from allocations
2023-09-18 16:18:24 +01:00
Harry Maclean
2053ee00ab
Ruby: Add change note
2023-09-18 16:02:09 +01:00
Harry Maclean
18dac9ab8a
Ruby: Handle GraphQL array types
2023-09-18 16:00:56 +01:00
Tom Hvitved
daad69bb30
Data flow: Fix two consistency checks
2023-09-18 16:36:11 +02:00
Alex Ford
e45edca103
Ruby: remove unused import
2023-09-18 14:55:11 +01:00
Koen Vlaswinkel
489561f4f1
C#: Fix formatting of ExternalApi
2023-09-18 15:49:59 +02:00
Koen Vlaswinkel
948e36a4c5
C#: Update comment for Endpoint
2023-09-18 15:47:50 +02:00
Koen Vlaswinkel
81a8eeed46
C#: Only include unbound declarations in endpoints
2023-09-18 15:45:30 +02:00
amammad
6f5aa58d82
add change note
2023-09-18 23:38:32 +10:00
Koen Vlaswinkel
93972a49d7
C#: Rename AutomodelVsCode to ModelEditor
2023-09-18 15:34:24 +02:00
Koen Vlaswinkel
4693f72d5f
C#: Rename CallableMethod to Endpoint
2023-09-18 15:30:38 +02:00
amammad
09aee3081e
fix library-tests
2023-09-18 23:29:45 +10:00
Koen Vlaswinkel
f468b2a3d1
C#: Add tests for generic interfaces/classes/methods
2023-09-18 14:58:20 +02:00
Rasmus Lerchedahl Petersen
4614b1ae9c
Python: add change note
2023-09-18 14:34:03 +02:00
Anders Starcke Henriksen
a5db939234
Release automodel queries version 0.0.3
2023-09-18 14:29:09 +02:00
Erik Krogh Kristensen
998237e8af
Merge pull request #13488 from erik-krogh/finalAlias
...
Shared: use final class aliases to use `extends` instead of `instanceof` in the shared libraries
2023-09-18 14:26:22 +02:00
yoff
4a37c2fc3a
Merge pull request #13778 from geoffw0/javaparsemode
...
Java: Understand multiple parse mode flags specified in a regular expression string
2023-09-18 14:22:59 +02:00
Paolo Tranquilli
dc299fc9fa
Merge pull request #14208 from github/redsun82/swift-unordered-base-types
...
Swift: rename `base_types` in `TypeDecl` to `inherited_types`
2023-09-18 14:21:20 +02:00
Rasmus Wriedt Larsen
ad1743ecde
Python: Modernize modeling of BaseHTTPRequestHandler
2023-09-18 14:13:27 +02:00
Koen Vlaswinkel
8472b84cad
C#: Remove unnecessary isEffectivelyPublic predicate
2023-09-18 13:49:16 +02:00
Koen Vlaswinkel
ff2cef3d6b
C#: Switch from Declaration to Callable
2023-09-18 13:44:32 +02:00
Koen Vlaswinkel
e524e358f0
C#: Check accessor declaration for publicness
2023-09-18 13:40:23 +02:00
Koen Vlaswinkel
0cc74a2691
C#: Extract TestLibrary to separate module
2023-09-18 13:40:18 +02:00
Tamás Vajk
c4d7302f9e
Merge pull request #14228 from tamasvajk/standalone-implicit-usings
...
C#: Generate source file with implicit usings in Standalone
2023-09-18 13:26:09 +02:00
Tony Torralba
bd31e1004a
Merge pull request #14063 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-18 13:23:32 +02:00
Geoffrey White
4323bee243
Merge pull request #13980 from geoffw0/logfix
...
Swift: Improvements related to the swift/cleartext-logging query.
2023-09-18 12:18:40 +01:00
Anders Schack-Mulligen
b13d026434
Dataflow: Review fixes.
2023-09-18 13:15:26 +02:00
Tamas Vajk
fa814a5276
Add test cases for implicit using parsing
2023-09-18 12:47:50 +02:00
Mathias Vorreiter Pedersen
0e9f5f6b8e
C++: Accept test changes.
2023-09-18 11:46:19 +01:00
Mathias Vorreiter Pedersen
38b100531b
C++: Only add conversion when necessary.
2023-09-18 11:46:11 +01:00
Mathias Vorreiter Pedersen
53561b7883
C++: Add tests for sized allocation without a need for a synthesized conversion.
2023-09-18 11:45:18 +01:00
intrigus-lgtm
874f91c7ae
Java: Further alert message improvement
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-09-18 12:25:31 +02:00
Alex Eyers-Taylor
c7ccfac938
CPP: Simplify some code in IRGuards.
2023-09-18 10:51:48 +01:00
Mathias Vorreiter Pedersen
734a91db9c
Merge pull request #14237 from MathiasVP/range-analysis-perf
...
C++: Fix order of non-linear join in range analysis
2023-09-18 10:38:19 +01:00
Geoffrey White
86b0fae77e
Swift: Update uses of deprecated ArrayContent.
2023-09-18 10:28:45 +01:00
Geoffrey White
d15420c42c
Swift: Consequences of change in main on the test internals.
2023-09-18 10:07:23 +01:00
Geoffrey White
c3ea0cea91
Merge branch 'main' into logfix
2023-09-18 10:00:16 +01:00
Tony Torralba
b08e410f45
Merge pull request #14029 from atorralba/atorralba/apache-cxf-models
...
Java: Add new Apache CXF models
2023-09-18 10:54:05 +02:00
erik-krogh
9c0682848e
use final class aliases to use extends instead of instanceof in the shared libraries
2023-09-18 10:25:49 +02:00
Erik Krogh Kristensen
a3e2e420f0
Merge pull request #14241 from github/dependabot/cargo/ql/chrono-0.4.31
...
Bump chrono from 0.4.30 to 0.4.31 in /ql
2023-09-18 08:41:25 +02:00
dependabot[bot]
f3a746c324
Bump chrono from 0.4.30 to 0.4.31 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.30 to 0.4.31.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.30...v0.4.31 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-18 03:10:03 +00:00
github-actions[bot]
0ae4b628a3
Add changed framework coverage reports
2023-09-18 00:15:17 +00:00
Maiky
52007fb9a2
Change v3 to v2
2023-09-17 21:42:18 +02:00
Maiky
1764aa0caf
Fixing NumpyLoadCall
2023-09-17 19:44:48 +02:00
Maiky
8254d0dd10
Naming error
...
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com >
2023-09-17 18:53:48 +02:00
Maiky
6d0ba5f97b
Add allow_pickle to tests
...
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com >
2023-09-17 18:53:18 +02:00
Maiky
70103967ef
Doc changes
...
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com >
2023-09-17 18:47:19 +02:00
Maiky
cada523031
Remove unnecessary import
...
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com >
2023-09-17 18:46:13 +02:00
Maiky
97c20b181a
Add change note
2023-09-16 14:01:53 +02:00
Mathias Vorreiter Pedersen
46b15fa6f2
C++: Fix join of non-linear joins.
2023-09-16 01:33:16 +01:00
Robert Marsh
2b54ad58b0
Swift: change note for nil-coalesing operator
2023-09-15 20:44:05 +00:00
Joe Farebrother
868836e747
Update severity
2023-09-15 16:40:12 +01:00
Joe Farebrother
eb2f5898bd
Fix typos
2023-09-15 16:39:51 +01:00
Joe Farebrother
68ad5b7c00
Restrict logic for checking for id parameters on index expressions for performance
2023-09-15 16:35:29 +01:00
Mathias Vorreiter Pedersen
cdf5872eb3
Merge pull request #14217 from alexet/is-trivial-built-in
...
CPP:Make __is_trivial a builtin operation.
2023-09-15 16:01:25 +01:00
amammad
52d1e45b05
add comments for better quality
2023-09-15 23:25:25 +10:00
Chris Smowton
f160c6c646
Merge pull request #14195 from Kwstubbs/SQL_int_sanitizer
...
Add Integer/Boolean Sanitizer to SQL injection Query
2023-09-15 14:13:35 +01:00
Chris Smowton
aaa230a791
Merge branch 'main' into SQL_int_sanitizer
2023-09-15 13:44:58 +01:00
Chris Smowton
062024b3d6
Merge pull request #14232 from smowton/smowton/fix/autoformat
...
Fix formatting mistake
2023-09-15 13:00:40 +01:00
Chris Smowton
a63bb1bbed
Tidy
2023-09-15 12:58:44 +01:00
Chris Smowton
e62fcf9a45
Fix formatting mistake
2023-09-15 12:37:34 +01:00
Tamas Vajk
c34fef1eb6
Adjust integration tests after path changes and generating file with global usings
2023-09-15 13:35:25 +02:00
Chris Smowton
24dc09efad
Merge pull request #14206 from smowton/smowton/feature/add-java-miscompilation-tests
...
Java: add tests for programs that don't compile
2023-09-15 11:14:04 +01:00
Maiky
f08eb3cdf4
Doc change
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:51:53 +02:00
Maiky
15b965bb3b
rename verifies() to verifiesSignature()
2023-09-15 11:45:19 +02:00
Maiky
c43d0866f6
Update ruby/ql/src/experimental/cwe-347/EmptyJWTSecret.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:42:43 +02:00
Maiky
122881ddf5
Simplify DataFlow::PairNode
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:41:19 +02:00
Maiky
d4f6111621
Naming change
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:40:51 +02:00
Maiky
153a435257
Naming change
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:40:42 +02:00
Maiky
aea6eeda38
Naming change
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:40:34 +02:00
Maiky
2ebe46bd05
Naming change
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-09-15 11:40:20 +02:00
Joe Farebrother
6d704be7d2
Rewrite checks for index expressions in terms of dataflow
2023-09-15 10:25:27 +01:00
Joe Farebrother
a2dce6be14
Check for authorize attributes in more namespaces and on overridden methods
2023-09-15 10:25:27 +01:00
Joe Farebrother
6a95ed64ff
Add test cases for authorization from attributes
2023-09-15 10:25:27 +01:00
Joe Farebrother
ac45050545
Add checks for authorization attributes
2023-09-15 10:25:27 +01:00
Joe Farebrother
0a27da08d6
Minor changes from review suggestions to shared logic between this and missing access control
...
Use case insensitive regex, factor out page load to improve possible bad joins make needsAuth not a member predicate
2023-09-15 10:25:27 +01:00
Joe Farebrother
a022893f0f
Add additional example to qhelp + additional resource
2023-09-15 10:25:27 +01:00
Joe Farebrother
86abd338e5
Update test options
2023-09-15 10:25:26 +01:00
Joe Farebrother
9f25c71ca6
Apply minor reveiw suggstions
2023-09-15 10:25:26 +01:00
Joe Farebrother
4967fe0b77
Add change note + update query ID
2023-09-15 10:25:26 +01:00
Joe Farebrother
3e6750ba4c
Add documentation
2023-09-15 10:25:26 +01:00
Joe Farebrother
f8b1b38438
Update alert message and make user checks more precise
2023-09-15 10:25:26 +01:00
Joe Farebrother
009a7bfc87
Add MVC tests
2023-09-15 10:25:26 +01:00
Joe Farebrother
20d42dfd7d
Add tests for webforms case
2023-09-15 10:25:26 +01:00
Joe Farebrother
2edd73eb60
Fix typos in filepath + metadata, add severity
2023-09-15 10:25:26 +01:00
Joe Farebrother
251f875304
Fix filenme typo
2023-09-15 10:25:26 +01:00
Joe Farebrother
5d1289672b
Add IDOR query
2023-09-15 10:25:26 +01:00
Joe Farebrother
a510a7b4c0
Add insecure direct object reference definitions and factor out those from missing access control
2023-09-15 10:25:26 +01:00
Mathias Vorreiter Pedersen
6c7833f28c
Merge pull request #14223 from MathiasVP/add-explicit-dereferenced-by-operation-base-case-predicate
...
C++: Add a `directDereferencedByOperation` predicate
2023-09-15 10:19:26 +01:00
Tom Hvitved
14561c414b
Merge pull request #14225 from hvitved/ruby/fix-bad-join
...
Ruby: Fix a bad join
2023-09-15 10:59:24 +02:00
Tamas Vajk
d725bd9169
C#: Generate source file with implicit usings in Standalone
2023-09-15 10:52:57 +02:00
amammad
e1d5c9d45b
fix grammar mistake
2023-09-15 06:32:23 +10:00
Chris Smowton
c5001a86f6
Fix test expectations
2023-09-14 20:45:54 +01:00
Tom Hvitved
c83a29c27f
Ruby: Fix a bad join
...
Before
```
Evaluated relational algebra for predicate Sinatra#e09174a3::Sinatra::ErbLocalsAccessSummary#fff@22c05bb6 with tuple counts:
212957 ~2195% {1} r1 = JOIN _Constant#54e8b051::ConstantValue::getStringlikeValue#0#dispred#ff_Expr#6fb2af19::Expr::getConstantV__#shared WITH Expr#6fb2af19::Pair::getKey#0#dispred#ff_1#join_rhs ON FIRST 1 OUTPUT Lhs.1
43862468 ~6045% {2} r2 = JOIN r1 WITH Call#841c84e8::MethodCall::getMethodName#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.0
43862468 ~6581% {2} r3 = JOIN r2 WITH AST#a6718388::AstNode::getLocation#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
43844886 ~40661% {2} r4 = JOIN r3 WITH locations_default ON FIRST 1 OUTPUT Rhs.1, Lhs.1
15004 ~8295% {3} r5 = JOIN r4 WITH project#Sinatra#e09174a3::Sinatra::ErbLocalsHashSyntheticGlobal#ffff_201#join_rhs ON FIRST 1 OUTPUT Rhs.2, Lhs.1, Rhs.1
15004 ~8890% {3} r6 = SCAN r5 OUTPUT ("sinatra_erb_locals_access()" ++ In.0 ++ "#" ++ In.1), In.2, In.1
return r6
```
After
```
Evaluated relational algebra for predicate Sinatra#e09174a3::Sinatra::ErbLocalsAccessSummary#fff@f6249cga with tuple counts:
10237 ~0% {3} r1 = JOIN locations_default_10#join_rhs WITH project#Sinatra#e09174a3::Sinatra::ErbLocalsHashSyntheticGlobal#ffff_201#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Rhs.2
4015 ~5% {3} r2 = JOIN r1 WITH AST#a6718388::AstNode::getLocation#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
825 ~96% {3} r3 = JOIN r2 WITH Call#841c84e8::MethodCall::getMethodName#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
940 ~0% {4} r4 = JOIN r3 WITH Constant#54e8b051::ConstantValue::getStringlikeValue#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.0
325402 ~0% {4} r5 = JOIN r4 WITH Expr#6fb2af19::Expr::getConstantValue#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
231819 ~133147% {3} r6 = JOIN r5 WITH Expr#6fb2af19::Pair::getKey#0#dispred#ff_1#join_rhs ON FIRST 1 OUTPUT Lhs.2, Lhs.3, Lhs.1
231819 ~138805% {3} r7 = SCAN r6 OUTPUT ("sinatra_erb_locals_access()" ++ In.0 ++ "#" ++ In.1), In.2, In.1
return r7
```
2023-09-14 21:34:17 +02:00
Harry Maclean
5706bc6205
Ruby: Model GraphQL InputObject arguments
2023-09-14 19:02:39 +01:00
Ian Lynagh
730480360e
Merge pull request #14221 from igfoo/igfoo/gradle_seq
...
Kotlin: Add more tests to the "gradle sequential" set
2023-09-14 18:39:11 +01:00
Robert Marsh
eddca7f3f6
Swift: autoformat for for-in changes
2023-09-14 16:48:19 +00:00
Chris Smowton
5f6a40b9e8
Note Kotlin test no longer has CFG dead-ends if ErrorExpr participates in the CFG
2023-09-14 17:42:00 +01:00
Chris Smowton
d9f7180b5c
Add missing diagnostic expectations
2023-09-14 17:42:00 +01:00
Chris Smowton
8f940c311a
Update expectations and add expected diagnostics
2023-09-14 17:42:00 +01:00
Chris Smowton
a1a7640427
Give ErrorExpr default control flow
...
This prevents a CFG dead-end because of one ErrorExpr
2023-09-14 17:42:00 +01:00
Chris Smowton
b1e128b5c1
Pretty-print a ClassInstanceExpr without a bound constructor nicely
2023-09-14 17:42:00 +01:00
Chris Smowton
9670f20bd7
Add test for method reference whose LHS has unknown type
...
This can happen when imports or source classes are missing.
2023-09-14 17:42:00 +01:00
Chris Smowton
6ea7b195db
Add test for a module declaration made in a file named other than module-info.java
...
This triggers a weird corner case in our extractor, which used to throw a null pointer exception.
2023-09-14 17:42:00 +01:00
Chris Smowton
c47ba000d6
Add test exercising the case of a missing type used as an interface
...
This induces the TypeEnter phase to create an ErrorType with a parameter, which in turn used to cause a stack overflow in comparing the TypeWrapper objects involved.
Note the output remains somewhat broken, exposing an <any> type, but at least the overflow is resolved.
2023-09-14 17:42:00 +01:00
Chris Smowton
4b5651bde9
Add test for Java extracting ErrorType
2023-09-14 17:42:00 +01:00
Chris Smowton
c0f8973749
Add test for extracting a Java AST with an error expression
...
Also note that ErrorExpr can occur outside upgrade/downgrade scripts
2023-09-14 17:42:00 +01:00
Robert Marsh
ab7cd5254a
Swift: update dataflow test for nil coalescing
2023-09-14 16:28:00 +00:00
Mathias Vorreiter Pedersen
8aeb9b9ae0
Merge pull request #14219 from MathiasVP/fix-phi-flow-2
...
C++: Fix `phi`->`phi` flow
2023-09-14 17:22:51 +01:00
Robert Marsh
9a5fa42dbe
Swift: CFG for nil coalescing operator
2023-09-14 16:16:30 +00:00
Mathias Vorreiter Pedersen
b18de9e641
C++: Add a named base case predicate for 'dereferencedByOperation' that can be used in queries.
2023-09-14 17:12:58 +01:00
amammad
5a3a8d781a
fix some flowstate bug which Had caused to FP
2023-09-15 02:09:40 +10:00
amammad
08f78a2df4
fix some flowstate bug which Had caused to FP
2023-09-15 01:56:46 +10:00
Ian Lynagh
e5ac7620e3
Kotlin: Add more tests to the "gradle sequential" set
2023-09-14 15:44:32 +01:00
AlexDenisov
ff7ff6dcfa
Merge pull request #14201 from MathiasVP/add-ast-consistency-query
...
C++: Add AST consistency query
2023-09-14 16:34:20 +02:00
Robert Marsh
56b646a74c
Merge branch 'main' into rdmarsh2/swift/for-in
2023-09-14 14:14:06 +00:00
Robert Marsh
55546fe61c
Merge pull request #14205 from rdmarsh2/rdmarsh2/swift/unify-array-collection-content
...
Swift: Unify `ArrayContent` and `CollectionContent`
2023-09-14 10:08:37 -04:00
Tom Hvitved
c0e600c515
Merge pull request #12672 from hvitved/ruby/implicit-array-reads-at-sinks
...
Ruby: Allow for implicit array reads at all sinks during taint tracking
2023-09-14 15:39:37 +02:00
amammad
0d3b944207
fix some mistakes:(
2023-09-14 23:39:28 +10:00
Tom Hvitved
61bfc4ec09
Merge pull request #14204 from hvitved/ruby/simplify-viable-callable
...
Ruby: Simplify `viableSourceCallableNonInit`
2023-09-14 15:36:47 +02:00
Robert Marsh
dd01da4938
Swift: AST and CFG tests for nil coalescing
2023-09-14 13:26:41 +00:00
Ian Lynagh
52d924924b
Kotlin: Extract LighterAST comments as well as PSI comments
2023-09-14 14:24:52 +01:00
Mathias Vorreiter Pedersen
6ce7a56b41
Merge pull request #14190 from github/alexdenisov/await-inconsistencies
...
Swift: fix CFG for identity expressions (await, dot_self, parent)
2023-09-14 14:15:31 +01:00
Harry Maclean
5411123b8a
Ruby: Fix GraphQL test
2023-09-14 14:14:26 +01:00
Robert Marsh
62953cb250
Swift: document "ArrayElement" case in MaD
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-09-14 09:11:35 -04:00
Robert Marsh
6ad78eba05
Swift: ArrayContent aliased to CollectionContent
2023-09-14 13:08:36 +00:00
Mathias Vorreiter Pedersen
b0566af938
C++: Accept test changes.
2023-09-14 14:04:12 +01:00
Mathias Vorreiter Pedersen
36b7b6cffe
C++: Fix phi-phi flow.
2023-09-14 14:02:03 +01:00
Mathias Vorreiter Pedersen
2a55034e55
C++: Add failing test.
2023-09-14 14:01:48 +01:00
Michael Nebel
e577fb68bd
C#: Add integration test for dotnet dotnet.
2023-09-14 14:59:49 +02:00
Michael Nebel
8768b9e3dd
C#: Fix tracer issue with dotnet dotnet.
2023-09-14 14:49:57 +02:00
Erik Krogh Kristensen
7e7852eff6
Merge pull request #13641 from erik-krogh/multi-char
...
JS/RB: write qhelp for `incomplete-multi-character-sanitization`
2023-09-14 14:48:30 +02:00
Harry Maclean
57ae1ee3e9
Ruby: Add test for GraphQL remote flow sources
2023-09-14 13:46:52 +01:00
Harry Maclean
1526fff085
Ruby: Add missing doc comments
2023-09-14 13:46:37 +01:00
Alex Eyers-Taylor
d79a2c7674
CPP:Make __is_trivial a builtin operation.
2023-09-14 12:50:36 +01:00
Harry Maclean
20f1a74202
Ruby: Restrict GraphQL remote flow sources
...
Previously we considered any splat parameter in a graphql resolver to be
a remote flow source. Now we limit that to reads of the parameter which
yield scalar types (e.g. String), as defined by the GraphQL schema.
This should reduce GraphQL false positives.
2023-09-14 12:14:56 +01:00
Harry Maclean
4168245fc0
Ruby: Fix doc comments
2023-09-14 10:02:27 +01:00
Harry Maclean
29a8a82e92
Ruby: add more docs for splat flow
2023-09-14 09:26:42 +01:00
Tom Hvitved
97ed5b8afb
Ruby: Improvments to splat flow
...
- Only step through a `SynthSplatParameterElementNode` when there is a splat parameter
at index > 0.
- Model read+stores via `SynthSplatArgumentElementNode` as a single read-store
step in type tracking.
2023-09-14 09:26:42 +01:00
Harry Maclean
bf51cbad88
Ruby: Update test fixture
2023-09-14 09:26:38 +01:00
Tom Hvitved
e11a4b63e9
Ruby: Remove SynthSplatArgParameterNode
2023-09-14 09:26:38 +01:00
Harry Maclean
5a6a52b767
Ruby: Use fewer SynthSplatArgumentElementNodes
...
In cases such as
def f(x, *y); end
f(*[1, 2])
we don't need any `SynthSplatArgumentElementNodes`. We get flow from the
splat argument to a `SynthSplatParameterNode` via `parameterMatch`, then
from element 0 of the synth splat to the positional param `x` via a
read step.
We add a read step from element 1 to `SynthSplatParameterElementNode(1)`.
From there we get flow to element 0 of `*y` via an existing store step.
2023-09-14 09:26:38 +01:00
Harry Maclean
4c1beea465
Ruby: Address review comments
2023-09-14 09:26:33 +01:00
Paolo Tranquilli
168aca0af4
Swift: add release notes
2023-09-14 10:25:16 +02:00
Paolo Tranquilli
fc51f4a80e
Swift: add update/downgrade scripts
2023-09-14 10:22:59 +02:00
Paolo Tranquilli
270c6407f0
Swift: accept test changes
2023-09-14 10:18:41 +02:00
Paolo Tranquilli
8d02bcc3cb
Swift: change non-generated TypeDecl.ql
2023-09-14 10:18:24 +02:00
Michael Nebel
b9acf1a4ee
Merge pull request #14111 from michaelnebel/csharp/reduceprojectrestore
...
C#: Avoid explicitly restoring projects in solution files.
2023-09-14 10:06:49 +02:00
Paolo Tranquilli
cf1667c325
Swift: update extractor after schema changes
2023-09-14 10:05:17 +02:00
Paolo Tranquilli
4d3aecfff6
Swift: rename base_types to syntactic_base_types in TypeDecl
2023-09-14 10:03:52 +02:00
Harry Maclean
3c8683428b
Ruby: Model more splat flow (alternative approach)
2023-09-14 08:55:59 +01:00
Harry Maclean
9ccd8cd248
Ruby: Update documentation
2023-09-14 08:54:49 +01:00
Harry Maclean
ef63ea8399
Ruby: Update fixture
2023-09-14 08:54:48 +01:00
Harry Maclean
7ebd51163e
Ruby: Handle more splat arg flow
...
Allow flow from a splat argument to a positional parameter in cases
where there are positional arguments left of the splat. For example:
def foo(x, y, z); end
foo(1, *[2, 3])
2023-09-14 08:54:48 +01:00
Tom Hvitved
e258324960
Ruby: Allow for implicit array reads at all sinks during taint tracking
2023-09-14 09:40:05 +02:00
Erik Krogh Kristensen
111227e763
Merge pull request #14211 from erik-krogh/usingOutOfBounds
...
JS: fix out of bounds string access in isUsingDecl
2023-09-13 22:23:15 +02:00
Robert Marsh
e0fae764f1
Swift: move IteratorProtocol model to its own file
2023-09-13 20:09:17 +00:00
Robert Marsh
20de4c625c
Swift: autoformat DataFlowPrivate
2023-09-13 18:57:27 +00:00
Robert Marsh
86bd2168ec
Swift: breaking change note for array content removal
2023-09-13 18:34:30 +00:00
Robert Marsh
0b66be5f07
Swift: restore ArrayElement as an alias for CollectionElement
2023-09-13 18:29:03 +00:00
Robert Marsh
43ca192ceb
Swift: remove ArrayContent in UnsafeJsEvalQuery
2023-09-13 18:26:06 +00:00
erik-krogh
fdd349c1a3
fix out of bounds string access in isUsingDecl
2023-09-13 20:11:21 +02:00
Geoffrey White
6aa8daeeb6
Swift: Fix inline expectations.
2023-09-13 19:06:54 +01:00
Geoffrey White
535a69cd8b
Merge branch 'main' into logfix
2023-09-13 19:01:52 +01:00
Geoffrey White
e109892388
Merge pull request #14189 from geoffw0/protocol2
...
Swift: Consistent additional taint steps between the cleartext-* queries
2023-09-13 18:44:20 +01:00
Geoffrey White
d01a3e26d6
Swift: Change note.
2023-09-13 18:20:49 +01:00
Geoffrey White
200d9a4dfb
Swift: Port regex mode flag character fix from Python.
2023-09-13 18:19:02 +01:00
Geoffrey White
df60f560a2
Swift: Add demonstrative test case.
2023-09-13 18:11:40 +01:00
Geoffrey White
af3d8c88bb
Java: Fix test comment.
2023-09-13 17:58:31 +01:00
Geoffrey White
1c81bd52e6
Java: Change note.
2023-09-13 17:51:26 +01:00
Geoffrey White
8c3e778be6
Java: Port regex mode flag character fix from Python.
2023-09-13 17:50:52 +01:00
Chuan-kai Lin
00c83f185a
Merge pull request #14182 from cklin/deprecate-assume-small-delta
...
Document assume_small_delta deprecation
2023-09-13 07:54:33 -07:00
Mathias Vorreiter Pedersen
18fa6f5d64
Merge pull request #14202 from alexet/translated-element-location
...
CPP: Add a location to TranslatedElement to help with debugging IR creation
2023-09-13 15:19:24 +01:00
Michael Nebel
84ec823ac0
C#: Add some explanatory comments about parallel restore.
2023-09-13 16:07:47 +02:00
Anders Schack-Mulligen
74787bfba8
Dataflow: One more minor perf tweak.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
b63d518114
Dataflow: Minor perf tweak.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
b456ba217a
Dataflow: Improve rev-to-fwd call edge pruning.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
f456bf8d57
Dataflow: Add change note.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
13e7e6b983
Dataflow: Improve fwd-taken call edge predicate and improve fwd-to-rev call edge pruning.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
47f68504a8
Dataflow: Postpone typeflow calledge pruning until stage 3.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
f5a4b792bd
C++/Go/Python/Ruby/Swift: Add dummy localMustFlowStep.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
1750d00fbe
C#: Add localMustFlowStep
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
e677c1ffe6
Java: Add qltest
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
c8094d34a7
Dataflow: Add type-based call-edge pruning.
2023-09-13 15:43:45 +02:00
Anders Schack-Mulligen
300425540a
Java: Minor improvement to TypeFlow for super accesses.
2023-09-13 15:43:45 +02:00
Anders Schack-Mulligen
a7b677ba40
Java: Bugfix for SuperAccess.isOwnInstanceAccess().
2023-09-13 15:43:45 +02:00
Anders Schack-Mulligen
110a4c81e3
Java: Minor perf fix.
2023-09-13 15:43:45 +02:00
Alex Ford
79c305c1a1
Merge pull request #14124 from alexrford/rb/dataflow-query-refactor
...
Ruby: Use the new dataflow API for checked in queries
2023-09-13 14:24:47 +01:00
Koen Vlaswinkel
0434cce4c3
Java: Fix formatting of AutomodelVsCode.qll file
2023-09-13 14:54:03 +02:00
Tom Hvitved
bb7ba7872f
Merge pull request #14203 from hvitved/ruby/semantic-merge-fix
...
Ruby: Fix semantic merge conflict
2023-09-13 14:53:18 +02:00
Koen Vlaswinkel
95296f1518
Java: Use don't care expression for kind and provenance
2023-09-13 14:45:47 +02:00
Tom Hvitved
f15cbb9316
Ruby: Simplify viableSourceCallableNonInit
2023-09-13 14:25:28 +02:00
Max Schaefer
e722e3288f
Merge pull request #13771 from github/max-schaefer/server-side-url-redirect-help
...
JavaScript: Improve query help for `js/server-side-unvalidated-url-redirection`.
2023-09-13 13:20:48 +01:00
yoff
62b41799d2
Merge pull request #14178 from yoff/python/broaden-sql-injection-frameworks
...
Python: import all frameworks in SQL-injection query
2023-09-13 14:14:09 +02:00
Mathias Vorreiter Pedersen
177fcacf38
Merge pull request #14134 from MathiasVP/add-surprising-lifetimes-to-experimental
...
C++: Copy the Coding Standards' use-after-lifetime-ended query to Experimental
2023-09-13 13:06:18 +01:00
Tom Hvitved
f3a78efe03
Ruby: Fix semantic merge conflict
2023-09-13 14:04:20 +02:00
yoff
7d931492d8
Update python/ql/lib/semmle/python/security/dataflow/SqlInjectionCustomizations.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-13 13:37:18 +02:00
Michael Nebel
0127b779b5
C#: Address review comments.
2023-09-13 13:31:58 +02:00
Alex Ford
b5ec99cb2f
Ruby: fix missing qldoc
2023-09-13 12:28:19 +01:00
Mathias Vorreiter Pedersen
a0018c92e1
Merge pull request #14193 from MathiasVP/fully-converted-expressions-for-flow-after-free
...
C++: Use fully converted expressions for `cpp/use-after-free` and `cpp/double-free`
2023-09-13 12:24:23 +01:00
Alex Eyers-Taylor
0c10fa0c87
CPP: Add a location to TranslatedElement to help with debugging IR creation
2023-09-13 12:21:30 +01:00
Ian Lynagh
bd1d6e1d1e
Merge pull request #14188 from igfoo/igfoo/kotlin-1.9.20
...
Kotlin: Support 1.9.20
2023-09-13 12:19:46 +01:00
Mathias Vorreiter Pedersen
0cd4e32ed8
C++: Add AST consistency query.
2023-09-13 12:15:40 +01:00
Koen Vlaswinkel
585fb9db7e
C#: Add VS Code model editor queries
2023-09-13 13:12:55 +02:00
Koen Vlaswinkel
7db082f3fd
Java: Add VS Code model editor queries
2023-09-13 13:04:26 +02:00
Erik Krogh Kristensen
cd5973764b
Merge pull request #14112 from erik-krogh/pyAllowedHosts
...
Py: add sanitizer guard for `url_has_allowed_host_and_scheme`
2023-09-13 12:59:38 +02:00
Mathias Vorreiter Pedersen
af51a0a9ca
C++: Respond to review comments.
2023-09-13 11:43:12 +01:00
Mathias Vorreiter Pedersen
81d20be1ee
Update cpp/ql/src/experimental/Security/CWE/CWE-416/UseAfterExpiredLifetime.qhelp
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-09-13 11:37:32 +01:00
Rasmus Wriedt Larsen
7292730391
Python: Add change-note
2023-09-13 11:55:48 +02:00
Rasmus Wriedt Larsen
f62c4108ef
Python: Move url_has_allowed_host_and_scheme to Django.qll
2023-09-13 11:55:44 +02:00
Tom Hvitved
7400b4741e
Merge pull request #14108 from hvitved/dataflow/more-consistency-checks
...
Data flow: Add `ArgumentNode` consistency checks
2023-09-13 11:30:51 +02:00
amammad
54a44777b7
v1
2023-09-13 19:14:15 +10:00
Tom Hvitved
bb85f87d7b
Merge pull request #11725 from hvitved/ruby/capture-field-flow
...
Ruby: Reimplement flow through captured variables using field flow
2023-09-13 10:52:36 +02:00
Geoffrey White
3bf0d66d6c
Merge pull request #13906 from geoffw0/commandinject2
...
Swift: Add tests and develop command injection query
2023-09-13 08:59:06 +01:00
Stephan Brandauer
7a7dc9b68f
Merge pull request #14184 from github/kaeluka/application-mode-new-candidates-fixes
...
Java: Automodel, new candidates fix
2023-09-13 09:27:10 +02:00
Tom Hvitved
88d2e2590f
Ruby: Rename LambdaSelfParameterNode to LambdaSelfReferenceNode
2023-09-13 08:52:22 +02:00
Kevin Stubbings
f9fe86a1ca
Added change-notes
2023-09-12 21:34:30 -07:00
Kevin Stubbings
7d213d5bb9
Add Integer/Boolean Sanitizer
2023-09-12 21:10:11 -07:00
Ian Lynagh
df9c601571
Kotlin: Pass memory limits to kotlinc in some tests
...
We can run out of memory with the defaults
2023-09-12 23:14:41 +01:00
Robert Marsh
d9e694be9d
Swift: update test expectation for collection content
2023-09-12 19:20:43 +00:00
Robert Marsh
4b970ff774
Swift: update models for array/collection content
2023-09-12 19:20:22 +00:00
Tom Hvitved
d3558f8579
Python: Update expected test output
2023-09-12 21:18:31 +02:00
Rasmus Wriedt Larsen
1de7460aba
Python: Don't warn on multipleArgumentCall
2023-09-12 21:16:14 +02:00
Robert Marsh
3b7295b0fd
Swift: unify ArrayContent and CollectionContent
2023-09-12 19:12:44 +00:00
Robert Marsh
7ca6b6f9a6
Swift: add dataflow test for async for
2023-09-12 19:05:03 +00:00
Robert Marsh
53ad559da5
Swift: fix for-try-await CFG
2023-09-12 19:04:30 +00:00
Mathias Vorreiter Pedersen
05080924de
C++: Don't use converted expressions in 'LeapYear.qll'.
2023-09-12 19:48:52 +01:00
Mathias Vorreiter Pedersen
b03054b1ed
C++: Make sure some instruction also gives back the 'ParenthesisExpr's.
2023-09-12 19:46:42 +01:00
Mathias Vorreiter Pedersen
71fe6f5d4b
C++: Use fully converted expressions in 'cpp/use-after-free' and 'cpp/double-free'.
2023-09-12 19:28:57 +01:00
Robert Marsh
ecf1d98ce5
Merge pull request #14165 from rdmarsh2/rdmarsh2/swift/keypath-write-flow
...
Swift: flow through writeable keypaths
2023-09-12 14:24:40 -04:00
Tom Hvitved
c9910f5464
C++: Update expected test output
2023-09-12 20:05:12 +02:00
Tom Hvitved
53302117a1
C#: Implement missingArgumentCallExclude and multipleArgumentCallExclude
2023-09-12 20:05:11 +02:00
Tom Hvitved
b470c36c82
Ruby: Implement multipleArgumentCallExclude
2023-09-12 20:05:11 +02:00
Tom Hvitved
c13a8e41ad
Data flow: Add more consistency checks
2023-09-12 20:05:05 +02:00
Ian Lynagh
4908188060
Kotlin: Add 1.9.20 support
2023-09-12 18:28:33 +01:00
Ian Lynagh
4d1ceff7df
Kotlin: Fix build
2023-09-12 18:28:33 +01:00
Ian Lynagh
2b9a425468
Kotlin: Support 1.9.20
2023-09-12 18:28:33 +01:00
Geoffrey White
0d7769f687
Merge pull request #13276 from geoffw0/sqlpathinject
...
Swift: Add path injection sinks for sqlite3 and SQLite.swift
2023-09-12 17:36:27 +01:00
Henning Makholm
596f7012ca
Merge pull request #14191 from github/hmakholm/pr/monotonic-unique
...
C++ tests: fix output of bug-stricken test
2023-09-12 18:21:35 +02:00
Geoffrey White
7e962dc764
Swift: Accept fixed test cases.
2023-09-12 17:18:29 +01:00
Max Schaefer
a9e81672f0
Make suggestion to replace example.com more explicit.
2023-09-12 16:54:05 +01:00
Robert Marsh
c2868fe05a
Swift: change note for keypath write dataflow
2023-09-12 15:53:50 +00:00
Robert Marsh
47ac54bb81
Swift: autoformat DataFlowPrivate
2023-09-12 15:52:53 +00:00
Robert Marsh
8f797c7189
Merge branch 'main' into rdmarsh2/swift/keypath-write-flow
2023-09-12 15:51:36 +00:00
Max Schaefer
7ddb7da65e
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-09-12 16:47:23 +01:00
Henning Makholm
bac175e881
C++ tests: fix output of bug-stricken test
...
The expected output was incorrect and the result of an evaluator bug.
This change should go together with the internal PR that fixes this bug.
2023-09-12 16:28:59 +02:00
Alex Denisov
743fd902a1
Swift: fix CFG for identity expressions (await, dot_self, parent)
2023-09-12 16:04:45 +02:00
Stephan Brandauer
928898e979
Java: automodel: add class and method doc to test code
2023-09-12 15:43:09 +02:00
Geoffrey White
d65f2b4fa9
Swift: Change note.
2023-09-12 14:36:37 +01:00
Mathias Vorreiter Pedersen
d6e143a858
Merge pull request #14151 from MathiasVP/deduplicate-dataflow-results-take-3
...
C++: Deduplicate dataflow query results
2023-09-12 14:07:40 +01:00
Stephan Brandauer
089b147d04
Java: Automodel format
2023-09-12 14:27:12 +02:00
Stephan Brandauer
bd10ac799a
Java: Automodel application mode: add test expectations
2023-09-12 14:20:28 +02:00
Stephan Brandauer
8121c7fefa
Java: Automodel application mode: add method doc and class doc as related locations
2023-09-12 14:08:55 +02:00
Tom Hvitved
49d57653dc
Merge pull request #14170 from hvitved/csharp/cil-arg-exclude
...
C#: Exclude CIL arguments from `ArgumentNode` when they are compiled from source
2023-09-12 13:44:29 +02:00
Ian Lynagh
2f57a62a7a
Merge pull request #14144 from igfoo/igfoo/nonir
...
Kotlin: Give some more informative errors messages
2023-09-12 12:07:09 +01:00
Ian Lynagh
d8a99e6b7d
Kotlin: Regenerate expected test output
...
It's now in the order generated by the new CLI. This means that
changes in test output are easier to understand.
2023-09-12 11:13:58 +01:00
Mathias Vorreiter Pedersen
d528c96563
Merge branch 'main' into deduplicate-dataflow-results-take-3
2023-09-12 10:28:57 +01:00
Mathias Vorreiter Pedersen
ff28f45058
C++: Accept test changes.
2023-09-12 10:28:46 +01:00
Mathias Vorreiter Pedersen
7d2c12e63d
C++: Handle the extent of 'new[]' in 'getConvertedResultExpressionImpl0' and add a few more comments.
2023-09-12 10:28:36 +01:00
Stephan Brandauer
0115ba0df3
Java: Automodel: drive-by, add extensibleType metadata to app mode +/- extraction
2023-09-12 09:29:54 +02:00
intrigus-lgtm
b6417ca212
Java: Fix alert message
...
The signing key that is being set, is _not_ what is being parsed.
A _JWT_ is being parsed, that will then be verified using the set key.
(Or in our case not, because we're looking for security problems :P)
2023-09-12 02:23:37 +02:00
Geoffrey White
ae0fcf791b
Swift: Expand the additional taint step from the cleartext storage database query to the other sensitive data queries.
2023-09-11 22:25:17 +01:00
Geoffrey White
aa5820c061
Swift: Add some test cases.
2023-09-11 19:33:37 +01:00
Chuan-kai Lin
43eee2b4b3
Document assume_small_delta deprecation
2023-09-11 10:37:15 -07:00
Chris Smowton
b291ee361a
Merge pull request #14179 from github/smowton/fix/go-baseline-quoting
...
Fix space handling in Golang configure-baseline scripts
2023-09-11 15:54:24 +01:00
Rasmus Lerchedahl Petersen
a063d7d510
Python: sinks -> decodings
...
Query operators that interpret JavaScript
are no longer considered sinks.
Instead they are considered decodings
and the output is the tainted dictionary.
The state changes to `DictInput` to reflect
that the user now controls a dangerous dictionary.
This fixes the spurious result and moves the error reporting
to a more logical place.
2023-09-11 16:33:20 +02:00
Geoffrey White
e038f60640
Swift: Convert some sinks to CSV.
2023-09-11 14:54:32 +01:00
Rasmus Lerchedahl Petersen
d9f63e1ed3
Python: Split modelling of query operators
...
`$where` and `$function` behave quite differently.
2023-09-11 15:54:00 +02:00
Geoffrey White
7d05446483
Swift: Formatting.
2023-09-11 14:11:11 +01:00
Rasmus Lerchedahl Petersen
154a36934d
Python: Add test for function
2023-09-11 14:49:03 +02:00
Geoffrey White
1cde183005
Merge branch 'main' into logfix
2023-09-11 13:14:58 +01:00
Geoffrey White
c18de7d9af
Merge pull request #14036 from geoffw0/quicktest
...
Swift: Additional dataflow test
2023-09-11 13:04:48 +01:00
Geoffrey White
3fd5de83cb
Merge branch 'main' into sqlpathinject
2023-09-11 12:42:49 +01:00
Michael Nebel
6bfaa90fe4
C#: Avoid explicitly restoring the projects in the restored solution files.
2023-09-11 13:30:28 +02:00
Geoffrey White
fc69be4df9
Merge branch 'main' into quicktest
2023-09-11 12:25:38 +01:00
Michael Nebel
aaaf6f8616
Merge pull request #14150 from michaelnebel/csharp/tracerwhitespace
...
C#: Explicitly quote arguments in the LUA tracer on windows.
2023-09-11 13:18:21 +02:00
Chris Smowton
d13f4210eb
Fix space handling in Golang configure-baseline scripts
2023-09-11 10:51:35 +01:00
Michael Nebel
d4a1c297aa
C#: Quote arguments containing whitespaces on windows in the tracer.
2023-09-11 11:18:27 +02:00
Michael Nebel
8475464fbe
C#: Cleanup hotfix version of quoting.
2023-09-11 11:18:27 +02:00
Rasmus Lerchedahl Petersen
93140cb061
Python: import all frameworks
...
Are there any frameworks we do _not_ want here?
2023-09-11 11:17:08 +02:00
Mathias Vorreiter Pedersen
becb469477
Merge branch 'main' into deduplicate-dataflow-results-take-3
2023-09-11 09:55:11 +01:00
Michael Nebel
1b90216c98
Merge pull request #14172 from michaelnebel/csharp/poormansquoting
...
C#: Poor mans quoting.
2023-09-11 08:57:44 +02:00
Mathias Vorreiter Pedersen
7ff4ebd912
Merge pull request #14102 from alexet/alexet/remove-unreachable-ir
...
CPP: Remove sucessors of non-returning IR calls transitively.
2023-09-09 14:48:26 +01:00
Robert Marsh
988a871999
Swift: add flow through for-in loops
2023-09-08 20:00:27 +00:00
Robert Marsh
a3e250aef5
Swift: extract iterator variable for for-in loops
2023-09-08 19:08:57 +00:00
Alex Eyers-Taylor
5892939488
CPP:Fix chnage note spelling
2023-09-08 17:47:04 +01:00
Alex Eyers-Taylor
5fe44b65b7
CPP: Avoid CP with edgekind in non-returning analysis
2023-09-08 16:55:06 +01:00
Robert Marsh
50d23f145b
merge main into for-in getnextcall branch
2023-09-08 15:51:27 +00:00
Robert Marsh
161e5a4ca2
Merge branch 'main' into rdmarsh2/swift/keypath-write-flow
2023-09-08 15:39:06 +00:00
Robert Marsh
1082b1d4d1
Swift: use PostUpdateNodeImpl for more postupdate nodes
2023-09-08 15:19:46 +00:00
Michael B. Gale
109bd9057e
Merge pull request #14161 from github/mbg/go/add-toolchain-directive-diagnostic
...
Go: Add diagnostic for 1.21 `toolchain` error
2023-09-08 14:55:47 +01:00
Stephan Brandauer
7705f0e7e6
Merge pull request #14162 from github/kaeluka/application-mode-source-candidates
...
Java: Automodel App Mode Extraction: Source Candidates
2023-09-08 15:43:03 +02:00
Michael Nebel
11987d3ebf
C#: Add integration test with quoted arguments.
2023-09-08 15:09:24 +02:00
Michael Nebel
9691100138
C#: Poor mans quoting of arguments on windows.
2023-09-08 15:09:24 +02:00
Tom Hvitved
ecbf2d8b13
C#: Exclude CIL arguments from ArgumentNode when they are compiled from source
2023-09-08 14:14:06 +02:00
Stephan Brandauer
bbedd72260
Java: Automodel App Mode: rename MethodCall to MethodReturnValue
2023-09-08 13:57:21 +02:00
Stephan Brandauer
704c7ee104
Java: Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2023-09-08 13:54:26 +02:00
Rasmus Lerchedahl Petersen
d91cd21204
Python: rename file
2023-09-08 13:37:54 +02:00
Alex Eyers-Taylor
e208a7aed6
CPP: Add change notes for the non-returning function improvements.
2023-09-08 11:26:27 +01:00
Tom Hvitved
01a74db368
Merge pull request #14168 from hvitved/csharp/recommended-extensions-remove
...
C#: Remove test explorer recommendations (superseded by C# dev kit)
2023-09-08 11:29:27 +02:00
Tom Hvitved
9b8948bc2e
C#: Remove test explorer recommendations (superseded by C# dev kit)
2023-09-08 10:47:52 +02:00
Tom Hvitved
f720528368
Merge pull request #14149 from hvitved/csharp/extract-gen-no-trap-stack
...
C#: Clear TRAP stack when calling `PopulateGenerics`
2023-09-08 10:37:07 +02:00
Erik Krogh Kristensen
94442c1799
Merge pull request #14166 from github/dependabot/cargo/ql/chrono-0.4.30
...
Bump chrono from 0.4.29 to 0.4.30 in /ql
2023-09-08 09:38:28 +02:00
Stephan Brandauer
4effc11fdb
Java: comments
2023-09-08 09:16:56 +02:00
dependabot[bot]
66a4f1bf74
Bump chrono from 0.4.29 to 0.4.30 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.29 to 0.4.30.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.29...v0.4.30 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-08 04:04:05 +00:00
Mathias Vorreiter Pedersen
49fee35b37
Merge pull request #13947 from rdmarsh2/rdmarsh2/swift/dictionary-flow-tuples
...
Swift: collection/tuple content for dictionary flow
2023-09-07 22:05:10 +01:00
Robert Marsh
0d79158bb1
Swift: remove TODOs after deciding not to do them
2023-09-07 20:15:12 +00:00
Robert Marsh
603f2cd3b2
Swift: fix test expectation properly
2023-09-07 19:35:02 +00:00
Mathias Vorreiter Pedersen
32ed82eecc
Merge pull request #14154 from MathiasVP/fix-off-by-one-in-asDefiningArgument
2023-09-07 18:48:57 +01:00
Robert Marsh
0fff540add
Swift: update a test expectation for dictionary flow
2023-09-07 16:14:23 +00:00
Robert Marsh
4f4491a876
Swift: autoformat
2023-09-07 16:14:05 +00:00
Robert Marsh
5fe942e642
Swift: flow through writeable keypaths
2023-09-07 15:56:44 +00:00
Rasmus Wriedt Larsen
2182bf17dc
Merge pull request #14160 from erik-krogh/py-clear-text-log-help
...
Py: add new qhelp for clear-text-logging
2023-09-07 16:35:19 +02:00
Alex Ford
5b013dd5d2
Merge branch 'main' into rb/dataflow-query-refactor
2023-09-07 14:57:38 +01:00
Alex Ford
947fa0de62
Ruby: fix qldoc warnings
2023-09-07 14:57:04 +01:00
Alex Ford
4a01de13ef
Ruby: avoid toString in query warning
2023-09-07 14:54:50 +01:00
Stephan Brandauer
c4f5213d68
Java: format
2023-09-07 15:50:03 +02:00
Stephan Brandauer
836a5822f3
Java: Automodel App Mode: remove bogus implementation
2023-09-07 15:49:58 +02:00
Stephan Brandauer
c173d9ae40
Java: automodel application mode: generate models for overridden method candidates
2023-09-07 15:49:58 +02:00
Stephan Brandauer
3121949123
Java: automodel application mode: test case for overridden method candidate
2023-09-07 15:49:58 +02:00
Stephan Brandauer
1e1b59ed52
Java: automodel: additionally consider sources for alreadyAiModeled property
2023-09-07 15:49:58 +02:00
Stephan Brandauer
6f7d78183f
Java: add endpoints for parameters of overridden methods in automodel application mode
2023-09-07 15:49:57 +02:00
Stephan Brandauer
dff8259e78
Java: support remote sources in automodel positive example extraction
2023-09-07 15:49:57 +02:00
Stephan Brandauer
fcabca4581
Java: Export MaD output in application mode extraction queries
2023-09-07 15:49:57 +02:00
Stephan Brandauer
8d133f86c7
Java: replace getArgIndex by getMaDInput
2023-09-07 15:49:57 +02:00
Stephan Brandauer
902a585b47
Java: remove isArgOf predicate
2023-09-07 15:49:57 +02:00
Stephan Brandauer
caaf2f83d7
Java: enable model exclusion characteristic also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
344aa9cb6b
Java: enable local call characteristic also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
afc5aedd0a
Java: enable exception characteristic also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
a526b79211
Java: enable unexploitable is/exists characteristics also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
f55d950be3
Java: update application mode extraction test expectations after adding source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
937e452ce0
Java: add extensibleType to sampling keys
2023-09-07 15:49:57 +02:00
Stephan Brandauer
eb1e29d284
Java: add new endpoint class for source candidates in application mode
2023-09-07 15:49:57 +02:00
Stephan Brandauer
7cfcbf6b71
Java: add extensible type to endpoint class in application mode
2023-09-07 15:49:56 +02:00
Alex Ford
0aee7f6ac6
Ruby: qlformat
2023-09-07 14:47:02 +01:00
Alex Ford
13300a2e2f
Ruby: un-private PathGraph imports
2023-09-07 14:24:46 +01:00
Alex Ford
a893911dba
Ruby: Use a newtype instead of DataFlow::FlowState for insecure-download
2023-09-07 14:22:18 +01:00
Alex Ford
75fdde543f
Ruby: Use a newtype instead of DataFlow::FlowState for hardcoded-data
2023-09-07 14:13:26 +01:00
Rasmus Lerchedahl Petersen
b07d085157
Python: make test PoC a proper package
2023-09-07 15:04:27 +02:00
Rasmus Lerchedahl Petersen
970e881697
Python: Follow naming convention
2023-09-07 15:03:51 +02:00
Alexander Eyers-Taylor
df2b313c5e
Merge pull request #14155 from alexet/reach-end-of-function-return
...
CPP: Make functions that reach the end return.
2023-09-07 13:58:43 +01:00
Alex Eyers-Taylor
43a72f2a8e
CPP:Add tests for the aliased IR.
2023-09-07 13:42:31 +01:00
Alex Eyers-Taylor
404145dd1b
CPP: Update tests
2023-09-07 13:42:31 +01:00
Alex Ford
0d7d5a35c9
Ruby: Use a newtype instead of DataFlow::FlowState for code-injection
2023-09-07 13:39:10 +01:00
Alex Eyers-Taylor
b44c4587a4
CPP: Remove sucessors of non-returning IR calls.
2023-09-07 12:58:20 +01:00
Alex Eyers-Taylor
e8dfecc4a4
CPP: Fix test result
2023-09-07 12:49:13 +01:00
Alex Eyers-Taylor
d603b7ac3c
CPP: Make functions that reach the end return.
...
This is UB in C++ but not C where it is only bad if the result is used.
2023-09-07 12:39:48 +01:00
Alex Ford
dfc3b33910
Ruby: Use a newtype instead of DataFlow::FlowState for unicode-bypass-validation
2023-09-07 12:09:47 +01:00
Michael B. Gale
3b708993c7
Go: Add diagnostic for 1.21 toolchain error
2023-09-07 11:51:20 +01:00
erik-krogh
bf3fe3cd66
add new qhelp for clear-text-logging
2023-09-07 12:39:13 +02:00
Michael B. Gale
38892bb51b
Merge pull request #13999 from github/mbg/csharp/standalone/dotnet-version
...
C# Standalone: Install .NET SDK specified in `global.json`
2023-09-07 11:30:53 +01:00
Rasmus Wriedt Larsen
ec0529d68c
Merge pull request #14145 from p-/p--asyncio-cmdi-exec
...
Python: Support for command injection sinks found in the `asyncio` module
2023-09-07 11:27:50 +02:00
Rasmus Wriedt Larsen
bfb4be26c2
Python: Autoformat
2023-09-07 10:31:39 +02:00
Rasmus Wriedt Larsen
54c456d95d
Python: Apply suggestions from code review
2023-09-07 10:28:46 +02:00
amammad
6ee5865789
add sources to detect CVE completely
2023-09-07 18:27:40 +10:00
amammad
0f540f4c25
add sources to detect CVE completely
2023-09-07 18:25:48 +10:00
Rasmus Lerchedahl Petersen
f253f9797f
Python: update test expectations
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
7edebbeaff
Python: Add QLDocs
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
c0b3245a53
Python: Enrich the NoSql concept
...
This allows us to make more precise modelling
The query tests now pass.
I do wonder, if there is a cleaner approach, similar to
`TaintedObject` in JavaScript. I want the option to
get this query in the hands of the custumors before
such an investigation, though.
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
114984bd8c
Python: Added tests based on security analysis
...
currently we do not:
- recognize the pattern
`{'author': {"$eq": author}}` as protected
- recognize arguements to `$where` (and friends)
as vulnerable
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
bf8bfd91cd
Python: Add inline query test
2023-09-07 10:22:30 +02:00
Rasmus Wriedt Larsen
d4c3dfffec
Merge pull request #14158 from RasmusWL/fix-ssrf-example
...
Python: Fix typo in SSRF example
2023-09-07 10:22:21 +02:00
Max Schaefer
46d7165885
Explain about redirects to example.com.
2023-09-07 09:12:07 +01:00
amammad
f6f99fb459
remove parameter as source
2023-09-07 17:47:55 +10:00
Rasmus Wriedt Larsen
c85ea9a0c0
Python: Fix typo in SSRF example
2023-09-07 09:45:02 +02:00
Rasmus Lerchedahl Petersen
19046ea417
Python: more renames
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
087961d179
Python: Refactor to allow customizations
...
Also use new DataFlow API
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
db0459739f
Python: rename file
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
55707d395e
Python: Make things compile in their new location
...
- Move NoSQL concepts to the non-experimental concepts file
- fix references
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
60dc1afbc0
Python: prepare to promote NoSqlInjection
...
Mostly move files, preserving authourship.
This will not compile.
2023-09-07 09:28:29 +02:00
Michael B. Gale
ccbc6f446a
Use git ls-files to find DLLs to index
2023-09-06 22:17:08 +01:00
Tom Hvitved
718e491800
C#: Clear TRAP stack when calling PopulateGenerics
2023-09-06 21:12:01 +02:00
Tom Hvitved
334502a3de
Merge pull request #14153 from github/revert-14082-csharp/bump-dependencies
...
Revert "C#: Bump all dependencies"
2023-09-06 21:10:56 +02:00
Mathias Vorreiter Pedersen
3f6346737c
Update 2023-09-06-as-defining-argument-off-by-one-fix.md
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2023-09-06 19:48:48 +01:00
Mathias Vorreiter Pedersen
87925abaa2
C++: Add change note.
2023-09-06 17:26:08 +01:00
Mathias Vorreiter Pedersen
14faa5d020
C++: Fix off-by-one in 'asDefiningArgument' so that the domain of the argument is '[1..]' like 'asIndirectArgument'.
2023-09-06 17:19:44 +01:00
amammad
bcfc28aae0
add sources to detect CVE completely
2023-09-07 02:02:32 +10:00
Peter Stöckli
7aa5d2dc8a
Python: move asyncio CMDi related tests to stdlib tests
2023-09-06 16:54:18 +02:00
Robert Marsh
5bdd9597d2
Merge branch 'main' into rdmarsh2/swift/dictionary-flow-tuples
2023-09-06 14:50:16 +00:00
Mathias Vorreiter Pedersen
12a717e3af
Merge pull request #14141 from github/alexdenisov/unresolved-ast-nodes
...
Swift: add queries for unresolved AST nodes
2023-09-06 15:40:11 +01:00
Tom Hvitved
6e0ff56788
Revert "C#: Bump all dependencies"
2023-09-06 16:23:38 +02:00
Peter Stöckli
ede7d8fb6a
Python: apply suggestions from code review for asyncio
2023-09-06 15:47:07 +02:00
Mathias Vorreiter Pedersen
2bed77de09
Merge branch 'main' into deduplicate-dataflow-results-take-3
2023-09-06 14:12:36 +01:00
Max Schaefer
a02f373e79
Use better sanitiser.
2023-09-06 14:06:16 +01:00
Mathias Vorreiter Pedersen
4cbe82353f
C++: Accept more test changes.
2023-09-06 13:58:28 +01:00
Mathias Vorreiter Pedersen
b22199982e
C++: Add change note.
2023-09-06 13:08:21 +01:00
Michael Nebel
a8e427ffe1
Merge pull request #14097 from michaelnebel/csharp/extractorerrormessages
...
C#: Update extractor_messages relation schema.
2023-09-06 14:01:36 +02:00
Cornelius Riemenschneider
76f1c7a4cd
Merge pull request #14137 from github/dependabot/github_actions/actions/checkout-4
...
Bump actions/checkout from 2 to 4
2023-09-06 13:13:30 +02:00
Cornelius Riemenschneider
79d210f7bd
Update .github/workflows/ruby-build.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2023-09-06 12:19:46 +02:00
Tom Hvitved
a06a9ffa29
Address review comments
2023-09-06 11:01:54 +02:00
Tom Hvitved
6de315d086
Add change note
2023-09-06 11:01:54 +02:00
Tom Hvitved
48e2dcfa35
Ruby: Reimplement flow through captured variables using field flow
2023-09-06 11:00:55 +02:00
Tom Hvitved
5d1c399371
Ruby: Add more data-flow tests for captured variables
2023-09-06 10:34:34 +02:00
Mathias Vorreiter Pedersen
3eb2da4c03
C++: No need to remove duplications manually.
2023-09-06 09:29:11 +01:00
Tom Hvitved
3a9c34c3c6
Merge pull request #14132 from hvitved/csharp/data-flow-property-write
...
C#: Fix logic for flow into property writes
2023-09-06 08:49:53 +02:00
Erik Krogh Kristensen
a11db7a80a
Merge pull request #14148 from github/dependabot/cargo/ql/chrono-0.4.29
...
Bump chrono from 0.4.28 to 0.4.29 in /ql
2023-09-06 07:25:13 +02:00
dependabot[bot]
7f73c59304
Bump chrono from 0.4.28 to 0.4.29 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.28 to 0.4.29.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.28...v0.4.29 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-06 03:58:08 +00:00
amammad
c76d0d364d
fix a mistake ioutil => io/ioutil
2023-09-06 03:38:06 +10:00
Mathias Vorreiter Pedersen
570b08e2e9
Merge pull request #14143 from alexet/global-from-unreachble
...
CPP: Handle globals flowing into "UnreacheachedInstruction"
2023-09-05 16:58:55 +01:00
Peter Stöckli
9027eac312
Python: add change notes for asyncio CMDi sinks
2023-09-05 16:14:56 +02:00
Peter Stöckli
8c4dccc81b
Python: initial support for CMDi via asyncio
2023-09-05 15:33:29 +02:00
Michael Nebel
b5d4987c0a
C#: Add upgrade and downgrade scripts.
2023-09-05 15:32:09 +02:00
Michael Nebel
880da69d16
C#: Update extractor_messages relation schema.
2023-09-05 15:19:32 +02:00
Tamás Vajk
97f09e106e
Merge pull request #14101 from tamasvajk/csharp/recursive-generics
...
C#: Exclude base type extraction of recursive generics
2023-09-05 14:24:51 +02:00
Ian Lynagh
5ea4c44701
Kotlin: Give some more informative errors messages
2023-09-05 12:33:49 +01:00
Alex Denisov
35e949945d
Swift: add queries for unresolved AST nodes
2023-09-05 13:29:11 +02:00
Alex Eyers-Taylor
3db384ddc3
CPP: Handle globals flowing into "UnreacheachedInstruction"
2023-09-05 11:50:32 +01:00
dependabot[bot]
03771ffad2
Bump actions/checkout from 2 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-05 12:17:54 +02:00
Tom Hvitved
cb8922034c
Merge pull request #14133 from hvitved/ruby/flow-test-path-graph-fixes
...
Ruby: Use proper `PathGraph` module in inline flow tests
2023-09-05 10:33:07 +02:00
Tamas Vajk
bf96e688ff
Fix review findings
2023-09-05 10:19:41 +02:00
Rasmus Wriedt Larsen
49f5d38956
Merge pull request #14068 from RasmusWL/dataflow-config-refactor
...
Python: Use new dataflow API
2023-09-04 21:04:10 +02:00
Tom Hvitved
a2912cd72b
Ruby: Use proper PathGraph module in inline flow tests
...
Gets rid of
```
PathNode is incompatible with PathNode (the type of the edge relation).
```
warnings.
2023-09-04 20:27:34 +02:00
Tom Hvitved
4a1163b38c
Merge pull request #14109 from hvitved/ruby/hide-desugared-assignments-in-dataflow
2023-09-04 19:59:33 +02:00
Mathias Vorreiter Pedersen
1232120d42
C++: Naively copy the 'surprising lifetimes' query from Coding Standards and add required metadata.
2023-09-04 16:21:28 +01:00
Michael B. Gale
5337785571
Remove TODO comment
2023-09-04 15:10:00 +01:00
Michael B. Gale
bd5f5314ea
C#: Pass .dotnet path to standalone extractor
2023-09-04 15:09:28 +01:00
Michael B. Gale
37535d1f52
C#: Make WithDotNet public
2023-09-04 15:08:57 +01:00
Michael B. Gale
3b010a2fb3
C# standalone: accept path to .dotnet folder
2023-09-04 15:08:53 +01:00
Michael B. Gale
4c2a7aab3d
Do not rename global.json in standalone mode
2023-09-04 15:04:44 +01:00
Michael B. Gale
bbe90be0db
Wrap StandaloneBuildRule in WithDotNet
2023-09-04 15:02:44 +01:00
Tom Hvitved
55aedbc46c
C#: Fix logic for flow into property writes
2023-09-04 15:42:50 +02:00
Kasper Svendsen
ecee427c72
Merge pull request #14117 from kaspersv/delete-unnecessary-test
...
Java: Delete java test query which fails to compile
2023-09-04 15:28:57 +02:00
Alex Ford
0325c87ccb
Merge pull request #13825 from boveus/add-cwe-208
...
Ruby: Add Unsafe HMAC Comparison Query.
2023-09-04 14:10:12 +01:00
Alex Ford
11e5565344
Merge branch 'main' into add-cwe-208
2023-09-04 12:45:49 +01:00
Alex Ford
98851736d6
Revert "Ruby: configsig rb/tainted-format-string"
...
This reverts commit f5860cb4818dc3c07eeb6731e75bf5df203dd48f.
2023-09-03 17:20:06 +01:00
Alex Ford
bf6837cca0
Revert "Ruby: configsig rb/http-to-file-access"
...
This reverts commit e77ba1589663905c952cdb643ab66885760b27bd.
2023-09-03 17:20:06 +01:00
Alex Ford
e399eac2b3
Ruby: changenote for using new dataflow api
2023-09-03 17:20:06 +01:00
Alex Ford
73ed5696f3
Ruby: configsig rb/xxe
2023-09-03 17:20:06 +01:00
Alex Ford
956207b7d9
Ruby: configsig rb/meta/tainted-nodes
2023-09-03 17:20:06 +01:00
Alex Ford
f24102e0e7
Ruby: configsig rb/weak-params
2023-09-03 17:20:06 +01:00
Alex Ford
6c06def5d7
Ruby: configsig rb/manually-checking-http-verb
2023-09-03 17:20:06 +01:00
Alex Ford
39af2d2870
Ruby: configsig rb/user-controlled-file-decompression
2023-09-03 17:20:06 +01:00
Alex Ford
cdc788b162
Ruby: configsig rb/hardcoded-credentials
2023-09-03 17:20:06 +01:00
Alex Ford
4d1684e37b
Ruby: configsig rb/overly-permissive-file
2023-09-03 17:20:06 +01:00
Alex Ford
b6d12f8b1c
Ruby: configsig rb/zip-slip
2023-09-03 17:20:05 +01:00
Alex Ford
ebf2a2e1f5
Ruby: configsig rb/unicode-bypass-validation
2023-09-03 17:20:05 +01:00
Alex Ford
7445fc43f9
Ruby: configsig rb/regexp-injection
2023-09-03 17:20:05 +01:00
Alex Ford
494b7b3fdf
Ruby: configsig rb/polynomial-redos
2023-09-03 17:20:05 +01:00
Alex Ford
04d3d04317
Ruby: configsig rb/regex/badly-anchored-regexp
2023-09-03 17:20:05 +01:00
Alex Ford
77f3a70376
Ruby: renames for rb/xpath-injection
2023-09-03 17:20:05 +01:00
Alex Ford
42cd58695d
Ruby: configsig rb/url-redirection
2023-09-03 17:20:05 +01:00
Alex Ford
f79796a644
Ruby: configsig rb/shell-command-constructed-from-input
2023-09-03 17:20:05 +01:00
Alex Ford
f03f670312
Ruby: configsig rb/html-constructed-from-input
2023-09-03 17:20:05 +01:00
Alex Ford
8ad6c72ba2
Ruby: configsig rb/unsafe-deserialization
2023-09-03 17:20:05 +01:00
Alex Ford
461bc0d359
Ruby: configsig rb/unsafe-code-construction
2023-09-03 17:20:05 +01:00
Alex Ford
3e23a6e021
Ruby: configsig rb/server-side-template-injection
2023-09-03 17:20:05 +01:00
Alex Ford
0a73ebdbee
Ruby: configsig rb/tainted-format-string
2023-09-03 17:20:05 +01:00
Alex Ford
f5e433940f
Ruby: renames for rb/stored-xss
2023-09-03 17:20:05 +01:00
Alex Ford
030aae5693
Ruby: configsig rb/stack-trace-exposure
2023-09-03 17:20:05 +01:00
Alex Ford
bf1cb33be3
Ruby: configsig rb/sql-injection
2023-09-03 17:20:05 +01:00
Alex Ford
ba8ff0710d
Ruby: configsig rb/request-forgery
2023-09-03 17:20:05 +01:00
Alex Ford
df9173502e
Ruby: configsig rb/sensitive-get-query
2023-09-03 17:20:05 +01:00
Alex Ford
593d9a48d4
Ruby: configsig rb/reflected-xss
2023-09-03 17:20:05 +01:00
Alex Ford
ad2bbfb265
Ruby: configsig rb/path-injection
2023-09-03 17:20:05 +01:00
Alex Ford
867e47bcdd
Ruby: renames for rb/log-injection
2023-09-03 17:20:04 +01:00
Alex Ford
eb34bbbfd2
Ruby: renames for rb/ldap-injection
2023-09-03 17:20:04 +01:00
Alex Ford
d46eceb5f4
Ruby: configsig rb/kernel-open
2023-09-03 17:20:04 +01:00
Alex Ford
a8ad0d8ff5
Ruby: renames for rb/insecure-download
2023-09-03 17:20:04 +01:00
Alex Ford
c973fc1274
Ruby: configsig rb/http-to-file-access
2023-09-03 17:20:04 +01:00
Alex Ford
2536f1a0cd
Ruby: configsig rb/user-controlled-bypass
2023-09-03 17:20:04 +01:00
Alex Ford
377570f361
Ruby: configsig rb/command-line-injection
2023-09-03 17:20:04 +01:00
Alex Ford
b1a49ddb0d
Ruby: configsig rb/code-injection
2023-09-03 17:20:04 +01:00
Alex Ford
6fa267a820
Ruby: configsig rb/clear-text-storage-sensitive-data
2023-09-03 17:20:04 +01:00
Alex Ford
2a2f21d3a9
Ruby: configsig rb/clear-text-logging-sensitive-data
2023-09-03 17:20:04 +01:00
amammad
f3ea72c234
proper tests with depstubber, remove Duplicates :(
2023-09-03 04:51:05 +10:00
amammad
b5a257ca7c
add proper test cases
2023-09-03 04:09:56 +10:00
amammad
8f11543e9d
fix go.mod
2023-09-02 22:47:35 +10:00
amammad
9b8f43bf63
remove tmp test
2023-09-02 22:41:39 +10:00
amammad
6af82526dc
add tests
2023-09-02 22:40:18 +10:00
amammad
a8a9edcacd
V1
2023-09-02 22:27:08 +10:00
Mathias Vorreiter Pedersen
20f501d1c7
C++: Change queries to use 'asExpr' instead of 'asConvertedExpr'.
2023-09-01 15:01:32 +01:00
Mathias Vorreiter Pedersen
cca6052026
C++: Use 'operandNode' to generate the string for indirect operands.
2023-09-01 14:04:54 +01:00
Mathias Vorreiter Pedersen
f1c4fa2345
C++: When we generate a string for the node we avoid multiple results by only using the 0'th result from the 'asExpr' predicate. However, when we want to convert between nodes and expressions we don't care about which one we get.
2023-09-01 14:04:52 +01:00
Mathias Vorreiter Pedersen
d2bb73ba1f
C++: Use the index to to get the 'most converted' and 'least converted' instruction in a bunch of places.
2023-09-01 13:47:06 +01:00
Mathias Vorreiter Pedersen
4dfaf9225c
C++: Index 'getConvertedResultExpression' by an integer.
2023-09-01 13:32:29 +01:00
Mathias Vorreiter Pedersen
16d62186c0
C++: Use this new predicate everywhere we need to convert an instruction to an expression.
2023-09-01 13:32:25 +01:00
Mathias Vorreiter Pedersen
60819ad7f2
Add a single predicate that should be used to convert an instruction to an expression.
2023-09-01 13:06:25 +01:00
Kasper Svendsen
4bc6ca3d84
Java: Delete java test query which fails to compile
2023-09-01 11:21:06 +02:00
Alex Ford
ce35d6921f
Ruby: configsig rb/hardcoded-data-interpreted-as-code
2023-08-31 16:20:18 +01:00
Geoffrey White
0cb00c9091
Swift: Change note.
2023-08-31 15:50:54 +01:00
Geoffrey White
93c39c5fdd
Swift: Add data flow through OpenExistentialExpr.
2023-08-31 15:50:32 +01:00
Geoffrey White
b8d29e8fc1
Swift: Add a more realistic test case as well.
2023-08-31 15:46:47 +01:00
Geoffrey White
aeeafd75bf
Swift: Add a test for flow through OpenExistentialExpr.
2023-08-31 15:27:18 +01:00
Tamas Vajk
c1d8091891
C#: Exclude base type extraction of recursive generics
2023-08-31 14:15:38 +02:00
Tom Hvitved
89e9d25f02
Ruby: Hide desugared assignments from data flow path graph
2023-08-31 14:04:57 +02:00
erik-krogh
8dad4950a9
add sanitizer guard for url_has_allowed_host_and_scheme
2023-08-31 13:48:42 +02:00
erik-krogh
d4bc6e434a
add test with false positive
2023-08-31 13:40:47 +02:00
Tamas Vajk
3476437bfe
C#: Add test case with recursive generics
2023-08-31 13:21:46 +02:00
Brandon Stewart
56f0387613
Merge branch 'main' into add-cwe-208
2023-08-29 13:09:59 -04:00
amammad
40ff16bdaf
Merge branch 'main' into amammad-go-JWT
2023-08-29 20:02:57 +10:00
Rasmus Wriedt Larsen
ce6335866b
Python: Move ModificationOfParameterWithDefault to new dataflow API
2023-08-28 16:19:47 +02:00
Rasmus Wriedt Larsen
e8e8d975e3
Python: Remove all usage of DataFlow2+TaintTracking2
...
(and any higher number as well)
2023-08-28 15:34:19 +02:00
Rasmus Wriedt Larsen
c665c21d83
Python: More style-guide renaming
...
Split it into multiple commits to make it easier to review.
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
996364d6ee
Python: Fix naming style guide violations
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
efec4e7ebf
Python: Add missing qldocs
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
98538d237e
Python: Autoformat
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
5ba8e102eb
Python: Adopt tests to new DataflowQueryTest
...
Since we want to know the _sinks_ and not just the flow, we need to
expose the config as well :|
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
6961ca5234
Python: Rename to EmailXss
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
ed0e441567
Python: Accept missing DataflowQueryTest implementation for now
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
6d4491e0a9
Python: Modernize WebAppConstantSecretKey
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
852b01c65d
Python: Move SmtpMessageConfig to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
d5e2a30e5b
Python: Modernize py/azure-storage/unsafe-client-side-encryption-in-use a bit
...
To use consistent naming
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
bfcc194b85
Python: Move experimental paramiko to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
acd0f2a8fb
Python: Move experimental LDAPInsecureAuth to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
c6911c2ae0
Python: Move experimental UnicodeBypassValidation to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
2c06394bf3
Python: Move experimental CookieInjection to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
2c412707ab
Python: Move experimental CsvInjection to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
ace1e23c21
Python: Move experimental ClientSuppliedIpUsedInSecurityCheck to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
d948e103fa
Python: Move experimental HeaderInjection to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
53e57dad5c
Python: Move experimental InsecureRandomness to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
3bf2705668
Python: Move experimental TimingAttackAgainstHeaderValue to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
c88a0ccb7c
Python: Move experimental TimingAttackAgainstHash to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
a779547515
Python: Move experimental PossibleTimingAttackAgainstHash to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
8abd3430a2
Python: Move experimental TimingAttackAgainstSensitiveInfo to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
1a4e8d9464
Python: Move experimental PossibleTimingAttackAgainstSensitiveInfo to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
5fd3594f5f
Python: Move TimingAttack.qll to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
5d8329d9c8
Python: Move experimental ZipSlip to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
67cc3a3935
Python: Move experimental ReflectedXSS to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
a0d26741d0
Python: Move experimental TarSlipImprov to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
3cdd875e9f
Python: Move experimental UnsafeUnpack to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
3edb9d1011
Python: Move experimental TokenBuiltFromUUID to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
acde1920e7
Python: Move UntrustedDataToExternalAPI to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
657b1997cc
Python: Move FullServerSideRequestForgery and PartialServerSideRequestForgery to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
dbfe517555
Python: Move HardcodedCredentials to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
46322b717a
Python: Move XmlBomb to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
add1077532
Python: Move RegexInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
c6caf83dfe
Python: Move PolynomialReDoS to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
4c336990e5
Python: Move XpathInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
60e45335dd
Python: Move Xxe to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
4c76ca6127
Python: Move UrlRedirect to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
6f08e73dbc
Python: Move UnsafeDeserialization to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
dd074173d2
Python: Move WeakSensitiveDataHashing to new dataflow API
...
I adopted helper predicates to do the "heavy" lifting of .asPathNode1(), maybe I like this approach better... let me know what you think 😊
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
9d6b96dfd2
Python: Move CleartextStorage to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
70095446b6
Python: Move CleartextLogging to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
cca78f31ff
Python: Move PamAuthorization to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
dcd96083e8
Python: Move StackTraceExposure to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
f75e65c67d
Python: Move LogInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
88cf9c99b0
Python: Move CodeInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
05573904a5
Python: Move LdapInjection to new dataflow API
...
We could have switched to a stateful config, but I tried to keep changes
as straight forward as possible.
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
c360346e9e
Python: Move ReflectedXss to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
b30142c1d7
Python: Move CommandInjection to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
700841e9b0
Python: Move UnsafeShellCommandConstruction to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
d4e4e2d426
Python: Move TarSlip to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
e97032909a
Python: Move PathInjection to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
245c24077d
Python: Move SqlInjection to new dataflow API
2023-08-28 15:27:49 +02:00
amammad
68392e7ae7
V1
2023-08-28 22:23:51 +10:00
amammad
25c60c455e
v1
2023-08-27 23:53:45 +10:00
Maiky
17565cde75
Add JWT Security Queries
2023-08-25 21:28:53 +02:00
data-douser
5d986d7b60
Update codeql-library-for-go.rst
...
Correct a typo in the golang docs.
2023-08-25 07:10:25 -06:00
Tony Torralba
25ac87279e
Add change note
2023-08-25 11:17:54 +02:00
Tony Torralba
2448bc8ce2
Java: Add new Apache CXF models
2023-08-25 11:17:51 +02:00
Geoffrey White
d594de8190
Swift: Test dataflow on fields a bit more.
2023-08-23 10:49:03 +01:00
Alex Denisov
b657301d39
Swift: update test expectations
2023-08-22 18:03:19 +02:00
Alex Denisov
e9fdbfabea
Swift: extract nextCall from ForEachStmt
2023-08-22 17:36:40 +02:00
Max Schaefer
87364137df
Use more sensible validator in example.
2023-08-21 15:14:01 +01:00
Robert Marsh
d3cc366dc5
Swift: add QLDoc for DictionarySubscriptNode
2023-08-16 17:57:30 +00:00
Robert Marsh
3ee3eabd95
Swift: add EnumContent to clearsContent
2023-08-16 17:52:26 +00:00
Geoffrey White
4b66bada3d
Swift: Model array initializers.
2023-08-16 12:13:46 +01:00
Geoffrey White
9a4410d4b7
Swift: Additional test cases for array conversions.
2023-08-16 11:53:05 +01:00
Geoffrey White
c123c3a8d8
Swift: Codegen.
2023-08-16 11:09:39 +01:00
Geoffrey White
c9e26678d0
Swift: Change notes.
2023-08-16 10:58:04 +01:00
Geoffrey White
da6c2b6c31
Swift: Add more swift/cleartext-logging sinks.
2023-08-16 10:41:02 +01:00
Geoffrey White
6a54a8bc62
Swift: QLDoc VariadicSequenceType.
2023-08-16 08:43:51 +01:00
Geoffrey White
8f2e2a6155
Swift: Fix array content sinks for swift/cleartext-logging.
2023-08-16 08:43:50 +01:00
Geoffrey White
269f0c6cb1
Swift: Flow through varargs.
2023-08-16 08:43:28 +01:00
Geoffrey White
3fe8655b6e
Swift: Test data flow through varargs.
2023-08-16 08:34:32 +01:00
Geoffrey White
b4595d8b92
Swift: Model getVaList, correct NSLogv sink for swift/cleartext-logging.
2023-08-15 22:05:58 +01:00
Robert Marsh
79368c187c
Swift: fixes around DictionaryContent
2023-08-15 19:34:27 +00:00
Robert Marsh
a9f5471e76
Swift: add tests for broken dictionary flow case
2023-08-15 17:58:21 +00:00
Geoffrey White
657642a122
Java: Expose parts of the vquery message in the test.
2023-08-14 14:12:07 +01:00
Robert Marsh
3f0a249aea
Swift: Autoformat Dictionary.qll
2023-08-11 18:42:37 +00:00
Robert Marsh
f047161741
Swift: Change note for dictionary flow
2023-08-11 17:33:45 +00:00
Robert Marsh
653a229482
Swift: QLDoc for Dicitonary.qll
2023-08-11 17:32:29 +00:00
Robert Marsh
f5fac66627
Swift: autoformat
2023-08-11 17:31:39 +00:00
Brandon Stewart
b0944cf9a6
Merge branch 'main' into add-cwe-208
2023-08-11 09:37:16 -04:00
Robert Marsh
d3c68c773a
Swift: Add Dictionary models
2023-08-10 20:53:16 +00:00
Robert Marsh
70c2ef599a
Swift: collection/tuple content for dictionary flow
2023-08-10 20:52:47 +00:00
Brandon Stewart
68d9c8491e
Merge branch 'main' into add-cwe-208
2023-08-10 16:14:04 -04:00
Geoffrey White
0a2e4def8e
Swift: Change note.
2023-08-10 19:53:24 +01:00
Geoffrey White
4f5d7e1b6f
Swift: Accept test changes.
2023-08-10 19:49:27 +01:00
Geoffrey White
936b1ced4d
Swift: Add one last test case (and address a .expected change elsewhere).
2023-08-10 19:39:39 +01:00
Brandon Stewart
01577dac32
format document
2023-08-10 13:59:47 +00:00
Brandon Stewart
b899b648e5
Update ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-10 09:21:16 -04:00
Brandon Stewart
7882cf0bf0
Update ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-10 09:21:02 -04:00
Geoffrey White
376479325d
Swift: Model LosslessStringConvertible.
2023-08-10 09:27:05 +01:00
Geoffrey White
effe3762b8
Swift: More robust OptionalSomePattern flow.
2023-08-10 08:49:46 +01:00
Geoffrey White
aa2e79b6da
Swift: Model numeric conversions.
2023-08-10 00:19:50 +01:00
Geoffrey White
e86ccf8498
Swift: Test flow through various conversions.
2023-08-09 23:05:45 +01:00
Brandon Stewart
74567041a7
remove pathgraph
2023-08-09 19:51:07 +00:00
Brandon Stewart
cca4c35cf8
add pathgraph
2023-08-09 19:23:21 +00:00
Brandon Stewart
7f07422a5d
Merge branch 'main' into add-cwe-208
2023-08-09 14:52:51 -04:00
Brandon Stewart
07d5beca34
run format document
2023-08-09 18:51:55 +00:00
Brandon Stewart
26401fec70
address PR comments
2023-08-09 18:44:42 +00:00
Brandon Stewart
93dd9d0aa4
Update ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-08 12:54:54 -04:00
Geoffrey White
b2d3d465f0
Swift: Add more missing details to the URL model (along with a change from the SetContent PR, this fixes the test failures we were getting).
2023-08-07 20:15:50 +01:00
Geoffrey White
a73354d0b3
Swift: Accept test failures.
2023-08-07 20:14:07 +01:00
Geoffrey White
da34da7497
Merge branch 'main' into commandinject2
2023-08-07 19:37:05 +01:00
Geoffrey White
4c8accd5ba
Swift: Add a few more test cases.
2023-08-07 14:06:38 +01:00
Erik Krogh Kristensen
6631e838cf
re-appearing -> reappearing
...
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com >
2023-08-07 09:57:52 +02:00
amammad
f79bd2a071
added remote flow sources related to multipart upload, added flag package command line source
2023-08-06 06:49:35 +10:00
Geoffrey White
416b731870
Swift: Model NSUserScriptTask sinks.
2023-08-04 17:01:06 +01:00
Geoffrey White
71771890a5
Swift: Add a test with NSUserScriptTask.
2023-08-04 17:01:05 +01:00
Geoffrey White
348c45dff3
Swift: Use enum content in URL and NSURL models.
2023-08-04 17:01:05 +01:00
Geoffrey White
1c7d63a18f
Swift: Model sinks explicitly with models-as-data.
2023-08-04 17:01:05 +01:00
Geoffrey White
7b9b96d657
Swift: Unify the two sink models into one (needs further polish).
2023-08-04 17:01:04 +01:00
Geoffrey White
8c2140b28d
Swift: Add tests.
2023-08-04 17:01:04 +01:00
Geoffrey White
2664c306d3
Swift: Qhelp / examples.
2023-08-04 17:01:04 +01:00
Geoffrey White
048daa9a57
Swift: QLDoc comments and metadata.
2023-08-04 17:01:03 +01:00
Asger F
213cabccc0
JS: Test with file more extensions
2023-08-04 14:24:51 +02:00
Asger F
ea2ddf8905
JS: Do not parse the initial ! or = as part of the template expression
2023-08-04 14:24:38 +02:00
Kevin Stubbings
a36a555b7a
Quick change
2023-08-04 00:59:28 -07:00
Kevin Stubbings
9f4389cbb5
Search for html.dot extension instead of dot
2023-08-04 00:55:51 -07:00
Geoffrey White
06c19fd8cf
Swift: Add CommonCrypto test cases for the broken crypto query.
2023-08-02 18:36:05 +01:00
amammad
7ce825c5ea
convert to module based dataflow
2023-07-31 22:43:45 +10:00
amammad
ab7e797fff
it seems that I must use both isSink and isSource with flow states!
2023-07-31 20:00:59 +10:00
amammad
26f1091d5f
fix a mistake :(
2023-07-31 19:48:21 +10:00
amammad
56d0254d2b
fix ReadAll argumrnt number
2023-07-31 19:37:28 +10:00
amammad
4ee54738fa
fix a mistake :(
2023-07-31 19:36:21 +10:00
amammad
260c111932
put comment about detecting https://github.com/advisories/GHSA-jpxj-2jvg-6jv9
2023-07-31 19:32:22 +10:00
amammad
1b598c8683
v1.2 make better sinks
2023-07-31 19:26:18 +10:00
amammad
f1918fb4e0
v1.1
2023-07-31 05:11:09 +10:00
Maiky
6274dfafdc
typo
...
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com >
2023-07-27 23:43:48 +02:00
Maiky
49aa3eb92b
Update change note
...
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com >
2023-07-27 23:43:39 +02:00
Brandon Stewart
f241498cab
correct additional pascalcase issue
2023-07-26 17:55:56 +00:00
Brandon Stewart
1a83554b0c
correct typo
2023-07-26 17:54:42 +00:00
Brandon Stewart
346a2f269e
Update UnsafeHmacComparison.ql
2023-07-26 13:48:42 -04:00
Brandon Stewart
42adbe0cd4
address linter
2023-07-26 17:43:34 +00:00
Brandon Stewart
adddc58b61
address linter
2023-07-26 17:38:06 +00:00
Brandon Stewart
494e7d9a3f
add unsafe HMAC comparison query and qlhelp file
2023-07-26 17:28:22 +00:00
Geoffrey White
45a9d5bc7d
Java: QLDoc.
2023-07-20 11:53:52 +01:00
Geoffrey White
80cb386ffd
Java: Change note.
2023-07-20 11:52:04 +01:00
Geoffrey White
369f88beda
Java: Fix for multiple parse mode flags.
2023-07-20 11:49:54 +01:00
Geoffrey White
32c10885d4
Java: Add test case.
2023-07-20 11:43:11 +01:00
Maiky
6d6a243776
Update Change Note
2023-07-20 12:33:26 +02:00
Maiky
1a1fee3088
Doc change
2023-07-20 03:28:13 +02:00
Maiky
a1782182dd
Python: Add unsafe deserialization sinks (CWE-502)
2023-07-20 03:26:22 +02:00
Max Schaefer
7823ff968c
JavaScript: Improve query help for js/server-side-unvalidated-url-redirection.
2023-07-19 13:23:25 +01:00
Marcono1234
09fa2a7d50
Move imports to usage sections
2023-07-15 16:59:46 +02:00
Erik Krogh Kristensen
4f1c12e9dc
apply suggestion from review
...
Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com >
2023-07-13 14:49:25 +02:00
erik-krogh
1fe66232c6
suggestions based on review: add a popular library example for HTML-sanitization, and use the old text about ../ replacements
2023-07-13 14:28:11 +02:00
Erik Krogh Kristensen
9db970f055
apply suggestion from review
...
Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com >
2023-07-13 14:17:33 +02:00
Geoffrey White
02ddcab773
Swift: Cleanup / corrections.
2023-07-12 18:26:59 +01:00
Geoffrey White
5c6b8bd36e
Swift: Introduce EnumElmentDecl.hasQualifiedName and use it to clean up the code.
2023-07-12 17:18:04 +01:00
Geoffrey White
5f8f1b64c6
Swift: Model Connection.Location.uri sink.
2023-07-11 18:10:43 +01:00
Geoffrey White
ebb379f08c
Swift: Fix sqlite3_temp_directory sink.
2023-07-11 16:50:42 +01:00
Marcono1234
94e9848d61
Mention needed imports at top of "Analyzing data flow in Java"
...
Currently the guide just starts using the classes from these libraries
without having mentioned that you have to import the libraries first.
2023-07-08 18:56:37 +02:00
Maiky
08c54767f2
Correct Ldap Unauth Bind Sink
2023-07-05 17:56:49 +02:00
Erik Krogh Kristensen
8676516cb9
recursively -> repeatedly
...
Co-authored-by: Asger F <asgerf@github.com >
2023-07-03 13:17:13 +02:00
erik-krogh
3e2b8124c9
apply suggestions from review
2023-07-03 10:03:45 +02:00
erik-krogh
bea4162736
delete multi-char note from the incomplete-sanitization qhelp
2023-07-03 09:10:54 +02:00
erik-krogh
a60478ba8a
write qhelp for js/incomplete-multi-character-sanitization
2023-07-03 09:07:13 +02:00
jorgectf
f1f3d8e18a
Add dot.jssupport
...
Co-authored-by: Kevin Stubbings <Kwstubbs@users.noreply.github.com >
2023-06-29 19:17:37 +02:00
amammad
7aa002fa2a
fix an accident :)
2023-06-29 22:20:46 +10:00
amammad
8fccd65d34
fix a mistake :(
2023-06-26 16:51:14 +10:00
amammad
b506b7d298
better documents, remove separate PyZipFile
2023-06-26 16:50:33 +10:00
amammad
a38405e490
fix formatting error/warnings
2023-06-26 16:43:18 +10:00
amammad
fbfc959f82
V1 Bombs
2023-06-25 01:21:09 +10:00
amammad
748e96d852
V1 Bombs
2023-06-22 19:28:27 +10:00
Geoffrey White
0973fb33b9
Swift: Model UnsafeMutablePointer.init(mutating:).
2023-06-19 14:08:03 +01:00
Maiky
d654e98650
Add empty string as source
2023-06-18 22:21:12 +02:00
Taus
e5b17af9b5
Java: Fix bad tool output
2023-06-14 12:16:44 +02:00
Taus
b860b21ced
Update MaD Declarations after Triage
2023-06-13 16:50:58 +02:00
Maiky
1a9bfb38aa
Correct barrier
2023-06-05 01:25:17 +02:00
Maiky
bf9d0b93d7
Add Improper LDAP Auth Query (CWE-287)
2023-06-03 23:20:11 +02:00
Geoffrey White
32c113bc38
Swift: Fix following merge with main.
2023-05-26 14:41:48 +01:00
Geoffrey White
68354c09bf
Merge branch 'main' into sqlpathinject
2023-05-26 14:33:05 +01:00
Geoffrey White
57d6505ee3
Swift: Move change note.
2023-05-26 11:10:29 +01:00
Geoffrey White
d8cc8bd520
Swift: Fix indentation.
2023-05-24 18:43:48 +01:00
Geoffrey White
6d2800c117
Swift: Add change note.
2023-05-24 18:32:04 +01:00
Geoffrey White
2c5202018d
Swift: Add sinks.
2023-05-23 18:11:33 +01:00
Geoffrey White
8573b30239
Swift: Add test cases.
2023-05-23 17:29:51 +01:00
Sam Browning
1a51c015b4
Add requirements.txt
2023-04-27 15:19:45 -04:00