Cornelius Riemenschneider
813c756786
Move picosha2 to non-angular brackets, the compiler is complaining.
2024-01-08 11:22:54 +01:00
Cornelius Riemenschneider
2c1cbaa1ca
Upgrade to bazel 7.
2024-01-08 11:22:54 +01: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
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
Alvaro Muñoz
9146407f23
Add [] to the list of methods returning an `ActionController::Parameters"
2024-01-05 15:14:11 +01: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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Tamas Vajk
278d9b1dfb
Fix integration tests
2023-12-19 15:33:46 +01: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
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
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
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
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
Tamas Vajk
1a8857dab8
Create problematic additional file in integration test
2023-12-18 12:32:24 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Tamas Vajk
eeabb81973
Adjust expected test files
2023-12-06 16:00:43 +01:00
Tamas Vajk
a705f6dc0d
C#: Change StringBuilder flow models to not use Element access path
2023-12-06 15:54:34 +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
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
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
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
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
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
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
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
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
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
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
Yunus AYDIN
7bf7e59017
update expected file
2023-11-17 13:06:46 +03: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
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
Tom Hvitved
b2f1022e5c
Ruby: Prune irrelevant data flow nodes and edges
2023-11-16 13:52:07 +01:00
Mathias Vorreiter Pedersen
078f223052
C++: Rewrite 'cpp/cpp/integer-overflow-tainted' away from DefaultTaintTracking.
2023-11-16 12:01:38 +00: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
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
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
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
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
Paolo Tranquilli
615a128770
Bazel/CMake: support new internal transition rules
2023-11-16 09:04:58 +01: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
Ian Lynagh
72af41b196
Kotlin: Prepare for a Kotlin2 copy of the testsuite
2023-11-15 16:14:34 +00: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
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
Geoffrey White
4afcbb1bc4
Swift: Autoformat.
2023-11-15 13:38:07 +00:00
Geoffrey White
3a13759f10
Swift: Clean up the test.
2023-11-15 13:35:18 +00: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
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
Max Schaefer
a46a7fadb2
Java: Improve QHelp for java/path-injection to mention less disruptive fixes.
2023-11-15 11:25:13 +00: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
Yunus AYDIN
b1702ab87e
Merge branch 'main' into main
2023-11-14 23:17:49 +03: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
Yunus AYDIN
ec7309c735
Merge branch 'main' into main
2023-11-14 19:19:09 +03: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
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
Yunus AYDIN
47ef123601
Fix Pull Requests Problems
2023-11-14 09:26:37 +03:00
masterofnow
7d774f1a51
Merge branch 'main' into LoadClassNoSignatureCheck
2023-11-14 09:22:30 +08: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
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
Taus
cfdeb0edf5
Python: Define getScope and getAChildNode for new nodes
2023-11-13 15:19:54 +00: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
masterofnow
532f6a5b0c
Removed @kind path-problem in comment. Added text message in select.
2023-11-13 08:27:07 +08: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
Rasmus Wriedt Larsen
c85d99d949
Merge branch 'main' into re-modeling
2023-11-10 16:32:50 +01: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
Rasmus Wriedt Larsen
ea4761d3b6
Python: Add tests of taint-flow for re module
2023-11-08 16:05:22 +01:00
amammad
36f0a78450
fix typeorm test.ts according to Review
2023-11-06 16:23:35 +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
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
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
Tony Torralba
107a05af71
Update MaD Declarations after Triage
2023-10-31 16:52:02 +01:00
Alex Ford
8db23dc775
Ruby: refine ActiveRecord update_all as an SQL sink
2023-10-30 09:47:16 +00:00
Alex Ford
013e7aae97
Ruby: test whitespace changes
2023-10-30 09:32:44 +00:00
Tony Torralba
9f7a8aa18c
Update MaD Declarations after Triage
2023-10-24 17:42:03 +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
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
amammad
e3dbdc3887
add custom query builder and active record querybuilder support
2023-10-22 21:39:59 +02:00
Mathew Payne
a24e168ec0
Merge branch 'main' into py-restframework
2023-10-20 11:39:07 +01:00
amammad
242f7e1c53
update pg :)
2023-10-10 11:42:32 +02: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
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
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
0eb0c238f3
stash
2023-09-23 20:28:34 +10:00
amammad
bafe357500
V3
2023-09-23 18:22:43 +10:00
amammad
0c40223192
v1
2023-09-23 18:17:49 +10:00
amammad
a8aeb1d03e
add active record and data mapper patterns support
2023-09-22 22:50:55 +10:00
amammad
522a2e2594
v2
2023-09-22 18:56:47 +10:00
amammad
54a44777b7
v1
2023-09-13 19:14:15 +10:00
Geoffrey White
06c19fd8cf
Swift: Add CommonCrypto test cases for the broken crypto query.
2023-08-02 18:36:05 +01:00