Michael B. Gale
4feb56bc8d
Use named return parameters
2023-10-06 11:44:55 +01:00
Michael B. Gale
6729718d23
Allow version suffixes
...
We allow them, but don't do anything with them yet.
2023-10-06 11:44:54 +01:00
Michael B. Gale
fbbbac017e
Fix toolchain regex
2023-10-06 11:44:54 +01:00
Michael B. Gale
19104ff45b
Go: Update newer-go-version-needed test
...
- Use a version that is accepted by Go tooling
- Run is no longer successful with Go 1.21
2023-10-06 11:44:54 +01:00
Michael B. Gale
ed1b1a29de
Do not call EmitNewerGoVersionNeeded for v1.21+
2023-10-06 11:44:54 +01:00
Michael B. Gale
88d5d4cee3
Go: Run go version with GOTOOLCHAIN=local
2023-10-06 11:44:54 +01:00
Michael B. Gale
0ffbd232b5
Go: Find toolchain version in go.mod files
2023-10-06 11:44:51 +01:00
Michael B. Gale
98edaf8ae1
Go: Add GoVersionInfo type
...
Refactors `tryReadGoDirective` to return this instead of a pair.
This will make it easier to return multiple versions.
2023-10-06 11:44:13 +01:00
Mathias Vorreiter Pedersen
eb3f1967a5
Merge pull request #14365 from MathiasVP/disable-flow-through-pointer-arith-for-size
...
C++: Disable size-flow through pointer arithmetics in `cpp/invalid-pointer-deref`
2023-10-06 10:14:31 +02:00
Asger F
97b3ebe385
Merge pull request #14380 from asgerf/js/amd-range
...
JS: Add AmdModuleDefinition::Range
2023-10-05 21:05:28 +02:00
Mathias Vorreiter Pedersen
b231b1ccaf
Merge pull request #14384 from MathiasVP/handle-instructions-in-reverse-flow
2023-10-05 20:26:38 +02:00
Robert Marsh
bbec4082c0
Merge pull request #14312 from geoffw0/sqlpathinject2
...
Swift: Add sinks for sqlite3 and SQLite.swift to swift/cleartext-storage-database
2023-10-05 14:08:55 -04:00
Geoffrey White
fdcc6b482d
Swift: Simplify allowImplicitRead slightly.
2023-10-05 16:42:43 +01:00
Geoffrey White
7ddece1560
Swift: Update .expected after merge.
2023-10-05 16:20:56 +01:00
Geoffrey White
6bea7f89a8
Merge branch 'main' into sqlpathinject2
2023-10-05 16:15:37 +01:00
Cornelius Riemenschneider
d3a1dbc0c7
Merge pull request #14381 from github/criemen/add-bazel-dbschemes
...
Add skeleton bazel files for accessing the dbschemes.
2023-10-05 16:53:45 +02:00
Mathias Vorreiter Pedersen
20900dafc0
C++: Handle reverse flow when 'nodeTo' is an instruction.
2023-10-05 16:28:57 +02:00
Ian Lynagh
e124a70380
Merge pull request #14378 from igfoo/igfoo/compr
...
Kotlin: Some compression simplification
2023-10-05 13:16:00 +01:00
Ian Lynagh
0cf309b64e
Merge pull request #14369 from igfoo/igfoo/remove_unused
...
Kotlin: Remove some unused code
2023-10-05 13:15:20 +01:00
Owen Mansel-Chan
602bb4083c
Merge pull request #13949 from owen-mc/go/change-flowstate-for-incorrect-integer-conversion
...
Go: Improve incorrect integer conversion
2023-10-05 09:59:36 +01:00
Mathias Vorreiter Pedersen
333e607536
Merge pull request #14376 from MathiasVP/unique-in-hasIRRepresentationOfIndirectInstruction
2023-10-05 10:22:54 +02:00
Chris Smowton
399fab0c6c
Merge pull request #14322 from smowton/smowton/admin/add-buildless-diagnostic-expectations
...
Add Java buildless diagnostic expectations
2023-10-05 09:02:02 +01:00
Cornelius Riemenschneider
96edc1d349
Add skeleton bazel files for accessing the dbschemes.
2023-10-05 09:00:38 +02:00
Asger F
315272839d
JS: Change note
2023-10-05 08:13:43 +02:00
Asger F
162c477236
JS: Add AmdModuleDefinition::Range
2023-10-04 20:38:37 +02:00
Mathias Vorreiter Pedersen
e38f65981e
C++: Accept test changes.
2023-10-04 20:12:42 +02:00
Ian Lynagh
4d3863461e
Kotlin: Determine our compression method later
...
This way, we already have a logger at the point that we want to log a
warning.
2023-10-04 18:32:12 +01:00
Ian Lynagh
cc63bb55c2
Kotlin: Change how we handle not supporting Brotli
...
This removes the potential for impossible cases.
2023-10-04 18:32:11 +01:00
Mathias Vorreiter Pedersen
75c74d50f9
C++: Use 'unique' in 'hasIRRepresentationOfIndirectInstruction' similar to how it's done in 'hasIRRepresentationOfIndirectOperand'.
2023-10-04 19:00:33 +02:00
Edward Minnix III
8e653d01a8
Merge pull request #14127 from egregius313/egregius313/java/mad/localuserinput
...
Java: Convert implementations of `LocalUserInput` to Models-as-Data
2023-10-04 12:55:44 -04:00
Ed Minnix
e2a14c7616
Add note about results to change note
2023-10-04 11:08:40 -04:00
Owen Mansel-Chan
11b92608c7
Add ".md" to the change note filename
2023-10-04 15:49:10 +01:00
Owen Mansel-Chan
ab07a38c25
Use ternary type for architecture bit size
2023-10-04 15:43:51 +01:00
Owen Mansel-Chan
015519e9e0
Combine isBoundFor and isBoundFor2
2023-10-04 15:31:00 +01:00
Owen Mansel-Chan
cd40663ca4
Address lots of review comments
2023-10-04 15:24:56 +01:00
Robert Marsh
f7ca8e5b39
Merge pull request #14224 from rdmarsh2/rdmarsh2/swift/nil-coalescing-cfg
...
Swift: CFG and data flow for nil coalescing operator
2023-10-04 09:43:31 -04:00
Owen Mansel-Chan
4122fd881f
Move UpperBoundCheckGuard
2023-10-04 14:17:00 +01:00
Mathias Vorreiter Pedersen
843e9ad254
C++: Add more QLDoc.
2023-10-04 14:37:05 +02:00
Owen Mansel-Chan
3703c5626f
Merge pull request #14364 from owen-mc/go/improve-output-of-check-formatting-in-makefile
...
Go: improve output of check formatting in makefile
2023-10-04 11:54:40 +01:00
Rasmus Wriedt Larsen
9c02b4f21c
Merge pull request #14289 from microsoft/jb1/16-cryptography-models-libraries-and-queries-migration
...
16 cryptography models libraries and queries migration
2023-10-04 12:27:59 +02:00
Ian Lynagh
ec3f08037c
Kotlin: Remove some unused code
2023-10-04 11:15:47 +01:00
Owen Mansel-Chan
bd2c49fcf0
Improve message
2023-10-04 11:07:19 +01:00
Owen Mansel-Chan
567052f35e
Keep line breaks in list of files formatting
2023-10-04 10:23:29 +01:00
Henry Mercer
99646ba2a3
Merge pull request #14367 from github/henrymercer/rc-3.11-mergeback
...
Merge `rc/3.11` into `main`
2023-10-04 10:05:38 +01:00
Michael Nebel
ecd8561104
C#: Undo poor mans quoting fix as it conflicts with the permanent solution.
2023-10-04 09:19:55 +02:00
Ed Minnix
581d410304
Add change note
2023-10-03 22:29:00 -04:00
Ed Minnix
e122d81336
Add new source kinds for threat modeling
2023-10-03 22:29:00 -04:00
Edward Minnix III
a1d3667f1c
Refactor Hudson file methods to MaD
2023-10-03 22:28:59 -04:00
Edward Minnix III
3a75c0fde7
Refactor DatabaseInput to MaD
2023-10-03 22:28:59 -04:00
Edward Minnix III
655470f3da
Refactor EnvInput to MaD
2023-10-03 22:28:47 -04:00
Josh Brown
de2e8b0b12
explicit "this" qualifiers
2023-10-03 16:13:54 -07:00
Josh Brown
ad86e576a4
autoformat
2023-10-03 13:40:17 -07:00
Josh Brown
b683a3caf8
Merge branch 'main' into jb1/16-cryptography-models-libraries-and-queries-migration
2023-10-04 07:24:29 +11:00
Robert Marsh
06da5fd05c
Swift: move import to make codegen happy
2023-10-03 17:23:00 +00:00
Geoffrey White
d258f69ab0
Merge pull request #14329 from geoffw0/sinks
...
Swift: Update summary queries
2023-10-03 17:39:00 +01:00
Geoffrey White
34b33e1577
Merge pull request #14328 from geoffw0/debugdesc
...
Swift: Model .description, .debugDescription more generally
2023-10-03 17:37:22 +01:00
Geoffrey White
c518f39a0c
Merge pull request #14357 from geoffw0/commandinject3
...
Swift: Replace two additional taint steps with implicit reads
2023-10-03 17:34:59 +01:00
Henry Mercer
da92da2204
Bump minor versions of packs we regularly release
2023-10-03 16:31:23 +01:00
Henry Mercer
f3847b3f51
Merge branch 'main' into henrymercer/rc-3.11-mergeback
2023-10-03 16:30:23 +01:00
Robert Marsh
cdef0796e3
Swift: QLDoc for NilCoalescingExpr.qll
2023-10-03 15:00:03 +00:00
Robert Marsh
497f0aa8ab
Swift: sync test files and update expectation
2023-10-03 14:57:04 +00:00
Michael Nebel
8224f172b2
Merge pull request #14257 from michaelnebel/java/threatmodelsources
...
Java: Introduce a class of dataflow nodes for the threat modeling.
2023-10-03 16:10:49 +02:00
Mathias Vorreiter Pedersen
9a139ea903
C++: Accept test changes.
2023-10-03 15:58:35 +02:00
Mathias Vorreiter Pedersen
57d3f3f482
C++: Actually propagate the 'isBarrier1' or 'isBarrier2' predicates to the dataflow configurations.
2023-10-03 15:58:24 +02:00
Mathias Vorreiter Pedersen
9df5e43fae
C++: Block flow through indirect flow through pointer-arithmetic instructions when following flow for the allocation size.
2023-10-03 15:31:50 +02:00
Owen Mansel-Chan
7c8233aade
Add change note
2023-10-03 13:35:26 +01:00
Tamás Vajk
df988e46da
Merge pull request #14351 from tamasvajk/csharp/standalone-compilation
...
C#: Extract compilation DB entity in standalone mode
2023-10-03 14:21:21 +02:00
Owen Mansel-Chan
5433636d49
Fix formatting errors in files included in qhelp
2023-10-03 12:48:03 +01:00
Owen Mansel-Chan
2a52455619
Improve output of check-formatting in Makefile
...
The list of files that would change when reformatted is now printed.
Also, parsing errors now make the check fail.
2023-10-03 12:48:01 +01:00
Ian Lynagh
c365f459fd
Merge pull request #14355 from igfoo/igfoo/lang-vers
...
Kotlin: Specify language version when compiling for old compilers
2023-10-03 11:33:23 +01:00
Mathias Vorreiter Pedersen
dbe3bd0c50
Merge pull request #14360 from MathiasVP/promote-use-after-free-and-double-free
...
C++: Promote `cpp/double-free` and `cpp/use-after-free` to Code Scanning
2023-10-03 11:52:23 +02:00
Michael Nebel
fcbd301de8
Java: Address review comments.
2023-10-03 10:36:45 +02:00
Mathias Vorreiter Pedersen
b6ed9ccfda
C++: Add change notes.
2023-10-03 09:33:40 +02:00
Mathias Vorreiter Pedersen
7084dc1a88
C++: Promote 'cpp/use-after-free' and 'cpp/double-free' to Code Scanning.
2023-10-03 09:22:47 +02:00
Mathias Vorreiter Pedersen
5632dd5e46
Merge pull request #14275 from alexet/fix-use-after-free-fp
...
CPP: Fix some use after free FPs.
2023-10-03 09:16:42 +02:00
Michael Nebel
5b949b19f7
Java: Cleanup threat model taxanomy to align with the EDR.
2023-10-03 09:16:39 +02:00
Michael Nebel
5c700afa27
Java: Add some threat model dataflow tests.
2023-10-03 09:16:39 +02:00
Michael Nebel
537965c0e8
Java: Add some testfiles.
2023-10-03 09:16:39 +02:00
Michael Nebel
2055d5492c
Java: Let RemoteFlowSource and LocalUserInput extends SourceNode and fine grain the LocalUserInput threat models.
2023-10-03 09:16:38 +02:00
Michael Nebel
9a112dde66
Java: Introduce a class of dataflow nodes for the threat modeling.
2023-10-03 09:16:38 +02:00
Geoffrey White
0f1711fe1e
Swift: Test insertMany.
2023-10-02 23:04:07 +01:00
Geoffrey White
bbd3c66d5a
Swift: Update for CollectionContent.
2023-10-02 20:32:24 +01:00
Geoffrey White
81b358a711
Swift: Replace a similar additional taint step in another query.
2023-10-02 20:19:40 +01:00
Geoffrey White
27bdee8058
Swift: Replace additional taint step with implict read.
...
Now that we have array content, this is a more principled approach than having a special case data step.
2023-10-02 20:19:30 +01:00
Robert Marsh
ca722dc74c
Swift: add NilCoalescingTest node to CFG
...
Fixes an issue where a nil-coalescing operation used in a boolean
context would result in no control flow out of the default operand of
the nil-coalescing operator.
2023-10-02 18:07:11 +00:00
Ian Lynagh
513a39f0b4
Kotlin: Specify language versino when compiling for old compilers
...
Otherwise builds with Kotlin 2 won't work with older compilers.
2023-10-02 18:14:01 +01:00
Ian Lynagh
f3c5c01ec5
Kotlin: Drop support for 1.4.32
...
We never claimed to support anything < 1.5.0, and compiling with
-language-version 1.4 fails as it's not meant to support sealed classes.
If we build 1.4.32 with -language-version 1.5 using a 2.0 compiler,
then the resulting plugin also fails.
2023-10-02 17:29:10 +01:00
Tom Hvitved
2684a22484
Merge pull request #14255 from hvitved/dataflow/perf-improvements
...
Data flow: Performance improvements
2023-10-02 16:37:24 +02:00
Tamas Vajk
b2514b3c69
Adjust expected test output
2023-10-02 13:35:16 +02:00
Tamas Vajk
de45a9b137
C#: Extract compilation DB entity in standalone mode
2023-10-02 12:54:49 +02:00
Rasmus Wriedt Larsen
e7384da162
Merge pull request #14341 from GeekMasher/py-django-restframework
...
Python - Add support for RestFramework ModelViewSet functions
2023-10-02 10:50:11 +02:00
Henry Mercer
0dd3837c31
Merge pull request #14345 from github/adityasharad/atm/remove-js-ml-tests
...
ATM/JS: Remove test workflow
2023-10-02 09:44:46 +01:00
Tom Hvitved
4fa93a077c
Address review comments
2023-10-02 09:03:12 +02:00
Erik Krogh Kristensen
5dccc8d33e
Merge pull request #14348 from github/dependabot/cargo/ql/regex-1.9.6
...
Bump regex from 1.9.5 to 1.9.6 in /ql
2023-10-02 08:34:59 +02:00
dependabot[bot]
a86b010504
Bump regex from 1.9.5 to 1.9.6 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.9.6 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-02 03:33:25 +00:00
Aditya Sharad
cf98b84279
ATM/JS: Remove test workflow
...
These queries are deprecated, and upcoming nightly CLIs will no longer support their experimental functionality. To avoid test breakage, remove this workflow.
The code and tests can be cleaned up as future follow-up.
2023-09-29 15:19:45 -07:00
Sarita Iyer
178b5c1c30
Merge pull request #14282 from github/saritai/update-language-display-names
...
Update language display names
2023-09-29 11:15:56 -04:00
Sarita Iyer
f29063bca3
Update codeql-for-java.rst
2023-09-29 10:44:27 -04:00
Rasmus Wriedt Larsen
3162033d56
Python: Make tests run for django rest framework
2023-09-29 16:21:04 +02:00
Sarita Iyer
b6b554f384
Apply suggestions from code review
...
Co-authored-by: Henry Mercer <henry.mercer@me.com >
2023-09-29 10:07:22 -04:00
Sarita Iyer
c0653adc85
remove trailing space
2023-09-29 09:57:48 -04:00
Sarita Iyer
925d8e21ce
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-09-29 09:45:34 -04:00
Mathew Payne
41bb8377d9
Add change notes
2023-09-29 14:44:36 +01:00
Mathew Payne
19c93b0228
Add RestFramework tests
2023-09-29 14:41:57 +01:00
Michael Nebel
81e4cddf9f
Merge pull request #14333 from michaelnebel/csharp/windowsunittests
...
C#: Also run extractor unit tests on a windows runner.
2023-09-29 15:28:26 +02:00
Mathew Payne
eb9b32473e
Add support for ModelViewSet functions
2023-09-29 14:26:39 +01:00
yoff
dbecb1bd0f
Merge pull request #14070 from yoff/python/promote-nosql-query
...
Python: promote nosql query
2023-09-29 14:21:22 +02:00
Rasmus Wriedt Larsen
9b73bbfc31
Python: Add keyword argument support
...
and a fair bit of refactoring
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
d6d13f84a9
Python: -> NoSQL in QLDocs
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
3676262313
Python: Clean trailing whitespace
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
d7ad5a0f23
Python: List NoSQL injection sinks
2023-09-29 13:54:21 +02:00
Rasmus Wriedt Larsen
16e1a00e88
Python: NoSQLInjection -> NoSqlInjection
2023-09-29 13:52:51 +02:00
Rasmus Lerchedahl Petersen
97696680e6
Python: require dict sinks be dangerous.
2023-09-29 13:45:23 +02:00
Rasmus Lerchedahl Petersen
f3a01612e8
Python: rename flow states
...
Close to being a revert of
3043633d9c
but with slightly shorter names and added comments.
2023-09-29 13:23:36 +02:00
Rasmus Lerchedahl Petersen
e1708054a4
Python: fix QL alert
2023-09-29 12:06:51 +02:00
Anders Schack-Mulligen
efb49fcd3e
Merge pull request #14336 from aschackmull/java/switch-rule-stmt-cfg
...
Java: Fix CFG for case rule statements.
2023-09-29 12:02:48 +02:00
Rasmus Lerchedahl Petersen
2d845e3e55
Python: nicer paths
...
turn "the long jump" that would end up
straight at the argument into a short jump
that ends up at the dictionary being written to.
Dataflow takes care of the rest of the path.
2023-09-29 12:02:16 +02:00
Rasmus Lerchedahl Petersen
74d6f37467
Python: update meta query TaintSinks
2023-09-29 12:02:16 +02:00
yoff
2e028a41ee
Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-29 11:32:51 +02:00
Michael Nebel
c25113ae46
C#: Execute tests via the bash shell to ensure that we stop on error.
2023-09-29 09:35:43 +02:00
Michael Nebel
3fd083b249
C#: Enable the stub generator tests.
2023-09-29 09:35:43 +02:00
Michael Nebel
086588982e
C#: Ensure that always use the same newline symbol for stub generation.
2023-09-29 09:35:42 +02:00
Michael Nebel
e42741e8ed
C#: Also run extractor unit tests on a windows runner.
2023-09-29 09:33:33 +02:00
Stephan Brandauer
d7beda79ab
Merge pull request #14197 from github/kaeluka/framework-mode-source-candidates
...
Java: Framework mode source candidates
2023-09-28 21:09:54 +02:00
Ian Lynagh
30d7f0cf0a
Merge pull request #14334 from igfoo/igfoo/ext-frag
...
Kotlin: Handle IrExternalPackageFragment properly for more external entities
2023-09-28 20:01:52 +01:00
Ian Lynagh
7f5f25c362
Merge pull request #14338 from igfoo/igfoo/dedupe
...
Kotlin: Differentiate 2 error messages
2023-09-28 17:56:53 +01:00
Alex Eyers-Taylor
6b0ae0f312
CPP: Remove unned argument from use-after-free
2023-09-28 17:53:32 +01:00
Stephan Brandauer
fdbc553029
Java: Automodel Framework mode: no longer skip non-public methods
2023-09-28 16:17:44 +02:00
Ian Lynagh
e9482fb096
Kotlin: Differentiate 2 error messages
2023-09-28 14:59:21 +01:00
Ian Lynagh
5db283e86a
Kotlin: Fix comment
2023-09-28 14:26:02 +01:00
yoff
bc17bf69f4
Merge pull request #14317 from yoff/python/fix-regex-string-part-locations
...
Python: Improve computation of regex fragments inside string parts
2023-09-28 14:35:27 +02:00
Anders Schack-Mulligen
15e1098791
Java: Add change note.
2023-09-28 14:28:24 +02:00
Rasmus Lerchedahl Petersen
3043633d9c
Python: Some renaming of flow states
2023-09-28 14:24:49 +02:00
Anders Schack-Mulligen
94556078f1
Java: Add guards logic for SwitchExpr default cases.
2023-09-28 14:21:04 +02:00
Rasmus Lerchedahl Petersen
d5b64c5ff2
Python: update test expectations
2023-09-28 14:20:30 +02:00
Anders Schack-Mulligen
917a15647e
Java: Fix CFG for rule statements.
2023-09-28 14:19:36 +02:00
Anders Schack-Mulligen
922a4e8ddf
Java: Add failing test
2023-09-28 14:15:56 +02:00
Rasmus Lerchedahl Petersen
a8e0023f39
Python: forgot to list framework
2023-09-28 13:42:33 +02:00
Rasmus Lerchedahl Petersen
2a7b593285
Python: Fix QL alerts
2023-09-28 13:35:29 +02:00
Ian Lynagh
261ae4ea4d
Kotlin: Handle IrExternalPackageFragment properly for more external entities
2023-09-28 12:12:18 +01:00
Rasmus Lerchedahl Petersen
eb1be08bce
Python: split modelling
2023-09-28 12:54:06 +02:00
Rasmus Lerchedahl Petersen
2a739b3b7a
Python: rename module
2023-09-28 12:54:05 +02:00
Rasmus Lerchedahl Petersen
9682c8218a
Python: rename file
2023-09-28 12:54:05 +02:00
yoff
c2b63830f1
Apply suggestions from code review
...
Claim conversions do not execute inputs in order to remove interaction with `py/unsafe-deserialization`.
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-28 12:40:37 +02:00
Rasmus Lerchedahl Petersen
d90630aa66
Python: fix query file
2023-09-28 12:34:10 +02:00
Owen Mansel-Chan
832e78c518
Unify approach to architecture bit size in isSink2
2023-09-28 11:24:48 +01:00
Koen Vlaswinkel
eb2db59127
Merge pull request #14330 from github/koesie10/csharp-mad-parentheses
...
C#: Fix parentheses in model editor queries
2023-09-28 12:14:52 +02:00
Rasmus Lerchedahl Petersen
3fb579eaff
Python: add test for type tracking
2023-09-28 12:14:12 +02:00
Owen Mansel-Chan
cf5d1e36fe
Add QLDoc
2023-09-28 11:02:04 +01:00
Owen Mansel-Chan
e0b61b2d68
Reduce the number of UpperBoundChecks
...
No need to have a separate class for each state
being blocked.
2023-09-28 11:00:43 +01:00
Owen Mansel-Chan
c0b579c49f
Improve tests
2023-09-28 11:00:41 +01:00
Owen Mansel-Chan
7d34ce4dea
Rewrite with different flow state
2023-09-28 11:00:34 +01:00
Rasmus Lerchedahl Petersen
37a4f35650
Python: further rename
2023-09-28 11:49:42 +02:00
yoff
8156fa9a4d
Apply naming suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-28 11:47:10 +02:00
Asger F
0d96ed8aee
Merge pull request #14305 from asgerf/shared/flow-state-inout-barriers
...
Shared: add in/out barriers with flow state
2023-09-28 11:07:23 +02:00
Koen Vlaswinkel
3f3c662a7d
C#: Fix parentheses in model editor queries
...
The MaD format and the Java model editor queries use parentheses around
the method parameter types, but `parameterQualifiedTypeNamesToString`
returns the parameter types without parentheses. This adds the
parentheses to the result of `getParameterTypes` to ensure consistency
between the Java and C# queries.
2023-09-28 10:51:36 +02:00
Anders Schack-Mulligen
5feb2f7622
Merge pull request #14321 from aschackmull/shared/filesystem
...
All languages: Use shared FileSystem library and minor regex performance improvement.
2023-09-28 10:51:05 +02:00
Koen Vlaswinkel
10231e99ce
Merge pull request #14199 from github/koesie10/add-java-model-editor-queries
...
Java: Add VS Code model editor queries
2023-09-28 10:13:13 +02:00
Koen Vlaswinkel
0f4f98787c
Merge pull request #14200 from github/koesie10/add-csharp-model-editor-queries
...
C#: Add VS Code model editor queries
2023-09-28 10:12:57 +02:00
Geoffrey White
8e9ca7bc26
Swift: Improve RegexEvals.ql and summary regex reporting.
2023-09-28 08:31:45 +01:00
Anders Schack-Mulligen
80f00bcb0b
FileSystem: Improve regex by only matching once instead of 3x.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
cfd08f23a5
FileSystem: Fix qldoc.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
20cbab9e8f
C#: Minor simplification.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
68d05eb342
Ruby: Minor simplification.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
855c89667d
JavaScript: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
7bc0c54a41
QL: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
73521ca16b
Python: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
a08fe5b8b1
Go: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
2548939849
C++: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Anders Schack-Mulligen
653844cc46
Java: Use shared FileSystem library.
2023-09-28 08:58:55 +02:00
Sarita Iyer
9609cafab4
Update annotations-in-java.rst
2023-09-27 16:27:32 -04:00
Sarita Iyer
8802395587
Merge branch 'saritai/update-language-display-names' of https://github.com/github/codeql into saritai/update-language-display-names
2023-09-27 15:01:44 -04:00
Sarita Iyer
deb47e34b8
fix underlines
2023-09-27 15:01:42 -04:00
Geoffrey White
e4e4c5be61
Swift: Make QL-for-QL happy.
2023-09-27 19:12:04 +01:00
Geoffrey White
98b2ef0a2f
Swift: Autoformat.
2023-09-27 19:09:23 +01:00
Alex Eyers-Taylor
2860c0c0d4
CPP: Move test into correct file.
2023-09-27 18:42:26 +01:00
Geoffrey White
87696e58ab
Swift: Break the 'taint reach' metric off into its own query (it's expensive to compute).
2023-09-27 18:34:55 +01:00
Geoffrey White
ec573bdda8
Swift: Clean up and improve consistency.
2023-09-27 18:34:40 +01:00
Geoffrey White
ee83ad730b
Swift: Add a summary query for regex evals.
2023-09-27 18:34:32 +01:00
Geoffrey White
9f1332bdb2
Swift: Add a summary query for query sinks.
2023-09-27 18:34:32 +01:00
Sarita Iyer
16fb482767
Merge branch 'main' into saritai/update-language-display-names
2023-09-27 13:20:22 -04:00
Sarita Iyer
ee9873fdce
add kotlin to Java language guides
2023-09-27 13:16:58 -04:00
Benjamin Rodes
25203db4e7
Removing 'security' tags from all queries.
2023-09-27 12:43:51 -04:00
Owen Mansel-Chan
84c0c09673
Always use getters for FlowState
2023-09-27 17:13:58 +01:00
Owen Mansel-Chan
72ca6b8c5f
Add isSigned to IntegerParsers
2023-09-27 17:13:56 +01:00
Owen Mansel-Chan
c796cba02f
Improve UpperBoundCheckGuard.isBoundFor
2023-09-27 17:13:55 +01:00
Geoffrey White
e6dc4d324f
Swift: Change note.
2023-09-27 16:58:59 +01:00
Geoffrey White
b6f0160760
Swift: Effect on recently added tests.
2023-09-27 16:52:31 +01:00
Geoffrey White
6a2911ae01
Swift: Make the tests more accurate.
2023-09-27 16:39:55 +01:00
Geoffrey White
086002f7cb
Swift: Add a general model for description, debugDescription.
2023-09-27 16:39:54 +01:00
Geoffrey White
f12e45b243
Swift: Delete the specific description, debugDescription models.
2023-09-27 16:39:54 +01:00
Alexander Eyers-Taylor
79b044d670
Merge pull request #14271 from github/post-release-prep/codeql-cli-2.14.6
...
Post-release preparation for codeql-cli-2.14.6
2023-09-27 15:19:12 +01:00
Michael Nebel
39499142a6
Merge pull request #14327 from michaelnebel/csharp/disablestubgentests
...
C#: Disable unit tests (need to fix line ending issues).
2023-09-27 16:06:33 +02:00
Taus
ad86aed363
Merge pull request #14326 from github/tausbn/clean-up-nodeinfo
...
Shared: Clean up `NodeInfo` in shared extractor
2023-09-27 15:55:27 +02:00
Michael Nebel
cb1647cd02
C#: Disable unit tests (need to fix line ending issues).
2023-09-27 15:35:48 +02:00
Tom Hvitved
56f8d5d57d
Merge pull request #14229 from hvitved/ruby/splat-flow-performance
...
Ruby: Improve performance of flow through (hash) splats
2023-09-27 14:41:33 +02:00
Asger F
ba1f8766aa
Shared: update PartialPathNode accordingly
2023-09-27 14:38:28 +02:00
Asger F
6792592a15
Shared: add late checks for stateful in/out barriers
2023-09-27 14:38:28 +02:00
Asger F
6d6cdf89ce
Java: add a failing test for stateful in/out barriers
2023-09-27 14:38:21 +02:00
Taus
ff35f9fb8c
Shared: Clean up NodeInfo in shared extractor
...
I was perusing the shared extractor the other day, when I came across
the `NodeInfo` struct. I noticed that the `fields` and `subtypes` fields
on this struct had two seemingly identical ways of expressing the same
thing: `None` and `Some(empty)` (where `empty` is respectively the empty
map and the empty vector). As far as I can tell, there's no semantic
difference in either case, so we can just elide the option type entirely
and use the empty value directly. This has the nice side-effect of
cleaning up some of the other code.
2023-09-27 12:29:07 +00:00
Ian Lynagh
f24abee285
Merge pull request #14323 from igfoo/igfoo/supportk2
...
Kotlin: Claim to support Kotlin 2
2023-09-27 13:28:57 +01:00
Michael Nebel
13d3e973b1
Merge pull request #14319 from michaelnebel/csharp/stubunittest
...
C#: Base a few more query tests on stubs.
2023-09-27 14:03:58 +02:00
Michael Nebel
30e1925025
Merge pull request #14325 from michaelnebel/csharp/stubgentests
...
C#: Add a couple of stub generator unit tests
2023-09-27 13:56:50 +02:00
Tom Hvitved
c570083163
Ruby: Improve performance of flow through (hash) splats
2023-09-27 11:49:31 +02:00
Michael Nebel
53c947dd9d
C#: Add a couple of unit tests.
2023-09-27 11:44:17 +02:00
Michael Nebel
4c3cbad8fe
C#: Prepare stub generator for unit testing and expose internals to the Test project.
2023-09-27 11:44:17 +02:00
Harry Maclean
dc2acf5a39
Merge pull request #14090 from hmac/splat-flow-4
...
Ruby: More splat flow (alternative)
2023-09-27 10:22:57 +01:00
Michael Nebel
577ea50ec9
C#: Base ConstantComparison and PossibleLossOfPrecision tests on stubs.
2023-09-27 09:35:57 +02:00
Michael Nebel
68fd25cd9c
C#: Base DeadStoreOfLocal test on stubs.
2023-09-27 09:35:57 +02:00
Michael Nebel
f7daa863e2
Merge pull request #14318 from michaelnebel/csharp/readonlyfieldsinstubs
...
C#: Add readonly modifier to fields and constant values.
2023-09-27 09:28:55 +02:00
Rasmus Lerchedahl Petersen
8ade9ed164
Python: fix inconsistency
...
Since we calculate the end column by offset,
we must believ that the end line is the same
as the start line.
2023-09-26 21:02:14 +02:00
Rasmus Lerchedahl Petersen
db95eade64
Python: accept improved test output
2023-09-26 20:58:51 +02:00
Rasmus Lerchedahl Petersen
35f28c832a
Python: small refactor (reviewer suggestion)
2023-09-26 20:55:35 +02:00
Rasmus Lerchedahl Petersen
f5059a6918
Python: fix computation at part boundaries
2023-09-26 20:51:15 +02:00
Rasmus Lerchedahl Petersen
cdf1db09bd
Python: add test for part boundaries
2023-09-26 20:50:08 +02:00
Rasmus Lerchedahl Petersen
73aa302bd2
Python: only expose lengths of quote and prefix
2023-09-26 20:45:24 +02:00
Tom Hvitved
e7a3dc83bc
Data flow: Performance improvements
2023-09-26 20:42:03 +02:00
Rasmus Lerchedahl Petersen
d25b93d944
Python: fix ql alerts
2023-09-26 20:33:24 +02:00
Michael B. Gale
539199bb40
Merge pull request #14314 from taigrr/main
...
update go tools version from v0.11.1 to v0.13.0
2023-09-26 17:33:52 +01:00
Ian Lynagh
497d48bd63
Kotlin: Claim to support Kotlin 2
...
We don't fully support it yet, but if we don't claim to support it then
Kotlin fails early.
2023-09-26 17:24:11 +01:00
Geoffrey White
49d47a3da4
Merge pull request #14209 from geoffw0/regexport
...
Swift: Port regex mode flag fix from Python to Swift
2023-09-26 15:41:10 +01:00
Chris Smowton
a123f62a38
Add Java buildless diagnostic expectations
2023-09-26 15:25:58 +01:00
Geoffrey White
eb78d401da
Swift: Add to change note.
2023-09-26 14:56:32 +01:00
Asger F
6e869452b5
Shared: remove pragma[inline] implied by bindingset
2023-09-26 15:42:24 +02:00
Asger F
c7e892fa8e
Shared: change note
2023-09-26 15:24:29 +02:00
Michael Nebel
5e3ae0afac
C#: Update .NET and ASP.NET stubs.
2023-09-26 15:09:10 +02:00
Michael Nebel
839ef7fef5
C#: Add compile time constants for some types of fields in the stub generator.
2023-09-26 15:06:30 +02:00
Anders Schack-Mulligen
e6d832c7e5
Merge pull request #14297 from aschackmull/java/additional-steps-and-nodes
...
Java: Add support for additional nodes, read steps, and store steps for QL models and model ThreadLocal.initialValue
2023-09-26 14:50:37 +02:00
Geoffrey White
6b0271d4e5
Swift: Address review comment.
2023-09-26 13:40:46 +01:00
Geoffrey White
7a450c9941
Swift: Change note for mode flags.
2023-09-26 13:40:46 +01:00
Geoffrey White
33a5ba04cb
Swift: Add explanatory comments and (minimal) support for additional regex mode flags.
2023-09-26 13:40:46 +01:00
Michael Nebel
d00ff9665c
C#: Update .NET and ASP.NET stubs.
2023-09-26 12:28:23 +02:00
Michael Nebel
82f5a02729
C#: Add readonly modifier to fields during stub generation.
2023-09-26 12:28:00 +02:00
Rasmus Lerchedahl Petersen
d10b181d89
Python: add change note
2023-09-26 12:13:07 +02:00
Rasmus Lerchedahl Petersen
c1ebde4288
Python: improve location computation
2023-09-26 12:08:50 +02:00
Rasmus Lerchedahl Petersen
aa64390af7
Python: add more tests
2023-09-26 10:54:45 +02:00
Stephan Brandauer
26267b72d4
driveby: bug fix in automodel alert sink util
2023-09-26 10:46:56 +02:00
Stephan Brandauer
53b3755e50
remove now-unused getIndex predicate
...
Co-authored-by: @tausbn <tausbn@github.com >
2023-09-26 10:46:42 +02:00
Stephan Brandauer
9f7f2ab70e
remove redundant fromSource calls
...
Co-authored-by: @tausbn <tausbn@github.com >
2023-09-26 10:45:54 +02:00
Stephan Brandauer
32502d5e2c
Java: Automodel, remove erroneousEndpoints predicate from production queries
2023-09-26 10:45:54 +02:00
Stephan Brandauer
5d608acd0b
Java: Automodel framework mode, fix query string
2023-09-26 10:45:54 +02:00
Stephan Brandauer
e71563e540
Java: Automodel fr mode: remove superfluous module
2023-09-26 10:45:54 +02:00
Stephan Brandauer
2be5b1955f
Java: Automodel fr mode: add support for qualifier source candidates
2023-09-26 10:45:53 +02:00
Stephan Brandauer
dee387622e
Java: Automodel: rename overloadable -> overridable
2023-09-26 10:45:53 +02:00
Stephan Brandauer
6121faf671
Java: Automodel: fr mode: connect new endpoints with MaD models
2023-09-26 10:45:53 +02:00
Stephan Brandauer
7f084c90c5
Java: automodel fr mode: add overloadable parameter candidates
2023-09-26 10:45:53 +02:00
Stephan Brandauer
8ea8123bd5
Java: Automodel ql-for-ql
2023-09-26 10:45:53 +02:00
Stephan Brandauer
86e50699dc
Java: Automodel format
2023-09-26 10:45:53 +02:00
Stephan Brandauer
9e6eebb926
Java: Automodel: drive-by: remove unused message logic for candidate extraction
2023-09-26 10:45:53 +02:00
Stephan Brandauer
0d53600b12
Java: automodel fr mode: update test expectations
2023-09-26 10:45:53 +02:00
Stephan Brandauer
32a538b64c
Java: automodel fr mode: add mad output to extraction metadata
2023-09-26 10:45:53 +02:00
Stephan Brandauer
b2578f0e30
Java: Automodel Fr Mode: add return value endpoint type
2023-09-26 10:45:52 +02:00
Stephan Brandauer
8cc6466c68
Java: Automodel: add extensibleType metadata to framework mode
2023-09-26 10:45:52 +02:00
Tom Hvitved
60b7840389
Merge pull request #14315 from hvitved/csharp/dependency-manager-cleanup
...
C#: Rely on CLI to cleanup scratch dir
2023-09-26 10:08:12 +02:00
Tom Hvitved
486afd9f29
Merge pull request #14310 from hvitved/csharp/stub-generator-test
...
C#: Add stub generator integration test
2023-09-26 10:07:45 +02:00
Anders Starcke Henriksen
464add4e16
Merge pull request #14246 from github/starcke/release-automodel-0.0.3
...
Release automodel queries version 0.0.3
2023-09-26 09:41:33 +02:00
Tom Hvitved
c06833758f
Merge pull request #14313 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-26 09:26:31 +02:00
Tom Hvitved
ef699e5195
C#: Rely on CLI to cleanup scratch dir
2023-09-26 09:15:19 +02:00
Tom Hvitved
5adacb8477
Merge pull request #14311 from hvitved/csharp/dependency-manager-generated-files
...
C#: Expose generated files in `DependencyManager`
2023-09-26 08:15:32 +02:00
Tai Groot
013452c52d
fix vendor
2023-09-25 18:45:37 -07:00
Tai Groot
79dcb9e814
update go tools version from v0.11.1 to v0.13.0
2023-09-25 18:38:24 -07:00
github-actions[bot]
1e57595d2c
Add changed framework coverage reports
2023-09-26 00:15:37 +00:00
Geoffrey White
f9a617c714
Swift: Change note.
2023-09-25 20:31:00 +01:00
Geoffrey White
51ed824adf
Swift: Add more SQLite.swift models.
2023-09-25 20:30:59 +01:00
Geoffrey White
6be01eac04
Swift: Add implict read steps for dictionary content.
2023-09-25 20:30:59 +01:00
Geoffrey White
4350060b0f
Swift: Add SQLite.swift models.
2023-09-25 20:30:59 +01:00
Geoffrey White
839b9635b9
Swift: Effect of fixing string interpolation bug.
2023-09-25 20:30:58 +01:00
Geoffrey White
16ae637238
Swift: Add sqlite3 models.
2023-09-25 20:30:48 +01:00
Geoffrey White
4245a38de9
Swift: Add SQLite.swift and sqlite3 C API test cases for swift/cleartext-storage-database.
2023-09-25 20:30:48 +01:00
Joe Farebrother
7c230d61a8
Merge pull request #13882 from joefarebrother/csharp-insecure-direct-object-ref
...
C#: Add query for Insecure Direct Object Reference
2023-09-25 20:29:54 +01:00
Tom Hvitved
a045e6b029
C#: Expose generated files in DependencyManager
2023-09-25 20:16:58 +02:00
Tom Hvitved
4183fbe7cb
Merge pull request #14295 from hvitved/csharp/lambda-type-flow
...
C#: Improve lambda dispatch using type flow
2023-09-25 19:19:51 +02:00
Tom Hvitved
4262fd5a48
C#: Add stub generator integration test
2023-09-25 17:02:11 +02:00
Joe Farebrother
d7c1be40d9
Fix codescanning alert by tweaking imported modules
2023-09-25 15:47:05 +01:00
Joe Farebrother
3efbbb3645
Elaborate 'guess' to 'guess or determine'
2023-09-25 15:44:40 +01:00
Michael Nebel
2d87d76576
Merge pull request #14272 from michaelnebel/csharp/externalapi
...
C#: Minor improvements to the ExternalApi implementation.
2023-09-25 16:35:58 +02:00
Michael Nebel
e997a7c923
C#: Address review comment.
2023-09-25 14:59:18 +02:00
Tom Hvitved
f02d281188
Merge pull request #14309 from hvitved/csharp/stub-generator-output
...
C#: Make `GenerateStubs` return list of generated output
2023-09-25 14:46:49 +02:00
Tom Hvitved
ae06040a48
Address review comments
2023-09-25 14:30:08 +02:00
yoff
c9976cf724
Merge pull request #14307 from yoff/python/inline-regex-location-tests
...
Python: switch regex location tests to inline expectations
2023-09-25 13:37:48 +02:00
Tom Hvitved
4bfd6771b4
C#: Make GenerateStubs return list of generated output
2023-09-25 13:27:50 +02:00
Tamás Vajk
831e50ccda
Merge pull request #14306 from tamasvajk/standalone/remove-runtime-nuget-packages-2
...
C#: Remove legacy runtime packages from extraction references
2023-09-25 13:23:43 +02:00
Ian Lynagh
56a5c7876c
Merge pull request #14220 from igfoo/igfoo/light_comments
...
Kotlin: Extract LighterAST comments as well as PSI comments
2023-09-25 11:50:55 +01:00
Rasmus Lerchedahl Petersen
417907b36d
Python: switch to inline expectations
2023-09-25 11:44:56 +02:00
Tamas Vajk
ed83f59c23
C#: Remove legacy runtime packages from extraction references
2023-09-25 11:34:16 +02:00
Anders Schack-Mulligen
06cb277eb0
Merge pull request #14299 from aschackmull/dataflow/more-defaults
...
Dataflow: Make use of defaults for language-specific hooks.
2023-09-25 11:19:44 +02:00
Joe Farebrother
df5fcc92e7
Apply suggestions from docs review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-09-25 10:13:56 +01:00
Koen Vlaswinkel
ced95e0f45
Java: Split API name column into separate columns
2023-09-25 10:16:59 +02:00
Asger F
d501856519
Update DataFlowImpl.qll copies
2023-09-25 10:05:29 +02:00
Koen Vlaswinkel
922ff7bb10
C#: Remove unnecessary import
2023-09-25 10:03:18 +02:00
Koen Vlaswinkel
dc6def79d0
C#: Split API name column into separate columns
2023-09-25 10:02:34 +02:00
Asger F
cfed7e9b6c
Shared: add in/out barriers with flow state
2023-09-25 09:58:49 +02:00
Anders Schack-Mulligen
aa2c7a79d6
Dataflow: Add bindingset
2023-09-25 08:55:09 +02:00
Tom Hvitved
8f35c99f16
C#: Improve lambda dispatch using type flow
2023-09-23 11:41:03 +02:00
Tom Hvitved
09063c5189
C#: Port and extend type dispatch tests from Java
2023-09-23 11:37:51 +02:00
Ian Lynagh
7b779ca9d0
Merge pull request #14186 from igfoo/igfoo/kotlin-expected
...
Kotlin: Regenerate expected test output
2023-09-22 19:40:26 +01:00
Ian Lynagh
56b9fa8e9c
Kotlin: Avoid using a possibly-throwing method
2023-09-22 18:15:28 +01:00
Geoffrey White
ab6e8b9ecd
Merge pull request #14252 from geoffw0/protocol3
...
Swift: Improve getABaseType implementions
2023-09-22 18:13:12 +01:00
Geoffrey White
2c9433c621
Merge pull request #13946 from geoffw0/arraysteptest
...
Swift: Models and tests for numeric conversions
2023-09-22 16:26:38 +01:00
Koen Vlaswinkel
0fea21f3e7
C#: Remove unnecessary columns
2023-09-22 16:35:15 +02:00
Koen Vlaswinkel
f4522edc95
Java: Remove unnecessary columns
2023-09-22 16:11:30 +02:00
Koen Vlaswinkel
7dc22e47d6
Java: Switch from problem to table query
2023-09-22 16:08:20 +02:00
Tony Torralba
b1cee2f35c
Merge pull request #14254 from atorralba/atorralba/arithexpr-improv
...
Java: Consider AssignOps in ArithExpr
2023-09-22 15:22:27 +02:00
Anders Schack-Mulligen
6316f61af9
Go: Fix import conflict.
2023-09-22 15:09:25 +02:00
Anders Schack-Mulligen
ae278fcad7
C++: Fix import conflict.
2023-09-22 15:06:21 +02:00
Max Schaefer
363dc49078
Merge pull request #14292 from github/max-schaefer/fix-python-regex-locations
...
Python: Improve source-location information for RegExpTerms.
2023-09-22 13:59:10 +01:00
Anders Schack-Mulligen
66da997b7b
Dataflow: Make use of defaults for language-specific hooks.
2023-09-22 14:54:22 +02:00
Tom Hvitved
13ad6f8690
C#: Add missing flow summary for List<T>.ForEach
2023-09-22 13:48:32 +02:00
Tony Torralba
8f189cb90c
Merge pull request #14290 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-22 13:46:55 +02:00
Anders Schack-Mulligen
b11194e561
Java: Add missing qldoc.
2023-09-22 13:46:08 +02:00
Anders Schack-Mulligen
8ee1f8ae69
Java: Add missing flow step for ThreadLocal.initialValue.
2023-09-22 13:33:45 +02:00
Max Schaefer
dfec1620ea
Update expected test output.
2023-09-22 11:28:50 +01:00
Max Schaefer
6f67055852
Correctly account for length of string literal prefix when computing locations for RegExpTerms.
2023-09-22 11:24:25 +01:00
Max Schaefer
d4ff9c8ed1
Add test for locations of regexp terms.
2023-09-22 11:24:24 +01:00
Tom Hvitved
9638a6cb8f
Merge pull request #14095 from hvitved/csharp/stub-generator
...
C#: Roslyn-based stub generation
2023-09-22 12:12:34 +02:00
Tom Hvitved
e417e862a2
Merge pull request #14283 from hvitved/ruby/collapse-stages
...
Ruby: Collapse DIL stages
2023-09-22 10:58:06 +02:00
Geoffrey White
ab54f0cc6c
Merge pull request #14286 from geoffw0/interp
...
Swift: Fix bug in taint flow through string interpolation
2023-09-22 08:52:56 +01:00
Tom Hvitved
831baa867c
C#: Refactor and regenerate stubs
2023-09-22 09:15:01 +02:00
github-actions[bot]
47809a8252
Add changed framework coverage reports
2023-09-22 00:14:56 +00:00
Chris Smowton
0aeec1a1a2
Merge pull request #14288 from smowton/smowton/admin/buildless-snapshot-repositories-test
...
Java: Add test re: buildless mode interaction with snapshot repositories
2023-09-21 21:36:13 +01:00
Josh Brown
7ad2932b3f
Update SymmetricEncryptionAlgorithms.ql
...
Changing metadata to under python namespace
2023-09-21 12:12:16 -07:00
Benjamin Rodes
c0c2ae544b
Updating weak elliptic curve sample queries.
2023-09-21 12:12:16 -07:00
Benjamin Rodes
5fed923af0
Changed python inventory subdirectory structure to add old and new inventory models. Added some example old models.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
50db4fd63e
Moved Cpp into sub directory 'cryptography' instead of crypto. Added python models, inventory, and example alerts.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
7560db66fa
incorrect import path
2023-09-21 12:12:15 -07:00
Benjamin Rodes
fe22dc45b1
Moving inventory queries into a new subdirectory structure for new_models and old_models.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
6d7ac8de28
Adding example alerts
2023-09-21 12:12:15 -07:00
Benjamin Rodes
4c9cc5a21f
Adding inventory queries.
2023-09-21 12:12:15 -07:00
Benjamin Rodes
7256faa7eb
Added modeling infrastructure
2023-09-21 12:12:15 -07:00
Chris Smowton
0b5727f1d1
Add test re: buildless mode interaction with snapshot repositories
2023-09-21 19:46:28 +01:00
Arthur Baars
2d44724acd
Merge pull request #14281 from aibaars/aibaars/java-standalone-test
...
Java: standalone: add basic integration tests
2023-09-21 20:09:02 +02:00
Chris Smowton
ffd0a72e74
Merge pull request #14285 from smowton/smowton/test/module-in-wrongly-named-file
...
Java: Test module definition in a file not named module-info.java in a buildless extraction
2023-09-21 19:03:35 +01:00
Geoffrey White
f2689dd515
Swift: Fix for string interpolation taint flow.
2023-09-21 19:02:16 +01:00
Geoffrey White
c7be9b42b3
Swift: Test demonstrating an issue with taint through string interpolation.
2023-09-21 19:02:06 +01:00
Sarita Iyer
27817ea9f0
fix
2023-09-21 12:07:07 -04:00
Chris Smowton
04258f8cfc
Remove actual file
2023-09-21 16:41:17 +01:00
Alex Ford
67019c6784
Merge pull request #14274 from alexrford/rb/dataflow-tidy
...
Ruby: Minor fixes for dataflow queries
2023-09-21 16:33:34 +01:00
Sarita Iyer
1899a6048d
fix table
2023-09-21 11:25:52 -04:00
Sarita Iyer
9b2b40004c
remove import changes
2023-09-21 10:57:33 -04:00
Sarita Iyer
4d9d748d51
fix underlines
2023-09-21 10:08:41 -04:00
Chris Smowton
14998606b7
Add test for the case of a module definition in a file not named module-info.java in a buildless extraction
2023-09-21 14:40:42 +01:00
Tom Hvitved
f07d02be96
Regenerate stubs
2023-09-21 15:35:50 +02:00
Tom Hvitved
4805e2a47b
Address more review comments
2023-09-21 15:35:50 +02:00
Alex Ford
4031623fda
Ruby: delete identical-files refs to deleted files
2023-09-21 14:22:34 +01:00
Alex Ford
840b1e0a73
Ruby: delete DataFlowImplForHttpClientLibraries
2023-09-21 14:11:46 +01:00
Alex Ford
a64d37211d
Ruby: use new dataflow api in Typhoeus.qll
2023-09-21 14:11:09 +01:00
Alex Ford
699f752ded
Ruby: use new dataflow api in RestClient.qll
2023-09-21 14:09:41 +01:00
Arthur Baars
722ee165d7
Java: standalone: add basic integration tests
2023-09-21 15:09:40 +02:00
Alex Ford
25203d98c3
Ruby: use new dataflow api in OpenURI.qll
2023-09-21 14:08:22 +01:00
Alex Ford
09782296df
Ruby: use new dataflow api in NetHttp.qll
2023-09-21 14:06:40 +01:00
Anders Schack-Mulligen
9f905497a5
Java: Add support for additional read and store steps and additional nodes.
2023-09-21 15:05:30 +02:00
Alex Ford
fc7e753035
Ruby: use new dataflow api in Httparty.qll
2023-09-21 14:04:46 +01:00
Paolo Tranquilli
e9e58d97be
Merge pull request #14280 from github/revert-14011-revert-13991-redsun82/swift-use-concepts
...
Revert "Revert "Swift: use C++20 constraints and concepts to simplify code""
2023-09-21 15:04:30 +02:00
Alex Ford
92941a45f9
Ruby: use new dataflow api in HttpClient.qll
2023-09-21 14:03:09 +01:00
Tom Hvitved
c2306e6713
Ruby: Collapse DIL stages
2023-09-21 14:33:04 +02:00
Geoffrey White
05309810b8
Merge pull request #14266 from geoffw0/quickfix
...
Swift: Improve taint models for NSString
2023-09-21 13:09:01 +01:00
Sarita Iyer
f04a1a534a
one more fix
2023-09-21 08:08:34 -04:00
Alex Ford
1ffcf4b9c4
Ruby: use new dataflow api in Faraday.qll
2023-09-21 13:07:06 +01:00
Alex Ford
1dbba19238
Ruby: use new dataflow api in Excon.qll
2023-09-21 13:00:17 +01:00
Sarita Iyer
36950d9d5c
additional changes
2023-09-21 07:50:12 -04:00
Alex Ford
489f598551
Ruby: delete DataFlowImplForPathname
2023-09-21 12:50:12 +01:00
Anders Schack-Mulligen
7e04ac55b7
Merge pull request #14268 from aschackmull/java/xmlparsers-typetrack
...
Java/Dataflow: Add new light-weight data flow api and use it in XmlParsers
2023-09-21 13:33:21 +02:00
Anders Schack-Mulligen
13f7daf71e
Merge pull request #13982 from aschackmull/dataflow/typeflow-calledge-pruning
...
Dataflow: Add type-based call-edge pruning.
2023-09-21 13:33:08 +02:00
Tom Hvitved
04c4e739ac
Address review comments
2023-09-21 13:33:02 +02:00
Alex Ford
4cb91e022f
Ruby: deprecate some flow states
2023-09-21 12:24:15 +01:00
Alex Ford
9d421ffa8d
Ruby: configsig rb/improper-ldap-auth
2023-09-21 12:24:15 +01:00
Tom Hvitved
2343e5ecd8
C#: Regenerate NHibernate stubs
2023-09-21 12:56:11 +02:00
Tom Hvitved
e944b90eef
C#: Regenerate Microsoft.AspNetCore.App stubs
2023-09-21 12:56:05 +02:00
Tom Hvitved
c547adc9d4
C#: Regenerate Microsoft.NetCore.App stubs
2023-09-21 12:56:04 +02:00
Tom Hvitved
58f45ea198
C#: Regenerate Newtonsoft.Json stubs
2023-09-21 12:56:04 +02:00
Anders Schack-Mulligen
3dadfa2243
Dataflow: review fixes
2023-09-21 11:52:41 +02:00
Tom Hvitved
8b2c233b61
C#: Use new stub generator in make_stubs_nuget.py
2023-09-21 11:33:25 +02:00
Tom Hvitved
e021fb46c8
C#: Roslyn based stub generation
2023-09-21 11:33:25 +02:00
Tom Hvitved
6021d00f7e
C#: Move some methods into newly created Semmle.Extraction.CSharp.Util project
2023-09-21 11:33:25 +02:00
Tom Hvitved
2429a5383d
C#: Move NestPaths to Semmle.Util
2023-09-21 11:33:25 +02:00
Mathias Vorreiter Pedersen
3d8231be1b
Merge pull request #14269 from MathiasVP/add-getParameter-to-parameter-node
2023-09-21 09:20:57 +01:00
Paolo Tranquilli
60b7d79fba
Revert "Revert "Swift: use C++20 constraints and concepts to simplify code""
2023-09-21 10:17:22 +02:00
Tamás Vajk
40bf5c17fb
Merge pull request #14273 from tamasvajk/standalone/remove-runtime-nuget-packages
...
C#: Remove platform-specific runtime nuget packages from the reference list in Standalone
2023-09-21 09:50:10 +02:00
Erik Krogh Kristensen
0783d7b271
Merge pull request #14278 from github/dependabot/cargo/ql/rayon-1.8.0
...
Bump rayon from 1.7.0 to 1.8.0 in /ql
2023-09-21 08:30:41 +02:00
Tamás Vajk
011391bd27
Merge pull request #14243 from tamasvajk/parallelize-restore
...
C#: Parallelize restore logic of missing packages
2023-09-21 08:04:27 +02:00
dependabot[bot]
d0554a05f9
Bump rayon from 1.7.0 to 1.8.0 in /ql
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.7.0 to 1.8.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.7.0...rayon-core-v1.8.0 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 03:10:09 +00:00
Sarita Iyer
292a9481e6
Pending changes exported from your codespace
2023-09-20 22:02:14 +00:00
Alex Eyers-Taylor
d0849311a6
CPP: Fix use after free FPs by elimnatiing freeing nodes rather than freeing expressions.
2023-09-20 18:47:57 +01:00
Alex Eyers-Taylor
9de6230bbf
CPP: Add use after free false positive example.
2023-09-20 18:34:47 +01:00
Geoffrey White
fef5a49fcb
Swift: Remove now duplicate extension logic.
2023-09-20 15:36:15 +01:00
Rasmus Lerchedahl Petersen
12dab88ec7
Python: rename concept
...
`NoSqlQuery` -> `NoSqlExecution`
2023-09-20 15:49:35 +02:00
Rasmus Lerchedahl Petersen
4ec8b3f02f
Python: Model map_reduce
2023-09-20 15:44:12 +02:00
Tamas Vajk
d29585c8b7
C#: Remove platform-specific runtime nuget packages from the reference list in Standalone
2023-09-20 15:24:01 +02:00
Rasmus Lerchedahl Petersen
7c085ecc61
Python: Add test for map_reduce
...
Also log requirement for old versions of `pymongo`
2023-09-20 15:23:18 +02:00
Anders Schack-Mulligen
d285afba08
Typetracking: minor perf fix.
2023-09-20 14:52:49 +02:00
Michael Nebel
0b84dee65e
C#: Minor improvements to the ExternalApi implementation.
2023-09-20 14:34:27 +02:00
Koen Vlaswinkel
9e2984770f
Java: Fix identification of supported endpoints in framework mode
2023-09-20 14:25:06 +02:00
Koen Vlaswinkel
73ebd21c33
Java: Refactor most of the logic out of the model editor query files
2023-09-20 14:13:28 +02:00
Koen Vlaswinkel
509b7fe0f8
Java: Add tests for supported framework methods
2023-09-20 14:11:00 +02:00
Koen Vlaswinkel
6adbc406a7
Java: Add tests for private methods
2023-09-20 14:05:28 +02:00
Koen Vlaswinkel
8e55189b84
Java: Add tests for generic interfaces/classes/methods
2023-09-20 14:02:34 +02:00
Koen Vlaswinkel
6e78aac6cc
Java: Rename CallableMethod to Endpoint
2023-09-20 13:57:27 +02:00
Koen Vlaswinkel
fee9640077
Java: Update query id/tags and documentation
2023-09-20 13:54:35 +02:00
Koen Vlaswinkel
fe7ce0ae0b
Java: Rename queries from fetch methods to endpoints
2023-09-20 13:52:49 +02:00
Koen Vlaswinkel
082a45400d
Java: Rename AutomodelVsCode to ModelEditor
2023-09-20 13:51:05 +02:00
Tom Hvitved
455cde2f64
Merge pull request #14267 from hvitved/ruby/fix-join
...
Ruby: Fix bad join
2023-09-20 13:49:51 +02:00
Michael Nebel
13dd9a6c37
C#: Address review comments.
2023-09-20 13:43:38 +02:00
Michael Nebel
50a9219a3b
C#: Re-factor most of the logic out of the model editor query files.
2023-09-20 13:08:01 +02:00
Michael Nebel
45432f211c
C#: Identify whether callables in the source code are supported in terms of MaD.
2023-09-20 13:01:24 +02:00
github-actions[bot]
3acf5244b0
Post-release preparation for codeql-cli-2.14.6
2023-09-20 10:25:10 +00:00
Chris Smowton
07dbad509c
Merge pull request #14265 from phillmv/patch-1
...
s/Replace/ReplaceAll/ in LogInjectionGood.go
2023-09-20 11:06:15 +01:00
Chris Smowton
a8afa05b1d
Correct ReplaceAll params
...
ReplaceAll doesn't take a count argument
2023-09-20 10:00:53 +01:00
Mathias Vorreiter Pedersen
22d66b6d81
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
2023-09-20 09:56:10 +01:00
Mathias Vorreiter Pedersen
fb1ce2ab70
C++: Lift 'getParameter' to 'ParameterNode'.
2023-09-20 09:51:35 +01:00
Rasmus Wriedt Larsen
8e864ab84a
Merge pull request #14262 from RasmusWL/dataflow-labeler
...
Misc: Update auto labeler for shared dataflow pack
2023-09-20 10:26:44 +02:00
Anders Schack-Mulligen
5c40d553b4
Java: Switch XmlParsers lib to lightweight data flow.
2023-09-20 10:21:53 +02:00
Anders Schack-Mulligen
d7e965f863
Dataflow: Add lightweight api based on TypeTracking.
2023-09-20 10:21:21 +02:00
Anders Schack-Mulligen
d7bd8c7ffd
Shared/TypeTracking: Add support for flow from non-LocalSourceNode source and bugfix in smallstep.
2023-09-20 10:19:33 +02:00
Tom Hvitved
1442bddf36
Ruby: Fix bad join
...
Before
```
Evaluated relational algebra for predicate DataFlowPublic#e1781e31::BarrierGuard#PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#::getAMaybeGuardedCapturedDef#0#f@3c903abq with tuple counts:
280924 ~0% {2} r1 = SCAN Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::definesAt#3#dispred#ffff OUTPUT In.2, In.0
280924 ~0% {2} r2 = JOIN r1 WITH BasicBlocks#d5fe3e99::BasicBlock::getScope#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
103843 ~1% {2} r3 = JOIN r2 WITH SSA#304893e3::Ssa::CapturedEntryDefinition#f ON FIRST 1 OUTPUT Lhs.0, Lhs.1
103843 ~5% {3} r4 = JOIN r3 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
19665045 ~0% {3} r5 = JOIN r4 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1
19497860 ~0% {3} r6 = JOIN r5 WITH Call#841c84e8::MethodCall::getBlock#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
19496808 ~0% {3} r7 = JOIN r6 WITH CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
19496808 ~0% {3} r8 = JOIN r7 WITH CfgNodes#ace8e412::ExprNodes::CallCfgNode#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2
19496808 ~0% {3} r9 = JOIN r8 WITH ControlFlowGraph#46cebcbd::CfgNode::getBasicBlock#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
19496808 ~3% {4} r10 = SCAN r9 OUTPUT In.0, true, In.1, In.2
49434 ~7% {3} r11 = JOIN r10 WITH DataFlowPublic#e1781e31::guardControlsBlock#3#fff_120#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2, Lhs.3
117 ~4% {3} r12 = JOIN r11 WITH PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#3#cpe#12#ff ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1
0 ~0% {1} r13 = JOIN r12 WITH SsaImpl#ff97b16a::Cached::getARead#1#ff ON FIRST 2 OUTPUT Lhs.2
return r13
```
After
```
Evaluated relational algebra for predicate DataFlowPublic#e1781e31::BarrierGuard#PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#::getAMaybeGuardedCapturedDef#0#f@137a23jm with tuple counts:
280924 ~0% {2} r1 = SCAN Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::definesAt#3#dispred#ffff OUTPUT In.2, In.0
280924 ~0% {2} r2 = JOIN r1 WITH BasicBlocks#d5fe3e99::BasicBlock::getScope#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
103843 ~1% {2} r3 = JOIN r2 WITH SSA#304893e3::Ssa::CapturedEntryDefinition#f ON FIRST 1 OUTPUT Lhs.1, Lhs.0
102517 ~1% {2} r4 = JOIN r3 WITH Call#841c84e8::MethodCall::getBlock#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
102378 ~2% {2} r5 = JOIN r4 WITH CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
102378 ~2% {2} r6 = JOIN r5 WITH CfgNodes#ace8e412::ExprNodes::CallCfgNode#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1
102378 ~0% {2} r7 = JOIN r6 WITH ControlFlowGraph#46cebcbd::CfgNode::getBasicBlock#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
102378 ~0% {3} r8 = SCAN r7 OUTPUT In.0, true, In.1
7417 ~5% {2} r9 = JOIN r8 WITH DataFlowPublic#e1781e31::guardControlsBlock#3#fff_120#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2
22 ~0% {2} r10 = JOIN r9 WITH PolynomialReDoSCustomizations#32063fa3::PolynomialReDoS::lengthGuard#3#cpe#12#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
12 ~0% {2} r11 = JOIN r10 WITH SsaImpl#ff97b16a::Cached::getARead#1#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
12 ~0% {2} r12 = JOIN r11 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
0 ~0% {1} r13 = JOIN r12 WITH Ssa#da392372::Make#SsaImpl#ff97b16a::SsaInput#::Definition::getSourceVariable#0#dispred#ff ON FIRST 2 OUTPUT Lhs.0
return r13
```
2023-09-20 09:51:15 +02:00
Joe Farebrother
4497e22195
Add an additional example and additional test cases for authorize attribute cases
2023-09-20 04:13:34 +01:00
Joe Farebrother
475fe3a2a5
Attempt to improve performance in checksUser
2023-09-20 03:18:20 +01:00
Geoffrey White
af315c5072
Swift: Change note.
2023-09-19 23:02:14 +01:00
Geoffrey White
1b74b49bb3
Swift: Improve NSString models for varargs functions.
2023-09-19 23:02:14 +01:00
Rasmus Lerchedahl Petersen
30c37ca8cb
Python: model §accumulator
...
also slightly rearrange the modelling
2023-09-19 22:21:14 +02:00
Phill MV
11218f79c6
s/Replace/ReplaceAll/ in LogInjectionGood.go
2023-09-19 14:43:54 -04:00
Geoffrey White
f8c5a9a264
Swift: Test localizedStringWithFormat a bit better.
2023-09-19 18:43:54 +01:00
Geoffrey White
8354439d8d
Merge pull request #14263 from geoffw0/typos
...
CPP / Swift: Typos
2023-09-19 18:02:33 +01:00
Geoffrey White
a3579f6e38
Merge branch 'main' into typos
2023-09-19 16:44:13 +01:00
Geoffrey White
ae159924a3
Swift: Add numeric barrier to the regular expression injection query as well.
2023-09-19 16:21:43 +01:00
Alexander Eyers-Taylor
2501a701ad
Merge pull request #14256 from github/release-prep/2.14.6
...
Release preparation for version 2.14.6
2023-09-19 16:18:23 +01:00
Rasmus Lerchedahl Petersen
5611bda7ee
Python: add test for $accumulator
2023-09-19 17:04:28 +02:00
Owen Mansel-Chan
650d8069f6
Merge pull request #14131 from omahs/patch-1
...
Docs: fix minor typos
2023-09-19 15:53:07 +01:00
Geoffrey White
935b7600ca
Swift: Fix typos.
2023-09-19 15:19:00 +01:00
Geoffrey White
8a0e202b63
CPP: Fix typos.
2023-09-19 15:18:03 +01:00
Rasmus Wriedt Larsen
cc30c062b8
Misc: Update auto labeler for shared dataflow pack
2023-09-19 16:08:43 +02:00
Geoffrey White
e011951e1f
Swift: Added change note for the new barriers.
2023-09-19 14:59:27 +01:00
Koen Vlaswinkel
3ebb9e16be
C#: Update query id/tags and documentation
2023-09-19 15:54:15 +02:00
Koen Vlaswinkel
044fb9f320
C#: Rename queries from fetch methods to endpoints
2023-09-19 15:51:12 +02:00
Mathias Vorreiter Pedersen
2ae342c5c1
Merge pull request #14258 from MathiasVP/explicit-size_t
...
C++: Use `size_t` explicitly in CWE-193 tests
2023-09-19 14:50:54 +01:00
Koen Vlaswinkel
eace7a4bbf
C#: Add tests for supported framework methods
2023-09-19 15:49:35 +02:00
Geoffrey White
32a2930c2f
Swift: Accept bad tag filter test fixes.
2023-09-19 14:47:56 +01:00
Tom Hvitved
7c2df87ea2
Merge pull request #14247 from hvitved/dataflow/fix-consitency-checks
...
Data flow: Fix two consistency checks
2023-09-19 15:45:21 +02:00
omahs
473f17c0e6
fix typo
2023-09-19 14:39:49 +01:00
omahs
884f41b6f0
fix typo
2023-09-19 14:39:49 +01:00
omahs
278d0fb798
fix typo
2023-09-19 14:39:49 +01:00
omahs
f58dd7303c
fix typo
2023-09-19 14:39:49 +01:00
Geoffrey White
5975546098
Swift: Add numeric barrier for predicate injection query as well.
2023-09-19 14:33:24 +01:00
Geoffrey White
2983295ba3
Swift: Add numeric barrier for uncontrolled format string query.
2023-09-19 14:33:23 +01:00
Geoffrey White
f98de85e36
Swift: Add numeric barrier for command injection query.
2023-09-19 14:33:23 +01:00
Geoffrey White
903b0f5bab
Swift: Add numeric barrier for the SQL Injinjection query.
2023-09-19 14:33:23 +01:00
Geoffrey White
ee9a5c751c
Swift: Add numeric barrier for to the JS eval query.
2023-09-19 14:33:22 +01:00
Tamas Vajk
c78cd73edf
Refactor process starting and stdout and stderr reading
2023-09-19 15:20:09 +02:00
Mathias Vorreiter Pedersen
7ef5971337
C++: Use 'size_t' explicitly in test.
2023-09-19 13:58:08 +01:00
Tamas Vajk
edc93dfeb7
Add managed thread ID to extractor log messages
2023-09-19 14:56:27 +02:00
Koen Vlaswinkel
14a2b7f79f
C#: Add tests for private methods and accessors
2023-09-19 14:55:57 +02:00
Mathias Vorreiter Pedersen
9b35202d21
Merge pull request #14249 from MathiasVP/fix-malloc-decl-in-test
...
C++: Fix the declaration of `malloc` in test
2023-09-19 13:53:23 +01:00
Koen Vlaswinkel
dd7904969f
C#: Remove unnecessary isUnboundDeclaration predicates
2023-09-19 14:51:03 +02:00
Tamas Vajk
dfd7f1e78b
C#: Parallelize restore logic of missing packages
2023-09-19 14:43:23 +02:00
Geoffrey White
158008ac4f
Swift: New results in tests.
2023-09-19 13:08:08 +01:00
github-actions[bot]
0a3670727f
Release preparation for version 2.14.6
2023-09-19 11:40:30 +00:00
Michael Nebel
fc3bc95147
Merge pull request #14218 from michaelnebel/csharp/dotnetdotnet
...
Lua: Tracing of `dotnet dotnet`.
2023-09-19 13:21:34 +02:00
Michael Nebel
43cdbf2f86
Merge pull request #14142 from michaelnebel/csharp/dotnetunittests
...
C#: Re-factor Dotnet.cs to enable unit testing.
2023-09-19 13:19:44 +02:00
Owen Mansel-Chan
45484c78e8
Merge pull request #14057 from data-douser/data-douser-patch-1
...
Update codeql-library-for-go.rst
2023-09-19 11:34:44 +01:00
Geoffrey White
48d1b667cf
Swift: Autoformat.
2023-09-19 11:22:12 +01:00
Geoffrey White
2d05b85bb4
Swift: Fix uses of legacy CArrayElement.
2023-09-19 11:20:05 +01:00
Mathias Vorreiter Pedersen
8906a37989
Merge pull request #14250 from MathiasVP/reduce-dataflow-duplication-for-allocations
...
C++: Reduce dataflow duplication for allocations
2023-09-19 11:18:20 +01:00
Tony Torralba
1e95a5a38a
Java: Consider AssignOps in ArithExpr
2023-09-19 12:15:59 +02:00
Anders Schack-Mulligen
42054539f4
Dataflow: Minor review fixes.
2023-09-19 12:12:15 +02:00
Geoffrey White
311daa2539
Swift: Accept fixed test case having merged in main.
2023-09-19 10:39:59 +01:00
Alexander Eyers-Taylor
1f4a5301cd
Merge pull request #14242 from alexet/simplify-ir-guards
...
CPP: Simplify some code in IRGuards.
2023-09-19 10:35:09 +01:00
Geoffrey White
037f246cda
Merge branch 'main' into arraysteptest
2023-09-19 10:33:32 +01:00
yoff
811a7d0671
Merge pull request #14248 from RasmusWL/debug-queries
...
Python: Add debug queries
2023-09-19 11:27:27 +02:00
Michael Nebel
a3da11a962
C#: Rename DotNetCliWrapper to DotNet.
2023-09-19 11:12:36 +02:00
Geoffrey White
34240f7328
Swift: Accept generated changes.
2023-09-19 10:08:08 +01:00
Michael Nebel
6c0afab0aa
C#: Rename DotnetVersion to DotNetVersion.
2023-09-19 11:03:26 +02:00
Michael Nebel
31327f4f73
C#: Only access the DotNetCliWrapper using the IDotNet interface.
2023-09-19 11:03:26 +02:00
Michael Nebel
1fd85f4fe3
C#: Rename DotNet to DotNetCliWrapper.
2023-09-19 11:03:26 +02:00
Michael Nebel
82e56e6dae
C#: Rename DotnetCommand to DotNetCliInvoker.
2023-09-19 11:03:26 +02:00
Michael Nebel
05c5f3e050
C#: Make ReadOutput more robust and re-factor RunCommand methods.
2023-09-19 11:03:26 +02:00
Michael Nebel
d60055b148
C#: Add unit tests for DotNet.
2023-09-19 11:03:25 +02:00
Michael Nebel
f00b6e27a7
C#: Re-factor Dotnet to enable unit testing.
2023-09-19 11:03:25 +02:00
Tony Torralba
c45ca7212a
Merge pull request #14126 from intrigus-lgtm/patch-9
...
Java: Fix alert message
2023-09-19 09:52:42 +02:00
Tony Torralba
9340347799
Merge pull request #14253 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-19 09:52:04 +02:00
github-actions[bot]
562dbf1b8d
Add changed framework coverage reports
2023-09-19 00:15:19 +00:00
Geoffrey White
bcf990b362
Swift: Add change note.
2023-09-18 22:17:43 +01:00
Geoffrey White
df29f3974b
Swift: Update uses of getABaseType() and similar to do things correctly now.
2023-09-18 20:50:47 +01:00
Geoffrey White
37edcad1b0
Swift: Go through protocols added in extensions also.
2023-09-18 20:03:08 +01:00
Geoffrey White
f604b28ab5
Swift: Resolve type aliases (1) in base class declarations, not before them and (2) consistently. This is not behaviour preserving.
2023-09-18 20:01:46 +01:00
Geoffrey White
c78f5ce4cc
Swift: Move NominalType.getABaseType() implementation out from NominalType (inconsistent, difficult to find) to Type.
2023-09-18 20:00:22 +01:00
Geoffrey White
b048268042
Swift: Add some QLDoc.
2023-09-18 20:00:19 +01:00
Geoffrey White
4f39cb65c2
ed test
2023-09-18 19:59:59 +01:00
Rasmus Wriedt Larsen
fd8d186b34
Python: Add debug queries
...
For manually debugging things, it's nice to be able to share debug
queries.
I had the DebugStats.ql lying around from way back, and thought it was
kinda cute. I've extended it with a bunch of things, not too sure if
they're all important, but I think it's kinda fun to see the
distribution of things 😊
2023-09-18 20:46:52 +02:00
Geoffrey White
ef8a997c99
Swift: Extend the test.
2023-09-18 19:37:20 +01:00
Felicity Chapman
31b0c423a4
Merge pull request #14207 from github/felicitymay-11595-VS-code-docs
...
Updates to the Java and VS Code docs
2023-09-18 18:35:58 +01:00
Mathias Vorreiter Pedersen
fda52a568d
C++: Accept test changes.
2023-09-18 17:55:25 +01:00
Mathias Vorreiter Pedersen
d2e66a1186
C++: Ignore addresses of 'InitializeDynamicAllocationInstruction' in 'unique' when converting between instructions and expression in dataflow.
2023-09-18 17:55:19 +01:00
Felicity Chapman
7ed4f5b292
Update docs/codeql/codeql-language-guides/customizing-library-models-for-java-and-kotlin.rst
2023-09-18 17:31:22 +01:00
Felicity Chapman
7372562222
Fix heading indicator syntax length
2023-09-18 17:31:22 +01:00
Felicity Chapman
1228a83e77
Rename article file
2023-09-18 17:31:22 +01:00
Felicity Chapman
c2fa37e285
Apply suggestions from code review
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2023-09-18 17:31:22 +01:00
Felicity Chapman
839f2a6be0
Remove unneeded link
2023-09-18 17:31:22 +01:00
Felicity Chapman
da29336a8c
Revert article name
2023-09-18 17:31:22 +01:00
Felicity Chapman
12a86f52c3
Update docs/codeql/codeql-language-guides/data-extensions-to-model-java-dependencies.rst
2023-09-18 17:31:22 +01:00
Felicity Chapman
ac26330476
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-09-18 17:31:22 +01:00
Felicity Chapman
d5c79d4eee
Add missing blank line
2023-09-18 17:31:22 +01:00
Felicity Chapman
c91029395d
Add missing language code
2023-09-18 17:31:22 +01:00
Felicity Chapman
d10903a09c
Apply suggestions from code review
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-09-18 17:31:22 +01:00
Felicity Chapman
854c126c37
Update docs/codeql/codeql-language-guides/extensible-predicates.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-09-18 17:31:22 +01:00
Felicity Chapman
6b90ce0d80
Updates for review comments
2023-09-18 17:31:22 +01:00
Felicity Chapman
a4f3e5e0bb
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
Co-authored-by: Robert <robertbrignull@github.com >
2023-09-18 17:31:21 +01:00
Felicity Chapman
93eff2a66a
A few more updates
2023-09-18 17:31:21 +01:00
Felicity Chapman
488b824ca6
Add first draft of CodeQL model editor
2023-09-18 17:31:21 +01:00
Felicity Chapman
b42ab24bc8
Try to fix sphinx errors
2023-09-18 17:31:21 +01:00
Felicity Chapman
34e5c5c1f7
Start edits on using extension
2023-09-18 17:31:21 +01:00
Felicity Chapman
7be0b2e9eb
Fix Sphinx bugs
2023-09-18 17:31:21 +01:00
Felicity Chapman
8c8bbde1f7
Fix a few more typos
2023-09-18 17:31:21 +01:00
Felicity Chapman
e865574412
Add bare content from Google doc
2023-09-18 17:31:21 +01:00
Felicity Chapman
075cbfd7d2
Split information extensions and predicates into 2 articles
2023-09-18 17:31:21 +01:00
Felicity Chapman
67ff5ae10e
Add changes from Michael
2023-09-18 17:31:21 +01:00
Felicity Chapman
fde045902a
Rename again
2023-09-18 17:31:21 +01:00
Felicity Chapman
73ecb119d6
Update name of renamed article and add to index
2023-09-18 17:31:21 +01:00
Felicity Chapman
8218397a83
Rename private beta article
2023-09-18 17:31:21 +01:00
Felicity Chapman
4779c23da1
Draft content for VS Code extension
2023-09-18 17:31:20 +01:00
Felicity Chapman
75955237a9
Make general updates, add framework for new article
2023-09-18 17:31:20 +01:00
Mathias Vorreiter Pedersen
8a2d4852c6
C++: Add another testcase.
2023-09-18 16:48:03 +01:00
Rasmus Wriedt Larsen
3df36ec89c
Merge pull request #14245 from RasmusWL/minor-modeling-fixup
...
Python: Modernize modeling of `BaseHTTPRequestHandler`
2023-09-18 17:43:06 +02:00
Mathias Vorreiter Pedersen
bc0b2e5318
C++: Fix the return type and parameter type of 'malloc' in test.
2023-09-18 16:40:46 +01:00
Mathias Vorreiter Pedersen
6a2a029c4c
Merge pull request #14244 from MathiasVP/remove-unnecessary-size_t-cast
...
C++: Remove unnecessary `size_t` cast from allocations
2023-09-18 16:18:24 +01:00
Tom Hvitved
daad69bb30
Data flow: Fix two consistency checks
2023-09-18 16:36:11 +02:00
Alex Ford
e45edca103
Ruby: remove unused import
2023-09-18 14:55:11 +01:00
Koen Vlaswinkel
489561f4f1
C#: Fix formatting of ExternalApi
2023-09-18 15:49:59 +02:00
Koen Vlaswinkel
948e36a4c5
C#: Update comment for Endpoint
2023-09-18 15:47:50 +02:00
Koen Vlaswinkel
81a8eeed46
C#: Only include unbound declarations in endpoints
2023-09-18 15:45:30 +02:00
Koen Vlaswinkel
93972a49d7
C#: Rename AutomodelVsCode to ModelEditor
2023-09-18 15:34:24 +02:00
Koen Vlaswinkel
4693f72d5f
C#: Rename CallableMethod to Endpoint
2023-09-18 15:30:38 +02:00
Koen Vlaswinkel
f468b2a3d1
C#: Add tests for generic interfaces/classes/methods
2023-09-18 14:58:20 +02:00
Rasmus Lerchedahl Petersen
4614b1ae9c
Python: add change note
2023-09-18 14:34:03 +02:00
Anders Starcke Henriksen
a5db939234
Release automodel queries version 0.0.3
2023-09-18 14:29:09 +02:00
Erik Krogh Kristensen
998237e8af
Merge pull request #13488 from erik-krogh/finalAlias
...
Shared: use final class aliases to use `extends` instead of `instanceof` in the shared libraries
2023-09-18 14:26:22 +02:00
yoff
4a37c2fc3a
Merge pull request #13778 from geoffw0/javaparsemode
...
Java: Understand multiple parse mode flags specified in a regular expression string
2023-09-18 14:22:59 +02:00
Paolo Tranquilli
dc299fc9fa
Merge pull request #14208 from github/redsun82/swift-unordered-base-types
...
Swift: rename `base_types` in `TypeDecl` to `inherited_types`
2023-09-18 14:21:20 +02:00
Rasmus Wriedt Larsen
ad1743ecde
Python: Modernize modeling of BaseHTTPRequestHandler
2023-09-18 14:13:27 +02:00
Koen Vlaswinkel
8472b84cad
C#: Remove unnecessary isEffectivelyPublic predicate
2023-09-18 13:49:16 +02:00
Koen Vlaswinkel
ff2cef3d6b
C#: Switch from Declaration to Callable
2023-09-18 13:44:32 +02:00
Koen Vlaswinkel
e524e358f0
C#: Check accessor declaration for publicness
2023-09-18 13:40:23 +02:00
Koen Vlaswinkel
0cc74a2691
C#: Extract TestLibrary to separate module
2023-09-18 13:40:18 +02:00
Tamás Vajk
c4d7302f9e
Merge pull request #14228 from tamasvajk/standalone-implicit-usings
...
C#: Generate source file with implicit usings in Standalone
2023-09-18 13:26:09 +02:00
Tony Torralba
bd31e1004a
Merge pull request #14063 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-09-18 13:23:32 +02:00
Geoffrey White
4323bee243
Merge pull request #13980 from geoffw0/logfix
...
Swift: Improvements related to the swift/cleartext-logging query.
2023-09-18 12:18:40 +01:00
Anders Schack-Mulligen
b13d026434
Dataflow: Review fixes.
2023-09-18 13:15:26 +02:00
Tamas Vajk
fa814a5276
Add test cases for implicit using parsing
2023-09-18 12:47:50 +02:00
Mathias Vorreiter Pedersen
0e9f5f6b8e
C++: Accept test changes.
2023-09-18 11:46:19 +01:00
Mathias Vorreiter Pedersen
38b100531b
C++: Only add conversion when necessary.
2023-09-18 11:46:11 +01:00
Mathias Vorreiter Pedersen
53561b7883
C++: Add tests for sized allocation without a need for a synthesized conversion.
2023-09-18 11:45:18 +01:00
intrigus-lgtm
874f91c7ae
Java: Further alert message improvement
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-09-18 12:25:31 +02:00
Alex Eyers-Taylor
c7ccfac938
CPP: Simplify some code in IRGuards.
2023-09-18 10:51:48 +01:00
Mathias Vorreiter Pedersen
734a91db9c
Merge pull request #14237 from MathiasVP/range-analysis-perf
...
C++: Fix order of non-linear join in range analysis
2023-09-18 10:38:19 +01:00
Geoffrey White
86b0fae77e
Swift: Update uses of deprecated ArrayContent.
2023-09-18 10:28:45 +01:00
Geoffrey White
d15420c42c
Swift: Consequences of change in main on the test internals.
2023-09-18 10:07:23 +01:00
Geoffrey White
c3ea0cea91
Merge branch 'main' into logfix
2023-09-18 10:00:16 +01:00
Tony Torralba
b08e410f45
Merge pull request #14029 from atorralba/atorralba/apache-cxf-models
...
Java: Add new Apache CXF models
2023-09-18 10:54:05 +02:00
erik-krogh
9c0682848e
use final class aliases to use extends instead of instanceof in the shared libraries
2023-09-18 10:25:49 +02:00
Erik Krogh Kristensen
a3e2e420f0
Merge pull request #14241 from github/dependabot/cargo/ql/chrono-0.4.31
...
Bump chrono from 0.4.30 to 0.4.31 in /ql
2023-09-18 08:41:25 +02:00
dependabot[bot]
f3a746c324
Bump chrono from 0.4.30 to 0.4.31 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.30 to 0.4.31.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.30...v0.4.31 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-18 03:10:03 +00:00
github-actions[bot]
0ae4b628a3
Add changed framework coverage reports
2023-09-18 00:15:17 +00:00
Mathias Vorreiter Pedersen
46b15fa6f2
C++: Fix join of non-linear joins.
2023-09-16 01:33:16 +01:00
Robert Marsh
2b54ad58b0
Swift: change note for nil-coalesing operator
2023-09-15 20:44:05 +00:00
Michael B. Gale
8dd7602dff
Merge pull request #14234 from github/mbg/go/1.21-update-version-regex
...
Go: Update `versionRe` to include patch version
2023-09-15 17:23:51 +01:00
Michael B. Gale
d7278be064
Go: Update versionRe to include patch version
...
This is optional
2023-09-15 16:50:24 +01:00
Joe Farebrother
868836e747
Update severity
2023-09-15 16:40:12 +01:00
Joe Farebrother
eb2f5898bd
Fix typos
2023-09-15 16:39:51 +01:00
Joe Farebrother
68ad5b7c00
Restrict logic for checking for id parameters on index expressions for performance
2023-09-15 16:35:29 +01:00
Mathias Vorreiter Pedersen
cdf5872eb3
Merge pull request #14217 from alexet/is-trivial-built-in
...
CPP:Make __is_trivial a builtin operation.
2023-09-15 16:01:25 +01:00
Chris Smowton
f160c6c646
Merge pull request #14195 from Kwstubbs/SQL_int_sanitizer
...
Add Integer/Boolean Sanitizer to SQL injection Query
2023-09-15 14:13:35 +01:00
Chris Smowton
aaa230a791
Merge branch 'main' into SQL_int_sanitizer
2023-09-15 13:44:58 +01:00
Chris Smowton
062024b3d6
Merge pull request #14232 from smowton/smowton/fix/autoformat
...
Fix formatting mistake
2023-09-15 13:00:40 +01:00
Chris Smowton
a63bb1bbed
Tidy
2023-09-15 12:58:44 +01:00
Chris Smowton
e62fcf9a45
Fix formatting mistake
2023-09-15 12:37:34 +01:00
Tamas Vajk
c34fef1eb6
Adjust integration tests after path changes and generating file with global usings
2023-09-15 13:35:25 +02:00
Chris Smowton
24dc09efad
Merge pull request #14206 from smowton/smowton/feature/add-java-miscompilation-tests
...
Java: add tests for programs that don't compile
2023-09-15 11:14:04 +01:00
Joe Farebrother
6d704be7d2
Rewrite checks for index expressions in terms of dataflow
2023-09-15 10:25:27 +01:00
Joe Farebrother
a2dce6be14
Check for authorize attributes in more namespaces and on overridden methods
2023-09-15 10:25:27 +01:00
Joe Farebrother
6a95ed64ff
Add test cases for authorization from attributes
2023-09-15 10:25:27 +01:00
Joe Farebrother
ac45050545
Add checks for authorization attributes
2023-09-15 10:25:27 +01:00
Joe Farebrother
0a27da08d6
Minor changes from review suggestions to shared logic between this and missing access control
...
Use case insensitive regex, factor out page load to improve possible bad joins make needsAuth not a member predicate
2023-09-15 10:25:27 +01:00
Joe Farebrother
a022893f0f
Add additional example to qhelp + additional resource
2023-09-15 10:25:27 +01:00
Joe Farebrother
86abd338e5
Update test options
2023-09-15 10:25:26 +01:00
Joe Farebrother
9f25c71ca6
Apply minor reveiw suggstions
2023-09-15 10:25:26 +01:00
Joe Farebrother
4967fe0b77
Add change note + update query ID
2023-09-15 10:25:26 +01:00
Joe Farebrother
3e6750ba4c
Add documentation
2023-09-15 10:25:26 +01:00
Joe Farebrother
f8b1b38438
Update alert message and make user checks more precise
2023-09-15 10:25:26 +01:00
Joe Farebrother
009a7bfc87
Add MVC tests
2023-09-15 10:25:26 +01:00
Joe Farebrother
20d42dfd7d
Add tests for webforms case
2023-09-15 10:25:26 +01:00
Joe Farebrother
2edd73eb60
Fix typos in filepath + metadata, add severity
2023-09-15 10:25:26 +01:00
Joe Farebrother
251f875304
Fix filenme typo
2023-09-15 10:25:26 +01:00
Joe Farebrother
5d1289672b
Add IDOR query
2023-09-15 10:25:26 +01:00
Joe Farebrother
a510a7b4c0
Add insecure direct object reference definitions and factor out those from missing access control
2023-09-15 10:25:26 +01:00
Mathias Vorreiter Pedersen
6c7833f28c
Merge pull request #14223 from MathiasVP/add-explicit-dereferenced-by-operation-base-case-predicate
...
C++: Add a `directDereferencedByOperation` predicate
2023-09-15 10:19:26 +01:00
Tom Hvitved
14561c414b
Merge pull request #14225 from hvitved/ruby/fix-bad-join
...
Ruby: Fix a bad join
2023-09-15 10:59:24 +02:00
Tamas Vajk
d725bd9169
C#: Generate source file with implicit usings in Standalone
2023-09-15 10:52:57 +02:00
Chris Smowton
c5001a86f6
Fix test expectations
2023-09-14 20:45:54 +01:00
Tom Hvitved
c83a29c27f
Ruby: Fix a bad join
...
Before
```
Evaluated relational algebra for predicate Sinatra#e09174a3::Sinatra::ErbLocalsAccessSummary#fff@22c05bb6 with tuple counts:
212957 ~2195% {1} r1 = JOIN _Constant#54e8b051::ConstantValue::getStringlikeValue#0#dispred#ff_Expr#6fb2af19::Expr::getConstantV__#shared WITH Expr#6fb2af19::Pair::getKey#0#dispred#ff_1#join_rhs ON FIRST 1 OUTPUT Lhs.1
43862468 ~6045% {2} r2 = JOIN r1 WITH Call#841c84e8::MethodCall::getMethodName#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.0
43862468 ~6581% {2} r3 = JOIN r2 WITH AST#a6718388::AstNode::getLocation#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
43844886 ~40661% {2} r4 = JOIN r3 WITH locations_default ON FIRST 1 OUTPUT Rhs.1, Lhs.1
15004 ~8295% {3} r5 = JOIN r4 WITH project#Sinatra#e09174a3::Sinatra::ErbLocalsHashSyntheticGlobal#ffff_201#join_rhs ON FIRST 1 OUTPUT Rhs.2, Lhs.1, Rhs.1
15004 ~8890% {3} r6 = SCAN r5 OUTPUT ("sinatra_erb_locals_access()" ++ In.0 ++ "#" ++ In.1), In.2, In.1
return r6
```
After
```
Evaluated relational algebra for predicate Sinatra#e09174a3::Sinatra::ErbLocalsAccessSummary#fff@f6249cga with tuple counts:
10237 ~0% {3} r1 = JOIN locations_default_10#join_rhs WITH project#Sinatra#e09174a3::Sinatra::ErbLocalsHashSyntheticGlobal#ffff_201#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Rhs.2
4015 ~5% {3} r2 = JOIN r1 WITH AST#a6718388::AstNode::getLocation#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
825 ~96% {3} r3 = JOIN r2 WITH Call#841c84e8::MethodCall::getMethodName#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
940 ~0% {4} r4 = JOIN r3 WITH Constant#54e8b051::ConstantValue::getStringlikeValue#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.0
325402 ~0% {4} r5 = JOIN r4 WITH Expr#6fb2af19::Expr::getConstantValue#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
231819 ~133147% {3} r6 = JOIN r5 WITH Expr#6fb2af19::Pair::getKey#0#dispred#ff_1#join_rhs ON FIRST 1 OUTPUT Lhs.2, Lhs.3, Lhs.1
231819 ~138805% {3} r7 = SCAN r6 OUTPUT ("sinatra_erb_locals_access()" ++ In.0 ++ "#" ++ In.1), In.2, In.1
return r7
```
2023-09-14 21:34:17 +02:00
Ian Lynagh
730480360e
Merge pull request #14221 from igfoo/igfoo/gradle_seq
...
Kotlin: Add more tests to the "gradle sequential" set
2023-09-14 18:39:11 +01:00
Chris Smowton
5f6a40b9e8
Note Kotlin test no longer has CFG dead-ends if ErrorExpr participates in the CFG
2023-09-14 17:42:00 +01:00
Chris Smowton
d9f7180b5c
Add missing diagnostic expectations
2023-09-14 17:42:00 +01:00
Chris Smowton
8f940c311a
Update expectations and add expected diagnostics
2023-09-14 17:42:00 +01:00
Chris Smowton
a1a7640427
Give ErrorExpr default control flow
...
This prevents a CFG dead-end because of one ErrorExpr
2023-09-14 17:42:00 +01:00
Chris Smowton
b1e128b5c1
Pretty-print a ClassInstanceExpr without a bound constructor nicely
2023-09-14 17:42:00 +01:00
Chris Smowton
9670f20bd7
Add test for method reference whose LHS has unknown type
...
This can happen when imports or source classes are missing.
2023-09-14 17:42:00 +01:00
Chris Smowton
6ea7b195db
Add test for a module declaration made in a file named other than module-info.java
...
This triggers a weird corner case in our extractor, which used to throw a null pointer exception.
2023-09-14 17:42:00 +01:00
Chris Smowton
c47ba000d6
Add test exercising the case of a missing type used as an interface
...
This induces the TypeEnter phase to create an ErrorType with a parameter, which in turn used to cause a stack overflow in comparing the TypeWrapper objects involved.
Note the output remains somewhat broken, exposing an <any> type, but at least the overflow is resolved.
2023-09-14 17:42:00 +01:00
Chris Smowton
4b5651bde9
Add test for Java extracting ErrorType
2023-09-14 17:42:00 +01:00
Chris Smowton
c0f8973749
Add test for extracting a Java AST with an error expression
...
Also note that ErrorExpr can occur outside upgrade/downgrade scripts
2023-09-14 17:42:00 +01:00
Chuan-kai Lin
264e57fc59
Merge pull request #14222 from github/mergeback-codeql-cli-2.14.5
...
Custom post-release preparation for codeql-cli-2.14.5
2023-09-14 09:40:11 -07:00
Robert Marsh
ab7cd5254a
Swift: update dataflow test for nil coalescing
2023-09-14 16:28:00 +00:00
Mathias Vorreiter Pedersen
8aeb9b9ae0
Merge pull request #14219 from MathiasVP/fix-phi-flow-2
...
C++: Fix `phi`->`phi` flow
2023-09-14 17:22:51 +01:00
Robert Marsh
9a5fa42dbe
Swift: CFG for nil coalescing operator
2023-09-14 16:16:30 +00:00
Mathias Vorreiter Pedersen
b18de9e641
C++: Add a named base case predicate for 'dereferencedByOperation' that can be used in queries.
2023-09-14 17:12:58 +01:00
Ian Lynagh
e5ac7620e3
Kotlin: Add more tests to the "gradle sequential" set
2023-09-14 15:44:32 +01:00
AlexDenisov
ff7ff6dcfa
Merge pull request #14201 from MathiasVP/add-ast-consistency-query
...
C++: Add AST consistency query
2023-09-14 16:34:20 +02:00
Robert Marsh
55546fe61c
Merge pull request #14205 from rdmarsh2/rdmarsh2/swift/unify-array-collection-content
...
Swift: Unify `ArrayContent` and `CollectionContent`
2023-09-14 10:08:37 -04:00
Tom Hvitved
c0e600c515
Merge pull request #12672 from hvitved/ruby/implicit-array-reads-at-sinks
...
Ruby: Allow for implicit array reads at all sinks during taint tracking
2023-09-14 15:39:37 +02:00
Tom Hvitved
61bfc4ec09
Merge pull request #14204 from hvitved/ruby/simplify-viable-callable
...
Ruby: Simplify `viableSourceCallableNonInit`
2023-09-14 15:36:47 +02:00
Robert Marsh
dd01da4938
Swift: AST and CFG tests for nil coalescing
2023-09-14 13:26:41 +00:00
Ian Lynagh
52d924924b
Kotlin: Extract LighterAST comments as well as PSI comments
2023-09-14 14:24:52 +01:00
Mathias Vorreiter Pedersen
6ce7a56b41
Merge pull request #14190 from github/alexdenisov/await-inconsistencies
...
Swift: fix CFG for identity expressions (await, dot_self, parent)
2023-09-14 14:15:31 +01:00
Robert Marsh
62953cb250
Swift: document "ArrayElement" case in MaD
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-09-14 09:11:35 -04:00
Robert Marsh
6ad78eba05
Swift: ArrayContent aliased to CollectionContent
2023-09-14 13:08:36 +00:00
Mathias Vorreiter Pedersen
b0566af938
C++: Accept test changes.
2023-09-14 14:04:12 +01:00
Mathias Vorreiter Pedersen
36b7b6cffe
C++: Fix phi-phi flow.
2023-09-14 14:02:03 +01:00
Mathias Vorreiter Pedersen
2a55034e55
C++: Add failing test.
2023-09-14 14:01:48 +01:00
Michael Nebel
e577fb68bd
C#: Add integration test for dotnet dotnet.
2023-09-14 14:59:49 +02:00
Michael Nebel
8768b9e3dd
C#: Fix tracer issue with dotnet dotnet.
2023-09-14 14:49:57 +02:00
Erik Krogh Kristensen
7e7852eff6
Merge pull request #13641 from erik-krogh/multi-char
...
JS/RB: write qhelp for `incomplete-multi-character-sanitization`
2023-09-14 14:48:30 +02:00
Alex Eyers-Taylor
d79a2c7674
CPP:Make __is_trivial a builtin operation.
2023-09-14 12:50:36 +01:00
Harry Maclean
4168245fc0
Ruby: Fix doc comments
2023-09-14 10:02:27 +01:00
Harry Maclean
29a8a82e92
Ruby: add more docs for splat flow
2023-09-14 09:26:42 +01:00
Tom Hvitved
97ed5b8afb
Ruby: Improvments to splat flow
...
- Only step through a `SynthSplatParameterElementNode` when there is a splat parameter
at index > 0.
- Model read+stores via `SynthSplatArgumentElementNode` as a single read-store
step in type tracking.
2023-09-14 09:26:42 +01:00
Harry Maclean
bf51cbad88
Ruby: Update test fixture
2023-09-14 09:26:38 +01:00
Tom Hvitved
e11a4b63e9
Ruby: Remove SynthSplatArgParameterNode
2023-09-14 09:26:38 +01:00
Harry Maclean
5a6a52b767
Ruby: Use fewer SynthSplatArgumentElementNodes
...
In cases such as
def f(x, *y); end
f(*[1, 2])
we don't need any `SynthSplatArgumentElementNodes`. We get flow from the
splat argument to a `SynthSplatParameterNode` via `parameterMatch`, then
from element 0 of the synth splat to the positional param `x` via a
read step.
We add a read step from element 1 to `SynthSplatParameterElementNode(1)`.
From there we get flow to element 0 of `*y` via an existing store step.
2023-09-14 09:26:38 +01:00
Harry Maclean
4c1beea465
Ruby: Address review comments
2023-09-14 09:26:33 +01:00
Paolo Tranquilli
168aca0af4
Swift: add release notes
2023-09-14 10:25:16 +02:00
Paolo Tranquilli
fc51f4a80e
Swift: add update/downgrade scripts
2023-09-14 10:22:59 +02:00
Paolo Tranquilli
270c6407f0
Swift: accept test changes
2023-09-14 10:18:41 +02:00
Paolo Tranquilli
8d02bcc3cb
Swift: change non-generated TypeDecl.ql
2023-09-14 10:18:24 +02:00
Michael Nebel
b9acf1a4ee
Merge pull request #14111 from michaelnebel/csharp/reduceprojectrestore
...
C#: Avoid explicitly restoring projects in solution files.
2023-09-14 10:06:49 +02:00
Paolo Tranquilli
cf1667c325
Swift: update extractor after schema changes
2023-09-14 10:05:17 +02:00
Paolo Tranquilli
4d3aecfff6
Swift: rename base_types to syntactic_base_types in TypeDecl
2023-09-14 10:03:52 +02:00
Harry Maclean
3c8683428b
Ruby: Model more splat flow (alternative approach)
2023-09-14 08:55:59 +01:00
Harry Maclean
9ccd8cd248
Ruby: Update documentation
2023-09-14 08:54:49 +01:00
Harry Maclean
ef63ea8399
Ruby: Update fixture
2023-09-14 08:54:48 +01:00
Harry Maclean
7ebd51163e
Ruby: Handle more splat arg flow
...
Allow flow from a splat argument to a positional parameter in cases
where there are positional arguments left of the splat. For example:
def foo(x, y, z); end
foo(1, *[2, 3])
2023-09-14 08:54:48 +01:00
Tom Hvitved
e258324960
Ruby: Allow for implicit array reads at all sinks during taint tracking
2023-09-14 09:40:05 +02:00
Chuan-kai Lin
d8fb875bbb
Merge pull request #14214 from github/cklin/pick-js-fix-2.14.5
...
Cherry pick "fix out of bounds string access in isUsingDecl" into 2.14.5
2023-09-13 14:21:47 -07:00
erik-krogh
cc3a76f7f5
fix out of bounds string access in isUsingDecl
2023-09-13 14:16:02 -07:00
Erik Krogh Kristensen
111227e763
Merge pull request #14211 from erik-krogh/usingOutOfBounds
...
JS: fix out of bounds string access in isUsingDecl
2023-09-13 22:23:15 +02:00
Erik Krogh Kristensen
b019fb3e91
Merge pull request #14212 from erik-krogh/usingOutOfBounds-hotfix
...
JS: fix out of bounds string access in isUsingDecl
2023-09-13 22:23:13 +02:00
erik-krogh
c6b8c444d0
fix out of bounds string access in isUsingDecl
2023-09-13 21:53:49 +02:00
Robert Marsh
20de4c625c
Swift: autoformat DataFlowPrivate
2023-09-13 18:57:27 +00:00
Robert Marsh
86bd2168ec
Swift: breaking change note for array content removal
2023-09-13 18:34:30 +00:00
Robert Marsh
0b66be5f07
Swift: restore ArrayElement as an alias for CollectionElement
2023-09-13 18:29:03 +00:00
Robert Marsh
43ca192ceb
Swift: remove ArrayContent in UnsafeJsEvalQuery
2023-09-13 18:26:06 +00:00
erik-krogh
fdd349c1a3
fix out of bounds string access in isUsingDecl
2023-09-13 20:11:21 +02:00
Geoffrey White
6aa8daeeb6
Swift: Fix inline expectations.
2023-09-13 19:06:54 +01:00
Geoffrey White
535a69cd8b
Merge branch 'main' into logfix
2023-09-13 19:01:52 +01:00
Geoffrey White
e109892388
Merge pull request #14189 from geoffw0/protocol2
...
Swift: Consistent additional taint steps between the cleartext-* queries
2023-09-13 18:44:20 +01:00
Geoffrey White
d01a3e26d6
Swift: Change note.
2023-09-13 18:20:49 +01:00
Geoffrey White
200d9a4dfb
Swift: Port regex mode flag character fix from Python.
2023-09-13 18:19:02 +01:00
Geoffrey White
df60f560a2
Swift: Add demonstrative test case.
2023-09-13 18:11:40 +01:00
Geoffrey White
af3d8c88bb
Java: Fix test comment.
2023-09-13 17:58:31 +01:00
Geoffrey White
1c81bd52e6
Java: Change note.
2023-09-13 17:51:26 +01:00
Geoffrey White
8c3e778be6
Java: Port regex mode flag character fix from Python.
2023-09-13 17:50:52 +01:00
Chuan-kai Lin
00c83f185a
Merge pull request #14182 from cklin/deprecate-assume-small-delta
...
Document assume_small_delta deprecation
2023-09-13 07:54:33 -07:00
Mathias Vorreiter Pedersen
18fa6f5d64
Merge pull request #14202 from alexet/translated-element-location
...
CPP: Add a location to TranslatedElement to help with debugging IR creation
2023-09-13 15:19:24 +01:00
Michael Nebel
84ec823ac0
C#: Add some explanatory comments about parallel restore.
2023-09-13 16:07:47 +02:00
Anders Schack-Mulligen
74787bfba8
Dataflow: One more minor perf tweak.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
b63d518114
Dataflow: Minor perf tweak.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
b456ba217a
Dataflow: Improve rev-to-fwd call edge pruning.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
f456bf8d57
Dataflow: Add change note.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
13e7e6b983
Dataflow: Improve fwd-taken call edge predicate and improve fwd-to-rev call edge pruning.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
47f68504a8
Dataflow: Postpone typeflow calledge pruning until stage 3.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
f5a4b792bd
C++/Go/Python/Ruby/Swift: Add dummy localMustFlowStep.
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
1750d00fbe
C#: Add localMustFlowStep
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
e677c1ffe6
Java: Add qltest
2023-09-13 15:43:46 +02:00
Anders Schack-Mulligen
c8094d34a7
Dataflow: Add type-based call-edge pruning.
2023-09-13 15:43:45 +02:00
Anders Schack-Mulligen
300425540a
Java: Minor improvement to TypeFlow for super accesses.
2023-09-13 15:43:45 +02:00
Anders Schack-Mulligen
a7b677ba40
Java: Bugfix for SuperAccess.isOwnInstanceAccess().
2023-09-13 15:43:45 +02:00
Anders Schack-Mulligen
110a4c81e3
Java: Minor perf fix.
2023-09-13 15:43:45 +02:00
Dave Bartolomeo
edf6a80c3b
Merge pull request #14185 from michaelnebel/csharp/quotinghotfixrc
...
C#: Quoting hotfix.
2023-09-13 09:34:05 -04:00
Alex Ford
79c305c1a1
Merge pull request #14124 from alexrford/rb/dataflow-query-refactor
...
Ruby: Use the new dataflow API for checked in queries
2023-09-13 14:24:47 +01:00
Koen Vlaswinkel
0434cce4c3
Java: Fix formatting of AutomodelVsCode.qll file
2023-09-13 14:54:03 +02:00
Tom Hvitved
bb7ba7872f
Merge pull request #14203 from hvitved/ruby/semantic-merge-fix
...
Ruby: Fix semantic merge conflict
2023-09-13 14:53:18 +02:00
Koen Vlaswinkel
95296f1518
Java: Use don't care expression for kind and provenance
2023-09-13 14:45:47 +02:00
Tom Hvitved
f15cbb9316
Ruby: Simplify viableSourceCallableNonInit
2023-09-13 14:25:28 +02:00
Max Schaefer
e722e3288f
Merge pull request #13771 from github/max-schaefer/server-side-url-redirect-help
...
JavaScript: Improve query help for `js/server-side-unvalidated-url-redirection`.
2023-09-13 13:20:48 +01:00
yoff
62b41799d2
Merge pull request #14178 from yoff/python/broaden-sql-injection-frameworks
...
Python: import all frameworks in SQL-injection query
2023-09-13 14:14:09 +02:00
Mathias Vorreiter Pedersen
177fcacf38
Merge pull request #14134 from MathiasVP/add-surprising-lifetimes-to-experimental
...
C++: Copy the Coding Standards' use-after-lifetime-ended query to Experimental
2023-09-13 13:06:18 +01:00
Tom Hvitved
f3a78efe03
Ruby: Fix semantic merge conflict
2023-09-13 14:04:20 +02:00
yoff
7d931492d8
Update python/ql/lib/semmle/python/security/dataflow/SqlInjectionCustomizations.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-09-13 13:37:18 +02:00
Michael Nebel
0127b779b5
C#: Address review comments.
2023-09-13 13:31:58 +02:00
Alex Ford
b5ec99cb2f
Ruby: fix missing qldoc
2023-09-13 12:28:19 +01:00
Mathias Vorreiter Pedersen
a0018c92e1
Merge pull request #14193 from MathiasVP/fully-converted-expressions-for-flow-after-free
...
C++: Use fully converted expressions for `cpp/use-after-free` and `cpp/double-free`
2023-09-13 12:24:23 +01:00
Alex Eyers-Taylor
0c10fa0c87
CPP: Add a location to TranslatedElement to help with debugging IR creation
2023-09-13 12:21:30 +01:00
Ian Lynagh
bd1d6e1d1e
Merge pull request #14188 from igfoo/igfoo/kotlin-1.9.20
...
Kotlin: Support 1.9.20
2023-09-13 12:19:46 +01:00
Mathias Vorreiter Pedersen
0cd4e32ed8
C++: Add AST consistency query.
2023-09-13 12:15:40 +01:00
Koen Vlaswinkel
585fb9db7e
C#: Add VS Code model editor queries
2023-09-13 13:12:55 +02:00
Koen Vlaswinkel
7db082f3fd
Java: Add VS Code model editor queries
2023-09-13 13:04:26 +02:00
Erik Krogh Kristensen
cd5973764b
Merge pull request #14112 from erik-krogh/pyAllowedHosts
...
Py: add sanitizer guard for `url_has_allowed_host_and_scheme`
2023-09-13 12:59:38 +02:00
Mathias Vorreiter Pedersen
af51a0a9ca
C++: Respond to review comments.
2023-09-13 11:43:12 +01:00
Mathias Vorreiter Pedersen
81d20be1ee
Update cpp/ql/src/experimental/Security/CWE/CWE-416/UseAfterExpiredLifetime.qhelp
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-09-13 11:37:32 +01:00
Rasmus Wriedt Larsen
7292730391
Python: Add change-note
2023-09-13 11:55:48 +02:00
Rasmus Wriedt Larsen
f62c4108ef
Python: Move url_has_allowed_host_and_scheme to Django.qll
2023-09-13 11:55:44 +02:00
Tom Hvitved
7400b4741e
Merge pull request #14108 from hvitved/dataflow/more-consistency-checks
...
Data flow: Add `ArgumentNode` consistency checks
2023-09-13 11:30:51 +02:00
Tom Hvitved
bb85f87d7b
Merge pull request #11725 from hvitved/ruby/capture-field-flow
...
Ruby: Reimplement flow through captured variables using field flow
2023-09-13 10:52:36 +02:00
Geoffrey White
3bf0d66d6c
Merge pull request #13906 from geoffw0/commandinject2
...
Swift: Add tests and develop command injection query
2023-09-13 08:59:06 +01:00
Stephan Brandauer
7a7dc9b68f
Merge pull request #14184 from github/kaeluka/application-mode-new-candidates-fixes
...
Java: Automodel, new candidates fix
2023-09-13 09:27:10 +02:00
Tom Hvitved
88d2e2590f
Ruby: Rename LambdaSelfParameterNode to LambdaSelfReferenceNode
2023-09-13 08:52:22 +02:00
Kevin Stubbings
f9fe86a1ca
Added change-notes
2023-09-12 21:34:30 -07:00
Kevin Stubbings
7d213d5bb9
Add Integer/Boolean Sanitizer
2023-09-12 21:10:11 -07:00
Ian Lynagh
df9c601571
Kotlin: Pass memory limits to kotlinc in some tests
...
We can run out of memory with the defaults
2023-09-12 23:14:41 +01:00
Robert Marsh
d9e694be9d
Swift: update test expectation for collection content
2023-09-12 19:20:43 +00:00
Robert Marsh
4b970ff774
Swift: update models for array/collection content
2023-09-12 19:20:22 +00:00
Tom Hvitved
d3558f8579
Python: Update expected test output
2023-09-12 21:18:31 +02:00
Rasmus Wriedt Larsen
1de7460aba
Python: Don't warn on multipleArgumentCall
2023-09-12 21:16:14 +02:00
Robert Marsh
3b7295b0fd
Swift: unify ArrayContent and CollectionContent
2023-09-12 19:12:44 +00:00
Mathias Vorreiter Pedersen
05080924de
C++: Don't use converted expressions in 'LeapYear.qll'.
2023-09-12 19:48:52 +01:00
Mathias Vorreiter Pedersen
b03054b1ed
C++: Make sure some instruction also gives back the 'ParenthesisExpr's.
2023-09-12 19:46:42 +01:00
Mathias Vorreiter Pedersen
71fe6f5d4b
C++: Use fully converted expressions in 'cpp/use-after-free' and 'cpp/double-free'.
2023-09-12 19:28:57 +01:00
Robert Marsh
ecf1d98ce5
Merge pull request #14165 from rdmarsh2/rdmarsh2/swift/keypath-write-flow
...
Swift: flow through writeable keypaths
2023-09-12 14:24:40 -04:00
Tom Hvitved
c9910f5464
C++: Update expected test output
2023-09-12 20:05:12 +02:00
Tom Hvitved
53302117a1
C#: Implement missingArgumentCallExclude and multipleArgumentCallExclude
2023-09-12 20:05:11 +02:00
Tom Hvitved
b470c36c82
Ruby: Implement multipleArgumentCallExclude
2023-09-12 20:05:11 +02:00
Tom Hvitved
c13a8e41ad
Data flow: Add more consistency checks
2023-09-12 20:05:05 +02:00
Ian Lynagh
4908188060
Kotlin: Add 1.9.20 support
2023-09-12 18:28:33 +01:00
Ian Lynagh
4d1ceff7df
Kotlin: Fix build
2023-09-12 18:28:33 +01:00
Ian Lynagh
2b9a425468
Kotlin: Support 1.9.20
2023-09-12 18:28:33 +01:00
Geoffrey White
0d7769f687
Merge pull request #13276 from geoffw0/sqlpathinject
...
Swift: Add path injection sinks for sqlite3 and SQLite.swift
2023-09-12 17:36:27 +01:00
Henning Makholm
596f7012ca
Merge pull request #14191 from github/hmakholm/pr/monotonic-unique
...
C++ tests: fix output of bug-stricken test
2023-09-12 18:21:35 +02:00
Geoffrey White
7e962dc764
Swift: Accept fixed test cases.
2023-09-12 17:18:29 +01:00
Max Schaefer
a9e81672f0
Make suggestion to replace example.com more explicit.
2023-09-12 16:54:05 +01:00
Robert Marsh
c2868fe05a
Swift: change note for keypath write dataflow
2023-09-12 15:53:50 +00:00
Robert Marsh
47ac54bb81
Swift: autoformat DataFlowPrivate
2023-09-12 15:52:53 +00:00
Robert Marsh
8f797c7189
Merge branch 'main' into rdmarsh2/swift/keypath-write-flow
2023-09-12 15:51:36 +00:00
Max Schaefer
7ddb7da65e
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-09-12 16:47:23 +01:00
Chuan-kai Lin
d792175907
Merge pull request #14174 from github/post-release-prep/codeql-cli-2.14.4
...
Post-release preparation for codeql-cli-2.14.4
2023-09-12 08:02:20 -07:00
Henning Makholm
bac175e881
C++ tests: fix output of bug-stricken test
...
The expected output was incorrect and the result of an evaluator bug.
This change should go together with the internal PR that fixes this bug.
2023-09-12 16:28:59 +02:00
Alex Denisov
743fd902a1
Swift: fix CFG for identity expressions (await, dot_self, parent)
2023-09-12 16:04:45 +02:00
Stephan Brandauer
928898e979
Java: automodel: add class and method doc to test code
2023-09-12 15:43:09 +02:00
Geoffrey White
d65f2b4fa9
Swift: Change note.
2023-09-12 14:36:37 +01:00
Mathias Vorreiter Pedersen
d6e143a858
Merge pull request #14151 from MathiasVP/deduplicate-dataflow-results-take-3
...
C++: Deduplicate dataflow query results
2023-09-12 14:07:40 +01:00
Stephan Brandauer
089b147d04
Java: Automodel format
2023-09-12 14:27:12 +02:00
Stephan Brandauer
bd10ac799a
Java: Automodel application mode: add test expectations
2023-09-12 14:20:28 +02:00
Stephan Brandauer
8121c7fefa
Java: Automodel application mode: add method doc and class doc as related locations
2023-09-12 14:08:55 +02:00
Tom Hvitved
49d57653dc
Merge pull request #14170 from hvitved/csharp/cil-arg-exclude
...
C#: Exclude CIL arguments from `ArgumentNode` when they are compiled from source
2023-09-12 13:44:29 +02:00
Ian Lynagh
2f57a62a7a
Merge pull request #14144 from igfoo/igfoo/nonir
...
Kotlin: Give some more informative errors messages
2023-09-12 12:07:09 +01:00
Ian Lynagh
d8a99e6b7d
Kotlin: Regenerate expected test output
...
It's now in the order generated by the new CLI. This means that
changes in test output are easier to understand.
2023-09-12 11:13:58 +01:00
Mathias Vorreiter Pedersen
d528c96563
Merge branch 'main' into deduplicate-dataflow-results-take-3
2023-09-12 10:28:57 +01:00
Mathias Vorreiter Pedersen
ff28f45058
C++: Accept test changes.
2023-09-12 10:28:46 +01:00
Mathias Vorreiter Pedersen
7d2c12e63d
C++: Handle the extent of 'new[]' in 'getConvertedResultExpressionImpl0' and add a few more comments.
2023-09-12 10:28:36 +01:00
Michael Nebel
7bcaa49f5a
C#: Add integration test with quoted arguments.
2023-09-12 10:33:39 +02:00
Michael Nebel
6fe9b70c92
C#: Poor mans quoting of arguments on windows.
2023-09-12 10:33:21 +02:00
Stephan Brandauer
0115ba0df3
Java: Automodel: drive-by, add extensibleType metadata to app mode +/- extraction
2023-09-12 09:29:54 +02:00
intrigus-lgtm
b6417ca212
Java: Fix alert message
...
The signing key that is being set, is _not_ what is being parsed.
A _JWT_ is being parsed, that will then be verified using the set key.
(Or in our case not, because we're looking for security problems :P)
2023-09-12 02:23:37 +02:00
Geoffrey White
ae0fcf791b
Swift: Expand the additional taint step from the cleartext storage database query to the other sensitive data queries.
2023-09-11 22:25:17 +01:00
Geoffrey White
aa5820c061
Swift: Add some test cases.
2023-09-11 19:33:37 +01:00
Chuan-kai Lin
43eee2b4b3
Document assume_small_delta deprecation
2023-09-11 10:37:15 -07:00
Chris Smowton
b291ee361a
Merge pull request #14179 from github/smowton/fix/go-baseline-quoting
...
Fix space handling in Golang configure-baseline scripts
2023-09-11 15:54:24 +01:00
Rasmus Lerchedahl Petersen
a063d7d510
Python: sinks -> decodings
...
Query operators that interpret JavaScript
are no longer considered sinks.
Instead they are considered decodings
and the output is the tainted dictionary.
The state changes to `DictInput` to reflect
that the user now controls a dangerous dictionary.
This fixes the spurious result and moves the error reporting
to a more logical place.
2023-09-11 16:33:20 +02:00
Geoffrey White
e038f60640
Swift: Convert some sinks to CSV.
2023-09-11 14:54:32 +01:00
Rasmus Lerchedahl Petersen
d9f63e1ed3
Python: Split modelling of query operators
...
`$where` and `$function` behave quite differently.
2023-09-11 15:54:00 +02:00
Geoffrey White
7d05446483
Swift: Formatting.
2023-09-11 14:11:11 +01:00
Rasmus Lerchedahl Petersen
154a36934d
Python: Add test for function
2023-09-11 14:49:03 +02:00
Geoffrey White
1cde183005
Merge branch 'main' into logfix
2023-09-11 13:14:58 +01:00
Geoffrey White
c18de7d9af
Merge pull request #14036 from geoffw0/quicktest
...
Swift: Additional dataflow test
2023-09-11 13:04:48 +01:00
Geoffrey White
3fd5de83cb
Merge branch 'main' into sqlpathinject
2023-09-11 12:42:49 +01:00
Michael Nebel
6bfaa90fe4
C#: Avoid explicitly restoring the projects in the restored solution files.
2023-09-11 13:30:28 +02:00
Geoffrey White
fc69be4df9
Merge branch 'main' into quicktest
2023-09-11 12:25:38 +01:00
Michael Nebel
aaaf6f8616
Merge pull request #14150 from michaelnebel/csharp/tracerwhitespace
...
C#: Explicitly quote arguments in the LUA tracer on windows.
2023-09-11 13:18:21 +02:00
Chris Smowton
d13f4210eb
Fix space handling in Golang configure-baseline scripts
2023-09-11 10:51:35 +01:00
Michael Nebel
d4a1c297aa
C#: Quote arguments containing whitespaces on windows in the tracer.
2023-09-11 11:18:27 +02:00
Michael Nebel
8475464fbe
C#: Cleanup hotfix version of quoting.
2023-09-11 11:18:27 +02:00
Rasmus Lerchedahl Petersen
93140cb061
Python: import all frameworks
...
Are there any frameworks we do _not_ want here?
2023-09-11 11:17:08 +02:00
Mathias Vorreiter Pedersen
becb469477
Merge branch 'main' into deduplicate-dataflow-results-take-3
2023-09-11 09:55:11 +01:00
Michael Nebel
1b90216c98
Merge pull request #14172 from michaelnebel/csharp/poormansquoting
...
C#: Poor mans quoting.
2023-09-11 08:57:44 +02:00
Mathias Vorreiter Pedersen
7ff4ebd912
Merge pull request #14102 from alexet/alexet/remove-unreachable-ir
...
CPP: Remove sucessors of non-returning IR calls transitively.
2023-09-09 14:48:26 +01:00
github-actions[bot]
d699880c86
Post-release preparation for codeql-cli-2.14.4
2023-09-08 21:17:52 +00:00
Chuan-kai Lin
1a575ef297
Merge pull request #14167 from asgerf/ts/tolerate-out-of-order-requests
...
JS: tolerate out of order requests in TypeScript extractor
2023-09-08 12:33:44 -07:00
Robert Marsh
e1ffc8d886
Merge pull request #14171 from MathiasVP/fix-dataflow-out-of-post-update-nodes
...
C++: Fix dataflow out of post update nodes
2023-09-08 14:56:41 -04:00
Alex Eyers-Taylor
5892939488
CPP:Fix chnage note spelling
2023-09-08 17:47:04 +01:00
Mathias Vorreiter Pedersen
9f89c63771
C++: Accept test changes.
2023-09-08 17:07:26 +01:00
Mathias Vorreiter Pedersen
0be61be07a
C++: Handle flow out of post-update nodes when there's another use of the variable in the call that we need to skip.
2023-09-08 17:07:26 +01:00
Alex Eyers-Taylor
5fe44b65b7
CPP: Avoid CP with edgekind in non-returning analysis
2023-09-08 16:55:06 +01:00
Robert Marsh
161e5a4ca2
Merge branch 'main' into rdmarsh2/swift/keypath-write-flow
2023-09-08 15:39:06 +00:00
Robert Marsh
1082b1d4d1
Swift: use PostUpdateNodeImpl for more postupdate nodes
2023-09-08 15:19:46 +00:00
Michael B. Gale
109bd9057e
Merge pull request #14161 from github/mbg/go/add-toolchain-directive-diagnostic
...
Go: Add diagnostic for 1.21 `toolchain` error
2023-09-08 14:55:47 +01:00
Stephan Brandauer
7705f0e7e6
Merge pull request #14162 from github/kaeluka/application-mode-source-candidates
...
Java: Automodel App Mode Extraction: Source Candidates
2023-09-08 15:43:03 +02:00
Michael Nebel
11987d3ebf
C#: Add integration test with quoted arguments.
2023-09-08 15:09:24 +02:00
Michael Nebel
9691100138
C#: Poor mans quoting of arguments on windows.
2023-09-08 15:09:24 +02:00
Tom Hvitved
ecbf2d8b13
C#: Exclude CIL arguments from ArgumentNode when they are compiled from source
2023-09-08 14:14:06 +02:00
Mathias Vorreiter Pedersen
d5442ec9c5
C++: Add regression test.
2023-09-08 13:10:04 +01:00
Stephan Brandauer
bbedd72260
Java: Automodel App Mode: rename MethodCall to MethodReturnValue
2023-09-08 13:57:21 +02:00
Stephan Brandauer
704c7ee104
Java: Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2023-09-08 13:54:26 +02:00
Rasmus Lerchedahl Petersen
d91cd21204
Python: rename file
2023-09-08 13:37:54 +02:00
Tom Hvitved
354a55c735
Merge pull request #14169 from hvitved/backport-fix
...
Revert "C#: Bump all dependencies"
2023-09-08 13:37:12 +02:00
Alex Eyers-Taylor
e208a7aed6
CPP: Add change notes for the non-returning function improvements.
2023-09-08 11:26:27 +01:00
Tom Hvitved
01a74db368
Merge pull request #14168 from hvitved/csharp/recommended-extensions-remove
...
C#: Remove test explorer recommendations (superseded by C# dev kit)
2023-09-08 11:29:27 +02:00
Tom Hvitved
e6a6a7931b
Revert "C#: Bump all dependencies"
2023-09-08 11:19:00 +02:00
Tom Hvitved
9b8948bc2e
C#: Remove test explorer recommendations (superseded by C# dev kit)
2023-09-08 10:47:52 +02:00
Tom Hvitved
f720528368
Merge pull request #14149 from hvitved/csharp/extract-gen-no-trap-stack
...
C#: Clear TRAP stack when calling `PopulateGenerics`
2023-09-08 10:37:07 +02:00
Asger F
ea384b340a
JS: Change note
2023-09-08 10:31:04 +02:00
Asger F
e08a873829
JS: Tolerate TypeScript files being requested out of order
2023-09-08 10:31:04 +02:00
Erik Krogh Kristensen
94442c1799
Merge pull request #14166 from github/dependabot/cargo/ql/chrono-0.4.30
...
Bump chrono from 0.4.29 to 0.4.30 in /ql
2023-09-08 09:38:28 +02:00
Stephan Brandauer
4effc11fdb
Java: comments
2023-09-08 09:16:56 +02:00
dependabot[bot]
66a4f1bf74
Bump chrono from 0.4.29 to 0.4.30 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.29 to 0.4.30.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.29...v0.4.30 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-08 04:04:05 +00:00
Mathias Vorreiter Pedersen
49fee35b37
Merge pull request #13947 from rdmarsh2/rdmarsh2/swift/dictionary-flow-tuples
...
Swift: collection/tuple content for dictionary flow
2023-09-07 22:05:10 +01:00
Robert Marsh
0d79158bb1
Swift: remove TODOs after deciding not to do them
2023-09-07 20:15:12 +00:00
Robert Marsh
603f2cd3b2
Swift: fix test expectation properly
2023-09-07 19:35:02 +00:00
Mathias Vorreiter Pedersen
32ed82eecc
Merge pull request #14154 from MathiasVP/fix-off-by-one-in-asDefiningArgument
2023-09-07 18:48:57 +01:00
Robert Marsh
0fff540add
Swift: update a test expectation for dictionary flow
2023-09-07 16:14:23 +00:00
Robert Marsh
4f4491a876
Swift: autoformat
2023-09-07 16:14:05 +00:00
Robert Marsh
5fe942e642
Swift: flow through writeable keypaths
2023-09-07 15:56:44 +00:00
Rasmus Wriedt Larsen
2182bf17dc
Merge pull request #14160 from erik-krogh/py-clear-text-log-help
...
Py: add new qhelp for clear-text-logging
2023-09-07 16:35:19 +02:00
Alex Ford
5b013dd5d2
Merge branch 'main' into rb/dataflow-query-refactor
2023-09-07 14:57:38 +01:00
Alex Ford
947fa0de62
Ruby: fix qldoc warnings
2023-09-07 14:57:04 +01:00
Alex Ford
4a01de13ef
Ruby: avoid toString in query warning
2023-09-07 14:54:50 +01:00
Stephan Brandauer
c4f5213d68
Java: format
2023-09-07 15:50:03 +02:00
Stephan Brandauer
836a5822f3
Java: Automodel App Mode: remove bogus implementation
2023-09-07 15:49:58 +02:00
Stephan Brandauer
c173d9ae40
Java: automodel application mode: generate models for overridden method candidates
2023-09-07 15:49:58 +02:00
Stephan Brandauer
3121949123
Java: automodel application mode: test case for overridden method candidate
2023-09-07 15:49:58 +02:00
Stephan Brandauer
1e1b59ed52
Java: automodel: additionally consider sources for alreadyAiModeled property
2023-09-07 15:49:58 +02:00
Stephan Brandauer
6f7d78183f
Java: add endpoints for parameters of overridden methods in automodel application mode
2023-09-07 15:49:57 +02:00
Stephan Brandauer
dff8259e78
Java: support remote sources in automodel positive example extraction
2023-09-07 15:49:57 +02:00
Stephan Brandauer
fcabca4581
Java: Export MaD output in application mode extraction queries
2023-09-07 15:49:57 +02:00
Stephan Brandauer
8d133f86c7
Java: replace getArgIndex by getMaDInput
2023-09-07 15:49:57 +02:00
Stephan Brandauer
902a585b47
Java: remove isArgOf predicate
2023-09-07 15:49:57 +02:00
Stephan Brandauer
caaf2f83d7
Java: enable model exclusion characteristic also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
344aa9cb6b
Java: enable local call characteristic also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
afc5aedd0a
Java: enable exception characteristic also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
a526b79211
Java: enable unexploitable is/exists characteristics also for source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
f55d950be3
Java: update application mode extraction test expectations after adding source candidates
2023-09-07 15:49:57 +02:00
Stephan Brandauer
937e452ce0
Java: add extensibleType to sampling keys
2023-09-07 15:49:57 +02:00
Stephan Brandauer
eb1e29d284
Java: add new endpoint class for source candidates in application mode
2023-09-07 15:49:57 +02:00
Stephan Brandauer
7cfcbf6b71
Java: add extensible type to endpoint class in application mode
2023-09-07 15:49:56 +02:00
Alex Ford
0aee7f6ac6
Ruby: qlformat
2023-09-07 14:47:02 +01:00
Alex Ford
13300a2e2f
Ruby: un-private PathGraph imports
2023-09-07 14:24:46 +01:00
Alex Ford
a893911dba
Ruby: Use a newtype instead of DataFlow::FlowState for insecure-download
2023-09-07 14:22:18 +01:00
Alex Ford
75fdde543f
Ruby: Use a newtype instead of DataFlow::FlowState for hardcoded-data
2023-09-07 14:13:26 +01:00
Rasmus Lerchedahl Petersen
b07d085157
Python: make test PoC a proper package
2023-09-07 15:04:27 +02:00
Rasmus Lerchedahl Petersen
970e881697
Python: Follow naming convention
2023-09-07 15:03:51 +02:00
Alexander Eyers-Taylor
df2b313c5e
Merge pull request #14155 from alexet/reach-end-of-function-return
...
CPP: Make functions that reach the end return.
2023-09-07 13:58:43 +01:00
Alex Eyers-Taylor
43a72f2a8e
CPP:Add tests for the aliased IR.
2023-09-07 13:42:31 +01:00
Alex Eyers-Taylor
404145dd1b
CPP: Update tests
2023-09-07 13:42:31 +01:00
Alex Ford
0d7d5a35c9
Ruby: Use a newtype instead of DataFlow::FlowState for code-injection
2023-09-07 13:39:10 +01:00
Alex Eyers-Taylor
b44c4587a4
CPP: Remove sucessors of non-returning IR calls.
2023-09-07 12:58:20 +01:00
Alex Eyers-Taylor
e8dfecc4a4
CPP: Fix test result
2023-09-07 12:49:13 +01:00
Alex Eyers-Taylor
d603b7ac3c
CPP: Make functions that reach the end return.
...
This is UB in C++ but not C where it is only bad if the result is used.
2023-09-07 12:39:48 +01:00
Alex Ford
dfc3b33910
Ruby: Use a newtype instead of DataFlow::FlowState for unicode-bypass-validation
2023-09-07 12:09:47 +01:00
Michael B. Gale
3b708993c7
Go: Add diagnostic for 1.21 toolchain error
2023-09-07 11:51:20 +01:00
erik-krogh
bf3fe3cd66
add new qhelp for clear-text-logging
2023-09-07 12:39:13 +02:00
Michael B. Gale
38892bb51b
Merge pull request #13999 from github/mbg/csharp/standalone/dotnet-version
...
C# Standalone: Install .NET SDK specified in `global.json`
2023-09-07 11:30:53 +01:00
Rasmus Wriedt Larsen
ec0529d68c
Merge pull request #14145 from p-/p--asyncio-cmdi-exec
...
Python: Support for command injection sinks found in the `asyncio` module
2023-09-07 11:27:50 +02:00
Rasmus Wriedt Larsen
bfb4be26c2
Python: Autoformat
2023-09-07 10:31:39 +02:00
Rasmus Wriedt Larsen
54c456d95d
Python: Apply suggestions from code review
2023-09-07 10:28:46 +02:00
Rasmus Lerchedahl Petersen
f253f9797f
Python: update test expectations
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
7edebbeaff
Python: Add QLDocs
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
c0b3245a53
Python: Enrich the NoSql concept
...
This allows us to make more precise modelling
The query tests now pass.
I do wonder, if there is a cleaner approach, similar to
`TaintedObject` in JavaScript. I want the option to
get this query in the hands of the custumors before
such an investigation, though.
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
114984bd8c
Python: Added tests based on security analysis
...
currently we do not:
- recognize the pattern
`{'author': {"$eq": author}}` as protected
- recognize arguements to `$where` (and friends)
as vulnerable
2023-09-07 10:22:37 +02:00
Rasmus Lerchedahl Petersen
bf8bfd91cd
Python: Add inline query test
2023-09-07 10:22:30 +02:00
Rasmus Wriedt Larsen
d4c3dfffec
Merge pull request #14158 from RasmusWL/fix-ssrf-example
...
Python: Fix typo in SSRF example
2023-09-07 10:22:21 +02:00
Max Schaefer
46d7165885
Explain about redirects to example.com.
2023-09-07 09:12:07 +01:00
Rasmus Wriedt Larsen
c85ea9a0c0
Python: Fix typo in SSRF example
2023-09-07 09:45:02 +02:00
Rasmus Lerchedahl Petersen
19046ea417
Python: more renames
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
087961d179
Python: Refactor to allow customizations
...
Also use new DataFlow API
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
db0459739f
Python: rename file
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
55707d395e
Python: Make things compile in their new location
...
- Move NoSQL concepts to the non-experimental concepts file
- fix references
2023-09-07 09:28:30 +02:00
Rasmus Lerchedahl Petersen
60dc1afbc0
Python: prepare to promote NoSqlInjection
...
Mostly move files, preserving authourship.
This will not compile.
2023-09-07 09:28:29 +02:00
Michael B. Gale
ccbc6f446a
Use git ls-files to find DLLs to index
2023-09-06 22:17:08 +01:00
Tom Hvitved
718e491800
C#: Clear TRAP stack when calling PopulateGenerics
2023-09-06 21:12:01 +02:00
Tom Hvitved
334502a3de
Merge pull request #14153 from github/revert-14082-csharp/bump-dependencies
...
Revert "C#: Bump all dependencies"
2023-09-06 21:10:56 +02:00
Mathias Vorreiter Pedersen
3f6346737c
Update 2023-09-06-as-defining-argument-off-by-one-fix.md
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2023-09-06 19:48:48 +01:00
Mathias Vorreiter Pedersen
87925abaa2
C++: Add change note.
2023-09-06 17:26:08 +01:00
Mathias Vorreiter Pedersen
14faa5d020
C++: Fix off-by-one in 'asDefiningArgument' so that the domain of the argument is '[1..]' like 'asIndirectArgument'.
2023-09-06 17:19:44 +01:00
Peter Stöckli
7aa5d2dc8a
Python: move asyncio CMDi related tests to stdlib tests
2023-09-06 16:54:18 +02:00
Robert Marsh
5bdd9597d2
Merge branch 'main' into rdmarsh2/swift/dictionary-flow-tuples
2023-09-06 14:50:16 +00:00
Mathias Vorreiter Pedersen
12a717e3af
Merge pull request #14141 from github/alexdenisov/unresolved-ast-nodes
...
Swift: add queries for unresolved AST nodes
2023-09-06 15:40:11 +01:00
Tom Hvitved
6e0ff56788
Revert "C#: Bump all dependencies"
2023-09-06 16:23:38 +02:00
Peter Stöckli
ede7d8fb6a
Python: apply suggestions from code review for asyncio
2023-09-06 15:47:07 +02:00
Mathias Vorreiter Pedersen
2bed77de09
Merge branch 'main' into deduplicate-dataflow-results-take-3
2023-09-06 14:12:36 +01:00
Max Schaefer
a02f373e79
Use better sanitiser.
2023-09-06 14:06:16 +01:00
Mathias Vorreiter Pedersen
4cbe82353f
C++: Accept more test changes.
2023-09-06 13:58:28 +01:00
Mathias Vorreiter Pedersen
b22199982e
C++: Add change note.
2023-09-06 13:08:21 +01:00
Michael Nebel
a8e427ffe1
Merge pull request #14097 from michaelnebel/csharp/extractorerrormessages
...
C#: Update extractor_messages relation schema.
2023-09-06 14:01:36 +02:00
Cornelius Riemenschneider
76f1c7a4cd
Merge pull request #14137 from github/dependabot/github_actions/actions/checkout-4
...
Bump actions/checkout from 2 to 4
2023-09-06 13:13:30 +02:00
Cornelius Riemenschneider
79d210f7bd
Update .github/workflows/ruby-build.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2023-09-06 12:19:46 +02:00
Tom Hvitved
a06a9ffa29
Address review comments
2023-09-06 11:01:54 +02:00
Tom Hvitved
6de315d086
Add change note
2023-09-06 11:01:54 +02:00
Tom Hvitved
48e2dcfa35
Ruby: Reimplement flow through captured variables using field flow
2023-09-06 11:00:55 +02:00
Tom Hvitved
5d1c399371
Ruby: Add more data-flow tests for captured variables
2023-09-06 10:34:34 +02:00
Mathias Vorreiter Pedersen
3eb2da4c03
C++: No need to remove duplications manually.
2023-09-06 09:29:11 +01:00
Tom Hvitved
3a9c34c3c6
Merge pull request #14132 from hvitved/csharp/data-flow-property-write
...
C#: Fix logic for flow into property writes
2023-09-06 08:49:53 +02:00
Erik Krogh Kristensen
a11db7a80a
Merge pull request #14148 from github/dependabot/cargo/ql/chrono-0.4.29
...
Bump chrono from 0.4.28 to 0.4.29 in /ql
2023-09-06 07:25:13 +02:00
dependabot[bot]
7f73c59304
Bump chrono from 0.4.28 to 0.4.29 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.28 to 0.4.29.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.28...v0.4.29 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-06 03:58:08 +00:00
Chuan-kai Lin
163252d5f6
Merge pull request #14147 from github/release-prep/2.14.4
...
Release preparation for version 2.14.4
2023-09-05 13:50:45 -07:00
github-actions[bot]
abf2b12b1c
Release preparation for version 2.14.4
2023-09-05 16:56:14 +00:00
Mathias Vorreiter Pedersen
570b08e2e9
Merge pull request #14143 from alexet/global-from-unreachble
...
CPP: Handle globals flowing into "UnreacheachedInstruction"
2023-09-05 16:58:55 +01:00
Peter Stöckli
9027eac312
Python: add change notes for asyncio CMDi sinks
2023-09-05 16:14:56 +02:00
Peter Stöckli
8c4dccc81b
Python: initial support for CMDi via asyncio
2023-09-05 15:33:29 +02:00
Michael Nebel
b5d4987c0a
C#: Add upgrade and downgrade scripts.
2023-09-05 15:32:09 +02:00
Michael Nebel
880da69d16
C#: Update extractor_messages relation schema.
2023-09-05 15:19:32 +02:00
Tamás Vajk
97f09e106e
Merge pull request #14101 from tamasvajk/csharp/recursive-generics
...
C#: Exclude base type extraction of recursive generics
2023-09-05 14:24:51 +02:00
Ian Lynagh
5ea4c44701
Kotlin: Give some more informative errors messages
2023-09-05 12:33:49 +01:00
Alex Denisov
35e949945d
Swift: add queries for unresolved AST nodes
2023-09-05 13:29:11 +02:00
Alex Eyers-Taylor
3db384ddc3
CPP: Handle globals flowing into "UnreacheachedInstruction"
2023-09-05 11:50:32 +01:00
dependabot[bot]
03771ffad2
Bump actions/checkout from 2 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-05 12:17:54 +02:00
Tom Hvitved
cb8922034c
Merge pull request #14133 from hvitved/ruby/flow-test-path-graph-fixes
...
Ruby: Use proper `PathGraph` module in inline flow tests
2023-09-05 10:33:07 +02:00
Tamas Vajk
bf96e688ff
Fix review findings
2023-09-05 10:19:41 +02:00
Rasmus Wriedt Larsen
49f5d38956
Merge pull request #14068 from RasmusWL/dataflow-config-refactor
...
Python: Use new dataflow API
2023-09-04 21:04:10 +02:00
Tom Hvitved
a2912cd72b
Ruby: Use proper PathGraph module in inline flow tests
...
Gets rid of
```
PathNode is incompatible with PathNode (the type of the edge relation).
```
warnings.
2023-09-04 20:27:34 +02:00
Tom Hvitved
4a1163b38c
Merge pull request #14109 from hvitved/ruby/hide-desugared-assignments-in-dataflow
2023-09-04 19:59:33 +02:00
Mathias Vorreiter Pedersen
1232120d42
C++: Naively copy the 'surprising lifetimes' query from Coding Standards and add required metadata.
2023-09-04 16:21:28 +01:00
Michael B. Gale
5337785571
Remove TODO comment
2023-09-04 15:10:00 +01:00
Michael B. Gale
bd5f5314ea
C#: Pass .dotnet path to standalone extractor
2023-09-04 15:09:28 +01:00
Michael B. Gale
37535d1f52
C#: Make WithDotNet public
2023-09-04 15:08:57 +01:00
Michael B. Gale
3b010a2fb3
C# standalone: accept path to .dotnet folder
2023-09-04 15:08:53 +01:00
Michael B. Gale
4c2a7aab3d
Do not rename global.json in standalone mode
2023-09-04 15:04:44 +01:00
Michael B. Gale
bbe90be0db
Wrap StandaloneBuildRule in WithDotNet
2023-09-04 15:02:44 +01:00
Tom Hvitved
55aedbc46c
C#: Fix logic for flow into property writes
2023-09-04 15:42:50 +02:00
Kasper Svendsen
ecee427c72
Merge pull request #14117 from kaspersv/delete-unnecessary-test
...
Java: Delete java test query which fails to compile
2023-09-04 15:28:57 +02:00
Alex Ford
0325c87ccb
Merge pull request #13825 from boveus/add-cwe-208
...
Ruby: Add Unsafe HMAC Comparison Query.
2023-09-04 14:10:12 +01:00
Ian Lynagh
a2659eecfb
Merge pull request #14018 from igfoo/igfoo/extractor_information_kotlin1
...
Kotlin: Write usesK2 ("uses Kotlin 2") information to the database
2023-09-04 13:38:23 +01:00
Michael B. Gale
77369a09a4
Merge pull request #13872 from Kwstubbs/Kevin_error_sanitizer
...
Go: Add sanitizer to remove paths passing through http.Error
2023-09-04 13:25:55 +01:00
Alex Ford
11e5565344
Merge branch 'main' into add-cwe-208
2023-09-04 12:45:49 +01:00
Ian Lynagh
03ad04bc8e
Merge pull request #14118 from igfoo/igfoo/kotlin_master
...
Kotlin: Make it possible to build with master
2023-09-04 12:12:25 +01:00
AlexDenisov
e2602fbbc4
Merge pull request #14119 from github/alexdenisov/sequence-expr
...
Swift: fix SequenceExpr extraction
2023-09-04 12:29:07 +02:00
Paolo Tranquilli
7d89028688
Merge pull request #14106 from github/alexdenisov/rename-xcode-autobuilder
...
Swift: rename autobuilder. NFC
2023-09-04 12:28:47 +02:00
Ian Lynagh
bbf441f87a
Kotlin: Add an integration test for Kotlin 2
2023-09-04 11:28:31 +01:00
Alex Denisov
888dd786b4
Swift: fix SequenceExpr extraction
...
Before we extracted all the subexpressions from the `SequenceExpr` while we should've only extracted the expressions at odd indices:
```
...
/// SequenceExpr - A list of binary operations which has not yet been
/// folded into a tree. The operands all have even indices, while the
/// subexpressions with odd indices are all (potentially overloaded)
/// references to binary operators.
class SequenceExpr final : public Expr,
...
```
The AST for a `SequenceExpr` looks like this:
```
sequence_expr:
unresolved_dot_expr:
...
assign_expr:
member_ref_expr:
...
dot_syntax_call_expr:
...
unresolved_member_chain_expr:
...
```
however, what's is not visible with the "final" AST is that `unresolved_dot_expr` is the unresolved version of `assign_expr.member_ref_expr` and the `unresolved_member_chain_expr` is the unresolved version of `assign_expr.dot_syntax_call_expr`.
This becomes visible when I enable typechecker debugging:
```c++
auto &typeCheckerOptions = invocation.getTypeCheckerOptions();
typeCheckerOptions.DebugConstraintSolver = true;
```
Which prints the following snippets:
```
---Initial constraints for the given expression---
(assign_expr type='()' location=foo.swift:25:54 range=[foo.swift:25:13 - line:25:57]
(unresolved_dot_expr type='$T2' location=foo.swift:25:29 range=[foo.swift:25:13 - line:25:29] field 'preferredDatePickerStyle' function_ref=unapplied
(unresolved_dot_expr type='$T1' location=foo.swift:25:18 range=[foo.swift:25:13 - line:25:18] field 'datePicker' function_ref=unapplied
(declref_expr type='DatePickerCell' location=foo.swift:25:13 range=[foo.swift:25:13 - line:25:13] decl=foo.(file).DatePickerRowProtocol extension.configurePickerStyle(_:_:).cell@foo.swift:15:33 function_ref=unapplied)))
(unresolved_member_chain_expr implicit type='$T5' location=foo.swift:25:57 range=[foo.swift:25:56 - line:25:57]
(unresolved_member_expr type='$T4' location=foo.swift:25:57 range=[foo.swift:25:56 - line:25:57] name='wheels' function_ref=unapplied)))
// ...
---Type-checked expression---
(assign_expr type='()' location=foo.swift:25:54 range=[foo.swift:25:13 - line:25:57]
(member_ref_expr type='@lvalue UIDatePickerStyle' location=foo.swift:25:29 range=[foo.swift:25:13 - line:25:29] decl=UIKit.(file).UIDatePicker.preferredDatePickerStyle
(force_value_expr implicit type='UIDatePicker' location=foo.swift:25:18 range=[foo.swift:25:13 - line:25:18] implicit_iuo_unwrap
(load_expr implicit type='UIDatePicker?' location=foo.swift:25:18 range=[foo.swift:25:13 - line:25:18]
(member_ref_expr type='@lvalue UIDatePicker?' location=foo.swift:25:18 range=[foo.swift:25:13 - line:25:18] decl=foo.(file).DatePickerCell.datePicker@foo.swift:10:29
(declref_expr type='DatePickerCell' location=foo.swift:25:13 range=[foo.swift:25:13 - line:25:13] decl=foo.(file).DatePickerRowProtocol extension.configurePickerStyle(_:_:).cell@foo.swift:15:33 function_ref=unapplied)))))
(dot_syntax_call_expr type='UIDatePickerStyle' location=foo.swift:25:57 range=[foo.swift:25:56 - line:25:57]
(declref_expr type='(UIDatePickerStyle.Type) -> UIDatePickerStyle' location=foo.swift:25:57 range=[foo.swift:25:57 - line:25:57] decl=UIKit.(file).UIDatePickerStyle.wheels function_ref=unapplied)
(argument_list implicit
(argument
(type_expr implicit type='UIDatePickerStyle.Type' location=foo.swift:25:56 range=[foo.swift:25:56 - line:25:56] typerepr='UIDatePickerStyle')))))
```
The proposed solution is to only extract subexpressions at indices from `SequenceExpr` thus ignoring all the unresolved leftovers.
Note: I'm not entirely sure about the case when there is only child (`elements.size() == 1`) so I'm always extracting it.
This patch fixes the last source of unresolved expressions.
2023-09-04 11:42:12 +02:00
Rasmus Wriedt Larsen
a58c9e91ea
Merge pull request #14130 from RasmusWL/fixup-accept-ci-changes
...
Misc: Fixup for `accept-expected-changes-from-ci.py`
2023-09-04 09:47:31 +02:00
Rasmus Wriedt Larsen
301133ad94
Misc: Fixup for accept-expected-changes-from-ci.py
...
Allow empty lines while looking for diff (between `---expected` and `FAILED`). This can happen when there is `Locations outside the test directory` since an empty line is printed after that warning message (this output can be interleaved with the diff due to parallel execution).
2023-09-04 09:32:06 +02:00
Erik Krogh Kristensen
284ca5e4ee
Merge pull request #14129 from github/dependabot/cargo/ql/regex-1.9.5
...
Bump regex from 1.9.3 to 1.9.5 in /ql
2023-09-04 08:11:51 +02:00
dependabot[bot]
4919cc4c4e
Bump regex from 1.9.3 to 1.9.5 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.3 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.3...1.9.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 03:47:05 +00:00
Alex Ford
98851736d6
Revert "Ruby: configsig rb/tainted-format-string"
...
This reverts commit f5860cb4818dc3c07eeb6731e75bf5df203dd48f.
2023-09-03 17:20:06 +01:00
Alex Ford
bf6837cca0
Revert "Ruby: configsig rb/http-to-file-access"
...
This reverts commit e77ba1589663905c952cdb643ab66885760b27bd.
2023-09-03 17:20:06 +01:00
Alex Ford
e399eac2b3
Ruby: changenote for using new dataflow api
2023-09-03 17:20:06 +01:00
Alex Ford
73ed5696f3
Ruby: configsig rb/xxe
2023-09-03 17:20:06 +01:00
Alex Ford
956207b7d9
Ruby: configsig rb/meta/tainted-nodes
2023-09-03 17:20:06 +01:00
Alex Ford
f24102e0e7
Ruby: configsig rb/weak-params
2023-09-03 17:20:06 +01:00
Alex Ford
6c06def5d7
Ruby: configsig rb/manually-checking-http-verb
2023-09-03 17:20:06 +01:00
Alex Ford
39af2d2870
Ruby: configsig rb/user-controlled-file-decompression
2023-09-03 17:20:06 +01:00
Alex Ford
cdc788b162
Ruby: configsig rb/hardcoded-credentials
2023-09-03 17:20:06 +01:00
Alex Ford
4d1684e37b
Ruby: configsig rb/overly-permissive-file
2023-09-03 17:20:06 +01:00
Alex Ford
b6d12f8b1c
Ruby: configsig rb/zip-slip
2023-09-03 17:20:05 +01:00
Alex Ford
ebf2a2e1f5
Ruby: configsig rb/unicode-bypass-validation
2023-09-03 17:20:05 +01:00
Alex Ford
7445fc43f9
Ruby: configsig rb/regexp-injection
2023-09-03 17:20:05 +01:00
Alex Ford
494b7b3fdf
Ruby: configsig rb/polynomial-redos
2023-09-03 17:20:05 +01:00
Alex Ford
04d3d04317
Ruby: configsig rb/regex/badly-anchored-regexp
2023-09-03 17:20:05 +01:00
Alex Ford
77f3a70376
Ruby: renames for rb/xpath-injection
2023-09-03 17:20:05 +01:00
Alex Ford
42cd58695d
Ruby: configsig rb/url-redirection
2023-09-03 17:20:05 +01:00
Alex Ford
f79796a644
Ruby: configsig rb/shell-command-constructed-from-input
2023-09-03 17:20:05 +01:00
Alex Ford
f03f670312
Ruby: configsig rb/html-constructed-from-input
2023-09-03 17:20:05 +01:00
Alex Ford
8ad6c72ba2
Ruby: configsig rb/unsafe-deserialization
2023-09-03 17:20:05 +01:00
Alex Ford
461bc0d359
Ruby: configsig rb/unsafe-code-construction
2023-09-03 17:20:05 +01:00
Alex Ford
3e23a6e021
Ruby: configsig rb/server-side-template-injection
2023-09-03 17:20:05 +01:00
Alex Ford
0a73ebdbee
Ruby: configsig rb/tainted-format-string
2023-09-03 17:20:05 +01:00
Alex Ford
f5e433940f
Ruby: renames for rb/stored-xss
2023-09-03 17:20:05 +01:00
Alex Ford
030aae5693
Ruby: configsig rb/stack-trace-exposure
2023-09-03 17:20:05 +01:00
Alex Ford
bf1cb33be3
Ruby: configsig rb/sql-injection
2023-09-03 17:20:05 +01:00
Alex Ford
ba8ff0710d
Ruby: configsig rb/request-forgery
2023-09-03 17:20:05 +01:00
Alex Ford
df9173502e
Ruby: configsig rb/sensitive-get-query
2023-09-03 17:20:05 +01:00
Alex Ford
593d9a48d4
Ruby: configsig rb/reflected-xss
2023-09-03 17:20:05 +01:00
Alex Ford
ad2bbfb265
Ruby: configsig rb/path-injection
2023-09-03 17:20:05 +01:00
Alex Ford
867e47bcdd
Ruby: renames for rb/log-injection
2023-09-03 17:20:04 +01:00
Alex Ford
eb34bbbfd2
Ruby: renames for rb/ldap-injection
2023-09-03 17:20:04 +01:00
Alex Ford
d46eceb5f4
Ruby: configsig rb/kernel-open
2023-09-03 17:20:04 +01:00
Alex Ford
a8ad0d8ff5
Ruby: renames for rb/insecure-download
2023-09-03 17:20:04 +01:00
Alex Ford
c973fc1274
Ruby: configsig rb/http-to-file-access
2023-09-03 17:20:04 +01:00
Alex Ford
2536f1a0cd
Ruby: configsig rb/user-controlled-bypass
2023-09-03 17:20:04 +01:00
Alex Ford
377570f361
Ruby: configsig rb/command-line-injection
2023-09-03 17:20:04 +01:00
Alex Ford
b1a49ddb0d
Ruby: configsig rb/code-injection
2023-09-03 17:20:04 +01:00
Alex Ford
6fa267a820
Ruby: configsig rb/clear-text-storage-sensitive-data
2023-09-03 17:20:04 +01:00
Alex Ford
2a2f21d3a9
Ruby: configsig rb/clear-text-logging-sensitive-data
2023-09-03 17:20:04 +01:00
Mathias Vorreiter Pedersen
20f501d1c7
C++: Change queries to use 'asExpr' instead of 'asConvertedExpr'.
2023-09-01 15:01:32 +01:00
Mathias Vorreiter Pedersen
cca6052026
C++: Use 'operandNode' to generate the string for indirect operands.
2023-09-01 14:04:54 +01:00
Mathias Vorreiter Pedersen
f1c4fa2345
C++: When we generate a string for the node we avoid multiple results by only using the 0'th result from the 'asExpr' predicate. However, when we want to convert between nodes and expressions we don't care about which one we get.
2023-09-01 14:04:52 +01:00
Mathias Vorreiter Pedersen
d2bb73ba1f
C++: Use the index to to get the 'most converted' and 'least converted' instruction in a bunch of places.
2023-09-01 13:47:06 +01:00
Mathias Vorreiter Pedersen
4dfaf9225c
C++: Index 'getConvertedResultExpression' by an integer.
2023-09-01 13:32:29 +01:00
Mathias Vorreiter Pedersen
16d62186c0
C++: Use this new predicate everywhere we need to convert an instruction to an expression.
2023-09-01 13:32:25 +01:00
Mathias Vorreiter Pedersen
60819ad7f2
Add a single predicate that should be used to convert an instruction to an expression.
2023-09-01 13:06:25 +01:00
Ian Lynagh
181594badb
Kotlin: Add packageFqName and IrSymbolInternals compatibility
...
In master, we need to switch to these, but for building for older
versions we need to add our own support.
Currently the v_1_9_255 files are nto used, but we will need them (in a
differently-named directory) for a future release.
2023-09-01 11:20:58 +01:00
Ian Lynagh
72e08a9277
Kotlin: Tweak the build system
...
You can now make a versions/* directory that the build system doesn't
know about. This can be used to add support for not-yet-supported
versions.
2023-09-01 11:08:54 +01:00
Kasper Svendsen
4bc6ca3d84
Java: Delete java test query which fails to compile
2023-09-01 11:21:06 +02:00
Mathias Vorreiter Pedersen
67a0112fcb
Merge pull request #14115 from MathiasVP/fix-incorrect-load-of-constant
...
C++: Don't generate `Load`s for constant expressions
2023-09-01 08:50:44 +01:00
Mathias Vorreiter Pedersen
72d9812fea
C++: Accept more test changes.
2023-08-31 21:56:35 +01:00
Mathias Vorreiter Pedersen
dfefd62089
C++: Accept test changes.
2023-08-31 20:38:46 +01:00
Mathias Vorreiter Pedersen
aed14f2924
C++: Don't insert loads for constants.
2023-08-31 20:38:40 +01:00
Mathias Vorreiter Pedersen
b575747357
C++: Add testcase with invalid IR.
2023-08-31 20:35:33 +01:00
yoff
da64ea40b9
Merge pull request #13782 from jorgectf/jorgectf/shlex-quote
...
Python: Add `shlex.quote` as `py/shell-command-constructed-from-input` sanitizer
2023-08-31 21:08:58 +02:00
Ian Lynagh
eb59bc04cd
Kotlin: Add missing imports
2023-08-31 19:28:05 +01:00
Ian Lynagh
3009f40814
Kotlin: Opt in to org.jetbrains.kotlin.ir.symbols.IrSymbolInternals
...
Needed for upstream master.
2023-08-31 19:28:05 +01:00
Ian Lynagh
1ec29bffbb
Kotlin: Don't use deprecated createBlockBody
...
The function that takes a list of statements is hidden in upstream
master.
2023-08-31 19:28:05 +01:00
Ian Lynagh
d511d46cde
Kotlin: Use packageFqName rather than fqName
...
Upstream master says:
error: using 'fqName: FqName' is an error. Please use `packageFqName` instead
2023-08-31 19:28:05 +01:00
Alex Ford
ce35d6921f
Ruby: configsig rb/hardcoded-data-interpreted-as-code
2023-08-31 16:20:18 +01:00
Mathias Vorreiter Pedersen
10548b57d7
Merge pull request #14103 from MathiasVP/non-certain-def-is-a-use
...
C++: Non-certain definitions should always be uses
2023-08-31 16:15:30 +01:00
Erik Krogh Kristensen
cd590d356d
Merge pull request #14053 from erik-krogh/ts52
...
JS: Add support for TypeScript 5.2
2023-08-31 14:39:50 +02:00
Tamas Vajk
c1d8091891
C#: Exclude base type extraction of recursive generics
2023-08-31 14:15:38 +02:00
Tom Hvitved
89e9d25f02
Ruby: Hide desugared assignments from data flow path graph
2023-08-31 14:04:57 +02:00
erik-krogh
8dad4950a9
add sanitizer guard for url_has_allowed_host_and_scheme
2023-08-31 13:48:42 +02:00
Tom Hvitved
23857267db
Merge pull request #14110 from hvitved/ruby/remove-emptiness-successor
...
Ruby: Get rid of unused `EmptinessSuccessor`
2023-08-31 13:41:25 +02:00
erik-krogh
d4bc6e434a
add test with false positive
2023-08-31 13:40:47 +02:00
Tamas Vajk
3476437bfe
C#: Add test case with recursive generics
2023-08-31 13:21:46 +02:00
Tom Hvitved
50db6916c8
Ruby: Get rid of unused EmptinessSuccessor
2023-08-31 13:17:05 +02:00
Tom Hvitved
73370e7282
Merge pull request #14100 from hvitved/dataflow/consistency-pack
...
Data flow: Add consistency checks to shared ql pack
2023-08-31 11:47:40 +02:00
Tom Hvitved
756886808d
Merge pull request #14098 from hvitved/csharp/cil-best-impl
...
C#: Speedup `bestImplementation`
2023-08-31 10:57:28 +02:00
Mathias Vorreiter Pedersen
f5509da4bb
Merge pull request #14038 from alexet/delete-ir
...
CPP: Add delete/delete[] calls to the IR.
2023-08-31 09:22:34 +01:00
Asger F
2d5c40db31
Merge pull request #14048 from asgerf/shared/variable-capture-write-source-node
...
Variable capture: allow arbitrary data-flow nodes to be the source of a write
2023-08-31 10:20:48 +02:00
Tom Hvitved
c68d0bc936
Merge pull request #14099 from hvitved/csharp/transitive-capture-call-unique
...
C#: Do not embed target callable in `TransitiveCapturedCall`
2023-08-31 10:12:26 +02:00
Alex Denisov
c1da2dfa73
Swift: fix autobuild.sh
2023-08-31 09:40:13 +02:00
Michael Nebel
ded49015e0
Merge pull request #13970 from michaelnebel/csharp/usereferenceassemlblies
...
C#: Compile against the reference assemblies in the standalone extractor (if possible)
2023-08-31 09:00:30 +02:00
Erik Krogh Kristensen
cd289f8207
Merge pull request #14105 from github/dependabot/cargo/ql/chrono-0.4.28
...
Bump chrono from 0.4.27 to 0.4.28 in /ql
2023-08-31 08:16:42 +02:00
Alex Denisov
803adae9c6
Swift: rename autobuilder. NFC
2023-08-31 08:12:52 +02:00
dependabot[bot]
4770eb0328
Bump chrono from 0.4.27 to 0.4.28 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.27 to 0.4.28.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.27...v0.4.28 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-31 03:44:01 +00:00
Mathias Vorreiter Pedersen
1159508e4f
Merge pull request #14008 from MathiasVP/reuse-even-more-nodes
...
C++: Reuse even more `DataFlow::Node`s
2023-08-30 19:38:52 +01:00
Alex Eyers-Taylor
59a77666a6
CPP: Remove uneeded indirection around delete calls in the IR.
2023-08-30 16:31:51 +01:00
Michael Nebel
3afa4aa91e
C#: Add change note.
2023-08-30 16:51:16 +02:00
Mathias Vorreiter Pedersen
261ba8e02d
C++: Add QLDoc to 'isDereference'.
2023-08-30 14:34:30 +01:00
Tom Hvitved
253f932d2a
Python: Use data flow consistency checks from shared pack
2023-08-30 15:29:41 +02:00
Tom Hvitved
9af706c2a5
Swift: Use data flow consistency checks from shared pack
2023-08-30 15:29:41 +02:00
Tom Hvitved
db304d118b
C++: Use data flow consistency checks from shared pack
2023-08-30 15:29:41 +02:00
Tom Hvitved
fefe64bf0c
Java: Use data flow consistency checks from shared pack
2023-08-30 15:29:41 +02:00
Tom Hvitved
5c8367a695
C#: Use data flow consistency checks from shared pack
2023-08-30 15:29:41 +02:00
Tom Hvitved
c4b626a416
Ruby: Use data flow consistency checks from shared pack
2023-08-30 15:29:41 +02:00
Tom Hvitved
de7c9bdd9b
Data flow: Add consistency checks to shared ql pack
2023-08-30 15:29:41 +02:00
Michael Nebel
291d7b3e05
C#: Use reference assemblies instead of implementation assemblies.
2023-08-30 14:19:11 +02:00
Michael Nebel
a966c0e1eb
C#: Do not include the mscorlib assembly and remove the option.
2023-08-30 14:19:11 +02:00
Tom Hvitved
ce229fe21f
Merge pull request #14096 from hvitved/ruby/expected-test-fix
...
Ruby: Update expected test output
2023-08-30 13:50:49 +02:00
Tom Hvitved
29982fe30e
C#: Do not embed target callable in TransitiveCapturedCall
2023-08-30 13:48:44 +02:00
Tom Hvitved
66f5e4a05b
C#: Speedup bestImplementation
...
Avoids an expensive anti-join:
```
[2023-08-29 15:25:48] Evaluated non-recursive predicate _FileSystem#df18ed9a::Make#File#1a556f64::Input#::Container::toString#0#dispred#bf_Method#621e9e2e::__#antijoin_rhs@96d08bc8 in 272332ms (size: 1841891).
Evaluated relational algebra for predicate _FileSystem#df18ed9a::Make#File#1a556f64::Input#::Container::toString#0#dispred#bf_Method#621e9e2e::__#antijoin_rhs@96d08bc8 with tuple counts:
4632443 ~2% {3} r1 = JOIN _cil_instruction_3#antijoin_rhs_cil_method_implementation#shared WITH cil_method_implementation ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Lhs.1
71945701 ~3% {3} r2 = JOIN r1 WITH cil_method_implementation_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
71945701 ~1329% {3} r3 = JOIN r2 WITH Method#621e9e2e::MethodImplementation::getNumberOfInstructions#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Rhs.1
5016836 ~4% {4} r4 = JOIN r3 WITH Method#621e9e2e::MethodImplementation::getNumberOfInstructions#0#dispred#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Rhs.1
{4} r5 = SELECT r4 ON In.3 < In.2
65637 ~3% {2} r6 = SCAN r5 OUTPUT In.0, In.1
71945701 ~0% {3} r7 = JOIN r1 WITH cil_method_implementation_10#join_rhs ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
71945701 ~1% {4} r8 = JOIN r7 WITH assemblies ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0, Rhs.1
71945701 ~0% {5} r9 = JOIN r8 WITH cil_method_implementation ON FIRST 1 OUTPUT Rhs.2, Lhs.1, Lhs.2, Lhs.0, Lhs.3
71945701 ~0% {5} r10 = JOIN r9 WITH assemblies ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3, Lhs.4
71945701 ~0% {5} r11 = JOIN r10 WITH FileSystem#df18ed9a::Make#File#1a556f64::Input#::Container::toString#0#dispred#bf ON FIRST 1 OUTPUT Lhs.4, Lhs.1, Lhs.2, Lhs.3, Rhs.1
71945701 ~2% {5} r12 = JOIN r11 WITH FileSystem#df18ed9a::Make#File#1a556f64::Input#::Container::toString#0#dispred#bf ON FIRST 1 OUTPUT Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.1
{5} r13 = SELECT r12 ON In.4 > In.3
33509342 ~0% {3} r14 = SCAN r13 OUTPUT In.0, In.1, In.2
33509342 ~0% {4} r15 = JOIN r14 WITH Method#621e9e2e::MethodImplementation::getNumberOfInstructions#0#dispred#ff ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.0, Lhs.1
33051362 ~1670% {2} r16 = JOIN r15 WITH Method#621e9e2e::MethodImplementation::getNumberOfInstructions#0#dispred#ff ON FIRST 2 OUTPUT Lhs.2, Lhs.3
33116999 ~1646% {2} r17 = r6 UNION r16
return r17
```
2023-08-30 13:46:11 +02:00
Tom Hvitved
7e77c77d92
Ruby: Update expected test output
2023-08-30 13:33:48 +02:00
erik-krogh
984795ee46
fix off-by-one
2023-08-30 13:29:23 +02:00
Anders Starcke Henriksen
44a83a71a8
Merge pull request #13879 from github/starcke/automodel-pack
...
Create separate automodel pack
2023-08-30 13:24:25 +02:00
Rasmus Wriedt Larsen
62c2316124
Merge pull request #14084 from RasmusWL/flask-jsonify
...
Python: Remove XSS FP from use of `flask.jsonify`
2023-08-30 13:07:54 +02:00
Mathias Vorreiter Pedersen
4ca259b200
C++: Non-exact definitions should always be a use.
2023-08-30 11:50:57 +01:00
Mathias Vorreiter Pedersen
6a21fa04cd
Merge pull request #14034 from geoffw0/hostname
...
Swift: New query: Incomplete regular expression for hostnames
2023-08-30 11:33:36 +01:00
Mathias Vorreiter Pedersen
b092da485d
C++: Accept more test changes.
2023-08-30 11:26:40 +01:00
Tom Hvitved
c32c4bb6d2
Merge pull request #14086 from hvitved/csharp/perf-fixes
...
C#: Various performance fixes
2023-08-30 12:13:52 +02:00
Geoffrey White
39b45fa24f
Merge pull request #13943 from geoffw0/weakhashexample
...
Swift: Update the weak sensitive data hashing examples and qhelp
2023-08-30 10:36:23 +01:00
Michael Nebel
f88428f3fd
Merge pull request #14085 from michaelnebel/csharp/use-stubs-5
...
C#: Use stubs in unit tests.
2023-08-30 11:07:53 +02:00
Anders Starcke Henriksen
361ae1747e
Merge branch 'main' into starcke/automodel-pack
2023-08-30 09:25:28 +02:00
erik-krogh
2643ab3dbf
using is not a keyword
2023-08-30 08:44:59 +02:00
Michael Nebel
a966944fd8
Merge pull request #14083 from michaelnebel/csharp/autobuilderimports
...
C#: Re-factor using statements order in autobuilder.
2023-08-30 08:16:03 +02:00
erik-krogh
5e11fe74f7
Merge branch 'main' into ts52
2023-08-30 07:57:55 +02:00
Erik Krogh Kristensen
9bf5999ca0
Merge pull request #14093 from github/dependabot/cargo/ql/chrono-0.4.27
...
Bump chrono from 0.4.26 to 0.4.27 in /ql
2023-08-30 07:42:44 +02:00
dependabot[bot]
e3ff7644f7
Bump chrono from 0.4.26 to 0.4.27 in /ql
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.26 to 0.4.27.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.26...v0.4.27 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 03:14:05 +00:00
Geoffrey White
125629a7e2
Swift: Delete 'usually'.
2023-08-29 23:25:22 +01:00
Geoffrey White
210a5bfff2
Update swift/ql/src/queries/Security/CWE-328/WeakSensitiveDataHashing.qhelp
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-08-29 23:24:12 +01:00
Geoffrey White
7006cfd8f8
Swif: Fix paragraph breaks.
2023-08-29 23:00:17 +01:00
Brandon Stewart
56f0387613
Merge branch 'main' into add-cwe-208
2023-08-29 13:09:59 -04:00
Kevin Stubbings
84d52b94a3
Forgot delete
2023-08-29 08:38:18 -07:00
Kevin Stubbings
ffa3bdc8bb
Change note changes
2023-08-29 08:37:15 -07:00
Michael Nebel
e226c564b6
C#: Base WriteOnlyContainer test on stubs.
2023-08-29 16:24:01 +02:00
Michael Nebel
35a1dd8ba9
C#: Base Useless Code tests on stubs.
2023-08-29 16:20:59 +02:00
Mathias Vorreiter Pedersen
e4a11b86d9
Merge branch 'main' into reuse-even-more-nodes
2023-08-29 15:08:30 +01:00
Michael Nebel
e9b3f1282a
C#: Base UseBraces tests on stubs.
2023-08-29 16:05:15 +02:00
Tom Hvitved
8624ff12be
Merge pull request #14082 from hvitved/csharp/bump-dependencies
...
C#: Bump all dependencies
2023-08-29 15:52:40 +02:00
Michael Nebel
fc850b18fe
C#: Base ReadOnlyContainer tests on stubs.
2023-08-29 15:36:03 +02:00
Michael Nebel
7d7a893b55
C#: Base Performance tests on stubs.
2023-08-29 15:34:33 +02:00
Jean Helie
41726f52a2
Merge pull request #13954 from github/kaeluka/add-provenance-to-metadata
...
Java: Automodel: Add Candidates for Regression Testing
2023-08-29 14:33:02 +01:00
Michael Nebel
6760dd9121
C#: Base Nullness tests on stubs.
2023-08-29 15:30:24 +02:00
Michael Nebel
b3be4797e2
C#: Base the Metrics tests on stubs.
2023-08-29 15:23:42 +02:00
Michael Nebel
c906009e5b
C#: Base the MagicConstants tests on stubs.
2023-08-29 15:19:19 +02:00
Michael Nebel
4c16f1be8b
C#: Base the Likely Bugs tests on stubs.
2023-08-29 15:16:48 +02:00
Mathias Vorreiter Pedersen
99cc4171f8
C++: Fix FPs by making 'isArgumentOfCallable' more robust.
2023-08-29 14:12:09 +01:00
yoff
ae4c76c788
Merge pull request #13975 from yoff/python/parsemodechars-not-chars
2023-08-29 14:05:57 +02:00
Alex Eyers-Taylor
9df5e30034
CPP: Add changenote for adding delete to the IR.
2023-08-29 12:13:40 +01:00
Alex Eyers-Taylor
24b679d5a0
CPP: Fix IR formatting.
2023-08-29 11:17:44 +01:00
Alex Eyers-Taylor
8b1b1618c4
CPP: Add tests for false positive in memory vulnerability queries.
2023-08-29 11:17:44 +01:00
Alex Eyers-Taylor
3b344c3578
CPP: Handle cases where the deallocator function is determined dynamically.
2023-08-29 11:17:44 +01:00
Alex Eyers-Taylor
689fda43ed
CPP: Add delete/delete[] calls to the IR.
2023-08-29 11:17:43 +01:00
Michael Nebel
08c24930ac
C#: Base the Language Abuse tests on stubs.
2023-08-29 11:39:47 +02:00
Tom Hvitved
7611bfb149
C#: Apply closed-world assumption for type-parameter qualifiers in dynamic calls
2023-08-29 11:27:45 +02:00
Tom Hvitved
1da885fae2
C#: Fix bad join in SSA library
...
```
[2023-08-29 10:10:29] Evaluated non-recursive predicate SsaImpl#75014cd4::Cached::lastRefBeforeRedefExt#4#ffff@4207c208 in 27604ms (size: 7511062).
Evaluated relational algebra for predicate SsaImpl#75014cd4::Cached::lastRefBeforeRedefExt#4#ffff@4207c208 with tuple counts:
9905038 ~9% {5} r1 = SCAN Ssa#da392372::Make#SsaImpl#75014cd4::SsaInput#::lastRefRedefExt#5#fffff OUTPUT In.2, In.3, In.1, In.0, In.4
{5} r2 = r1 AND NOT _SsaImpl#75014cd4::SsaInput::variableRead#4#ffff_3012#join_rhs_const_false#antijoin_rhs(Lhs.0, Lhs.1, Lhs.2)
4605608 ~0% {4} r3 = SCAN r2 OUTPUT In.3, In.0, In.1, In.4
4510888816 ~0% {5} r4 = JOIN _SsaImpl#75014cd4::SsaInput::variableRead#4#ffff_3012#join_rhs_const_false#antijoin_rhs WITH project#Ssa#da392372::Make#SsaImpl#75014cd4::SsaInput#::lastRefRedefExt#5#fffff_1203#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2, Lhs.0, Lhs.1, Rhs.3
5294405 ~82% {4} r5 = JOIN r4 WITH SsaImpl#75014cd4::adjacentDefReachesReadExt#6#ffffff_014523#join_rhs ON FIRST 4 OUTPUT Lhs.0, Rhs.4, Rhs.5, Lhs.4
9900013 ~28% {4} r6 = r3 UNION r5
return r6
```
2023-08-29 11:26:30 +02:00
Tom Hvitved
e219281016
C#: Speed up ForwarderAssertMethod
...
Avoids the following bad predicate
```
[2023-08-29 10:03:13] (252s) Tuple counts for _Callable#f85cebf6::Callable::getBody#0#dispred#ff_Variable#afb43847::Variable::getAnAccess#0#dispre__#join_rhs/5@43feb6tl after 4m0s:
4416261 ~203% {4} r1 = JOIN _Callable#f85cebf6::Callable::getAParameter#0#dispred#ff_10#join_rhs_Variable#afb43847::Variable::ge__#shared WITH Callable#f85cebf6::Callable::getBody#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1 'arg1', Lhs.2 'arg2', Lhs.0 'arg3', Rhs.1 'arg4'
1189565718 ~152% {5} r2 = JOIN r1 WITH Variable#afb43847::Variable::getAnAccess#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1 'arg0', Lhs.0 'arg1', Lhs.1 'arg2', Lhs.2 'arg3', Lhs.3 'arg4'
return r2
```
2023-08-29 11:25:20 +02:00
Michael Nebel
946854bd17
C#: Base the EmptyBlock test on stubs.
2023-08-29 11:24:10 +02:00
Tom Hvitved
1ac9d2ee5b
CFG: Compute splitsToString using concat, and exclude partial split sets
2023-08-29 11:23:56 +02:00
Michael Nebel
7068da25f0
C#: Base the Documentation tests on stubs.
2023-08-29 11:22:51 +02:00
Michael Nebel
dd274422d1
Merge pull request #14079 from bgrainger/fix-unsynchronized-static-access-docs
...
Delete thin space from documentation
2023-08-29 11:17:52 +02:00
Michael Nebel
f2bf540209
C#: Base the Dead Code tests on stubs.
2023-08-29 11:15:43 +02:00
Rasmus Wriedt Larsen
49d510018d
Python: Add change-note
2023-08-29 11:11:32 +02:00
Rasmus Wriedt Larsen
0b2458d065
Python: Improve modeling of Flask jsonify
...
I also tested whether `Flask.jsonify` or `Flask().jsonify` worked, but
they do not.
2023-08-29 11:11:32 +02:00
Rasmus Wriedt Larsen
26319bfc04
Python: Fix Flask jsonify XSS regression
...
The reason the result was found before, is that `jsonify(data)` was
modeled as TWO separate subclasses of `Http::Server::HttpResponse`, one
because of the implicit construction in return
(FlaskRouteHandlerReturn), and one from the `jsonify` call
(FlaskJsonifyCall). Due to the QL evaluation, we got a combination from
the two, meaning mime-type from FlaskRouteHandlerReturn and body from
FlaskJsonifyCall...
2023-08-29 11:11:32 +02:00
Jean Helie
de76c0749a
Java: Automodel Framework Mode: Add Candidates for Regression Testing
2023-08-29 09:53:55 +01:00
Mathias Vorreiter Pedersen
d14ad92dbd
Merge pull request #14006 from MathiasVP/promote-invalid-pointer-deref-out-of-experimental
...
C++: Promote `cpp/invalid-pointer-deref` out of experimental
2023-08-29 09:38:56 +01:00
Rasmus Wriedt Larsen
b36fd9fdab
Python: Add jsonify XSS regression example
2023-08-29 10:38:49 +02:00
Mathias Vorreiter Pedersen
f3a77c6006
Merge pull request #14060 from MathiasVP/fix-compare-where-assign-meant-fp
...
C++: Fix FP in `cpp/compare-where-assign-meant`
2023-08-29 09:38:39 +01:00
Mathias Vorreiter Pedersen
dbdb433957
Merge pull request #14058 from alexet/delete-or-delete-array
...
CPP: Add parent class for delete and delete[]
2023-08-29 09:38:07 +01:00
Michael Nebel
d3ba7e6b3c
C#: Re-factor using statements order in autobuilder.
2023-08-29 10:10:30 +02:00
Michael Nebel
5f4861f72e
Merge pull request #14069 from michaelnebel/csharp/nugetexe
...
C#: Download `nuget.exe` in the dependency manager (if not present).
2023-08-29 10:04:50 +02:00
Michael Nebel
5de8d9181d
C#: Address review comments.
2023-08-29 09:33:11 +02:00
Jeroen Ketema
0d1fd88729
Merge pull request #14050 from jketema/inline-6
...
Consolidate all `InlineFlowTest` libraries in the dataflow qlpack
2023-08-29 09:30:35 +02:00
Tom Hvitved
bce47fe344
C#: Bump all dependencies
2023-08-29 09:24:39 +02:00
Kevin Stubbings
29e14f7d8d
Feedback, Format, Add Change Notes
2023-08-28 14:15:21 -07:00
Bradley Grainger
d10597f69d
Delete thin space from documentation.
...
Update the MSDN link to avoid an unnecessary redirection and use the correct anchor.
2023-08-28 11:02:38 -07:00
Dave Bartolomeo
3343b78015
Merge pull request #14074 from github/post-release-prep/codeql-cli-2.14.3
...
Post-release preparation for codeql-cli-2.14.3
2023-08-28 13:34:10 -04:00
github-actions[bot]
3eba77421a
Post-release preparation for codeql-cli-2.14.3
2023-08-28 15:53:49 +00:00
Rasmus Wriedt Larsen
ce6335866b
Python: Move ModificationOfParameterWithDefault to new dataflow API
2023-08-28 16:19:47 +02:00
Mathias Vorreiter Pedersen
f65fe34513
C++: Add false positive caused by flowing back into a function after doing reverse reads.
2023-08-28 14:45:16 +01:00
Asger F
d4cfa8c2b8
Java: autoformatting changes
2023-08-28 15:35:06 +02:00
Asger F
d2fe4d235a
Java: Inline VariableWrite.getSource()
2023-08-28 15:34:48 +02:00
Rasmus Wriedt Larsen
e8e8d975e3
Python: Remove all usage of DataFlow2+TaintTracking2
...
(and any higher number as well)
2023-08-28 15:34:19 +02:00
Rasmus Wriedt Larsen
c665c21d83
Python: More style-guide renaming
...
Split it into multiple commits to make it easier to review.
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
996364d6ee
Python: Fix naming style guide violations
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
efec4e7ebf
Python: Add missing qldocs
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
98538d237e
Python: Autoformat
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
5ba8e102eb
Python: Adopt tests to new DataflowQueryTest
...
Since we want to know the _sinks_ and not just the flow, we need to
expose the config as well :|
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
6961ca5234
Python: Rename to EmailXss
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
ed0e441567
Python: Accept missing DataflowQueryTest implementation for now
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
6d4491e0a9
Python: Modernize WebAppConstantSecretKey
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
852b01c65d
Python: Move SmtpMessageConfig to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
d5e2a30e5b
Python: Modernize py/azure-storage/unsafe-client-side-encryption-in-use a bit
...
To use consistent naming
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
bfcc194b85
Python: Move experimental paramiko to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
acd0f2a8fb
Python: Move experimental LDAPInsecureAuth to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
c6911c2ae0
Python: Move experimental UnicodeBypassValidation to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
2c06394bf3
Python: Move experimental CookieInjection to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
2c412707ab
Python: Move experimental CsvInjection to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
ace1e23c21
Python: Move experimental ClientSuppliedIpUsedInSecurityCheck to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
d948e103fa
Python: Move experimental HeaderInjection to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
53e57dad5c
Python: Move experimental InsecureRandomness to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
3bf2705668
Python: Move experimental TimingAttackAgainstHeaderValue to new dataflow API
2023-08-28 15:31:08 +02:00
Rasmus Wriedt Larsen
c88a0ccb7c
Python: Move experimental TimingAttackAgainstHash to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
a779547515
Python: Move experimental PossibleTimingAttackAgainstHash to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
8abd3430a2
Python: Move experimental TimingAttackAgainstSensitiveInfo to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
1a4e8d9464
Python: Move experimental PossibleTimingAttackAgainstSensitiveInfo to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
5fd3594f5f
Python: Move TimingAttack.qll to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
5d8329d9c8
Python: Move experimental ZipSlip to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
67cc3a3935
Python: Move experimental ReflectedXSS to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
a0d26741d0
Python: Move experimental TarSlipImprov to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
3cdd875e9f
Python: Move experimental UnsafeUnpack to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
3edb9d1011
Python: Move experimental TokenBuiltFromUUID to new dataflow API
2023-08-28 15:31:07 +02:00
Rasmus Wriedt Larsen
acde1920e7
Python: Move UntrustedDataToExternalAPI to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
657b1997cc
Python: Move FullServerSideRequestForgery and PartialServerSideRequestForgery to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
dbfe517555
Python: Move HardcodedCredentials to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
46322b717a
Python: Move XmlBomb to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
add1077532
Python: Move RegexInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
c6caf83dfe
Python: Move PolynomialReDoS to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
4c336990e5
Python: Move XpathInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
60e45335dd
Python: Move Xxe to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
4c76ca6127
Python: Move UrlRedirect to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
6f08e73dbc
Python: Move UnsafeDeserialization to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
dd074173d2
Python: Move WeakSensitiveDataHashing to new dataflow API
...
I adopted helper predicates to do the "heavy" lifting of .asPathNode1(), maybe I like this approach better... let me know what you think 😊
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
9d6b96dfd2
Python: Move CleartextStorage to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
70095446b6
Python: Move CleartextLogging to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
cca78f31ff
Python: Move PamAuthorization to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
dcd96083e8
Python: Move StackTraceExposure to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
f75e65c67d
Python: Move LogInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
88cf9c99b0
Python: Move CodeInjection to new dataflow API
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
05573904a5
Python: Move LdapInjection to new dataflow API
...
We could have switched to a stateful config, but I tried to keep changes
as straight forward as possible.
2023-08-28 15:27:50 +02:00
Rasmus Wriedt Larsen
c360346e9e
Python: Move ReflectedXss to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
b30142c1d7
Python: Move CommandInjection to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
700841e9b0
Python: Move UnsafeShellCommandConstruction to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
d4e4e2d426
Python: Move TarSlip to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
e97032909a
Python: Move PathInjection to new dataflow API
2023-08-28 15:27:49 +02:00
Rasmus Wriedt Larsen
245c24077d
Python: Move SqlInjection to new dataflow API
2023-08-28 15:27:49 +02:00
Michael Nebel
e19c7758ed
C#: Cleanup NugetPackages.cs.
2023-08-28 15:19:16 +02:00
Michael Nebel
6e4865ddd9
C#: Download nuget.exe to the source directory in case it is not installed.
2023-08-28 15:14:13 +02:00
Michael Nebel
b6c2ea520b
C#: Some re-factoring of NugetPackages and logic for file downloading.
2023-08-28 15:14:13 +02:00
yoff
2e981e330b
Merge pull request #14059 from RasmusWL/fix-loginjection-tests
...
Python: Fix stdlib sinks in LogInjection query
2023-08-28 14:44:51 +02:00
yoff
6e05246daa
Merge pull request #13935 from yoff/python/mad-on-externals
...
Python: MaD on externals
2023-08-28 14:04:54 +02:00
Rasmus Wriedt Larsen
c807ab4216
Python: Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-08-28 14:04:22 +02:00
yoff
826b8e6aa5
Merge pull request #14067 from RasmusWL/modern-dataflowquerytests
...
Python: Adopt tests to new `DataflowQueryTest`
2023-08-28 13:54:34 +02:00
erik-krogh
78487d437f
add test for await using in TypeScript
2023-08-28 13:30:35 +02:00
erik-krogh
1e3387f2c5
Merge branch 'main' into ts52
2023-08-28 13:22:56 +02:00
Michael Nebel
e7dbe9f289
Merge pull request #14028 from michaelnebel/csharp/dependencygetfiles
...
C#: Improve GetFiles in the Dependency Manager.
2023-08-28 12:53:28 +02:00
Rasmus Wriedt Larsen
38b78128c0
Merge pull request #13990 from RasmusWL/experimental-cleanup
...
Python: Port old experimental points-to based queries
2023-08-28 12:11:17 +02:00
Rasmus Wriedt Larsen
889cb7a95b
Python: Adopt tests to new DataflowQueryTest
...
Co-authored-by: Rasmus Lerchedahl Petersen <yoff@github.com >
2023-08-28 11:44:01 +02:00
Rasmus Wriedt Larsen
9c44235782
Python: Modernize DataflowQueryTest.qll
...
Co-authored-by: Rasmus Lerchedahl Petersen <yoff@github.com >
2023-08-28 11:40:41 +02:00
Rasmus Wriedt Larsen
7cba6cd1d8
Python: Update .expected files
...
Due to change in path-graph, and including LHS of assignments
2023-08-28 11:33:44 +02:00
Rasmus Wriedt Larsen
0f242475f2
Merge branch 'main' into experimental-cleanup
2023-08-28 11:01:22 +02:00
Rasmus Wriedt Larsen
0dca8a5d86
Python: Remove old points-to modeling file
...
Since all of this was ported already
2023-08-28 10:40:45 +02:00
Rasmus Wriedt Larsen
39e2b133e9
Python: Fix naming
2023-08-28 10:40:33 +02:00
erik-krogh
be2712698b
add support for await using in the JS parser
2023-08-28 09:34:13 +02:00
erik-krogh
1cbee6a8a4
delete leftover todo comment that was implemented
2023-08-28 08:40:35 +02:00
Mathias Vorreiter Pedersen
bb1712b489
Merge branch 'main' into reuse-even-more-nodes
2023-08-26 18:08:58 +01:00
Alex Ford
9957e2683b
Merge pull request #13313 from maikypedia/maikypedia/ldap-improper-auth
...
Ruby: Add Improper LDAP Authentication query (CWE-287)
2023-08-25 20:52:34 +01:00
Alexander Eyers-Taylor
ea2140dc7d
Apply suggestions from code review
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-08-25 17:15:08 +01:00
Alex Eyers-Taylor
8badf10a53
CPP: Add change notes for changes to DeleteExpr/DeleteArrayExpr
2023-08-25 17:13:34 +01:00
Alex Ford
ae635c609f
Ruby: autoformat
2023-08-25 17:11:07 +01:00
Mathias Vorreiter Pedersen
9542646a5d
C++: Add change note.
2023-08-25 16:45:53 +01:00
Mathias Vorreiter Pedersen
104416cc59
C++: Accept test changes.
2023-08-25 16:40:06 +01:00
Mathias Vorreiter Pedersen
cb2f7b0f95
C++: Exclude results in macro expansions from 'cpp/compare-where-assign-meant'.
2023-08-25 16:39:47 +01:00
Mathias Vorreiter Pedersen
759f939edd
C++: Add false positive.
2023-08-25 16:38:48 +01:00
Rasmus Wriedt Larsen
bf9a0dab2a
Python: Fix stdlib sinks in LogInjection query
2023-08-25 17:04:48 +02:00
Rasmus Wriedt Larsen
7852429df2
Python: Accept LogInjection .expected changes
...
I don't know how this had gone unnoticed for so long, but I realized when I tried to run this query locally
2023-08-25 17:04:40 +02:00
Alex Eyers-Taylor
d699201ad0
CPP: Add a test demonstating when a deallocator call exists.
2023-08-25 15:45:50 +01:00
Alex Eyers-Taylor
027ed5e909
CPP: Docs improvements to DeleteOrDeleteArrayExpr
2023-08-25 15:45:50 +01:00
Alex Eyers-Taylor
417b9c9a32
CPP: Use DeleteOrDeleteArrayExpr in another place.
2023-08-25 15:45:50 +01:00
Alex Eyers-Taylor
a3711e1df0
CPP: Replace getAllocatorCall with getDeallocator call.
2023-08-25 15:45:50 +01:00
Shati Patel
c5612ae522
Merge pull request #14051 from github/shati-patel/mrva-results-view
...
Docs: Update screenshots of variant analysis results view
2023-08-25 15:42:49 +01:00
Mathias Vorreiter Pedersen
68bccfdb93
Merge pull request #14013 from alexet/only-taint-argv-indirections
...
CPP:Only taint argv indirections
2023-08-25 15:19:51 +01:00
Mathias Vorreiter Pedersen
b948ed9045
C++: Accept test changes and add a few non-field flow tests to make up for the fact that we're no longer using field flow in the query.
2023-08-25 15:18:15 +01:00
Mathias Vorreiter Pedersen
89b91ec5c8
C++: Disable field flow from the 'cpp/invalid-pointer-deref' query.
2023-08-25 15:01:37 +01:00
Mathias Vorreiter Pedersen
c3cf48b38a
C++: Add a 'fieldFlowBranchLimit' override to the product flow library.
2023-08-25 14:58:56 +01:00
Michael Nebel
02b8adf717
C#: Address review comments and some light re-factoring.
2023-08-25 15:33:54 +02:00
Maiky
ffd618d6cc
Revert "Add "" and nil as sources"
...
This reverts commit 664c1eba72 .
2023-08-25 15:23:55 +02:00
data-douser
5d986d7b60
Update codeql-library-for-go.rst
...
Correct a typo in the golang docs.
2023-08-25 07:10:25 -06:00
Alex Eyers-Taylor
04f8ed6af0
CPP: Simplify code using DeleteOrDeleteArrayExpr
2023-08-25 13:57:16 +01:00
Alex Eyers-Taylor
c43ba456e5
CPP: Remove old DeleteOrDeleteArrayExpr from a query.
2023-08-25 13:57:16 +01:00
Alex Eyers-Taylor
4ca98bd6fd
CPP: Add parent class for delete and delete[]
2023-08-25 13:57:16 +01:00
AlexDenisov
0fe7740dda
Merge pull request #14052 from github/sashabu/swift-logging-compiler
...
Swift: Route compiler diagnostics through our log.
2023-08-25 14:47:24 +02:00
Alex Eyers-Taylor
1afcf8c8a8
Add changenotes.
2023-08-25 13:05:10 +01:00
Alex Eyers-Taylor
9f8fbf8a1a
CPP: Update tests for argv change
2023-08-25 13:05:10 +01:00
Alex Eyers-Taylor
45ddb4832c
CPP: Make wordexp take an indirect argument.
2023-08-25 13:05:10 +01:00
Alex Eyers-Taylor
a2f2b6c33f
CPP:Only consider **argv as tainted.
2023-08-25 13:05:10 +01:00
Michael Nebel
61a523510e
C#: Only use small files during file content reference analysis.
2023-08-25 14:04:52 +02:00
Michael Nebel
a81d982c90
C#: Fetch file info fewer times and make dependencies more clear.
2023-08-25 14:04:52 +02:00
Tony Torralba
6573b1f772
Merge pull request #14056 from atorralba/atorralba/java/jenkins-stapler-regenerate
...
Java: Re-generate Jenkins and Stapler models
2023-08-25 13:15:21 +02:00
Tom Hvitved
42fd9f0c54
Merge pull request #14047 from hvitved/dataflow/join-fix
...
Data flow: Fix a bad join order
2023-08-25 12:18:24 +02:00
Ian Lynagh
a7de0f96e2
Merge pull request #14049 from igfoo/igfoo/kot1.9.10
...
Kotlin: We now support 1.9.10
2023-08-25 11:11:14 +01:00
Rasmus Lerchedahl Petersen
ad49eada48
Python: Do not alter codeql-workspaces.yml
...
And remove the qlpack referred to therein.
Instead we rename and duplicate the extesion file
that this qlpack pointed to.
These two extension files are kept in sync by `identical-files.json`.
2023-08-25 11:46:41 +02:00
Rasmus Lerchedahl Petersen
68cd422788
Python: Fix test expectations
2023-08-25 11:27:53 +02:00
Tony Torralba
5367fb99d9
Manually update a couple of models affected by the nested name change
2023-08-25 11:25:40 +02:00
Mathias Vorreiter Pedersen
9c5d7350dc
C++: Add a small amount of pruning to 'SizeBarrierConfig'.
2023-08-25 10:25:28 +01:00
Mathias Vorreiter Pedersen
ded06a77d0
C++: More pruning.
2023-08-25 10:22:55 +01:00
Tony Torralba
25ac87279e
Add change note
2023-08-25 11:17:54 +02:00
Tony Torralba
2448bc8ce2
Java: Add new Apache CXF models
2023-08-25 11:17:51 +02:00
Mathias Vorreiter Pedersen
2fd627b460
Merge pull request #13827 from geoffw0/closuremodels
...
Swift: Model withUnsafeBytes and similar closure methods
2023-08-25 10:01:52 +01:00
Tony Torralba
50a9c31b4a
Merge pull request #14055 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-08-25 10:04:51 +02:00
Tony Torralba
2ed01d06b4
Java: Re-generate Jenkins and Stapler models
...
Re-generated the Jenkins and Stapler models to pick up the changes from github/codeql#14032
2023-08-25 10:01:28 +02:00
github-actions[bot]
c9d64b6b4f
Add changed framework coverage reports
2023-08-25 00:14:40 +00:00
Jeroen Ketema
b550c067a1
Java: Remove redundant inline expectation test imports
2023-08-25 00:18:55 +02:00
Jeroen Ketema
9d573e5544
Consolidate all InlineFlowTest libraries in the dataflow qlpack
2023-08-24 21:38:46 +02:00
Rasmus Lerchedahl Petersen
137f9e7234
Python: Adress review comments
...
- make qldoc accurate
- fix ql4ql alert
2023-08-24 21:28:07 +02:00
Rasmus Lerchedahl Petersen
d3c24ba110
PythonÆ fix test expectations
2023-08-24 21:21:49 +02:00
Rasmus Lerchedahl Petersen
e9e6bce80a
shared: handle empty groups in delta
2023-08-24 21:21:49 +02:00
Rasmus Lerchedahl Petersen
88fc96e8d7
Python: Add test with prefix
2023-08-24 21:21:49 +02:00
Rasmus Lerchedahl Petersen
7ad1a21c2d
Python: make mode characters not be characters
...
They are simply considered part of the group start.
2023-08-24 21:21:49 +02:00
yoff
a834703195
Merge pull request #13779 from geoffw0/pythonparsemode
...
Python: Understand multiple parse mode flags specified in a regular expression string
2023-08-24 21:20:45 +02:00
Tom Hvitved
763216b932
Merge pull request #14045 from hvitved/csharp/standalone-resolve-target-framework
...
C#: Favor DLLs with most recent .NET Core target framework when resolving dependencies in standalone
2023-08-24 20:56:26 +02:00
erik-krogh
56f1ff8af1
bump from release candidate to final release
2023-08-24 20:32:27 +02:00
erik-krogh
0273b20c75
add downgrade and upgrade script 🤞
2023-08-24 20:30:26 +02:00
erik-krogh
ce97d38a18
add to the stat file
2023-08-24 20:30:26 +02:00
erik-krogh
cb66d62959
add test for the new type-stuff in TS 5.2 we get for free
2023-08-24 20:30:26 +02:00
erik-krogh
dc454d3a72
add support for the new using keyword in TypeScript
2023-08-24 20:30:26 +02:00
erik-krogh
a7d92b3473
add JS support the using keyword
2023-08-24 20:30:26 +02:00
erik-krogh
dfc83d844a
very initial support for TypeScript 5.2
2023-08-24 20:30:25 +02:00
Geoffrey White
415d9e0674
Swift: Address review comments.
2023-08-24 18:41:48 +01:00
Alexandre Boulgakov
7e05551f16
Swift: Check whether a SourceLoc is valid before using it.
2023-08-24 18:14:34 +01:00
Ian Lynagh
5dff1852e1
Kotlin: We now support 1.9.10
2023-08-24 17:36:45 +01:00
Geoffrey White
242a49e6f1
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-08-24 17:19:01 +01:00
shati-patel
c44b8249a5
Docs: Update screenshots of variant analysis results view
2023-08-24 17:15:04 +01:00
Mathias Vorreiter Pedersen
bdad9e197b
C++: Fix more joins.
...
Before:
```
[2023-08-24 15:47:20] Evaluated non-recursive predicate _IRBlock#896e97af::IRBlock::dominates#1#dispred#ff_Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInpu__#antijoin_rhs@94b1847k in 9831ms (size: 70660).
Evaluated relational algebra for predicate _IRBlock#896e97af::IRBlock::dominates#1#dispred#ff_Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInpu__#antijoin_rhs@94b1847k with tuple counts:
1121232 ~0% {4} r1 = JOIN _DataFlowUtil#47741e1f::Cached::simpleLocalFlowStep#2#ff_10#join_rhs_DataFlowUtil#47741e1f::TSsaPhiN__#shared WITH Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInput#::DefinitionExt::definesAt#4#dispred#fffff ON FIRST 1 OUTPUT Rhs.2, Lhs.0, Lhs.1, Lhs.2
265759166 ~2% {4} r2 = JOIN r1 WITH IRBlock#896e97af::IRBlock::dominates#1#dispred#ff ON FIRST 1 OUTPUT Lhs.3, Rhs.1, Lhs.1, Lhs.2
70684 ~5% {3} r3 = JOIN r2 WITH project#DataFlowUtil#47741e1f::Node::hasIndexInBlock#fff ON FIRST 2 OUTPUT Lhs.2, Lhs.3, Lhs.0
return r3
[2023-08-24 15:47:29] Evaluated non-recursive predicate DataFlowUtil#47741e1f::SsaPhiNode::getAnInput#1#dispred#fff@b6f296tl in 8943ms (size: 1121232).
Evaluated relational algebra for predicate DataFlowUtil#47741e1f::SsaPhiNode::getAnInput#1#dispred#fff@b6f296tl with tuple counts:
1050572 ~2% {3} r1 = _DataFlowUtil#47741e1f::Cached::simpleLocalFlowStep#2#ff_10#join_rhs_DataFlowUtil#47741e1f::TSsaPhiN__#shared AND NOT _IRBlock#896e97af::IRBlock::dominates#1#dispred#ff_Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInpu__#antijoin_rhs(Lhs.0, Lhs.1, Lhs.2)
1050572 ~3% {3} r2 = SCAN r1 OUTPUT In.1, false, In.2
1121232 ~0% {3} r3 = JOIN _DataFlowUtil#47741e1f::Cached::simpleLocalFlowStep#2#ff_10#join_rhs_DataFlowUtil#47741e1f::TSsaPhiN__#shared WITH Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInput#::DefinitionExt::definesAt#4#dispred#fffff ON FIRST 1 OUTPUT Rhs.2, Lhs.1, Lhs.2
265759166 ~1% {3} r4 = JOIN r3 WITH IRBlock#896e97af::IRBlock::dominates#1#dispred#ff ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1
70684 ~0% {2} r5 = JOIN r4 WITH project#DataFlowUtil#47741e1f::Node::hasIndexInBlock#fff ON FIRST 2 OUTPUT Lhs.2, Lhs.0
70684 ~0% {3} r6 = SCAN r5 OUTPUT In.0, true, In.1
1121256 ~2% {3} r7 = r2 UNION r6
return r7
```
After:
```
Evaluated non-recursive predicate DataFlowUtil#47741e1f::SsaPhiNode::getAnInput#1#dispred#fff@59ab2a2e in 456ms (size: 1117096).
Evaluated relational algebra for predicate DataFlowUtil#47741e1f::SsaPhiNode::getAnInput#1#dispred#fff@59ab2a2e with tuple counts:
384518 ~0% {2} r1 = JOIN DataFlowUtil#47741e1f::TSsaPhiNode#ff WITH Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInput#::DefinitionExt::definesAt#4#dispred#fffff ON FIRST 1 OUTPUT Lhs.1, Rhs.2
1121232 ~0% {3} r2 = JOIN r1 WITH DataFlowUtil#47741e1f::Cached::simpleLocalFlowStep#2#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Lhs.1
1117447 ~0% {4} r3 = JOIN r2 WITH project#DataFlowUtil#47741e1f::Node::hasIndexInBlock#fff ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1, Lhs.0
70684 ~0% {2} r4 = JOIN r3 WITH IRBlock#896e97af::IRBlock::dominates#1#dispred#ff ON FIRST 2 OUTPUT Lhs.2, Lhs.3
70684 ~0% {3} r5 = SCAN r4 OUTPUT In.0, true, In.1
1117447 ~0% {4} r6 = JOIN r2 WITH project#DataFlowUtil#47741e1f::Node::hasIndexInBlock#fff ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1, Lhs.0
{4} r7 = r6 AND NOT IRBlock#896e97af::IRBlock::dominates#1#dispred#ff(Lhs.0, Lhs.1)
1046763 ~0% {2} r8 = SCAN r7 OUTPUT In.2, In.3
1046763 ~3% {3} r9 = SCAN r8 OUTPUT In.0, false, In.1
1117447 ~2% {3} r10 = r5 UNION r9
return r10
```
2023-08-24 15:57:39 +01:00
Jeroen Ketema
da403c1a79
Merge pull request #14039 from jketema/non-constant-assign
...
C++: Omit assign case from `cpp/non-constant-format`
2023-08-24 16:54:19 +02:00
Jeroen Ketema
45c56fbce7
Update cpp/ql/src/change-notes/2023-08-24-remove-non-constant-assign-sources.md
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-08-24 16:17:59 +02:00
Jeroen Ketema
607f729339
C++: Add change note
2023-08-24 16:11:39 +02:00
Asger F
6c664e93ef
Merge pull request #14035 from asgerf/shared/variable-capture-nested
...
Variable capture: synchronize with aliases in nested scopes
2023-08-24 15:39:34 +02:00
Paolo Tranquilli
e3d6b3e537
Swift: route compiler diagnostics through our log
...
(cherry picked from commit b8c55612e5 )
2023-08-24 14:20:15 +01:00
Asger F
f17518ace2
Java: update to reflect changes in VariableCapture.qll
2023-08-24 14:06:44 +02:00
Asger F
cd7c851d64
VariableCapture: add VariableWriteSourceNode
2023-08-24 14:06:44 +02:00
Asger F
1286235773
Address review comments
2023-08-24 13:58:33 +02:00
Anders Schack-Mulligen
7af1e96943
Merge pull request #14032 from aschackmull/java/mad-nestednames
...
Java: Use nested names in MaD signatures.
2023-08-24 13:53:55 +02:00
Tony Torralba
6b58d11eeb
Merge pull request #13900 from atorralba/atorralba/java/jaxws-getaremotemethod-improv
...
Java: Improve `JaxWsEndpoint::getARemoteMethod`
2023-08-24 13:37:15 +02:00
Mathias Vorreiter Pedersen
d42e892097
Fix more joins.
...
Before:
```
Tuple counts for valueFlowStepSsa#4#ffff/4@2cddce6j after 11.4s:
11571217 ~3% {3} r1 = SCAN semSsaUpdateStep#3#fff OUTPUT In.0 'v', In.1 'e', f2i(In.2)
11992425 ~0% {4} r2 = JOIN r1 WITH SemanticSSA#aa9d1d08::SemSsaReadPosition::hasReadOfVar#1#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0 'v', Rhs.1 'pos', Lhs.1 'e', Lhs.2 'delta'
869481225 ~2% {4} r3 = JOIN SemanticGuard#7b46a302::semGuardDirectlyControlsSsaRead#3#fff_102#join_rhs WITH SemanticSSA#aa9d1d08::SemSsaReadPosition::hasReadOfVar#1#dispred#ff ON FIRST 1 OUTPUT Rhs.1 'v', Lhs.2, Lhs.1, Lhs.0 'pos'
5749 ~0% {4} r4 = JOIN r3 WITH semEqFlowCond#5#fffbff#cpe#12356_03412#join_rhs ON FIRST 3 OUTPUT Lhs.3 'pos', Lhs.0 'v', Rhs.3 'e', Rhs.4
5749 ~1% {4} r5 = SCAN r4 OUTPUT In.0 'pos', In.1 'v', In.2 'e', f2i(In.3)
5749 ~0% {4} r6 = SCAN r5 OUTPUT In.1 'v', In.0 'pos', In.2 'e', In.3 'delta'
11998174 ~0% {4} r7 = r2 UNION r6
return r7
```
After:
```
Tuple counts for valueFlowStepSsaEqFlowCond#4#ffff/4@f196e4ok after 37ms:
59567 ~0% {5} r1 = JOIN const_true WITH semEqFlowCond#5#ffffff_301245#join_rhs ON FIRST 1 OUTPUT Rhs.1 'v', Rhs.2 'e', Rhs.4, Rhs.5, Rhs.3
59567 ~0% {5} r2 = SCAN r1 OUTPUT In.0 'v', In.1 'e', In.2, In.3, f2i(In.4)
59567 ~4% {5} r3 = SCAN r2 OUTPUT In.3, In.2, In.0 'v', In.1 'e', In.4 'delta'
176881 ~0% {4} r4 = JOIN r3 WITH SemanticGuard#7b46a302::semGuardDirectlyControlsSsaRead#3#fff_021#join_rhs ON FIRST 2 OUTPUT Rhs.2 'pos', Lhs.2 'v', Lhs.3 'e', Lhs.4 'delta'
return r4
Tuple counts for valueFlowStepSsa#4#ffff/4@e22d39v5 after 1s:
5749 ~0% {4} r1 = JOIN SemanticSSA#aa9d1d08::SemSsaReadPosition::hasReadOfVar#1#dispred#ff WITH valueFlowStepSsaEqFlowCond#4#ffff ON FIRST 2 OUTPUT Lhs.1 'v', Lhs.0 'pos', Rhs.2 'e', Rhs.3 'delta'
11571217 ~0% {3} r2 = SCAN semSsaUpdateStep#3#fff OUTPUT In.0 'v', In.1 'e', f2i(In.2)
11992425 ~0% {4} r3 = JOIN r2 WITH SemanticSSA#aa9d1d08::SemSsaReadPosition::hasReadOfVar#1#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0 'v', Rhs.1 'pos', Lhs.1 'e', Lhs.2 'delta'
11998174 ~0% {4} r4 = r1 UNION r3
return r4
```
2023-08-24 12:20:41 +01:00
Erik Krogh Kristensen
59de92ce64
Merge pull request #14027 from erik-krogh/py-reg-app
...
ReDoS: limit concretize to strings of at most length 100
2023-08-24 12:57:42 +02:00
Tom Hvitved
f2eed4d8c4
Data flow: Fix a bad join order
...
Before
```
Evaluated relational algebra for predicate DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::flowThroughIntoCall#6#ffffff@0ea4e2mt with tuple counts:
1065437 ~0% {4} r1 = SCAN project#DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::fwdFlow#9#fffffffff#2 OUTPUT In.0, In.3, In.1, In.2
1158508760 ~0% {6} r2 = JOIN r1 WITH project#DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::flowIntoCallApa#6#ffffff_14023#join_rhs ON FIRST 2 OUTPUT Lhs.0, Lhs.2, Lhs.3, Rhs.2, Rhs.3, Rhs.4
{6} r3 = SELECT r2 ON In.5 != false
1158470345 ~4% {6} r4 = SCAN r3 OUTPUT In.4, In.1, In.2, In.0, In.3, In.5
{6} r5 = SELECT r2 ON In.5 = false
38415 ~0% {5} r6 = SCAN r5 OUTPUT In.2, In.0, In.1, In.3, In.4
4 ~0% {5} r7 = JOIN r6 WITH DataFlowImplCommon#f7de413b::MakeImplCommon#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Cached::TApproxFrontNil#f ON FIRST 1 OUTPUT Lhs.4, Lhs.2, Lhs.0, Lhs.1, Lhs.3
4 ~0% {6} r8 = SCAN r7 OUTPUT In.0, In.1, In.2, In.3, In.4, false
1158470349 ~4% {6} r9 = r4 UNION r8
44065 ~3% {6} r10 = JOIN r9 WITH project#DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::returnFlowsThrough#8#ffffffff ON FIRST 3 OUTPUT Lhs.4, Lhs.3, Lhs.0, Lhs.5, Lhs.2, Rhs.3
return r10
```
After
```
Evaluated relational algebra for predicate DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::flowThroughIntoCall#6#ffffff@979c54q9 with tuple counts:
11095 ~0% {4} r1 = SCAN project#DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::returnFlowsThrough#8#ffffffff OUTPUT In.0, In.3, In.1, In.2
470154 ~1% {8} r2 = JOIN r1 WITH project#DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::flowIntoCallApa#6#ffffff_20134#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Lhs.2, Lhs.3, Rhs.1, Rhs.2, Rhs.3, Rhs.4
{8} r3 = SELECT r2 ON In.6 != false
470152 ~0% {8} r4 = SCAN r3 OUTPUT In.5, In.2, In.3, In.7, In.0, In.1, In.4, In.6
{8} r5 = SELECT r2 ON In.6 = false
2 ~0% {7} r6 = SCAN r5 OUTPUT In.3, In.0, In.1, In.2, In.4, In.5, In.7
0 ~0% {7} r7 = JOIN r6 WITH DataFlowImplCommon#f7de413b::MakeImplCommon#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Cached::TApproxFrontNil#f ON FIRST 1 OUTPUT Lhs.5, Lhs.3, Lhs.0, Lhs.6, Lhs.1, Lhs.2, Lhs.4
0 ~0% {8} r8 = SCAN r7 OUTPUT In.0, In.1, In.2, In.3, In.4, In.5, In.6, false
470152 ~0% {8} r9 = r4 UNION r8
44065 ~3% {6} r10 = JOIN r9 WITH project#DataFlowImpl#248dabc3::MakeImpl#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Impl#DataFlow#167ac380::DataFlowMake#DataFlowImplSpecific#21008cd7::RubyDataFlow#::Global#XSS#e59174e9::OrmTracking::Config#::C#::MkStage#Stage2#::Stage#Stage3Param#::fwdFlow#9#fffffffff#2 ON FIRST 4 OUTPUT Lhs.6, Lhs.0, Lhs.5, Lhs.7, Lhs.2, Lhs.4
return r10
```
2023-08-24 12:08:34 +02:00
Geoffrey White
f07f97a94e
Python: Accept test changes. I think these reflect the 'parse mode chars should not be considered chars' issue.
2023-08-24 10:52:52 +01:00
Tom Hvitved
7723dbc6d7
Merge pull request #14026 from hvitved/dataflow/stage3-call-ctx
...
Data flow: Use call contexts in stage 3
2023-08-24 11:52:08 +02:00
Tony Torralba
8c32919381
Merge pull request #13903 from atorralba/atorralba/jaxrs-mad-models
...
Java: New models for JAX-RS
2023-08-24 11:43:13 +02:00
Tom Hvitved
554a2c26c3
C#: Favor DLLs with most recent .NET Core target framework when resolving dependencies in standalone
2023-08-24 11:42:06 +02:00
Tony Torralba
3f9701cea7
Two fixes:
...
* Consider that the @WebService annotation (et al) can be in a supertype or interface
* getARemoteMethod should only return public methods, since protected, package-private, and private methods are not exposed
2023-08-24 11:35:52 +02:00
Mathias Vorreiter Pedersen
4e6707fee5
Fix joins.
...
Before:
```
Pipeline standard for boundedSsa#8#ffffffff@d4d576wg was evaluated in 651 iterations totaling 39789ms (delta sizes total: 235714).
3482 ~0% {8} r1 = JOIN unequalIntegralSsa#5#fffff#prev_delta WITH boundedSsa#8#ffffffff#prev ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.4, Rhs.5, Rhs.6
1747 ~0% {8} r2 = SELECT r1 ON In.5 = false
1747 ~3% {8} r3 = SCAN r2 OUTPUT In.0, In.1, In.2, (In.3 + i2f(1)), false, In.6, In.7, In.4
1735 ~4% {8} r4 = SELECT r1 ON In.5 = true
1735 ~6% {8} r5 = SCAN r4 OUTPUT In.0, In.1, In.2, (In.3 - i2f(1)), true, In.6, In.7, In.4
1843 ~97% {8} r6 = JOIN unequalIntegralSsa#5#fffff#prev WITH boundedSsa#8#ffffffff#prev_delta ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.4, Rhs.5, Rhs.6
907 ~99% {8} r7 = SELECT r6 ON In.5 = false
907 ~108% {8} r8 = SCAN r7 OUTPUT In.0, In.1, In.2, (In.3 + i2f(1)), false, In.6, In.7, In.4
2642 ~41% {8} r9 = r5 UNION r8
4389 ~22% {8} r10 = r3 UNION r9
936 ~99% {8} r11 = SELECT r6 ON In.5 = true
936 ~100% {8} r12 = SCAN r11 OUTPUT In.0, In.1, In.2, (In.3 - i2f(1)), true, In.6, In.7, In.4
512745 ~2% {6} r13 = SCAN bounded#7#fffffff#prev_delta OUTPUT In.0, In.3, In.1, In.2, In.4, In.5
229218 ~0% {9} r14 = JOIN r13 WITH boundFlowStepSsa#6#ffffff_240135#join_rhs ON FIRST 2 OUTPUT Rhs.5, Rhs.2, Rhs.3, Lhs.2, Rhs.4, Lhs.3, Lhs.1, Lhs.4, Lhs.5
229218 ~0% {8} r15 = SCAN r14 OUTPUT In.0, In.1, In.2, In.3, (In.4 + In.5), In.6, In.7, In.8
{8} r16 = r15 AND NOT num#TSemNoReason#f(Lhs.0)
5397 ~0% {8} r17 = SCAN r16 OUTPUT In.1, In.2, In.3, In.4, In.5, In.6, In.7, In.0
557965 ~0% {5} r18 = SCAN unequalIntegralSsa#5#fffff#prev_delta OUTPUT In.0, In.2, In.3, In.1, In.4
0 ~0% {8} r19 = JOIN r18 WITH boundedPhi#7#fffffff#prev ON FIRST 3 OUTPUT Lhs.0, Lhs.3, Lhs.1, Lhs.2, Lhs.4, Rhs.3, Rhs.4, Rhs.5
0 ~0% {8} r20 = SELECT r19 ON In.5 = false
0 ~0% {8} r21 = SCAN r20 OUTPUT In.0, In.1, In.2, (In.3 + i2f(1)), false, In.6, In.7, In.4
5397 ~0% {8} r22 = r17 UNION r21
6333 ~12% {8} r23 = r12 UNION r22
10722 ~16% {8} r24 = r10 UNION r23
0 ~0% {8} r25 = SELECT r19 ON In.5 = true
0 ~0% {8} r26 = SCAN r25 OUTPUT In.0, In.1, In.2, (In.3 - i2f(1)), true, In.6, In.7, In.4
362119282 ~1% {5} r27 = SCAN unequalIntegralSsa#5#fffff#prev OUTPUT In.0, In.2, In.3, In.1, In.4
41 ~8% {8} r28 = JOIN r27 WITH boundedPhi#7#fffffff#prev_delta ON FIRST 3 OUTPUT Lhs.0, Lhs.3, Lhs.1, Lhs.2, Lhs.4, Rhs.3, Rhs.4, Rhs.5
27 ~0% {8} r29 = SELECT r28 ON In.5 = false
27 ~4% {8} r30 = SCAN r29 OUTPUT In.0, In.1, In.2, (In.3 + i2f(1)), false, In.6, In.7, In.4
14 ~42% {8} r31 = SELECT r28 ON In.5 = true
14 ~42% {8} r32 = SCAN r31 OUTPUT In.0, In.1, In.2, (In.3 - i2f(1)), true, In.6, In.7, In.4
41 ~12% {8} r33 = r30 UNION r32
41 ~12% {8} r34 = r26 UNION r33
512745 ~0% {7} r35 = SCAN bounded#7#fffffff#prev_delta OUTPUT In.0, In.3, In.1, In.2, In.4, In.5, In.6
229272 ~0% {10} r36 = JOIN r35 WITH boundFlowStepSsa#6#ffffff_240135#join_rhs ON FIRST 2 OUTPUT Rhs.5, Lhs.2, Lhs.1, Lhs.4, Lhs.5, Lhs.6, Rhs.2, Rhs.3, Rhs.4, Lhs.3
229272 ~0% {9} r37 = SCAN r36 OUTPUT In.0, In.1, In.2, In.3, In.4, In.5, In.6, In.7, (In.8 + In.9)
223867 ~0% {8} r38 = JOIN r37 WITH num#TSemNoReason#f ON FIRST 1 OUTPUT Lhs.6, Lhs.7, Lhs.1, Lhs.8, Lhs.2, Lhs.3, Lhs.4, Lhs.5
3482 ~1% {8} r39 = JOIN unequalIntegralSsa#5#fffff#prev_delta WITH boundedSsa#8#ffffffff#prev ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Rhs.4, Rhs.5, Rhs.6, Rhs.7
1747 ~0% {8} r40 = SELECT r39 ON In.4 = false
1747 ~0% {8} r41 = SCAN r40 OUTPUT In.7, In.0, In.1, In.2, (In.3 + i2f(1)), false, In.5, In.6
1735 ~0% {8} r42 = SELECT r39 ON In.4 = true
1735 ~0% {8} r43 = SCAN r42 OUTPUT In.7, In.0, In.1, In.2, (In.3 - i2f(1)), true, In.5, In.6
3482 ~0% {8} r44 = r41 UNION r43
557965 ~0% {4} r45 = SCAN unequalIntegralSsa#5#fffff#prev_delta OUTPUT In.0, In.2, In.3, In.1
0 ~0% {8} r46 = JOIN r45 WITH boundedPhi#7#fffffff#prev ON FIRST 3 OUTPUT Lhs.0, Lhs.3, Lhs.1, Lhs.2, Rhs.3, Rhs.4, Rhs.5, Rhs.6
0 ~0% {8} r47 = SELECT r46 ON In.4 = false
0 ~0% {8} r48 = SCAN r47 OUTPUT In.7, In.0, In.1, In.2, (In.3 + i2f(1)), false, In.5, In.6
0 ~0% {8} r49 = SELECT r46 ON In.4 = true
0 ~0% {8} r50 = SCAN r49 OUTPUT In.7, In.0, In.1, In.2, (In.3 - i2f(1)), true, In.5, In.6
0 ~0% {8} r51 = r48 UNION r50
3482 ~0% {8} r52 = r44 UNION r51
{8} r53 = r52 AND NOT num#TSemNoReason#f(Lhs.0)
20 ~0% {8} r54 = SCAN r53 OUTPUT In.1, In.2, In.3, In.4, In.5, In.6, In.7, In.0
1843 ~0% {8} r55 = JOIN unequalIntegralSsa#5#fffff#prev WITH boundedSsa#8#ffffffff#prev_delta ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Rhs.4, Rhs.5, Rhs.6, Rhs.7
907 ~0% {8} r56 = SELECT r55 ON In.4 = false
907 ~1% {8} r57 = SCAN r56 OUTPUT In.7, In.0, In.1, In.2, (In.3 + i2f(1)), false, In.5, In.6
936 ~0% {8} r58 = SELECT r55 ON In.4 = true
936 ~1% {8} r59 = SCAN r58 OUTPUT In.7, In.0, In.1, In.2, (In.3 - i2f(1)), true, In.5, In.6
1843 ~3% {8} r60 = r57 UNION r59
362119282 ~0% {4} r61 = SCAN unequalIntegralSsa#5#fffff#prev OUTPUT In.0, In.2, In.3, In.1
41 ~0% {8} r62 = JOIN r61 WITH boundedPhi#7#fffffff#prev_delta ON FIRST 3 OUTPUT Lhs.0, Lhs.3, Lhs.1, Lhs.2, Rhs.3, Rhs.4, Rhs.5, Rhs.6
27 ~0% {8} r63 = SELECT r62 ON In.4 = false
27 ~0% {8} r64 = SCAN r63 OUTPUT In.7, In.0, In.1, In.2, (In.3 + i2f(1)), false, In.5, In.6
14 ~0% {8} r65 = SELECT r62 ON In.4 = true
14 ~0% {8} r66 = SCAN r65 OUTPUT In.7, In.0, In.1, In.2, (In.3 - i2f(1)), true, In.5, In.6
41 ~0% {8} r67 = r64 UNION r66
1884 ~3% {8} r68 = r60 UNION r67
{8} r69 = r68 AND NOT num#TSemNoReason#f(Lhs.0)
1853 ~0% {8} r70 = SCAN r69 OUTPUT In.1, In.2, In.3, In.4, In.5, In.6, In.7, In.0
1873 ~0% {8} r71 = r54 UNION r70
225740 ~0% {8} r72 = r38 UNION r71
225781 ~0% {8} r73 = r34 UNION r72
236503 ~2% {8} r74 = r24 UNION r73
235722 ~1% {8} r75 = r74 AND NOT boundedSsa#8#ffffffff#prev(Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5, Lhs.6, Lhs.7)
return r75
```
After:
```
Pipeline standard for boundedSsa#8#ffffffff@2122e6w8 was evaluated in 651 iterations totaling 343ms (delta sizes total: 235815).
0 ~0% {8} r1 = JOIN unequalIntegralSsa#5#fffff#prev_delta WITH boundedPhi#7#fffffff#prev ON FIRST 3 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.3, Rhs.4, Rhs.5
0 ~0% {8} r2 = SELECT r1 ON In.5 = false
0 ~0% {8} r3 = SCAN r2 OUTPUT In.0, In.1, (In.2 + i2f(1)), In.3, false, In.6, In.7, In.4
0 ~0% {8} r4 = SELECT r1 ON In.5 = true
0 ~0% {8} r5 = SCAN r4 OUTPUT In.0, In.1, (In.2 - i2f(1)), In.3, true, In.6, In.7, In.4
41 ~8% {8} r6 = JOIN unequalIntegralSsa#5#fffff#prev WITH boundedPhi#7#fffffff#prev_delta ON FIRST 3 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.3, Rhs.4, Rhs.5
27 ~0% {8} r7 = SELECT r6 ON In.5 = false
27 ~0% {8} r8 = SCAN r7 OUTPUT In.0, In.1, (In.2 + i2f(1)), In.3, false, In.6, In.7, In.4
27 ~0% {8} r9 = r5 UNION r8
27 ~0% {8} r10 = r3 UNION r9
14 ~42% {8} r11 = SELECT r6 ON In.5 = true
14 ~42% {8} r12 = SCAN r11 OUTPUT In.0, In.1, (In.2 - i2f(1)), In.3, true, In.6, In.7, In.4
3482 ~0% {8} r13 = JOIN unequalIntegralSsa#5#fffff#prev_delta WITH boundedSsa#8#ffffffff#prev ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.4, Rhs.5, Rhs.6
1747 ~0% {8} r14 = SELECT r13 ON In.5 = false
1747 ~3% {8} r15 = SCAN r14 OUTPUT In.0, In.1, (In.2 + i2f(1)), In.3, false, In.6, In.7, In.4
1735 ~3% {8} r16 = SELECT r13 ON In.5 = true
1735 ~3% {8} r17 = SCAN r16 OUTPUT In.0, In.1, (In.2 - i2f(1)), In.3, true, In.6, In.7, In.4
3482 ~0% {8} r18 = r15 UNION r17
3496 ~0% {8} r19 = r12 UNION r18
3523 ~0% {8} r20 = r10 UNION r19
1843 ~103% {8} r21 = JOIN unequalIntegralSsa#5#fffff#prev WITH boundedSsa#8#ffffffff#prev_delta ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Rhs.4, Rhs.5, Rhs.6
907 ~105% {8} r22 = SELECT r21 ON In.5 = false
907 ~108% {8} r23 = SCAN r22 OUTPUT In.0, In.1, (In.2 + i2f(1)), In.3, false, In.6, In.7, In.4
936 ~101% {8} r24 = SELECT r21 ON In.5 = true
936 ~109% {8} r25 = SCAN r24 OUTPUT In.0, In.1, (In.2 - i2f(1)), In.3, true, In.6, In.7, In.4
512745 ~4% {6} r26 = SCAN bounded#7#fffffff#prev_delta OUTPUT In.0, In.3, In.1, In.2, In.4, In.5
229313 ~0% {9} r27 = JOIN r26 WITH boundFlowStepSsa#6#ffffff_240135#join_rhs ON FIRST 2 OUTPUT Rhs.5, Rhs.2, Lhs.2, Rhs.4, Lhs.3, Rhs.3, Lhs.1, Lhs.4, Lhs.5
229313 ~0% {8} r28 = SCAN r27 OUTPUT In.0, In.1, In.2, (In.3 + In.4), In.5, In.6, In.7, In.8
{8} r29 = r28 AND NOT num#TSemNoReason#f(Lhs.0)
5492 ~2% {8} r30 = SCAN r29 OUTPUT In.1, In.2, In.3, In.4, In.5, In.6, In.7, In.0
6428 ~15% {8} r31 = r25 UNION r30
7335 ~27% {8} r32 = r23 UNION r31
512745 ~0% {7} r33 = SCAN bounded#7#fffffff#prev_delta OUTPUT In.0, In.3, In.1, In.2, In.4, In.5, In.6
229367 ~0% {10} r34 = JOIN r33 WITH boundFlowStepSsa#6#ffffff_240135#join_rhs ON FIRST 2 OUTPUT Rhs.5, Lhs.2, Lhs.1, Lhs.4, Lhs.5, Lhs.6, Rhs.2, Rhs.3, Rhs.4, Lhs.3
229367 ~0% {9} r35 = SCAN r34 OUTPUT In.0, In.1, In.2, In.3, In.4, In.5, In.6, In.7, (In.8 + In.9)
223867 ~0% {8} r36 = JOIN r35 WITH num#TSemNoReason#f ON FIRST 1 OUTPUT Lhs.6, Lhs.1, Lhs.8, Lhs.7, Lhs.2, Lhs.3, Lhs.4, Lhs.5
0 ~0% {8} r37 = JOIN unequalIntegralSsa#5#fffff#prev_delta WITH boundedPhi#7#fffffff#prev ON FIRST 3 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Rhs.3, Rhs.4, Rhs.5, Rhs.6
0 ~0% {8} r38 = SELECT r37 ON In.4 = false
0 ~0% {8} r39 = SCAN r38 OUTPUT In.7, In.0, In.1, (In.2 + i2f(1)), In.3, false, In.5, In.6
0 ~0% {8} r40 = SELECT r37 ON In.4 = true
0 ~0% {8} r41 = SCAN r40 OUTPUT In.7, In.0, In.1, (In.2 - i2f(1)), In.3, true, In.5, In.6
0 ~0% {8} r42 = r39 UNION r41
3482 ~0% {8} r43 = JOIN unequalIntegralSsa#5#fffff#prev_delta WITH boundedSsa#8#ffffffff#prev ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Rhs.4, Rhs.5, Rhs.6, Rhs.7
1747 ~0% {8} r44 = SELECT r43 ON In.4 = false
1747 ~0% {8} r45 = SCAN r44 OUTPUT In.7, In.0, In.1, (In.2 + i2f(1)), In.3, false, In.5, In.6
1735 ~1% {8} r46 = SELECT r43 ON In.4 = true
1735 ~2% {8} r47 = SCAN r46 OUTPUT In.7, In.0, In.1, (In.2 - i2f(1)), In.3, true, In.5, In.6
3482 ~2% {8} r48 = r45 UNION r47
3482 ~2% {8} r49 = r42 UNION r48
{8} r50 = r49 AND NOT num#TSemNoReason#f(Lhs.0)
20 ~0% {8} r51 = SCAN r50 OUTPUT In.1, In.2, In.3, In.4, In.5, In.6, In.7, In.0
41 ~2% {8} r52 = JOIN unequalIntegralSsa#5#fffff#prev WITH boundedPhi#7#fffffff#prev_delta ON FIRST 3 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Rhs.3, Rhs.4, Rhs.5, Rhs.6
27 ~0% {8} r53 = SELECT r52 ON In.4 = false
27 ~0% {8} r54 = SCAN r53 OUTPUT In.7, In.0, In.1, (In.2 + i2f(1)), In.3, false, In.5, In.6
14 ~0% {8} r55 = SELECT r52 ON In.4 = true
14 ~0% {8} r56 = SCAN r55 OUTPUT In.7, In.0, In.1, (In.2 - i2f(1)), In.3, true, In.5, In.6
41 ~0% {8} r57 = r54 UNION r56
1843 ~1% {8} r58 = JOIN unequalIntegralSsa#5#fffff#prev WITH boundedSsa#8#ffffffff#prev_delta ON FIRST 4 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3, Rhs.4, Rhs.5, Rhs.6, Rhs.7
907 ~0% {8} r59 = SELECT r58 ON In.4 = false
907 ~1% {8} r60 = SCAN r59 OUTPUT In.7, In.0, In.1, (In.2 + i2f(1)), In.3, false, In.5, In.6
936 ~0% {8} r61 = SELECT r58 ON In.4 = true
936 ~0% {8} r62 = SCAN r61 OUTPUT In.7, In.0, In.1, (In.2 - i2f(1)), In.3, true, In.5, In.6
1843 ~0% {8} r63 = r60 UNION r62
1884 ~0% {8} r64 = r57 UNION r63
{8} r65 = r64 AND NOT num#TSemNoReason#f(Lhs.0)
1853 ~1% {8} r66 = SCAN r65 OUTPUT In.1, In.2, In.3, In.4, In.5, In.6, In.7, In.0
1873 ~1% {8} r67 = r51 UNION r66
225740 ~0% {8} r68 = r36 UNION r67
233075 ~0% {8} r69 = r32 UNION r68
236598 ~0% {8} r70 = r20 UNION r69
235817 ~0% {8} r71 = r70 AND NOT boundedSsa#8#ffffffff#prev(Lhs.0, Lhs.1, Lhs.2, Lhs.3, Lhs.4, Lhs.5, Lhs.6, Lhs.7)
return r71
```
2023-08-24 10:29:04 +01:00
Asger F
b424f3fe83
Update a comment to be more accurate
2023-08-24 11:12:39 +02:00
Jeroen Ketema
9f7413eded
C++: Omit assign case from cpp/non-constant-format
2023-08-24 11:02:40 +02:00
Anders Schack-Mulligen
ebe3f61ef6
Java: Fix models in qltest.
2023-08-24 09:44:43 +02:00
Jeroen Ketema
f996fa2f8b
Merge pull request #14043 from jketema/ir-regres
...
C++: Add IR test case that shows regression after frontend update
2023-08-24 09:23:58 +02:00
AlexDenisov
d89a86fea4
Merge pull request #13979 from github/alexdenisov/autobuilder-spm
...
Swift: teach autobuilder about SPM, CocoaPods, and Carthage
2023-08-24 08:50:04 +02:00
Jeroen Ketema
c882945e30
C++: Add IR test case that shows regression after frontend update
2023-08-24 08:36:22 +02:00
erik-krogh
db2b8d4bcc
remove some test code I accidentially commited
2023-08-24 07:56:05 +02:00
Mathias Vorreiter Pedersen
123e58767b
C++: Share RangeAnalysisUtil with 'cpp/overrun-write'.
2023-08-23 22:42:00 +01:00
Harry Maclean
96e9dfc7b2
Merge pull request #13969 from hmac/shared-extractor-globs
...
Shared extractor: support file path globs
2023-08-23 16:41:39 +01:00
Harry Maclean
b76842ad3d
Shared: Fix clippy lint
2023-08-23 16:24:57 +01:00
Harry Maclean
3680613f2d
Shared: Restrict extractor file globs to filenames
2023-08-23 16:09:56 +01:00
Mathias Vorreiter Pedersen
6cf99688e1
Merge pull request #13985 from alexet/ir-tainted-sql
...
CPP: Convert SQL tainted away from away from DefaultTaintTracking.
2023-08-23 15:40:55 +01:00
Rasmus Wriedt Larsen
89b790d048
Merge pull request #14037 from RasmusWL/fix-tests
...
Python: Fix tests
2023-08-23 16:37:40 +02:00
Rasmus Wriedt Larsen
f33359bd5c
Python: Fix tests
2023-08-23 15:37:55 +02:00
Asger F
2b540e251a
Merge pull request #14007 from asgerf/js/import-path-string
...
JS: Follow immediate predecessors in path resolution
2023-08-23 15:28:22 +02:00
Harry Maclean
54c2221f35
Merge pull request #14033 from hmac/excon-bugfix
...
Ruby: Fix bug in excon model
2023-08-23 14:24:53 +01:00
Harry Maclean
cc7ef5dac1
Shared: Fix clippy lint in shared extractor
2023-08-23 14:11:22 +01:00
Harry Maclean
ed40d72e4f
Shared: Bump extractor version
2023-08-23 14:11:22 +01:00
Harry Maclean
24ac6c0596
QL: Update for shared extractor changes
2023-08-23 14:11:21 +01:00
Harry Maclean
7e2abf20c6
Shared: Support glob patterns in shared extractor
...
Replace the `file_extensions` field with `file_globs`, which supports
UNIX style glob patterns powered by the `globset` crate.
This allows files with no extension (e.g. Dockerfiles) to be extracted,
by specifying a glob such as `*Dockerfile`.
One surprising aspect of this change is that the globs match against the
whole path, rather than just the file name.
This is a breaking change.
2023-08-23 14:11:21 +01:00
Asger F
d146514275
Merge pull request #13928 from asgerf/js/ignore-huge-files
...
JS: Ignore files larger than 10 MB during extraction
2023-08-23 15:09:58 +02:00
Asger F
d2fca1b804
Merge pull request #13926 from asgerf/js/fix-cyclic-alias-extraction
...
JS: fix crash in case of cyclic alias
2023-08-23 15:09:39 +02:00
Geoffrey White
46fc1fdaa1
Swift: Suggestions from review.
2023-08-23 14:04:56 +01:00
Geoffrey White
15c49eeee9
Update swift/ql/lib/codeql/swift/regex/Regex.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-08-23 13:58:05 +01:00
Asger F
ee1b3fd7e9
Java: update test after VariableCapture.qll change
2023-08-23 14:57:26 +02:00
Asger F
8aec87ea57
Update VariableCapture.qll
2023-08-23 14:57:26 +02:00
Alex Eyers-Taylor
949b0a2613
CPP:Move import to start of file
2023-08-23 13:39:29 +01:00
Alex Eyers-Taylor
7d99d61662
CPP: Convert SQL tainted to IR dataflow.
2023-08-23 13:39:29 +01:00
Michael Nebel
08d44c1bdc
Merge pull request #14019 from michaelnebel/csharp/excludedlls
...
C#: Exclude dll files when getting files in the dependency manager.
2023-08-23 14:15:32 +02:00
Asger F
b8fc84e8e4
JS: Change note
2023-08-23 14:11:07 +02:00
Asger F
c6a757e085
JS: More robust handling of cyclic aliases
2023-08-23 14:11:07 +02:00
Asger F
794a459c1b
JS: Add reproduction test
2023-08-23 14:11:07 +02:00
Asger F
b93e404441
JS: Change log
2023-08-23 14:05:21 +02:00
Geoffrey White
02fbb47b64
Swift: Change note.
2023-08-23 13:04:49 +01:00
Geoffrey White
03ca29ab96
Swift: Adapt the IncompleteHostnameRegex qhelp for Swift.
2023-08-23 13:04:49 +01:00
Geoffrey White
1805b070dc
Swift: Adapt the IncompleteHostnameRegex test for Swift.
2023-08-23 13:04:48 +01:00
Harry Maclean
d18ca3f5d7
Ruby: Fix bug in excon model
...
If a codebase included a definition for `Excon.new`, we matched
connection nodes to unrelated request nodes.
2023-08-23 12:55:36 +01:00
Tony Torralba
0f3918af16
Merge pull request #13773 from atorralba/atorralba/java/mdht-xxe-sink
...
Java: Add XXE sinks for MDHT
2023-08-23 13:49:49 +02:00
Asger F
ae2a1c7399
JS: Change note
2023-08-23 13:39:56 +02:00
Anders Schack-Mulligen
736c4beb9e
Java: Add change note.
2023-08-23 13:26:41 +02:00
Anders Schack-Mulligen
6c02e30f56
Java: Update models.
2023-08-23 13:24:55 +02:00
Anders Schack-Mulligen
4b0a1cf74b
Java: Remove old interpretation.
2023-08-23 13:19:16 +02:00
Anders Schack-Mulligen
410c09270f
Java: Use nested names in MaD signatures.
2023-08-23 13:17:52 +02:00
Geoffrey White
d594de8190
Swift: Test dataflow on fields a bit more.
2023-08-23 10:49:03 +01:00
Geoffrey White
efcadbda69
Swift: Get the IncompleteHostnameRegex query working for Swift.
2023-08-23 10:32:10 +01:00
Harry Maclean
a5c8917ff0
Merge pull request #14031 from hmac/hmac-fix-test
...
Ruby: Update test fixture
2023-08-23 10:15:23 +01:00
Harry Maclean
842da58269
Ruby: Update test fixture
2023-08-23 09:59:04 +01:00
Harry Maclean
fb4b774c0d
Merge pull request #13967 from hmac/remove-splat-all
...
Ruby: Remove isSplatAll
2023-08-23 09:40:06 +01:00
Michael Nebel
1f1d48f768
Merge pull request #14020 from tamasvajk/fix/dependency-fetching-1
...
C#: Fix lazy evaluation of not yet downloaded packages
2023-08-23 10:39:29 +02:00
Michael Nebel
95193633fe
Update csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependencyManager.cs
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2023-08-23 10:35:20 +02:00
erik-krogh
25e4f2c3a2
limit concretize to strings of at most length 100
2023-08-23 10:26:29 +02:00
Tom Hvitved
3810b796a0
Data flow: Use call contexts in stage 3
2023-08-23 10:05:57 +02:00
Geoffrey White
6deaf4e5f8
Swift: Rework ParsedStringRegex and introduce the needed RegexPatternSource class.
2023-08-23 09:01:15 +01:00
Asger F
d8462ad1b3
JS: Add a file size limit to extractor
2023-08-23 09:54:55 +02:00
Asger F
bc47646a79
JS: Move getMegabyteCountFromPrefixedEnv into a shared place
2023-08-23 09:54:55 +02:00
Asger F
dec6039469
JS: Follow immediate predecessors in path resolution
2023-08-23 09:53:51 +02:00
Geoffrey White
6fb1058e73
Swift: Copy IncompleteHostnameRegex query from JS.
2023-08-23 08:46:13 +01:00
Michael Nebel
672d1637ab
C#: Exclude dll files when getting files in the dependency manager.
2023-08-23 09:28:49 +02:00
Maiky
664c1eba72
Add "" and nil as sources
2023-08-22 18:10:33 +02:00
Ian Lynagh
deaf912cb8
Kotlin: Add an integration test for extractor information
2023-08-22 16:39:18 +01:00
Jeroen Ketema
cf53956d39
Merge pull request #14021 from jketema/non-const-format-test
...
C++: Add `cpp/non-constant-format` test
2023-08-22 17:38:45 +02:00
Jeroen Ketema
6566b91355
C++: Add indication that the test result is good
2023-08-22 16:38:46 +02:00
Robert Marsh
5734e475d4
Merge pull request #14014 from rdmarsh2/rdmarsh2/swift/keypath-force-steps
...
Swift: flow through keypath optional components
2023-08-22 10:35:36 -04:00
Jeroen Ketema
1e8daff02a
C++: Add cpp/non-constant-format test
2023-08-22 16:23:47 +02:00
Robert Marsh
e94781fa8f
Swift: fix comment
2023-08-22 13:27:17 +00:00
Michael Nebel
c1f167ceee
C#: Move package filtering logic from FileContent to DependencyManager.
2023-08-22 14:51:33 +02:00
Tamas Vajk
87d0d723ed
C#: Fix lazy evaluation of not yet downloaded packages
2023-08-22 14:50:03 +02:00
Mathias Vorreiter Pedersen
530c950b41
C++: Fix formatting.
2023-08-22 13:40:00 +01:00
Mathias Vorreiter Pedersen
66f11d427b
C++: Simplify description.
2023-08-22 13:39:38 +01:00
Mathias Vorreiter Pedersen
bbce7ee96d
C++: Cache 'getAnInput' since it's now used in several queries.
2023-08-22 13:37:24 +01:00
Tamás Vajk
afe1e9c453
Merge pull request #13957 from tamasvajk/razor-standalone-2
...
C#: Generate source files from cshtml files in standalone
2023-08-22 14:22:11 +02:00
Michael Nebel
fe36230061
Merge pull request #14015 from michaelnebel/csharp/vscodesettings
...
C#: Update of VS Code settings.
2023-08-22 14:16:31 +02:00
Mathias Vorreiter Pedersen
1c3a0d1632
Update cpp/ql/src/Security/CWE/CWE-193/InvalidPointerDeref.qhelp
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-08-22 13:03:07 +01:00
Mathias Vorreiter Pedersen
e88277bd3b
Update cpp/ql/src/Security/CWE/CWE-193/InvalidPointerDeref.qhelp
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-08-22 13:02:37 +01:00
Mathias Vorreiter Pedersen
abe28cb106
Update cpp/ql/src/Security/CWE/CWE-193/InvalidPointerDeref.ql
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-08-22 13:02:29 +01:00
Ian Lynagh
c67cc23e07
Kotlin: Write usesK2 information to the database
2023-08-22 12:37:01 +01:00
Tom Hvitved
31738a37ae
Merge pull request #14016 from hvitved/csharp/codeql-threads
...
C#: Respect `$CODEQL_THREADS` environment variable
2023-08-22 13:04:48 +02:00
Maiky
f301e46175
Remove isEmptyPassword predicate
2023-08-22 12:23:32 +02:00
yoff
00c0ebe9e4
Merge pull request #13738 from RasmusWL/path-steps
...
Python: Include all assignments in data flow paths
2023-08-22 11:58:11 +02:00
Michael Nebel
2b718fbc62
Merge pull request #13995 from michaelnebel/csharp/refactorimports
...
C#: Re-factor imports.
2023-08-22 11:52:02 +02:00
Tom Hvitved
6bb37ca465
C#: Respect $CODEQL_THREADS environment variable
2023-08-22 11:46:03 +02:00
Michael Nebel
b4c903fd15
C#: tasks.json no longer needed if C# Dev kit is installed.
2023-08-22 11:45:53 +02:00
Michael Nebel
8441b54bd8
C#: Set the extractor solution file as the default solution for the C# Dev Kit and add config for the Format usings plugin.
2023-08-22 11:35:47 +02:00
Michael Nebel
e9b1c933ed
C#: Recommend the C# Dev Kit and C# Format usings plugins.
2023-08-22 11:34:50 +02:00
Tom Hvitved
5192d7c137
Merge pull request #13997 from hvitved/ruby/type-tracking-splats
...
Ruby: Include more (hash) splat flow in type tracking
2023-08-22 11:33:39 +02:00
Tom Hvitved
3f54ecbcc2
Update ruby/ql/lib/codeql/ruby/typetracking/TypeTrackerSpecific.qll
...
Co-authored-by: Harry Maclean <hmac@github.com >
2023-08-22 11:18:12 +02:00
Alex Denisov
5cce37baa9
Swift: update test expectations
2023-08-22 11:11:28 +02:00
Alex Denisov
48607e3ad7
Swift: address code review comments
2023-08-22 10:01:16 +02:00
AlexDenisov
b98a966729
Apply suggestions from code review
...
Co-authored-by: Paolo Tranquilli <redsun82@github.com >
2023-08-22 09:57:25 +02:00
Anders Starcke Henriksen
3b8b33a94d
Released pack.
2023-08-22 09:45:52 +02:00
Anders Starcke Henriksen
3aeacf6df3
Update publish script to have right path.
2023-08-22 09:37:31 +02:00
Anders Schack-Mulligen
bdc5f9cdea
Merge pull request #14012 from knewbury01/knewbury01/add-sanitizer-command-query
...
Java: add sanitizer to command injection query
2023-08-22 08:40:49 +02:00
Michael Nebel
ce6fd8ac5f
Merge pull request #13432 from michaelnebel/updateissupported
...
Java/C#: Update telemetry queries to report callables with sink/source neutrals as being supported.
2023-08-22 08:39:38 +02:00
Sid Shankar
a9ea61f0b2
Merge pull request #14001 from github/sidshank/clarify-js-and-ts-requirements
...
Clarify system requirements for TypeScript extraction
2023-08-21 20:59:11 -04:00
Robert Marsh
a335ece5e5
Swift: change note for keypath optional flows
2023-08-21 20:11:37 +00:00
Robert Marsh
1634fa2e25
Swift: support for optional chaining in keypaths
2023-08-21 20:09:28 +00:00
Robert Marsh
81bf415b50
Swift: modify test so implicit read isn't needed at sink
2023-08-21 20:08:30 +00:00
Robert Marsh
246d5c530e
Swift: flow through keypath force components
2023-08-21 19:07:40 +00:00
Geoffrey White
f7776f812c
Swift: 'good enough' fix for UnsafeJsEval flow.
2023-08-21 18:30:30 +01:00
Henry Mercer
5a76b9f59e
Merge pull request #14010 from github/henrymercer/cs/add-alias
...
C#: Add "c#" alias to language pack
2023-08-21 18:26:54 +01:00
Geoffrey White
317757b7ae
Swift: Create proper models for JavaScriptCore.
2023-08-21 18:24:26 +01:00
Kristen Newbury
5e01e1d464
Java: add sanitizer to command injection query
2023-08-21 12:33:05 -04:00
Mathias Vorreiter Pedersen
e1ed49f3ac
Merge pull request #14011 from github/revert-13991-redsun82/swift-use-concepts
...
Revert "Swift: use C++20 constraints and concepts to simplify code"
2023-08-21 17:21:42 +01:00
Paolo Tranquilli
1daedd9fb6
Revert "Swift: use C++20 constraints and concepts to simplify code"
2023-08-21 17:40:15 +02:00
Henry Mercer
cbce0736c2
C#: Add "c#" alias to language pack
...
This will allow users to reference the C# extractor using
`--language c#` in future versions of the CLI.
2023-08-21 16:27:39 +01:00
Harry Maclean
414ae76ae1
Ruby: Add another splat flow test
2023-08-21 16:21:55 +01:00
Harry Maclean
c615f183c1
Ruby: Add test for spurious splat flow
...
We don't yet properly model splat flow when a positional argument
follows a splat argument.
2023-08-21 16:11:10 +01:00
Max Schaefer
87364137df
Use more sensible validator in example.
2023-08-21 15:14:01 +01:00
Tamas Vajk
2575db356d
Improve code quality: fix review findings
2023-08-21 16:07:56 +02:00
Paolo Tranquilli
6d85d0d0f7
Merge pull request #13991 from github/redsun82/swift-use-concepts
...
Swift: use C++20 constraints and concepts to simplify code
2023-08-21 15:45:44 +02:00
Mathias Vorreiter Pedersen
ef9d342a99
C++: Accept more test changes.
2023-08-21 14:02:18 +01:00
Mathias Vorreiter Pedersen
c46f9e4572
C++: Don't consider additional loads when reusing dataflow operands.
2023-08-21 12:51:41 +01:00
Mathias Vorreiter Pedersen
50190efe1c
C++: Don't limit instruction and operand reuse to those cases where we have a result for 'isUseImpl'.
2023-08-21 12:51:00 +01:00
Tom Hvitved
12d1d04592
Merge pull request #13983 from hvitved/dataflow/reduced-dispatch-early-join
...
Data flow: Earlier call-context based dispatch filtering
2023-08-21 13:20:08 +02:00
Tom Hvitved
1b4520b058
Data flow: Update QL doc
2023-08-21 12:56:37 +02:00
Sid Shankar
671eb0f82f
Updates requirements for TypeScript only
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-08-21 06:51:30 -04:00
Jeroen Ketema
2d0f73d7c2
Merge pull request #13881 from jketema/shared-taint-tracking
...
Introduce shared taint tracking library
2023-08-21 12:45:49 +02:00
Geoffrey White
6ef6be7291
Swift: UnsafeJSEval regression.
2023-08-21 11:28:48 +01:00
Geoffrey White
997984c529
Swift: Minor test .expected changes.
2023-08-21 11:15:43 +01:00
Geoffrey White
a54747f850
Swift: Fix mysterious taint flow issue.
2023-08-21 11:06:04 +01:00
Rasmus Wriedt Larsen
c8c69aac9b
Merge pull request #13561 from amammad/amammad-python-WebAppsConstatntSecretKeys
...
Python: Flask & Django Constant Secret Key initialization
2023-08-21 11:39:19 +02:00
Mathias Vorreiter Pedersen
e776178be5
C++: Add some whitespace to make stuff appear in the diff.
2023-08-21 10:23:41 +01:00
Mathias Vorreiter Pedersen
0a41acc0a6
C++: Add change note.
2023-08-21 10:23:41 +01:00
Mathias Vorreiter Pedersen
70fdfc2ae3
C++: Set precision to medium and add security severity.
2023-08-21 10:23:23 +01:00
Mathias Vorreiter Pedersen
4daabdae2b
C++: Promote 'cpp/invalid-pointer-deref' out of experimental.
2023-08-21 10:23:22 +01:00
Geoffrey White
b4db68af80
Swift: Add content to the string models.
2023-08-21 10:16:40 +01:00
Geoffrey White
a6f29fa417
Swift: Address pointer/pointee conflation in the string tests themselves.
2023-08-21 10:16:39 +01:00
Tamas Vajk
b5cdaa2f94
Fix compile issues after rebase
2023-08-21 10:43:36 +02:00
Tamas Vajk
62666915b4
Adjust integration test to opt into cshtml extraction
2023-08-21 10:38:22 +02:00
Tamas Vajk
84a78e7a8d
Add opt-in environment variable for cshtml generation
2023-08-21 10:38:22 +02:00
Tamas Vajk
ba0cc76da1
Minor cleanup of dotnet CLI invocations
2023-08-21 10:38:22 +02:00
Tamas Vajk
ad3cc8e1c7
Change backslash to forward slash in file paths in the analyzer config file
2023-08-21 10:38:22 +02:00
Tamas Vajk
c2eb2e9c69
Add more logging
2023-08-21 10:38:22 +02:00
Tamas Vajk
a644133d8f
Write CSC arguments to file and pass that to the execution
2023-08-21 10:38:22 +02:00
Michael Nebel
166633dac0
C#: Only apply Path.combine to OS agnostic parts of the path.
2023-08-21 10:38:21 +02:00
Michael Nebel
d48ab36273
C#: Run dotnet exec command silently.
2023-08-21 10:38:21 +02:00
Tamas Vajk
d391246f27
C#: Generate source files from .cshtml files in standalone
2023-08-21 10:38:21 +02:00
Tamas Vajk
ba0f07b66c
C#: Add integration test for cshtml extraction in standalone mode
2023-08-21 10:38:21 +02:00
Tamas Vajk
af1a0b9a6c
C#: Include cshtml files in integration test results
2023-08-21 10:38:21 +02:00
Jeroen Ketema
a2bb7dee18
Java: Delete copy of shared taint tracking library
2023-08-21 10:32:28 +02:00
Michael Nebel
51f166d71e
Java: Address review comments.
2023-08-21 10:22:28 +02:00
Paolo Tranquilli
bda516e9ea
C++: tweak dispatcher clauses
2023-08-21 10:01:45 +02:00
Michael Nebel
106ba11e10
Address review comments.
2023-08-21 09:59:02 +02:00
Michael Nebel
d66fe08661
Add QLDoc for the getKind predicate.
2023-08-21 09:59:02 +02:00
Michael Nebel
a9f7994b7d
Swift: Sync files and make manual changes.
2023-08-21 09:59:01 +02:00
Michael Nebel
4c06fbdc65
Ruby: Sync files and make manual changes.
2023-08-21 09:59:01 +02:00
Michael Nebel
42c7006378
Python: Sync files and make manual changes.
2023-08-21 09:59:01 +02:00
Michael Nebel
25cc561e50
Go: Sync files and make manual adjustments.
2023-08-21 09:59:01 +02:00
Michael Nebel
764581cc3e
C#: Update FlowSummaries expected output.
2023-08-21 09:59:01 +02:00
Michael Nebel
807faf2c70
C#: Only include Neutral summary callables in the FlowSummaries test case.
2023-08-21 09:59:01 +02:00
Michael Nebel
6840a6dafe
C#: Re-factor NeutralCallable to include all neutrals and introduce NeutralSummaryCallable. Also include printing of the neutral kind in FlowSummaries testcase.
2023-08-21 09:59:00 +02:00
Michael Nebel
8b5b153a21
C#: Update outdated comments in supported external APIs test case file.
2023-08-21 09:59:00 +02:00
Michael Nebel
699ed107f3
Java: Update SupportedExternalApis expected test output.
2023-08-21 09:59:00 +02:00
Michael Nebel
5623ccf4a0
Java: Re-factor NeutralCallable to include all neutrals and introduce NeutralSummaryCallable.
2023-08-21 09:59:00 +02:00
Michael Nebel
6deeb36a97
Java: Update the comments in SupportedExternalApis to include the neutral kind and add a sink neutral example.
2023-08-21 09:58:59 +02:00
Michael Nebel
864f60f90f
C#: Re-arrange using statements.
2023-08-21 09:41:28 +02:00
Tony Torralba
71a36fcf0f
Merge pull request #14003 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-08-21 09:28:05 +02:00
Michael Nebel
034db52c5c
Merge pull request #13986 from michaelnebel/csharp/refactordepencyfetching
...
C#: Re-factor dependency fetching into a separate project.
2023-08-21 09:24:58 +02:00
Michael Nebel
4fb73ea191
C#: Address review comments.
2023-08-21 08:53:17 +02:00
Michael Nebel
1de86b4313
C#: Address review comments.
2023-08-21 07:37:27 +02:00
github-actions[bot]
181b3d0e33
Add changed framework coverage reports
2023-08-21 00:14:44 +00:00
Sid Shankar
79ab27bfed
Clarifies JS and TS system requirements
2023-08-18 15:50:00 -04:00
Edward Minnix III
d109637e2d
Merge pull request #13413 from egregius313/egregius313/trust-boundary
...
Java: Trust Boundary Violation Query
2023-08-18 10:33:32 -04:00
Michael B. Gale
a1c9deea61
Merge pull request #13867 from github/mbg/go/1.21-support
...
Go: Basic Go 1.21 support
2023-08-18 14:37:11 +01:00
Paolo Tranquilli
b78f12481f
Swift: tweak priority of location information sources
2023-08-18 15:18:48 +02:00
Jeroen Ketema
1643a83678
Merge pull request #13996 from jbj/accept-BadlyBoundedWrite
...
C++: Accept regression in test after evaluator fix
2023-08-18 14:28:46 +02:00
Alex Denisov
7e36f7dcaf
Swift: fix autobuilder crash
2023-08-18 14:26:16 +02:00
Paolo Tranquilli
386dedb9df
Swift: fix location extractor hitting swift assertion
2023-08-18 14:21:30 +02:00
Tom Hvitved
deaa37d9d3
Ruby: Include more (hash)splat flow in type tracking
2023-08-18 14:07:12 +02:00
Paolo Tranquilli
c17a582b34
Revert "Swift: upgrade clang-formatting to 15.0.7"
...
This reverts commit 970b3d06be .
2023-08-18 13:59:41 +02:00
Tom Hvitved
da05e3e0e8
Ruby: Add more type tracking tests
2023-08-18 13:51:29 +02:00
Alex Denisov
6a5e539833
Swift: update test expectations
2023-08-18 13:18:02 +02:00
Alex Denisov
202a4cd1a2
Swift: teach autobuilder about SPM, CocoaPods, and Carthage
2023-08-18 13:17:57 +02:00
Harry Maclean
0bbda992fb
Ruby: Remove isSplatAll arg/parameter position
...
This is equivalent to isSplat(0).
2023-08-18 12:09:04 +01:00
Michael Nebel
d968a91799
C#: Introduce convenience constructor for the DependencyManager.
2023-08-18 11:49:07 +02:00
Michael Nebel
c0d1179c8a
C#: Minimal update of relevant code to minimize project dependencies and hide some implementation details behind interfaces.
2023-08-18 11:42:12 +02:00
Michael Nebel
f47e59dff1
C#: Move dependency related files into a new project.
2023-08-18 11:42:12 +02:00
Michael Nebel
b48567f6a5
C#: Add shared dependency fetching project.
2023-08-18 11:42:12 +02:00
Michael Nebel
15dd130d31
C#: Remove unused parameter in DownloadMissingPackages.
2023-08-18 11:42:11 +02:00
Rasmus Wriedt Larsen
b579ab0694
Python: Accept .expected change
2023-08-18 11:12:55 +02:00
Tom Hvitved
81ed72c96a
Data flow: Revert join order changes
2023-08-18 10:49:33 +02:00
Stephan Brandauer
480e3bf506
Java: update model exclusions logic to cope with new automodel test location
2023-08-18 10:28:51 +02:00
Rasmus Wriedt Larsen
38577e6a5c
Python: Remove duplicated SSTI tests
...
Besides the Cheetah tests, which were missing from the query tests.
2023-08-18 10:20:16 +02:00
Rasmus Wriedt Larsen
33f8998c2e
Python: Minor fix in test
2023-08-18 10:19:44 +02:00
Paolo Tranquilli
3c4e755233
Swift: fix macOS not having std::ranges::sized_range
2023-08-18 10:18:53 +02:00
Rasmus Wriedt Larsen
843f2681bb
Python: Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-08-18 10:09:45 +02:00
Paolo Tranquilli
8b3e32fa97
Swift: add missing include
2023-08-18 09:10:44 +02:00
Paolo Tranquilli
53ed39065c
Swift: tweak location extractor using new concept
2023-08-18 06:45:11 +02:00
Paolo Tranquilli
eb8997dc7a
Swift: fix print_unextracted
2023-08-18 06:44:42 +02:00
Tom Hvitved
4d951d8df1
Address review comments
2023-08-17 21:04:58 +02:00
Geoffrey White
86a73fa0e7
Swift: Accept fixed spurious test results.
2023-08-17 19:41:21 +01:00
Geoffrey White
0fd4f6180f
Swift: Allow subscript content reads from collections.
2023-08-17 19:37:55 +01:00
Geoffrey White
1ac9d2c618
Swift: Update models with CollectionElement, value flow.
2023-08-17 18:49:19 +01:00
Michael B. Gale
9082fd218e
Add taint flow tests for clear
2023-08-17 18:39:32 +01:00
Edward Minnix III
8d88af1af0
Apply docs review suggestions
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-08-17 13:05:38 -04:00
Ed Minnix
4eb1035dfe
Documentation fixes
2023-08-17 13:05:38 -04:00
Ed Minnix
655a98452a
Remove escapeHTML models
2023-08-17 13:05:37 -04:00
Ed Minnix
f53496b2a7
Added documentation for trust-boundary-violation sink
2023-08-17 13:05:37 -04:00
Ed Minnix
d468ea9e90
Add default sanitizers
2023-08-17 13:05:37 -04:00
Ed Minnix
b305962c9a
Use more appropriate description
2023-08-17 13:05:37 -04:00
Ed Minnix
a36c12ff1f
Add trust-boundary-violation sink kind
2023-08-17 13:05:37 -04:00
Ed Minnix
60642c52aa
Use non-extending subtype
2023-08-17 13:05:37 -04:00
Ed Minnix
e22a67e7fe
Remove unnecessary methods
2023-08-17 13:05:37 -04:00
Ed Minnix
a3a4c31911
Replace servlet source node with RemoteFlowSource
2023-08-17 13:05:37 -04:00
Edward Minnix III
929090a847
Typos and style fixes
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-08-17 13:05:37 -04:00
Ed Minnix
52ebf9fff6
Java: Add trust boundary change note
2023-08-17 13:05:37 -04:00
Ed Minnix
172b8a6967
Documentation fixes
2023-08-17 13:05:37 -04:00
Ed Minnix
b567ec875a
Documentation
2023-08-17 13:05:37 -04:00
Ed Minnix
55fae2daaa
Added ESAPI sanitizer
2023-08-17 13:05:37 -04:00
Ed Minnix
97d6e82869
Stubs for org.owasp.esapi
2023-08-17 13:05:37 -04:00
Ed Minnix
f58590c6a9
Trust Boundary Work
2023-08-17 13:05:37 -04:00
Ed Minnix
2aba425464
TrustBoundary test ql file
2023-08-17 13:05:36 -04:00
Ed Minnix
ab9f0240d3
Add taint steps for HTML encoding methods
2023-08-17 13:05:36 -04:00
Ed Minnix
b9f2da7875
Comments and import fixes
2023-08-17 13:05:36 -04:00
Ed Minnix
3e7444cd66
Style fixes
2023-08-17 13:05:36 -04:00
Ed Minnix
15370506b8
Add missing security severity
2023-08-17 13:05:36 -04:00
Ed Minnix
a8b7e70d01
Convert trust boundary models to MaD
2023-08-17 13:05:36 -04:00
Ed Minnix
76438f13b6
Trust Boundary Query
2023-08-17 13:05:36 -04:00
Michael B. Gale
109b96f038
Add comment explaining TaintStep test
2023-08-17 17:50:41 +01:00
Michael B. Gale
e65269be69
Add DefaultTaintSanitizer for clear
2023-08-17 17:49:46 +01:00
Geoffrey White
59e2b0482c
Merge branch 'main' into closuremodels
2023-08-17 17:16:44 +01:00
Paolo Tranquilli
3de7b75853
Swift: remove uneeded include
2023-08-17 17:36:36 +02:00
Paolo Tranquilli
970b3d06be
Swift: upgrade clang-formatting to 15.0.7
2023-08-17 17:24:42 +02:00
Paolo Tranquilli
7c764f3b50
Swift: use C++20 constraints and concepts to simplify code
...
This simplifies several instances of metaprogramming by leveraging
[constraints and concepts from C++20][1]. This:
* gets rid of `std::enable_if` by usage of `requires`, making it more
readable and yield better compiler messages.
* uses `requires` instead of `static_assert` to enforce `TrapLabel`
typing
* simplifies all compile-time tests for validity of a given expression
* uses some standard library concepts where possible
* generalizes and simplifies `SwiftLocationExtractor`
Notice that in order to use the `std::derived_from` concept, `virtual`
inheritance had to be added to the label tags, because diamond
inheritance is a problem otherwise. That's because
`std::derived_from<T, U>` requires that `T*` be convertible to `U*`,
which is false if there are multiple non-virtual inheritance paths from
`U` to `T`. As tags never get actually instantiated, there is no runtime
performance penalty in using `virtual` inheritance.
[1]: https://en.cppreference.com/w/cpp/language/constraints
2023-08-17 17:24:42 +02:00
Rasmus Wriedt Larsen
cf54d3f4ca
Python: Move paramiko tests to own folder
2023-08-17 15:45:28 +02:00
Rasmus Wriedt Larsen
4c693b4fc3
Python: Port py/xslt-injection to new data-flow
2023-08-17 15:45:07 +02:00
Rasmus Wriedt Larsen
ef139f2ee9
Python: Delete XsltSinks.ql test
2023-08-17 15:45:07 +02:00
Rasmus Wriedt Larsen
779fe6498c
Python: Rename to XsltInjection.ql
2023-08-17 15:45:07 +02:00
Rasmus Wriedt Larsen
0336c76871
Python: Rename template injection tests
2023-08-17 15:45:04 +02:00
Rasmus Wriedt Larsen
91edde72c4
Python: Port py/template-injection to new data-flow
...
I kept all the modeling in _one_ file, since that makes it easy to work
with such an external contribution... and I would certainly propose this
file setup for the future 👍
2023-08-17 15:44:26 +02:00
Anders Starcke Henriksen
1b31c4dd4c
Update filter to point to right pack.
2023-08-17 11:07:27 +02:00
Rasmus Wriedt Larsen
4277be5819
Python: Add change-note
2023-08-17 10:46:36 +02:00
Rasmus Wriedt Larsen
24f9f13790
Python: Fix tests
2023-08-17 10:15:36 +02:00
Anders Starcke Henriksen
56871c77f5
Merge branch 'main' into starcke/automodel-pack
2023-08-17 10:04:44 +02:00
Jeroen Ketema
33e8310625
Merge branch 'main' into shared-taint-tracking
2023-08-17 00:14:25 +02:00
Robert Marsh
d3cc366dc5
Swift: add QLDoc for DictionarySubscriptNode
2023-08-16 17:57:30 +00:00
Robert Marsh
3ee3eabd95
Swift: add EnumContent to clearsContent
2023-08-16 17:52:26 +00:00
Maiky
5f502ec6bb
rename change-note
2023-08-16 15:32:53 +02:00
Rasmus Wriedt Larsen
0443057608
Merge branch 'main' into amammad-python-WebAppsConstatntSecretKeys
2023-08-16 15:06:08 +02:00
Tom Hvitved
570654d1f0
Data flow: Earlier call-context based dispatch filtering
2023-08-16 14:24:45 +02:00
Geoffrey White
4b66bada3d
Swift: Model array initializers.
2023-08-16 12:13:46 +01:00
Geoffrey White
9a4410d4b7
Swift: Additional test cases for array conversions.
2023-08-16 11:53:05 +01:00
Michael B. Gale
1bd536dd9e
Rename getLocation to hasLocation
2023-08-16 11:21:35 +01:00
Geoffrey White
c123c3a8d8
Swift: Codegen.
2023-08-16 11:09:39 +01:00
Geoffrey White
c9e26678d0
Swift: Change notes.
2023-08-16 10:58:04 +01:00
Geoffrey White
da6c2b6c31
Swift: Add more swift/cleartext-logging sinks.
2023-08-16 10:41:02 +01:00
Geoffrey White
6a54a8bc62
Swift: QLDoc VariadicSequenceType.
2023-08-16 08:43:51 +01:00
Geoffrey White
8f2e2a6155
Swift: Fix array content sinks for swift/cleartext-logging.
2023-08-16 08:43:50 +01:00
Geoffrey White
269f0c6cb1
Swift: Flow through varargs.
2023-08-16 08:43:28 +01:00
Geoffrey White
3fe8655b6e
Swift: Test data flow through varargs.
2023-08-16 08:34:32 +01:00
Stephan Brandauer
44a9cf93e0
Merge branch 'main' into kaeluka/add-provenance-to-metadata
2023-08-16 09:31:03 +02:00
Stephan Brandauer
808dc3e8d3
Java: Automodel framework mode: track exact ai- provenance in alreadyAiModeled meta data property
2023-08-16 09:25:03 +02:00
Geoffrey White
b4595d8b92
Swift: Model getVaList, correct NSLogv sink for swift/cleartext-logging.
2023-08-15 22:05:58 +01:00
Robert Marsh
79368c187c
Swift: fixes around DictionaryContent
2023-08-15 19:34:27 +00:00
Michael B. Gale
c981fd714e
Exclude String from TaintSteps
...
For `os.dirEntry` and `os.unixDirent` which are only available
on unix and Windows respectively.
2023-08-15 20:32:41 +01:00
Michael B. Gale
ee58dbc6f7
Add new built-ins to builtinFunction predicate
...
- `clear` isn't pure because it modifies a data structure in place
- `clear` may not be used correctly, but this is determined statically
2023-08-15 20:16:42 +01:00
Robert Marsh
a9f5471e76
Swift: add tests for broken dictionary flow case
2023-08-15 17:58:21 +00:00
Michael B. Gale
b95effe916
Allow patch-level updates in Go CI
2023-08-15 14:13:36 +01:00
amammad
eb5529eac5
sanitize resutls exist in test/demo/example/sample directories
2023-08-14 23:48:03 +10:00
Geoffrey White
657642a122
Java: Expose parts of the vquery message in the test.
2023-08-14 14:12:07 +01:00
Stephan Brandauer
bc55afcee7
Java: Automodel framework mode: use new interface
2023-08-14 13:17:55 +02:00
Rasmus Wriedt Larsen
1c3cc1fa29
Python: Remove flow through stdlib
...
This means tests can pass on any machine now 👍
2023-08-14 11:55:22 +02:00
Rasmus Wriedt Larsen
794d04e4c0
Python: Model os.getenv[b]
2023-08-14 11:55:00 +02:00
Stephan Brandauer
551b34e3be
Java: Automodel application mode: include candidates that are useful for regression testing
2023-08-14 11:46:40 +02:00
Rasmus Wriedt Larsen
6e168ff7d8
Python: Only interested in StrConst
2023-08-14 11:46:21 +02:00
Rasmus Wriedt Larsen
0fba38c6d8
Merge branch 'main' into amammad-python-WebAppsConstatntSecretKeys
2023-08-14 11:29:56 +02:00
Rasmus Wriedt Larsen
eeefdc5dcd
Python: Fix formatting
2023-08-14 11:29:38 +02:00
Robert Marsh
3f0a249aea
Swift: Autoformat Dictionary.qll
2023-08-11 18:42:37 +00:00
Robert Marsh
f047161741
Swift: Change note for dictionary flow
2023-08-11 17:33:45 +00:00
Robert Marsh
653a229482
Swift: QLDoc for Dicitonary.qll
2023-08-11 17:32:29 +00:00
Robert Marsh
f5fac66627
Swift: autoformat
2023-08-11 17:31:39 +00:00
Brandon Stewart
b0944cf9a6
Merge branch 'main' into add-cwe-208
2023-08-11 09:37:16 -04:00
Michael B. Gale
513da82510
Model data flow for min and max
2023-08-11 11:51:07 +01:00
Michael B. Gale
d189a15737
Exclude poly1305.mac.Write from TaintSteps
...
Not available on arm64
2023-08-11 11:33:52 +01:00
Michael B. Gale
a623733dfa
Add location info to TaintSteps query
2023-08-11 11:10:39 +01:00
Michael B. Gale
ee0bfff9f4
Update expected test output for TaintStep
2023-08-11 10:57:11 +01:00
Michael B. Gale
bb56536bfa
Update expected test output for LocalTaintStep
2023-08-11 10:57:10 +01:00
Michael B. Gale
14731e8fa3
Bump supported Go version to 1.21
2023-08-11 10:57:10 +01:00
Michael B. Gale
238049a870
Add Go 1.21 builtins
2023-08-11 10:57:10 +01:00
Michael B. Gale
4df4a0f51f
Update expected test output for TypeParamType
2023-08-11 10:55:00 +01:00
Michael B. Gale
69589766ec
Use Go 1.21 in CI
2023-08-11 10:55:00 +01:00
Michael B. Gale
48c35ce5e9
Use Go 1.21 for extractor
2023-08-11 10:55:00 +01:00
Rasmus Wriedt Larsen
ca93f4d223
Python: Accept .expected changes
2023-08-11 10:36:05 +02:00
Robert Marsh
d3c68c773a
Swift: Add Dictionary models
2023-08-10 20:53:16 +00:00
Robert Marsh
70c2ef599a
Swift: collection/tuple content for dictionary flow
2023-08-10 20:52:47 +00:00
Brandon Stewart
68d9c8491e
Merge branch 'main' into add-cwe-208
2023-08-10 16:14:04 -04:00
Geoffrey White
0a2e4def8e
Swift: Change note.
2023-08-10 19:53:24 +01:00
Geoffrey White
4f5d7e1b6f
Swift: Accept test changes.
2023-08-10 19:49:27 +01:00
Geoffrey White
936b1ced4d
Swift: Add one last test case (and address a .expected change elsewhere).
2023-08-10 19:39:39 +01:00
Geoffrey White
94a5aa450c
Swift: Edit the weak sensitive data hashing examples and qhelp to encourage use of HMAC and key derivation algorithms where appropriate.
2023-08-10 18:21:25 +01:00
Brandon Stewart
01577dac32
format document
2023-08-10 13:59:47 +00:00
Brandon Stewart
b899b648e5
Update ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-10 09:21:16 -04:00
Brandon Stewart
7882cf0bf0
Update ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-10 09:21:02 -04:00
Rasmus Wriedt Larsen
46af77c1af
Python: Include all assignments in data flow paths
...
Like Ruby did in https://github.com/github/codeql/pull/12566
2023-08-10 11:45:29 +02:00
Rasmus Wriedt Larsen
9bd5694c3f
Python: Add tests of path-graph for dataflow/taint-tracking
...
Although this is actually using taint-tracking (so we can use the +=
statement), I would personally forget to check under the
dataflow/tainttracking folder to look for such a test, so I'm opting to
keep it under the dataflow/ folder.
2023-08-10 11:44:17 +02:00
Geoffrey White
376479325d
Swift: Model LosslessStringConvertible.
2023-08-10 09:27:05 +01:00
Geoffrey White
effe3762b8
Swift: More robust OptionalSomePattern flow.
2023-08-10 08:49:46 +01:00
Rasmus Lerchedahl Petersen
dbc60140e0
Python: move tests to data extensions
...
For these tests, we cannot use the same mechanism, as we want the
data extensions to be available for both tests.
Instead, we create a ql-pack for the test directory and point to
the data entensions from there. This makes the extensions
available for all tests in the directory.
2023-08-10 09:17:34 +02:00
Geoffrey White
aa2e79b6da
Swift: Model numeric conversions.
2023-08-10 00:19:50 +01:00
Maiky
97f8d1fca9
add getValue() method
2023-08-10 00:39:35 +02:00
Maiky
e60fa6f1a7
Remove unnecesary }
2023-08-10 00:25:47 +02:00
Maiky
c5c2df4593
fix Singleton set literal
2023-08-10 00:13:02 +02:00
Geoffrey White
e86ccf8498
Swift: Test flow through various conversions.
2023-08-09 23:05:45 +01:00
Brandon Stewart
74567041a7
remove pathgraph
2023-08-09 19:51:07 +00:00
Brandon Stewart
cca4c35cf8
add pathgraph
2023-08-09 19:23:21 +00:00
Rasmus Lerchedahl Petersen
168a1e01a4
Python: move test to data extensions
...
For this test, we can simply use the convention,
that a file called `[ql-file-stem].ext.yml` will be used
as data extensions exactly for the test represented by `ql-file`.
2023-08-09 21:22:17 +02:00
Brandon Stewart
7f07422a5d
Merge branch 'main' into add-cwe-208
2023-08-09 14:52:51 -04:00
Brandon Stewart
07d5beca34
run format document
2023-08-09 18:51:55 +00:00
Brandon Stewart
26401fec70
address PR comments
2023-08-09 18:44:42 +00:00
Rasmus Lerchedahl Petersen
885e25ff2d
Python: use file-name-convention of *.model.yml
2023-08-09 14:25:33 +02:00
Brandon Stewart
93dd9d0aa4
Update ruby/ql/src/experimental/cwe-208/UnsafeHmacComparison.ql
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-08 12:54:54 -04:00
Anders Starcke Henriksen
3918e57ffe
Take filter pack into account.
2023-08-08 15:10:12 +02:00
Anders Starcke Henriksen
8d34ab6d18
Merge branch 'main' into starcke/automodel-pack
2023-08-08 15:02:33 +02:00
Geoffrey White
c95432457d
Swift: Correct a test case (but preserve the original as well since it's interesting).
2023-08-08 10:41:21 +01:00
Geoffrey White
6ccf47ece9
Swift: Accept test changes resulting from merge.
2023-08-08 10:28:29 +01:00
Geoffrey White
063ab1c13f
Merge branch 'main' into closuremodels
2023-08-08 09:40:27 +01:00
Geoffrey White
b2d3d465f0
Swift: Add more missing details to the URL model (along with a change from the SetContent PR, this fixes the test failures we were getting).
2023-08-07 20:15:50 +01:00
Geoffrey White
a73354d0b3
Swift: Accept test failures.
2023-08-07 20:14:07 +01:00
Geoffrey White
da34da7497
Merge branch 'main' into commandinject2
2023-08-07 19:37:05 +01:00
Jeroen Ketema
8b6a7985db
Refactor the traint-tracking library to follow the dataflow library refactoring
2023-08-07 15:23:15 +02:00
Jeroen Ketema
5d2984b7a5
Merge branch 'main' into shared-taint-tracking
2023-08-07 15:22:29 +02:00
Geoffrey White
4c8accd5ba
Swift: Add a few more test cases.
2023-08-07 14:06:38 +01:00
Tony Torralba
fb0102b763
Java: New models for JAX-RS
2023-08-07 11:52:23 +02:00
Anders Starcke Henriksen
0d78eeb871
Address comments.
2023-08-07 10:47:59 +02:00
Tony Torralba
43b9199734
Java: Improved JaxWsEndpoint::getARemoteMethod
2023-08-07 10:21:58 +02:00
Erik Krogh Kristensen
6631e838cf
re-appearing -> reappearing
...
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com >
2023-08-07 09:57:52 +02:00
Jeroen Ketema
c4a65e58bb
Add change note
2023-08-04 22:53:33 +02:00
Jeroen Ketema
747cd1745a
Update all languages to use the shared taint-tracking library
2023-08-04 22:53:25 +02:00
Jeroen Ketema
20b792545d
Add missing QLDoc
2023-08-04 22:52:05 +02:00
Jeroen Ketema
7ba2f7a22a
Address review comments
2023-08-04 22:52:05 +02:00
Jeroen Ketema
bdd64ce86d
Introduce shared taint tracking library
2023-08-04 22:51:55 +02:00
Geoffrey White
416b731870
Swift: Model NSUserScriptTask sinks.
2023-08-04 17:01:06 +01:00
Geoffrey White
71771890a5
Swift: Add a test with NSUserScriptTask.
2023-08-04 17:01:05 +01:00
Geoffrey White
348c45dff3
Swift: Use enum content in URL and NSURL models.
2023-08-04 17:01:05 +01:00
Geoffrey White
1c7d63a18f
Swift: Model sinks explicitly with models-as-data.
2023-08-04 17:01:05 +01:00
Geoffrey White
7b9b96d657
Swift: Unify the two sink models into one (needs further polish).
2023-08-04 17:01:04 +01:00
Geoffrey White
8c2140b28d
Swift: Add tests.
2023-08-04 17:01:04 +01:00
Geoffrey White
2664c306d3
Swift: Qhelp / examples.
2023-08-04 17:01:04 +01:00
Geoffrey White
048daa9a57
Swift: QLDoc comments and metadata.
2023-08-04 17:01:03 +01:00
Geoffrey White
af8d4e5ab2
Swift: Change note.
2023-08-04 09:42:53 +01:00
Anders Starcke Henriksen
3ef82c1091
Address comments.
2023-08-04 10:22:17 +02:00
Geoffrey White
d24db3fcd3
Swift: Use .ArrayElement in the models, where appropriate.
2023-08-04 09:18:37 +01:00
Geoffrey White
b41d47b910
Swift: Array.withUnsafeBytes doesn't reliably match ContiguousBytes, so define models there as well.
2023-08-04 09:18:36 +01:00
Geoffrey White
c48d47484a
Swift: Fix mistake in the string taint test.
2023-08-04 09:18:36 +01:00
Geoffrey White
664dc01c48
Swift: Add closure function models.
2023-08-04 09:18:36 +01:00
Geoffrey White
49d1556c29
Swift: Model update(repeating:), to support the tests.
2023-08-04 09:18:36 +01:00
Geoffrey White
315cb32f6c
Swift: Remove special case from UnsafeJsEval query.
2023-08-04 09:18:35 +01:00
Geoffrey White
feadd7127b
Swift: Add tests with some different container types.
2023-08-04 09:18:35 +01:00
Geoffrey White
63c71f0b77
Swift: Add tests of with* closure methods.
2023-08-04 09:18:34 +01:00
Maiky
0cd1c1e2e5
Make private
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-03 17:08:50 +02:00
Maiky
0dec4876f1
Replace cast to DataFlow::CallNode
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-03 17:08:35 +02:00
Maiky
6f1b406b3a
typo
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-03 17:08:10 +02:00
Maiky
0237f37842
typo
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-08-03 17:07:58 +02:00
Maiky
c54561e775
Merge branch 'main' into maikypedia/ldap-improper-auth
2023-08-03 16:49:30 +02:00
Maiky
fd649c1702
Fix getHost() (ldap.host = ip is not covered)
2023-08-03 16:37:48 +02:00
Maiky
f7a662814d
simplify usesSsl()
2023-08-03 16:20:20 +02:00
Maiky
2d87489dfa
change useSsl() to usesSsl()
2023-08-03 16:18:44 +02:00
Anders Starcke Henriksen
e7ca2330cb
Update workspace.
2023-08-03 15:55:42 +02:00
Anders Starcke Henriksen
e2abd3ff13
Create separate automodel pack.
2023-08-03 13:55:15 +02:00
Kevin Stubbings
8960453662
Add sanitizer to remove http.Error sink
2023-08-02 16:56:14 -07:00
Tony Torralba
2cbb7ed296
Java: Add XXE sinks for MDHT
2023-07-31 11:13:17 +02:00
Brandon Stewart
f241498cab
correct additional pascalcase issue
2023-07-26 17:55:56 +00:00
Brandon Stewart
1a83554b0c
correct typo
2023-07-26 17:54:42 +00:00
Brandon Stewart
346a2f269e
Update UnsafeHmacComparison.ql
2023-07-26 13:48:42 -04:00
Brandon Stewart
42adbe0cd4
address linter
2023-07-26 17:43:34 +00:00
Brandon Stewart
adddc58b61
address linter
2023-07-26 17:38:06 +00:00
Brandon Stewart
494e7d9a3f
add unsafe HMAC comparison query and qlhelp file
2023-07-26 17:28:22 +00:00
amammad
bee8e6ff0d
remove unused saniter
2023-07-27 01:41:31 +10:00
amammad
591d81b5f9
remove saniter which was responsible for a defensive technique
2023-07-26 02:39:10 +10:00
jorgectf
8f8c064632
Modify test
2023-07-24 17:50:22 +02:00
amammad
1e1d42fa35
fix a mistake :(
2023-07-25 00:11:23 +10:00
amammad
7aff0079f5
better safe Flask example
2023-07-25 00:08:51 +10:00
amammad
0e8f83460c
a little bit change on flask example
2023-07-24 21:41:54 +10:00
amammad
bbba906ff1
a little bit change on flask example
2023-07-24 21:41:44 +10:00
amammad
6f8ec118df
fix qlhelp and qldoc bugs
2023-07-24 17:15:43 +10:00
amammad
c704158150
remove sources which are contained from environment variables, fix some bugs thanks to @yoff
2023-07-24 17:06:27 +10:00
jorgectf
3ac94c33b2
Add change note
2023-07-20 15:47:18 +02:00
jorgectf
55648ac4de
Add shlex.quote as sanitizer
2023-07-20 15:34:54 +02:00
Geoffrey White
a0b784e7b1
Python: QLDoc.
2023-07-20 11:56:13 +01:00
Geoffrey White
45a9d5bc7d
Java: QLDoc.
2023-07-20 11:53:52 +01:00
Geoffrey White
80cb386ffd
Java: Change note.
2023-07-20 11:52:04 +01:00
Geoffrey White
369f88beda
Java: Fix for multiple parse mode flags.
2023-07-20 11:49:54 +01:00
Geoffrey White
32c10885d4
Java: Add test case.
2023-07-20 11:43:11 +01:00
Geoffrey White
aaf9907a27
Python: Change note.
2023-07-20 11:23:15 +01:00
Geoffrey White
bb16731b86
Python: Fix for multiple parse mode flags.
2023-07-20 11:16:14 +01:00
Geoffrey White
dbde99df91
Python: Add test cases.
2023-07-20 11:06:00 +01:00
Geoffrey White
cb6276e5e2
Python: Test layout.
2023-07-19 18:44:15 +01:00
Max Schaefer
7823ff968c
JavaScript: Improve query help for js/server-side-unvalidated-url-redirection.
2023-07-19 13:23:25 +01:00
Rasmus Wriedt Larsen
13fa08a90a
Python: Move source modeling to shared file
2023-07-14 14:47:50 +02:00
Rasmus Wriedt Larsen
aa8ed91993
Python: Accept .expected changes
...
but it's kinda bad, since it has paths to stdlib in there :(
2023-07-14 14:47:27 +02:00
Rasmus Wriedt Larsen
9e0f985e23
Python: Fix qlref
2023-07-14 14:33:17 +02:00
Rasmus Wriedt Larsen
8279cf7c9c
Merge branch 'main' into amammad-python-WebAppsConstatntSecretKeys
2023-07-14 14:32:43 +02:00
Erik Krogh Kristensen
4f1c12e9dc
apply suggestion from review
...
Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com >
2023-07-13 14:49:25 +02:00
erik-krogh
1fe66232c6
suggestions based on review: add a popular library example for HTML-sanitization, and use the old text about ../ replacements
2023-07-13 14:28:11 +02:00
Erik Krogh Kristensen
9db970f055
apply suggestion from review
...
Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com >
2023-07-13 14:17:33 +02:00
Geoffrey White
02ddcab773
Swift: Cleanup / corrections.
2023-07-12 18:26:59 +01:00
Geoffrey White
5c6b8bd36e
Swift: Introduce EnumElmentDecl.hasQualifiedName and use it to clean up the code.
2023-07-12 17:18:04 +01:00
Geoffrey White
5f8f1b64c6
Swift: Model Connection.Location.uri sink.
2023-07-11 18:10:43 +01:00
Geoffrey White
ebb379f08c
Swift: Fix sqlite3_temp_directory sink.
2023-07-11 16:50:42 +01:00
Erik Krogh Kristensen
8676516cb9
recursively -> repeatedly
...
Co-authored-by: Asger F <asgerf@github.com >
2023-07-03 13:17:13 +02:00
erik-krogh
3e2b8124c9
apply suggestions from review
2023-07-03 10:03:45 +02:00
erik-krogh
bea4162736
delete multi-char note from the incomplete-sanitization qhelp
2023-07-03 09:10:54 +02:00
erik-krogh
a60478ba8a
write qhelp for js/incomplete-multi-character-sanitization
2023-07-03 09:07:13 +02:00
amammad
2ba83022c7
delete old qhelp file
2023-07-01 04:49:35 +10:00
amammad
931f492df2
cleaning up mistakes
2023-06-30 23:03:29 +10:00
amammad
9fc28d5aba
Merge branch 'github:main' into amammad-python-WebAppsConstatntSecretKeys
2023-06-30 22:54:22 +10:00
amammad
6f34c3225b
Merge branch 'github:main' into amammad-python-WebAppsConstatntSecretKeys
2023-06-30 22:36:45 +10:00
amammad
a988ccb7d5
Merge branch 'main' of https://github.com/amammad/codeql into amammad-python-WebAppsConstatntSecretKeys
2023-06-30 22:24:08 +10:00
amammad
816799c4ba
upgrade query to detect redash CVE too
2023-06-30 22:14:50 +10:00
amammad
7a17b99c17
V2
2023-06-29 20:55:51 +10:00
amammad
e3e0307db7
V1
2023-06-25 20:36:28 +10:00
Geoffrey White
0973fb33b9
Swift: Model UnsafeMutablePointer.init(mutating:).
2023-06-19 14:08:03 +01:00
Maiky
345f43fbae
fix concepts
2023-05-29 21:17:48 +02:00
Maiky
62353122c0
Add Improper LDAP Authentication query (CWE-287)
2023-05-29 21:16:13 +02:00
Geoffrey White
32c113bc38
Swift: Fix following merge with main.
2023-05-26 14:41:48 +01:00
Geoffrey White
68354c09bf
Merge branch 'main' into sqlpathinject
2023-05-26 14:33:05 +01:00
Geoffrey White
57d6505ee3
Swift: Move change note.
2023-05-26 11:10:29 +01:00
Geoffrey White
d8cc8bd520
Swift: Fix indentation.
2023-05-24 18:43:48 +01:00
Geoffrey White
6d2800c117
Swift: Add change note.
2023-05-24 18:32:04 +01:00
Geoffrey White
2c5202018d
Swift: Add sinks.
2023-05-23 18:11:33 +01:00
Geoffrey White
8573b30239
Swift: Add test cases.
2023-05-23 17:29:51 +01:00