Pierre
6e4ad58a80
Merge pull request #14889 from github/changedocs/2.15.3
...
Fix changelog docs based on latest generator version
2023-11-23 15:43:02 +01:00
Pierre
bff86ed210
Fix changelog docs based on latest generator version
2023-11-23 13:53:14 +01:00
Pierre
60ebe3b179
Merge pull request #14876 from github/changedocs/2.15.3
...
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-22 16:22:56 +01:00
Pierre
9b9a78851d
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-22 15:05:17 +01:00
Arthur Baars
ff65ffafb0
Merge pull request #14830 from aibaars/csharp/fixintegrationtests
...
C# fix integration tests
2023-11-17 11:17:31 +01:00
Michael B. Gale
97402fdf36
C#: Fix dotnet_test_mstest
2023-11-17 10:35:14 +01:00
Michael Nebel
2662a4c651
C#: Fix the dotnet pack integration test.
2023-11-17 10:35:14 +01:00
Arthur Baars
dce03569e5
Merge pull request #14813 from github/release-prep/2.15.3
...
Release preparation for version 2.15.3
2023-11-16 18:42:17 +01:00
github-actions[bot]
6ec9b95072
Release preparation for version 2.15.3
2023-11-16 13:07:16 +00:00
Arthur Baars
641646ac08
Rename change note
2023-11-16 14:04:25 +01:00
Tom Hvitved
75f42f4614
Merge pull request #14783 from hvitved/ruby/hash-array-literal
...
Ruby: Include more nodes in `{Hash,Array}LiteralCfgNode`
2023-11-16 13:51:35 +01:00
Henry Mercer
0c1fb8c881
Merge pull request #14811 from github/henrymercer/remove-lines-of-non-user-code-from-summary
...
Remove LoC metrics from the analysis summary
2023-11-16 12:30:55 +00:00
Rasmus Wriedt Larsen
4f9303eb02
Merge pull request #14790 from RasmusWL/clean-tests
...
Python: Accept new ordering of query predicates in `.expected`
2023-11-16 13:23:35 +01:00
Tom Hvitved
2c23dacca1
Ruby: Add more hash/array literal tests
2023-11-16 12:58:53 +01:00
Henry Mercer
de83929a60
Remove LoC metrics from the analysis summary
2023-11-16 11:36:44 +00:00
Stephan Brandauer
f1001374fd
Merge pull request #14642 from github/kaeluka/publish-automodel-querypack-007
...
Java: Publish Automodel query pack 0.0.7
2023-11-16 11:50:32 +01:00
Rasmus Wriedt Larsen
25d3af9236
Merge branch 'main' into clean-tests
2023-11-16 11:21:01 +01:00
Jeroen Ketema
1f3f1b5ec4
Merge pull request #14809 from MathiasVP/move-change-note
...
C++: Move change note
2023-11-16 11:14:14 +01:00
Mathias Vorreiter Pedersen
5c0fb2030d
C++: Move change note.
2023-11-16 09:57:08 +00:00
Rasmus Wriedt Larsen
71ef98584d
Merge pull request #14791 from RasmusWL/python-3.12
...
Python: Update `.expected` to support Python 3.12
2023-11-16 10:42:48 +01:00
Tom Hvitved
6bba191407
Merge pull request #14710 from hvitved/type-tracking/prepare-ruby
...
Prepare shared type tracking library for adoption by Ruby
2023-11-16 10:34:32 +01:00
Rasmus Wriedt Larsen
df144f3a1e
Merge pull request #14406 from amammad/amammad-python-FileSystemAccess
...
Python: New FileSystem Access
2023-11-16 10:25:34 +01:00
Rasmus Wriedt Larsen
a46dc55e84
Merge branch 'main' into python-3.12
2023-11-16 09:34:06 +01:00
Tamás Vajk
14268f3c63
Merge pull request #14792 from tamasvajk/standalone/assembly-attribute
...
C#: Fix assembly attribute extraction in standalone mode
2023-11-16 08:09:14 +01:00
Sam Browning
408ba517e5
Merge pull request #14776 from github/sabrowning1/queries-panel-language-selector
...
Add content for the queries panel and language selector
2023-11-15 17:30:21 -05:00
Mathias Vorreiter Pedersen
4d4ca6b948
Merge pull request #14794 from MathiasVP/catch-more-return-stack-allocated-memory
...
C++: Catch more returns of stack-allocated memory
2023-11-15 19:23:24 +00:00
Sam Browning
d443354651
Apply feedback and fix syntax
2023-11-15 11:35:33 -05:00
Tom Hvitved
57f6859ddc
Shared: Update type tracking consistency checks
2023-11-15 17:08:05 +01:00
Tom Hvitved
5f087f0084
Shared: Port features from Ruby's type tracking library to the shared library
...
- Cache relevant predicates.
- Expose some predicates and classes (only exposed internally).
- Make some top-level `inline_late` predicates member predicates.
- Actually eliminate type check in `flowsTo`.
- Fix bug in `getACompatibleTypeTracker`.
- Adopt the `CallGraphConstruction` module.
2023-11-15 17:08:05 +01:00
Tom Hvitved
f66f7ce8d7
Shared: Split up TypeTracking.qll into two files
2023-11-15 17:07:27 +01:00
Jeroen Ketema
f22979f4b6
Merge pull request #14561 from jketema/rewrite-uncontrolled-process-operation
...
C++: Rewrite `cpp/uncontrolled-process-operation` to not use `DefaultTaintTracking`
2023-11-15 16:03:58 +01:00
Jeroen Ketema
46e6e72593
C++: Address review comments
2023-11-15 14:57:53 +01:00
Jeroen Ketema
92c18960c5
C++: Rewrite cpp/uncontrolled-process-operation to not use DefaultTaintTracking
2023-11-15 14:57:53 +01:00
Rasmus Wriedt Larsen
e349891cff
Python: Apply suggestions from code review
2023-11-15 14:35:52 +01:00
Rasmus Wriedt Larsen
e02c32f3d4
Python: options file was not enough, split into 2/3
...
I reckon this is due to the Python 3 version used by the Python 2 tests
is different from 3.12, so even with --lang=3 the tests are still using
an incompatible version :(
2023-11-15 14:24:11 +01:00
Rasmus Wriedt Larsen
0f1dc9b2d9
Python: Add missing options file
2023-11-15 13:24:08 +01:00
Rasmus Wriedt Larsen
ae6c95ff95
Python: Fix asyncio.coroutine deprecation
...
Was removed in 3.11, see https://docs.python.org/3.10/library/asyncio-task.html#asyncio.coroutine
I couldn't make the __awwait__ actually give the result to the agen function...
I also tried looking into
https://docs.python.org/3/library/types.html#types.coroutine , but also
failed to make that work.
Without the Future, such as doing `yield SOURCE` inside `__await__` it
complains `RuntimeError: Task got bad yield: 'source'`
2023-11-15 13:24:08 +01:00
Mathias Vorreiter Pedersen
bae7e10e46
C++: Also add MSVC-related 'alloca'-like functions.
2023-11-15 12:07:17 +00:00
Mathias Vorreiter Pedersen
ec63099c54
C++: Add change note.
2023-11-15 11:57:09 +00:00
Mathias Vorreiter Pedersen
2b8b5cf1b8
C++: Accept test changes.
2023-11-15 11:52:14 +00:00
Mathias Vorreiter Pedersen
6730f57d5c
C++: Also flag up 'alloca' and friends.
2023-11-15 11:51:57 +00:00
Mathias Vorreiter Pedersen
118d50236f
C++: Add failing tests.
2023-11-15 11:48:37 +00:00
Tamas Vajk
7a001f4905
C#: Fix assembly attribute extraction in standalone mode
2023-11-15 12:21:03 +01:00
Owen Mansel-Chan
803ed20962
Merge pull request #14778 from owen-mc/go/improve-value-flow-through-arrays
...
Go: improve value flow through arrays
2023-11-15 11:13:15 +00:00
Rasmus Wriedt Larsen
4256fbf11a
Python: Accept changes from Python 3.12
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
f3dd002ba9
Python: Copy tests to Python 3
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
f9e9ae91f7
Python: Move tests that would change under Python 3.12 to lang specific directory
...
This moves the tests to Python 2, next we copy them to Python 3.
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
23419ee634
Python: Update .expected to support Python 3.12
...
You might wonder why the number of lines changed, but it's due to `tty`
module receiving its' first update since 2001, so the actual number of
lines DID change :phew:
https://github.com/python/cpython/commits/3.12/Lib/tty.py
Since there is now a difference between Python 2 and Python 3, we need to restrict the lines of code test to only run as Python 3.
2023-11-15 11:42:38 +01:00
Mathias Vorreiter Pedersen
b8f0f85840
Merge pull request #14784 from MathiasVP/no-dtt-in-tainted-arithmetic
...
C++: Rewrite `cpp/tainted-arithmetic` away from `DefaultTaintTracking`
2023-11-15 10:19:25 +00:00
Rasmus Wriedt Larsen
69453aa144
Python: Fix missing newline in .expected
2023-11-15 10:10:23 +01:00
Rasmus Wriedt Larsen
55f5b26ba6
Python: Accept new ordering of query predicates in .expected
2023-11-15 10:09:54 +01:00
Rasmus Wriedt Larsen
721bde1ce8
Python: Delete orphaned .expected files
2023-11-15 09:59:26 +01:00
Rasmus Wriedt Larsen
2e9d548083
Merge pull request #14706 from RasmusWL/class-attribute-flow
...
Python: Add basic flow for class attributes
2023-11-15 09:06:25 +01:00
Owen Mansel-Chan
83d1fc33e1
Add change note
2023-11-14 23:16:32 +00:00
Erik Krogh Kristensen
14e51627c5
Merge pull request #14419 from rvermeulen/rvermeulen/javascript-adjust-security-severity
...
JavaScript: Adjust XSS and log injection query severities
2023-11-14 21:34:25 +01:00
Remco Vermeulen
52540b42fc
Merge branch 'main' into rvermeulen/javascript-adjust-security-severity
2023-11-14 11:21:38 -08:00
Remco Vermeulen
6bd7047e41
Restore XssThroughDom.ql's severity
2023-11-14 11:20:51 -08:00
AlexDenisov
57f1f5b829
Merge pull request #14768 from github/alexdenisov/move-semantics
...
Swift: extract AST nodes related to move semantics
2023-11-14 19:13:27 +01:00
Mathias Vorreiter Pedersen
bff93c4484
Merge branch 'main' into no-dtt-in-tainted-arithmetic
2023-11-14 17:12:34 +00:00
Geoffrey White
0342b3eba2
Merge pull request #14772 from geoffw0/webview
...
Swift: Use TaintInheritingContent in WebView.qll
2023-11-14 16:29:32 +00:00
Geoffrey White
d28e7920b3
Merge pull request #14773 from geoffw0/fixmodel
...
Swift: Fix odds and ends
2023-11-14 16:28:33 +00:00
Tamás Vajk
331ca61be9
Merge pull request #14789 from tamasvajk/autobuild/arm-nuget-restore
...
C#: Do not call nuget.exe on Apple Silicon
2023-11-14 17:13:42 +01:00
Alex Denisov
559b965e74
Swift: add change note
2023-11-14 16:11:28 +01:00
Felicity Chapman
6299b844f8
Merge pull request #14785 from github/felicitymay-security-severity
...
Update metadata-for-codeql-queries.rst
2023-11-14 14:13:53 +00:00
Sam Browning
4385b316c0
Apply feedback from code review
2023-11-14 09:10:07 -05:00
Sam Browning
b1dc6099ff
Apply feedback from code review
2023-11-14 09:01:54 -05:00
Sam Browning
15099b3db0
Update docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-14 08:57:52 -05:00
Tamas Vajk
8334c6db91
C#: Do not call nuget.exe on Apple Silicon
2023-11-14 14:50:29 +01:00
Alex Denisov
1c75e5b2a6
Swift: add database migration scripts for move semantics
2023-11-14 14:35:58 +01:00
Mathias Vorreiter Pedersen
1623bba18a
Merge branch 'main' into no-dtt-in-tainted-arithmetic
2023-11-14 13:35:15 +00:00
Tom Hvitved
475d8da342
Ruby: Include more nodes in {Hash,Array}LiteralCfgNode
2023-11-14 13:50:46 +01:00
Tom Hvitved
ae09499905
Merge pull request #14781 from hvitved/ruby/ssa-unitialized-to-string
...
Ruby: Include name of variable in `UninitializedDefinition.toString`
2023-11-14 13:49:27 +01:00
Mathias Vorreiter Pedersen
c950e26b3e
C++: Rewrite 'cpp/cpp/tainted-arithmetic' away from DefaultTaintTracking.
2023-11-14 12:19:12 +00:00
Felicity Chapman
f75c062949
Update metadata-for-codeql-queries.rst
...
Replace link to blog with trackable GH.io link
2023-11-14 12:06:44 +00:00
Mathias Vorreiter Pedersen
f22d87b7c7
Merge pull request #14771 from MathiasVP/fix-missing-unbounded-write-results
...
C++: Fix missing results in `cpp/unbounded-write`
2023-11-14 12:03:13 +00:00
Tamás Vajk
e11a68803e
Merge pull request #14782 from github/criemen/disable-int-test
...
Disable the nuget standalone dependencies test on ARM-osx.
2023-11-14 12:32:48 +01:00
Owen Mansel-Chan
45faed057c
Improve SliceExpr documentation
2023-11-14 11:25:16 +00:00
Tom Hvitved
f1b67ade9b
Ruby: Include name of variable in UninitializedDefinition.toString
2023-11-14 11:33:59 +01:00
Cornelius Riemenschneider
f9ae7c5454
Disable the nuget standalone dependencies test on ARM-osx.
...
The test is failing currently, and that needs further investigation.
This is a temporary workaround to allow us to continue to work on
some necessary infrastructure investments around these tests.
2023-11-14 11:13:55 +01:00
Geoffrey White
296dee90dd
Merge remote-tracking branch 'upstream/main' into fixmodel
2023-11-14 09:38:14 +00:00
Mathias Vorreiter Pedersen
967bbbc1a7
C++: Block flow out of sinks that are qualifiers. This removes the new result duplication and keeps the new result.
2023-11-14 09:29:47 +00:00
Tamás Vajk
28a5a1d507
Merge pull request #14760 from tamasvajk/apple-silicon-check
...
C#: Change IsARM to Apple silicon check
2023-11-14 10:27:42 +01:00
Tamas Vajk
5b38ba87df
Code quality improvement
2023-11-14 08:08:46 +01:00
Erik Krogh Kristensen
db42b60015
Merge pull request #14779 from github/dependabot/cargo/ql/tracing-subscriber-0.3.18
...
Bump tracing-subscriber from 0.3.17 to 0.3.18 in /ql
2023-11-14 07:57:55 +01:00
dependabot[bot]
f8c8d59cb5
Bump tracing-subscriber from 0.3.17 to 0.3.18 in /ql
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 03:56:51 +00:00
Owen Mansel-Chan
c8779d0d0b
Fix another test
...
No change in alerts, just 3 extra nodes.
2023-11-13 23:56:25 +00:00
Owen Mansel-Chan
28160e418c
Update tests
2023-11-13 23:26:30 +00:00
Owen Mansel-Chan
ed349f7d6b
Improve value flow through arrays
2023-11-13 23:26:16 +00:00
Sam Browning
fa569dcef4
Delete requirements.txt
2023-11-13 17:28:14 -05:00
Sam Browning
040d971588
Merge branch 'main' into sabrowning1/queries-panel-language-selector
2023-11-13 17:27:35 -05:00
Sam Browning
e95bfc816e
Clarify that queries run against selected database
2023-11-13 17:15:41 -05:00
Sam Browning
44935cef63
Tweak for style
2023-11-13 17:08:31 -05:00
Sam Browning
190050f577
Tweak formatting and styling
2023-11-13 16:52:33 -05:00
Sam Browning
458baeff32
Add content on queries panel and language selector
2023-11-13 15:59:51 -05:00
Geoffrey White
c14d4042e0
Merge pull request #14748 from geoffw0/pathinjectionsinks
...
Swift: Add more path injection sinks
2023-11-13 20:15:16 +00:00
Geoffrey White
5a451e964d
Swift: Model mainDocumentURL.
2023-11-13 19:51:51 +00:00
Geoffrey White
b157d73c10
Swift: Make the URLRequest test more accurate.
2023-11-13 19:36:03 +00:00
Geoffrey White
985d1990eb
Swift: Fix typo.
2023-11-13 18:55:11 +00:00
Geoffrey White
463096e4be
Swift: Modernize tainted content in WebView.qll.
2023-11-13 18:30:40 +00:00
Geoffrey White
892beeab6d
Swift: Add test case.
2023-11-13 18:25:59 +00:00
Geoffrey White
9ec2f9204b
Swift: Correct components(separatedBy:) models.
2023-11-13 17:43:21 +00:00
Mathias Vorreiter Pedersen
c73e6f1fa8
C++: Accept more test changes.
2023-11-13 16:51:07 +00:00
Mathias Vorreiter Pedersen
9aafbfce13
C++: Fix test annotation.
2023-11-13 16:17:18 +00:00
Mathias Vorreiter Pedersen
cc6268339b
C++: Fix failing test and accept test cases.
2023-11-13 15:57:22 +00:00
Mathias Vorreiter Pedersen
834b07e6ad
C++: Add failing tests.
2023-11-13 15:54:41 +00:00
Mathias Vorreiter Pedersen
8be6aeda3e
Merge pull request #14769 from MathiasVP/fix-nonterminating-test
...
C++: Fix nonterminating test
2023-11-13 15:49:39 +00:00
Owen Mansel-Chan
359dcf37e9
Merge pull request #14649 from Kwstubbs/go-cors
...
Go: Add Cors Gin Support
2023-11-13 15:46:59 +00:00
Mathias Vorreiter Pedersen
eb263e747f
C++: Make sure the test terminates.
2023-11-13 15:25:48 +00:00
Mathias Vorreiter Pedersen
bc576f658e
C++: Add a test that fails because of a non-terminating test that dominates this one.
2023-11-13 15:24:56 +00:00
Geoffrey White
6f56a656e4
Merge pull request #14761 from geoffw0/moderntest
...
Swift: Update the inline dataflow tests
2023-11-13 14:59:08 +00:00
Alex Denisov
031f453af8
Swift: CFG for Copy/Consume expressions
2023-11-13 15:55:37 +01:00
Alex Denisov
002f2a0985
Swift: extract BorrowExpr
2023-11-13 15:55:37 +01:00
Alex Denisov
d21e27c717
Swift: extract ConsumeExpr
2023-11-13 15:55:37 +01:00
Alex Denisov
30e4822fb7
Swift: extract CopyExpr
2023-11-13 15:55:37 +01:00
Owen Mansel-Chan
d931ade182
Merge pull request #13366 from maikypedia/maikypedia/go-ldap-improper-auth
...
Go: Add Improper LDAP Authentication query (CWE-287)
2023-11-13 14:48:19 +00:00
Sam Browning
ed9a0ea155
Merge branch 'main' of https://github.com/github/codeql
2023-11-13 08:40:42 -05:00
Geoffrey White
c3577b34d3
Swift: Clean up logic.
2023-11-13 12:37:35 +00:00
Geoffrey White
e4da8da5d9
Swift: Update the example code.
2023-11-13 12:33:20 +00:00
Tamas Vajk
b455b2c1a6
C#: Change IsARM to Apple silicon check
2023-11-13 13:20:13 +01:00
Anders Schack-Mulligen
dc4dda1dbc
Merge pull request #14757 from aschackmull/rangeanalysis/simplify
...
Rangeanalysis: Misc simplifications
2023-11-13 13:16:04 +01:00
Geoffrey White
098ea50068
Swift: Repair non-inline dataflow test.
2023-11-13 12:09:08 +00:00
Geoffrey White
6e291711ac
Swift: Update just enough tests to prove that that source labels are working.
2023-11-13 11:47:24 +00:00
Geoffrey White
fca6ccd2f1
Swift: Remove more unused code.
2023-11-13 11:47:22 +00:00
AlexDenisov
291bb2210c
Merge pull request #14759 from github/alexdenisov/experimental-tuple
...
Swift: mark BuiltinTuple as experimental
2023-11-13 12:24:06 +01:00
Geoffrey White
4bf717c3e4
Swift: Use InlineFlowTest.qll in the data flow inline tests, so that we have less code duplication and can use flow labels.
2023-11-13 11:06:05 +00:00
Geoffrey White
d15c46836b
Swift: Add features tom InlineFlowTest.qll: extended source/sink names, custom flow tags, use of line-numbers as a fallback value.
2023-11-13 10:55:17 +00:00
Alex Denisov
c0fce80b7d
Swift: mark BuiltinTuple as experimental
2023-11-13 11:34:51 +01:00
Cornelius Riemenschneider
1b7e3814b0
Merge pull request #14719 from github/criemen/java-int-tests
...
Java integration tests: More preparations to be executed on GH M1 machines
2023-11-13 11:16:51 +01:00
Anders Schack-Mulligen
bf6cfd3bef
Rangeanalysis: Simplify api.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
30aefabb2a
Rangeanalysis: Rename predicate.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
f05b75e04f
Rangeanalysis: RIP standard order.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
c28f54a78b
Rangeanalysis: Remove superfluous pragmas. These appear useless after the abolishment of the different delta orders.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
66b03bfb12
Java: Remove unused import
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
71e25521cf
Rangeanalysis: Use SsaReadPositionBlock.getAnSsaRead.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
27e6173bb7
C++: Remove SemSsaExplicitUpdate.getSourceExpr.
2023-11-13 10:35:43 +01:00
Anders Schack-Mulligen
3a73faf061
Rangeanalysis: Remove unused getAlternateType predicates.
2023-11-13 10:35:43 +01:00
AlexDenisov
352ec91a08
Merge pull request #14756 from github/alexdenisov/do-not-extract-non-ast-types
...
Swift: do not extract non-AST types, NFC
2023-11-13 10:35:00 +01:00
Anders Schack-Mulligen
00549e36ed
Merge pull request #14742 from aschackmull/rangeanalysis/share-util-3
...
Java/C++/Rangeanalysis: Share more range analysis utility predicates.
2023-11-13 10:19:41 +01:00
Alex Denisov
b385ddbab1
Swift: do not extract non-AST types
2023-11-13 09:12:22 +01:00
AlexDenisov
f599c6d8a9
Merge pull request #14734 from github/alexdenisov/parameter-packs
...
Swift: extract parameter packs
2023-11-13 08:44:39 +01:00
Paolo Tranquilli
df967ce43f
Merge pull request #14750 from github/alexdenisov/update-wordings
...
Swift: update wordings in a downgrade script
2023-11-13 07:00:39 +01:00
Maiky
6e533c6284
Import PathGraph
2023-11-12 18:22:14 +01:00
Maiky
2b1b4cd85d
Remove unused LdapConn
2023-11-12 18:18:43 +01:00
Maiky
5280d69500
Change to DataFlow::ConfigSig
2023-11-12 18:17:09 +01:00
Maiky
39ed7876c3
Merge branch 'github:main' into maikypedia/go-ldap-improper-auth
2023-11-12 18:14:05 +01:00
Maiky
882280309f
equalityAsSanitizerGuard and add empty string comment
2023-11-12 17:42:56 +01:00
Mathias Vorreiter Pedersen
01a074c146
Merge pull request #14749 from MathiasVP/less-code-duplication
2023-11-10 19:45:56 +00:00
Geoffrey White
d56625cb8b
Swift: Rename the capture test to look more like the others.
2023-11-10 17:59:44 +00:00
Alex Denisov
8f10667ee1
Swift: update wordings in a downgrade script
2023-11-10 18:10:43 +01:00
AlexDenisov
837cdc8301
Merge pull request #14745 from github/alexdenisov/parameter-packs-db-upgrade
...
Swift: parameter packs migration scripts
2023-11-10 18:07:10 +01:00
Jeroen Ketema
3a62628938
Merge pull request #14735 from jketema/strl
...
C++: Add models for `strlcpy` and `strlcat`
2023-11-10 17:51:59 +01:00
Mathias Vorreiter Pedersen
9062fb666a
C++: Move a couple of predicates to 'Node0Impl'.
2023-11-10 16:26:03 +00:00
Jeroen Ketema
b48d483eba
C++: Add change note
2023-11-10 17:25:19 +01:00
Geoffrey White
c327f0f0a7
Merge branch 'main' into pathinjectionsinks
2023-11-10 16:04:56 +00:00
Alex Denisov
393aad5935
Swift: downgrade parameter packs
2023-11-10 16:22:09 +01:00
Geoffrey White
8f141cb157
Swift: Change note.
2023-11-10 15:13:51 +00:00
Geoffrey White
5a09a325f2
Swift: Add heuristic path injection sinks.
2023-11-10 15:13:51 +00:00
Mathias Vorreiter Pedersen
18c0bcec0b
Merge pull request #14669 from MathiasVP/no-dtt-in-unbounded-write
...
C++: Rewrite `cpp/unbounded-write` away from `DefaultTaintTracking`
2023-11-10 15:08:42 +00:00
Rasmus Wriedt Larsen
5fc8a00487
Python: Rename test function
2023-11-10 15:58:20 +01:00
Rasmus Wriedt Larsen
b3feb4d7e9
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-11-10 15:57:00 +01:00
Mathias Vorreiter Pedersen
2ceb4cffbc
Merge pull request #14736 from MathiasVP/fix-global-indirect-flow
...
C++: Fix indirect global-variable flow
2023-11-10 14:25:23 +00:00
Anders Schack-Mulligen
0d8986cfad
Java: Accept test changes.
2023-11-10 14:04:45 +01:00
Jeroen Ketema
c71bdce2d0
Merge pull request #14744 from jketema/fgets
...
C++: Fix `hasRemoteFlowSource` for `fgets`
2023-11-10 14:03:40 +01:00
Mathias Vorreiter Pedersen
4f6b6b4a6f
Merge branch 'main' into no-dtt-in-unbounded-write
2023-11-10 12:57:42 +00:00
Jeroen Ketema
617d950a25
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-11-10 13:55:39 +01:00
Tamás Vajk
340b20f93d
Merge pull request #14743 from tamasvajk/standalone/adjust-nuget-test
...
C#: Adjust standalone integration test to not reference mono assemblies
2023-11-10 13:43:54 +01:00
Tom Hvitved
9f0b0733a6
Merge pull request #14589 from hvitved/csharp/fqn-backticks
...
C#: Use `C'X` fully-qualified-name format instead of `C<,...,>`
2023-11-10 13:33:36 +01:00
Jeroen Ketema
1c87875049
C++: Drop the size return value of strlcat from hasTaintFlow
2023-11-10 13:15:57 +01:00
Jeroen Ketema
5e21a5d284
C++: Fix flow for return values of strlcat and strlcpy
2023-11-10 12:28:48 +01:00
Jeroen Ketema
ba51b65d84
C++: Fix hasRemoteFlowSource for fgets
...
Also add the test that exposed this. Note that the test would only have started
failing after `cpp/uncontrolled-process-operation` with the rewrite of the
query away from default taint tracking, which has not happened yet.
2023-11-10 11:56:23 +01:00
Tamas Vajk
334fb1fc95
C#: Adjust standalone integration test to not reference mono assemblies
2023-11-10 11:47:28 +01:00
Alex Denisov
0fb439b54d
Swift: test ElementArchetypeType via PackType
2023-11-10 11:44:45 +01:00
Alex Denisov
e865c3cbd3
Swift: extract parameter packs
2023-11-10 10:20:14 +01:00
Jeroen Ketema
e4c8406365
C++: Split strlcat off in a separate model
2023-11-10 10:11:57 +01:00
Tony Torralba
1f0d9e50c5
Merge pull request #14739 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-11-10 09:25:02 +01:00
Tom Hvitved
ae3d98fd6f
C#: Add change note
2023-11-10 08:57:13 +01:00
Tom Hvitved
57ec0948cf
C#: Update expected test output
2023-11-10 08:46:15 +01:00
Tom Hvitved
2971a20760
C#: Update MaD rows
2023-11-10 08:46:15 +01:00
Tom Hvitved
b72f34591d
C#: Use {get,has}FullyQualifiedName throughout
2023-11-10 08:46:15 +01:00
Tom Hvitved
66dc5501e8
C#: Deprecate {get,has}QualifiedName and replace with {get,has}FullyQualifiedName
2023-11-10 08:46:01 +01:00
Paolo Tranquilli
b611e7cebf
Merge pull request #14715 from github/redsun82/gen-file-docs
...
Swift: add more doc strings to generated things
2023-11-10 07:41:41 +01:00
github-actions[bot]
01a1b4aa50
Add changed framework coverage reports
2023-11-10 00:15:57 +00:00
Maiky
2d387a98ce
Add go.mod
2023-11-10 01:00:01 +01:00
Maiky
78a65a7787
Remove import
2023-11-09 23:35:33 +01:00
Maiky
6d7598115e
Undo changes in modules
2023-11-09 23:26:38 +01:00
Maiky
a7264c2b5c
Requested Changes
2023-11-09 23:17:45 +01:00
Maiky
dc265e7542
Requested Changes
2023-11-09 23:17:15 +01:00
Mathias Vorreiter Pedersen
b858a284c9
Merge pull request #14726 from microsoft/28-strsafe-library-updates2
2023-11-09 21:39:10 +00:00
Cornelius Riemenschneider
246c169540
Merge pull request #14738 from github/criemen/fix-path
...
Take our node, not the one that comes first on the PATH.
2023-11-09 22:20:44 +01:00
Cornelius Riemenschneider
97fd2033f1
Take our node, not the one that comes first on the PATH.
2023-11-09 22:00:00 +01:00
Mathias Vorreiter Pedersen
39b9d2ea83
C++: Accept test changes.
2023-11-09 20:28:55 +00:00
Mathias Vorreiter Pedersen
eb1024c79b
C++: Improve (and simplify) 'toString's.
2023-11-09 20:27:23 +00:00
Mathias Vorreiter Pedersen
86e791980c
C++: Simplify 'isGlobalUse' and 'isGlobalDefImpl'.
2023-11-09 20:27:23 +00:00
Mathias Vorreiter Pedersen
9762313500
C++: Implement jumpStep using the indirection instead of index.
2023-11-09 20:27:23 +00:00
Mathias Vorreiter Pedersen
95bb70f577
C++: Also add a 'getIndirection' on 'GlobalDef' as well. This will be useful in the next commit.
2023-11-09 20:25:29 +00:00
Benjamin Rodes
5e140021fb
Removed non-ascii characters.
2023-11-09 15:24:58 -05:00
Mathias Vorreiter Pedersen
fd26ae18bf
C++: Obtain the SSA variable of a 'GlobalUse' using the indirection instead of the index (like we do for non-global uses as well).
2023-11-09 20:20:27 +00:00
Mathias Vorreiter Pedersen
bb5a78d3f1
C++: Factor the IPA body of 'TGlobalUse' and 'TGlobalDef' out into predicates.
2023-11-09 20:17:47 +00:00
Tamás Vajk
7112409d27
Merge pull request #14723 from tamasvajk/standalone/include-nuget-restored-folders
...
C#: Include all (legacy) nuget restored folders in standalone references
2023-11-09 20:27:44 +01:00
Anders Schack-Mulligen
657c29f409
Java/C++: Share valueFlowStep.
2023-11-09 20:24:28 +01:00
Tom Hvitved
94d08aa443
Merge pull request #14662 from hvitved/csharp/mad-generics
...
C#: Include type parameters in MaD format for generics
2023-11-09 19:46:01 +01:00
Benjamin Rodes
8674139de6
Change log file name change
2023-11-09 13:24:14 -05:00
Geoffrey White
ebf7231be7
Swift: Make the 'completePath' models work.
2023-11-09 18:21:12 +00:00
Geoffrey White
9b5556e245
Swift: Test 'completePath' more carefully.
2023-11-09 18:21:12 +00:00
Geoffrey White
2d313ef4c7
Swift: Add some path injection sink models.
2023-11-09 18:21:12 +00:00
Mathias Vorreiter Pedersen
0963af2ee7
C++: Add failing tests.
2023-11-09 18:01:22 +00:00
Jeroen Ketema
a051a57e00
Update cpp/ql/lib/semmle/code/cpp/models/implementations/Strcat.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-11-09 17:48:45 +01:00
Jeroen Ketema
0b91310357
C++: Add models for strlcpy and strlcat
2023-11-09 17:21:37 +01:00
Anders Schack-Mulligen
b8e7e1d15e
Java/C++: Share ssaUpdateStep.
2023-11-09 16:02:44 +01:00
Anders Schack-Mulligen
daffae020b
Java/C++: Share eqFlowCond.
2023-11-09 16:00:46 +01:00
Anders Schack-Mulligen
cad003a39e
Merge pull request #14732 from aschackmull/cpp/range-ssa
...
C++: Fix operand ssa variables for range analysis.
2023-11-09 15:17:47 +01:00
Chris Smowton
c060827a5d
Merge pull request #14699 from smowton/smowton/feature/jdk21-sequenced-collections-models
...
Java: model JDK21 SequencedCollection, Set and Map
2023-11-09 14:15:08 +00:00
Mathias Vorreiter Pedersen
7048190929
Update cpp/ql/src/Security/CWE/CWE-120/UnboundedWrite.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-11-09 12:39:10 +00:00
Owen Mansel-Chan
e16647fc87
Merge pull request #14731 from owen-mc/docs/dataflow-never-skip
...
Docs: document dataflow `neverSkip` (and expand section on hidden nodes)
2023-11-09 12:08:00 +00:00
Michael Nebel
4cc75c5bd6
Merge pull request #14564 from michaelnebel/csharp/cildefaultfalse
...
C#: Disable CIL extraction by default.
2023-11-09 13:06:54 +01:00
Owen Mansel-Chan
38766c497a
Document neverSkip to show nodes in paths
2023-11-09 11:59:04 +00:00
Geoffrey White
cd147038cd
Swift: Fill some gaps in the URL, NSURL models.
2023-11-09 11:51:18 +00:00
Geoffrey White
a86862d578
Swift: Add test cases (heuristic).
2023-11-09 11:33:10 +00:00
Geoffrey White
04016ebd20
Swift: Add test cases (more library functions).
2023-11-09 11:31:58 +00:00
Geoffrey White
f99df55e94
Swift: Add test stubs.
2023-11-09 11:28:33 +00:00
Anders Schack-Mulligen
abe0bb70ac
C++: Fix operand ssa variables for range analysis.
2023-11-09 12:26:53 +01:00
Paolo Tranquilli
331fbf3251
Merge branch 'main' into redsun82/gen-file-docs
2023-11-09 12:14:10 +01:00
Paolo Tranquilli
dcb2117b31
Swift: tweak generated doc comments
2023-11-09 12:12:07 +01:00
Owen Mansel-Chan
5eaf682b77
Expand documentation of hidden nodes
2023-11-09 10:37:21 +00:00
Tom Hvitved
f58ff6ac6f
C#: Manually update two more MaD rows
2023-11-09 11:25:09 +01:00
Anders Schack-Mulligen
ff6b8c4eb1
Merge pull request #14721 from aschackmull/shared/ssareadpos-share
...
Java/C++/RangeAnalysis: Move SsaReadPosition to shared qlpack.
2023-11-09 11:22:20 +01:00
Tamas Vajk
5c05a4c752
Restore nuget.exe and dotnet restore packages to separate folders
2023-11-09 11:20:00 +01:00
Cornelius Riemenschneider
3dcb039c76
Merge branch 'main' into criemen/java-int-tests
2023-11-09 11:19:04 +01:00
Tamas Vajk
d44d980003
C#: Exclude tools folders in legacy nuget packages
2023-11-09 11:19:02 +01:00
Cornelius Riemenschneider
cfa47a6d8e
Merge pull request #14677 from github/criemen/js-bazel
...
JS: Move the language pack build and tests to Bazel
2023-11-09 11:15:42 +01:00
Chris Smowton
db045e0d9e
Merge pull request #14729 from github/dependabot/go_modules/go/extractor/extractor-dependencies-479a80dd5e
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-11-09 09:40:13 +00:00
Tamas Vajk
fd99e1f6a5
C#: Add test case with nuget package containing tools
2023-11-09 10:33:34 +01:00
Cornelius Riemenschneider
b4ec13235d
Address review.
2023-11-09 09:40:29 +01:00
Tom Hvitved
5ae025f39a
C#: Add change note
2023-11-09 08:45:25 +01:00
Tom Hvitved
76e6f81075
C#: Allow for explicit interface names in MaD consistency check
2023-11-09 08:34:36 +01:00
Tom Hvitved
136adb2df2
C#: Regenerate dotnet/runtime models
2023-11-09 08:34:36 +01:00
Tom Hvitved
f920bc164a
C#: Update model generator to output one file per namespace
2023-11-09 08:34:36 +01:00
Tom Hvitved
7aed6f9233
C#: Manually update some MaD rows
2023-11-09 08:34:36 +01:00
Tom Hvitved
11c113bbd5
C#: Use new format for generics when parsing MaD rows
2023-11-09 08:34:36 +01:00
Tom Hvitved
84773fcde4
C#: Convert existing models using model converter
2023-11-09 08:34:35 +01:00
Tom Hvitved
74f483a6f5
C#: Update model conversion queries
2023-11-09 08:34:35 +01:00
Tom Hvitved
6f4311d656
C#: Include type parameters when printing MaD rows with generics
2023-11-09 08:34:06 +01:00
dependabot[bot]
8a3f29a6bf
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.14.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-09 03:49:54 +00:00
Ben Rodes
79dcb4b48c
Update cpp/ql/lib/change-notes/2023-11-8-strsafe-models.md
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-11-08 12:37:55 -05:00
Benjamin Rodes
bdae2af0e2
Adding missing strsafe sprintf variants.
2023-11-08 12:20:53 -05:00
Benjamin Rodes
c3ff181198
Adding change log
2023-11-08 12:20:04 -05:00
Mathias Vorreiter Pedersen
68e7f84c23
Merge pull request #14661 from geoffw0/commandinject4
...
Swift: Fix defaultImplicitTaintRead on fields
2023-11-08 15:52:18 +00:00
Geoffrey White
6b434d10ce
Merge pull request #14701 from geoffw0/promotecmdline
...
Swift: Promote the command injection query out of experimental
2023-11-08 15:46:29 +00:00
Paolo Tranquilli
e68826bf99
Merge pull request #14261 from github/alexdenisov/upgrade-to-swift-5.9
...
Swift: upgrade to 5.9
2023-11-08 16:15:41 +01:00
Cornelius Riemenschneider
6b37d2009b
Merge branch 'main' into criemen/js-bazel
2023-11-08 16:11:47 +01:00
Mathias Vorreiter Pedersen
38bd893c81
Merge branch 'main' into no-dtt-in-unbounded-write
2023-11-08 15:06:59 +00:00
Mathias Vorreiter Pedersen
e90803a81c
C++: Rewrite 'cpp/unbounded-write' away from DefaultTaintTracking.
2023-11-08 14:57:04 +00:00
Cornelius Riemenschneider
512c6a59c5
Merge pull request #14718 from github/criemen/go-ub
...
Restructure go Makefile: Build the per-platform target.
2023-11-08 15:30:57 +01:00
Mathias Vorreiter Pedersen
d8e75e66d7
Merge pull request #14717 from github/alexdenisov/fix-cfg-for-single-value-stmt-expr
...
Swlft: fix CFG for SingleValueStmtExpr
2023-11-08 14:26:00 +00:00
Rasmus Wriedt Larsen
9b0ad8295e
Python: Add test of nested classes
2023-11-08 14:58:40 +01:00
Shati Patel
3586231e7d
Merge pull request #14668 from github/shati-patel/docs-databases
...
VS Code extension docs: Changes to database downloads
2023-11-08 13:55:43 +00:00
Rasmus Wriedt Larsen
9d5cf0b331
Merge branch 'main' into class-attribute-flow
2023-11-08 14:30:53 +01:00
Rasmus Wriedt Larsen
6d4e000c7c
Merge pull request #14590 from RasmusWL/fix-dataflow-class-scope
...
Python: Fix dataflow consistency error due to missing class scope
2023-11-08 14:30:34 +01:00
Rasmus Wriedt Larsen
43d9d2ceb7
Merge pull request #14603 from github/max-schaefer/broken-crypto-algorithm-link
...
JavaScript/Python/Ruby: Improve alert message for `*/weak-cryptographic-algorithm`.
2023-11-08 14:29:24 +01:00
Anders Schack-Mulligen
f9132c5ff0
Java: Duplicate a bit more code to postpone Java-C# cleanup.
2023-11-08 14:04:34 +01:00
Tamas Vajk
2273bb13b8
C#: Include all (legacy) nuget restored folders in standalone references
2023-11-08 14:02:41 +01:00
Tamas Vajk
b782e5bf44
C#: Add test case with legacy nuget restore
2023-11-08 14:01:10 +01:00
Tamás Vajk
4ae35d179e
Merge pull request #14707 from tamasvajk/standalone/framework-nuget-1
...
C#: Keep only one framework reference nuget package in standalone
2023-11-08 12:52:52 +01:00
Alex Denisov
d510739ca2
Swift: add 5.9 chagenote
2023-11-08 12:20:33 +01:00
Anders Schack-Mulligen
1f4cd74a1c
Java/C++: Move SsaReadPosition to shared qlpack.
2023-11-08 12:11:17 +01:00
Michael Nebel
795e32c681
Merge pull request #14693 from michaelnebel/csharp/fixcompilerwarning
...
C#: Fix compiler warning of possible null de-reference.
2023-11-08 12:04:41 +01:00
Michael Nebel
b1c3915fd9
Merge pull request #14712 from michaelnebel/csharp/tracerdotnettest
...
C#: Tracer improvement for `dotnet test`
2023-11-08 12:03:19 +01:00
Geoffrey White
d78a7b9d94
Swift: Add credit to change note.
2023-11-08 10:46:57 +00:00
Michael Nebel
0cf00ebb5d
C#: Re-introduce null check in cached entity hash code calculation.
2023-11-08 10:59:06 +01:00
Cornelius Riemenschneider
f12310cb86
The java-version-too-old relies on a Java 8 installation.
...
We don't have a Java 8 build on the M1 machines, therefore skip this test.
2023-11-08 10:36:47 +01:00
Cornelius Riemenschneider
137403f649
Java: Move more tests to use the try_use_java11() helper.
...
This is in preparation of executing these tests on GH-hosted M1 runners,
where we need to have architecture-specific path handling.
It's nicer to fix all of this in one place (the helper), than to run around
fixing individual tests.
2023-11-08 10:33:50 +01:00
Mathias Vorreiter Pedersen
ab64d9a9d6
Merge pull request #14713 from MathiasVP/no-gvn-as-ssa-in-range-analysis
...
C++: Don't use GVN as SSAVariable in new range analysis
2023-11-08 09:28:15 +00:00
Michael Nebel
69e8621062
C#: Fix compiler warning of possible null de-reference.
2023-11-08 10:21:26 +01:00
Paolo Tranquilli
ac838d72de
Codegen: mark all generated files and classes as INTERNAL
2023-11-08 10:02:17 +01:00
Paolo Tranquilli
b7543f5dc7
Codegen: pass ql_internal to Stub
2023-11-08 09:54:21 +01:00
Michael Nebel
cd4a546763
C#: Add CIL extraction change note.
2023-11-08 09:40:01 +01:00
Michael Nebel
8f23ba83be
C#: Update Options unit tests to reflect the new default.
2023-11-08 09:40:01 +01:00
Michael Nebel
9b56e83745
C#: Set CIL extraction default to false.
2023-11-08 09:40:01 +01:00
Tony Torralba
5442cdb49c
Merge pull request #14610 from atorralba/atorralba/java/jms-deserialization
...
Java: Add JMS sink to java/unsafe-deserialization
2023-11-08 09:10:20 +01:00
Erik Krogh Kristensen
f643fd7d74
Merge pull request #14716 from erik-krogh/invalid-main
...
JS: catch when the main: path is invalid on Windows
2023-11-08 08:33:58 +01:00
Anders Schack-Mulligen
45ae4ed362
Merge pull request #14711 from aschackmull/shared/rangeutil-share2
...
Java/C++/RangeAnalysis: Move a couple of utility predicates to shared qlpack
2023-11-08 08:33:12 +01:00
Mathias Vorreiter Pedersen
a8eed6bd7e
Merge pull request #14704 from MathiasVP/fix-uninitialized-local
...
C++: IR'ify `cpp/uninitialized-local` and fix FPs
2023-11-07 22:45:34 +00:00
Cornelius Riemenschneider
3f95dd6916
Restructure go Makefile: Build the per-platform target.
...
This changes the default build target we use to build the go extractor
to use th per-platform targets (requires internal change to follow up).
This also builds the macos target as universal binary.
2023-11-07 20:21:10 +01:00
Geoffrey White
b63294764b
Merge pull request #14705 from geoffw0/qhelplink
...
Fix a dead ReDoS link in docs
2023-11-07 17:40:19 +00:00
Mathias Vorreiter Pedersen
69502d0c31
C++: Add some more tests.
2023-11-07 17:31:01 +00:00
Alex Denisov
12f9e3a1dd
Swlft: fix CFG for SingleValueStmtExpr
2023-11-07 18:12:39 +01:00
erik-krogh
ae577d1e44
catch when the main: path is invalid on Windows
2023-11-07 17:42:21 +01:00
Alex Denisov
dd20a9b009
Swlft: fix wording in the comment
2023-11-07 17:28:37 +01:00
Alex Denisov
df256e601a
Swlft: add explicit SingleValueStmtExpr test
2023-11-07 17:26:44 +01:00
Mathias Vorreiter Pedersen
5a9867c5b0
Merge pull request #14714 from MathiasVP/geoffw0-follow-up-comment
...
C++: Add comment to testcase
2023-11-07 15:33:15 +00:00
Paolo Tranquilli
10afa4381a
Swift: add more doc strings to generated things
2023-11-07 16:29:03 +01:00
Mathias Vorreiter Pedersen
1c8f474848
C++: Add comment as suggested in the PR review for #14708 .
2023-11-07 15:16:38 +00:00
Mathias Vorreiter Pedersen
2787f0a0fc
Merge pull request #14708 from MathiasVP/add-testcase-for-range-analysis
...
C++: Add range analysis testcase
2023-11-07 15:15:45 +00:00
Mathias Vorreiter Pedersen
2d43eec3c3
C++: Accept test changes.
2023-11-07 14:57:30 +00:00
Mathias Vorreiter Pedersen
91b29eee53
C++: Don't use GVN as an SSAVariable in range analysis.
2023-11-07 14:52:50 +00:00
Mathias Vorreiter Pedersen
a04830b8b2
Merge pull request #14697 from MathiasVP/range-analysis-simplify-conversions
...
C++: Simplify the definition of `SemExpr` for range analysis
2023-11-07 14:52:09 +00:00
Rasmus Wriedt Larsen
5433907c33
Python: Accept more test changes
...
All are for the better 🎉
2023-11-07 15:49:14 +01:00
Michael Nebel
21cb4909cf
C#: Add integration test.
2023-11-07 15:26:55 +01:00
Anders Schack-Mulligen
12cba7909b
Java/C++: Move range util guard-controls predicates to shared pack.
2023-11-07 15:14:34 +01:00
Anders Schack-Mulligen
f2ca52d951
Java/C++: Move range util backEdge predicate to shared pack.
2023-11-07 15:14:34 +01:00
Tom Hvitved
b2512eb212
Merge pull request #14678 from hvitved/csharp/mad-operator-fix
...
C#: Correctly parse operator names in MaD
2023-11-07 15:11:01 +01:00
Rasmus Wriedt Larsen
dc8ca70ab5
Merge pull request #14694 from RasmusWL/python-validtest-success
...
Python: Misc: show that all tests passed in validTest
2023-11-07 14:56:57 +01:00
Michael Nebel
7ea8f88d47
C#: Allow exe and dll files for dotnet test to start with any character.
2023-11-07 14:52:37 +01:00
Cornelius Riemenschneider
9c8e2321be
Merge branch 'main' into criemen/js-bazel
2023-11-07 14:36:45 +01:00
Cornelius Riemenschneider
697a7b8a60
Merge pull request #14702 from github/criemen/java-int-test
...
Java: Make integration test more robust wrt recent Java versions.
2023-11-07 14:00:40 +01:00
Alex Denisov
2b7ce23653
Swlft: add database upgrade scripts
2023-11-07 13:40:42 +01:00
Alex Denisov
33de177fea
Swift: extract SingleValueStmtExpr
2023-11-07 13:40:35 +01:00
Alex Denisov
bbde709b3f
Swift: upgrade to 5.9.1
2023-11-07 13:40:28 +01:00
Tamas Vajk
a70d9691da
C#: Add standalone test with multiple targets
2023-11-07 13:39:43 +01:00
Tom Hvitved
af7b295c59
Address review comments
2023-11-07 13:01:19 +01:00
Mathias Vorreiter Pedersen
9dca6697fb
C++: Add a testcase that fails to terminate in modulus analysis when we don't have IR operands as SSA variables.
2023-11-07 11:52:35 +00:00
Tamas Vajk
0f31fc7cbe
C#: Keep only one framework reference nuget package in standalone
2023-11-07 12:12:59 +01:00
Rasmus Wriedt Larsen
5220a8d3f8
Update python/ql/test/experimental/dataflow/validTest.py
...
Co-authored-by: Taus <tausbn@github.com >
2023-11-07 11:30:13 +01:00
Rasmus Wriedt Larsen
9f43108ba8
Python: Fix DataFlowCall.getEnclosingCallable
...
Now it is aligned with the implementation of DataFlow::Node
See 4bc4e0845d/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll (L134-L138)
2023-11-07 11:29:23 +01:00
Rasmus Wriedt Larsen
904a8b1ea9
Python: Add consistency tests for class scope
2023-11-07 11:29:23 +01:00
Rasmus Wriedt Larsen
5bee44dcfe
Python: add change-note
2023-11-07 11:27:11 +01:00
Rasmus Wriedt Larsen
6568332e3d
Python: Add basic flow for class attributes
2023-11-07 11:23:42 +01:00
Rasmus Wriedt Larsen
6c50c2bfe6
Python: Highlight missing flow for class attributes
2023-11-07 11:23:42 +01:00
Cornelius Riemenschneider
ccaa792343
Address on-slack review.
2023-11-07 11:07:37 +01:00
Mathias Vorreiter Pedersen
6669cf805f
C++: Add change note.
2023-11-07 09:32:07 +00:00
Mathias Vorreiter Pedersen
0fd4d4a114
C++: Add QLDoc.
2023-11-07 09:29:34 +00:00
Geoffrey White
e8a466a02c
Update dead link.
2023-11-07 09:26:07 +00:00
Mathias Vorreiter Pedersen
022c9eb3cd
C++: Add a barrier feature to 'MustFlow'.
2023-11-07 09:23:42 +00:00
Mathias Vorreiter Pedersen
6bf2d47321
C++: Allow source = sink in 'MustFlow'.
2023-11-07 09:23:42 +00:00
Mathias Vorreiter Pedersen
1dc08941f8
C++: Use 'MustFlow' in 'cpp/uninitialized-local'.
2023-11-07 09:23:41 +00:00
AlexDenisov
a0e73eaab0
Merge pull request #14696 from github/alexdenisov/force-canonical-types
...
Swlft: force canonical type computation before using the type
2023-11-07 10:23:16 +01:00
Mathias Vorreiter Pedersen
a17cd9bc1c
Merge pull request #14667 from MathiasVP/more-function-input-and-output-ipa-numbers
...
C++: Allocate more `FunctionInput` and `FunctionOutput`s
2023-11-07 08:57:31 +00:00
Geoffrey White
4ce8d953d2
Merge pull request #14698 from geoffw0/realmswift
...
Swift: Fix an issue with Realm sinks for swift/cleartext-storage-database
2023-11-07 08:37:27 +00:00
Cornelius Riemenschneider
cff9bcfabc
Revert "Revert "Java: Make integration test more robust wrt recent Java versions.""
...
This reverts commit 4e70e674fd .
2023-11-06 23:29:33 +01:00
Cornelius Riemenschneider
4e70e674fd
Revert "Java: Make integration test more robust wrt recent Java versions."
...
This reverts commit ae21bbf0b2 .
2023-11-06 23:26:21 +01:00
Cornelius Riemenschneider
ae21bbf0b2
Java: Make integration test more robust wrt recent Java versions.
...
I've been investigating moving the Java integration tests to a
GH-hosted macos runner, instead of a self-hosted one.
This test is not compatible with a GH-hosted runners Java setup.
It is also not compatible to being exposed to JAVA_21_HOME_X64 variable yet.
This PR fixes both issues.
2023-11-06 23:22:05 +01:00
Geoffrey White
3465c34cb6
Merge pull request #14680 from geoffw0/dataclosure
...
Swift: Generalize flow through subscript writes / test and fix some closure methods of Data
2023-11-06 19:39:08 +00:00
amammad
e8eff78799
fix tests because of error in Frameworks.qll
2023-11-06 19:19:36 +01:00
amammad
ad756d59c8
put new frameworks in Frameworks.qll and fix some mistakes of Baize
2023-11-06 19:17:50 +01:00
amammad
315bdc2b48
add tests for new frameworks
2023-11-06 19:13:57 +01:00
amammad
637c52d10a
separate each new FileSystemAccess packages.
2023-11-06 19:03:55 +01:00
Geoffrey White
c85bdcd5ab
Swift: Change note.
2023-11-06 17:36:58 +00:00
Mathias Vorreiter Pedersen
4455ed982d
C++: Accept query test changes.
2023-11-06 17:33:46 +00:00
Geoffrey White
1c6a4b8cbf
Swift: Update the test .qlref.
2023-11-06 17:32:25 +00:00
Mathias Vorreiter Pedersen
84594e66bc
Merge pull request #14682 from geoffw0/filepathclosure
...
Swift: Correct a couple of FilePath models.
2023-11-06 17:31:17 +00:00
Geoffrey White
127f819762
Swift: Move command injection query out from experimental.
2023-11-06 17:23:28 +00:00
Ian Lynagh
e0c89a700f
Merge pull request #14695 from igfoo/igfoo/order
...
Docs: Put lists in supported-frameworks.rst in more alphabetical order
2023-11-06 17:00:39 +00:00
Cornelius Riemenschneider
be02512dfe
Add a build system for the junit tests.
...
This is a bit more complicated than our usual setup, as we both need to
unzip the typescript parser wrapper, and make node accessible on the path.
2023-11-06 17:58:28 +01:00
Chris Smowton
24b4b05be8
Add models for new Collections methods
2023-11-06 16:44:40 +00:00
Chris Smowton
d30d71e048
Add change note
2023-11-06 16:38:44 +00:00
Geoffrey White
426bdc0011
Swift: Add test cases. Before the changes, we don't catch the cases for return values from the closures.
2023-11-06 16:32:23 +00:00
Mathias Vorreiter Pedersen
d38fa13299
C++: Remove more uses of 'getConverted' and 'getUnconverted'.
2023-11-06 16:11:55 +00:00
Chris Smowton
5b72aee3ae
Java: model JDK21 SequencedCollection, Set and Map
2023-11-06 16:04:13 +00:00
Mathias Vorreiter Pedersen
e91987b1a9
C++: Accept test changes.
2023-11-06 16:02:06 +00:00
Mathias Vorreiter Pedersen
d544f47746
C++: Simplify the definition of 'SemExpr' by instead making non-overflowing conversions copy value expressions.
2023-11-06 16:01:59 +00:00
Geoffrey White
e4f6b1ac27
Swift: Change note.
2023-11-06 16:00:22 +00:00
Geoffrey White
77e48f72ec
Swift: Detect Realm sinks more reliably.
2023-11-06 15:54:17 +00:00
Geoffrey White
9ec5e6e35e
Swift: Re-organize the RealmStore constructor.
2023-11-06 15:54:17 +00:00
Geoffrey White
424046d238
Swift: Add test case.
2023-11-06 15:54:17 +00:00
Alex Denisov
80c4b7357a
Swlft: force canonical type computation before using the type
...
`getCanonicalType` will force computation of the canonical type.
Without canonical type computed. `getString` may cause crashes in
certain cases.
2023-11-06 16:53:38 +01:00
Mathias Vorreiter Pedersen
31c2a3be98
C++: Don't redefine the meaning of the single-parameter 'isParameterDeref' and accept test changes.
2023-11-06 15:52:58 +00:00
Ian Lynagh
decbaa9dc7
Docs: Put lists in supported-frameworks.rst in more alphabetical order
...
They were almost alphabetical, but not quite.
Python was ordered by category first, and by name within each catogory.
I've left it like that, but it would probably be better to be
consistent between languages, one way or the other.
2023-11-06 15:49:16 +00:00
Michael Nebel
3f0be47c7b
Merge pull request #14655 from michaelnebel/csharp/projectassetspackages
...
C#: Use `project.assets.json` for package dependencies.
2023-11-06 16:26:38 +01:00
Robert Marsh
49428c4585
Merge pull request #14683 from geoffw0/nsstringclosure
...
Swift: Model NSString.enumerate*
2023-11-06 10:19:25 -05:00
Rasmus Wriedt Larsen
43f1d092f1
Python: Misc: show that all tests passed in validTest
2023-11-06 16:04:58 +01:00
Tom Hvitved
d86293f9b4
Merge pull request #14690 from hvitved/csharp/gvn-unbound-type
2023-11-06 15:30:53 +01:00
Mathias Vorreiter Pedersen
ff30308a2b
C++: Only the first indirection of the argument should be the remote flow sink.
2023-11-06 13:57:14 +00:00
Tom Hvitved
4b9430d59e
Merge pull request #14688 from hvitved/csharp/deprecate-get-instance-type
...
C#: Deprecate `UnboundGenericType::getInstanceType/0`
2023-11-06 14:32:54 +01:00
Mathias Vorreiter Pedersen
cd2eec0aa0
C++: Also override the single-parameter 'isParameterDeref' in 'InParameterDeref'.
2023-11-06 13:23:31 +00:00
Cornelius Riemenschneider
52fcc5f435
Export test data directories.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
63854e36b4
Use the TestPaths helper to lookup files.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
a773532d07
Refactor JS test suite to be more in line with other Java projects.
...
Therefore, we move the test suite out of the `src` directory.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
6c7ea86a12
Introduce a bazel-based build for the entire JS pack.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
465eb00228
More fine-grained dependency on internal extractors.
2023-11-06 13:44:28 +01:00
Rasmus Wriedt Larsen
f6ae7523b5
Merge pull request #14591 from RasmusWL/minor-stringpool-improvement
...
Python: Minor cleanup for string pool interaction
2023-11-06 13:13:27 +01:00
Tom Hvitved
12cd1c1011
C#: Deprecate UnboundGenericType::getInstanceType/0
2023-11-06 13:01:57 +01:00
Geoffrey White
4e214e1c7c
Merge pull request #14691 from geoffw0/webview2
...
Swift: Add a webview test case
2023-11-06 11:08:09 +00:00
shati-patel
68da5e2bbe
Fix some names + a spurious quotation mark
2023-11-06 10:56:03 +00:00
Rasmus Wriedt Larsen
92b13c4259
Merge branch 'main' into amammad-python-FileSystemAccess
2023-11-06 11:30:09 +01:00
Rasmus Wriedt Larsen
3d8a7e0ee3
Python: Add change-note
2023-11-06 11:29:52 +01:00
Chris Smowton
c6193ebc0c
Merge pull request #14687 from github/dependabot/go_modules/go/extractor/extractor-dependencies-a562808574
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-11-06 10:05:44 +00:00
Geoffrey White
838a00bbc9
Swift: Add a webview test case from a branch that didn't make it.
2023-11-06 09:44:53 +00:00
Erik Krogh Kristensen
2abdf7dbbd
Merge pull request #14686 from erik-krogh/delete-yarn
...
JS: remove the remaining yarn files
2023-11-06 10:37:06 +01:00
Tom Hvitved
602d16d73f
C#: Add another data flow test
2023-11-06 10:18:32 +01:00
Geoffrey White
b99e44c3ca
Swift: Fix the Data test.
2023-11-06 09:18:27 +00:00
Michael Nebel
4bcf9e50a0
C#: Address review comments.
2023-11-06 10:02:53 +01:00
Tom Hvitved
467854ba4b
C#: Convert a data flow test to use inline test expectations
2023-11-06 09:54:34 +01:00
Kevin Stubbings
57c645bd24
Added support for same struct and added new test
2023-11-05 22:34:35 -08:00
dependabot[bot]
2d9ff85753
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
- [Commits](https://github.com/golang/mod/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-06 03:19:42 +00:00
Kevin Stubbings
1f2e8d898d
Address Feedback
2023-11-05 14:28:34 -08:00
Tom Hvitved
3e3ea51e69
C#: Correctly parse operator names in MaD
2023-11-05 20:58:47 +01:00
Tom Hvitved
2a33a86c9d
C#: Merge ExternalFlow.qll and ExternalFlowExtensions.qll, and move to internal
2023-11-05 20:58:47 +01:00
Tom Hvitved
aa521ecd59
C#: Include more libraries in flow summaries test
2023-11-05 20:23:10 +01:00
erik-krogh
abcb5a7a95
remove the remaining yarn files
2023-11-05 19:24:59 +01:00
Geoffrey White
e621d208e4
Merge branch 'main' into nsstringclosure
2023-11-03 20:54:53 +00:00
Geoffrey White
55ec27f47f
Merge branch 'main' into filepathclosure
2023-11-03 20:54:16 +00:00
Geoffrey White
e90b630c9b
Merge branch 'main' into dataclosure
2023-11-03 20:50:20 +00:00
Geoffrey White
c6bc1a3f3a
Merge pull request #14684 from geoffw0/testsfix
...
Swift: Fix failing tests
2023-11-03 19:24:03 +00:00
Geoffrey White
07eba4e3b1
Swift: Fix some failing tests, looks like this could be the result of some recently merged PRs interacting (positively!)
2023-11-03 17:08:05 +00:00
Geoffrey White
041dc19055
Swift: Change note.
2023-11-03 16:22:46 +00:00
Geoffrey White
989a546796
Swift: Model the NSString.enumerate* methods.
2023-11-03 16:22:45 +00:00
Geoffrey White
d0ca7045d4
Swift: Fix some NSString models.
2023-11-03 16:07:34 +00:00
Geoffrey White
a59ed5bc49
Swift: Add test cases.
2023-11-03 15:45:45 +00:00
Geoffrey White
06191922c3
Swift: Correct a couple of FilePath models.
2023-11-03 15:12:31 +00:00
Geoffrey White
71ad6a8262
Swift: Change note.
2023-11-03 14:53:37 +00:00
Geoffrey White
0d7943031c
Swift: Generalize subscript assignment storeStep.
2023-11-03 14:53:37 +00:00
yoff
f969274a29
Merge pull request #14644 from yoff/python/filter-local-self-loops
...
Python: filter local self loops
2023-11-03 15:45:09 +01:00
Sam Browning
225c96ec9f
Merge branch 'main' of https://github.com/github/codeql
2023-11-03 09:42:55 -04:00
Geoffrey White
245f475fdb
Swift: Remove duplicate model.
2023-11-03 12:55:36 +00:00
Michael Nebel
df4f2a367b
C#: Update unit tests.
2023-11-03 13:42:32 +01:00
Michael Nebel
31f602cd47
C#: Make path concatenation OS invariant.
2023-11-03 13:35:06 +01:00
Michael Nebel
4689bdb468
C#: Log unused downloaded packages.
2023-11-03 13:27:51 +01:00
Michael Nebel
1054e7a4ee
C#: Update assets unit tests.
2023-11-03 13:27:51 +01:00
Michael Nebel
003166af13
C#: Collect information about used dependencies in a Dependencies object.
2023-11-03 13:27:51 +01:00
Geoffrey White
e7e6529df6
Swift: Add tests.
2023-11-03 12:21:32 +00:00
yoff
8d3ed68b68
Merge pull request #14653 from yoff/python/add-aws-to-supported-frameworks
...
Python: Add AWS Lambda as a supported framework
2023-11-03 13:14:30 +01:00
Geoffrey White
49add7d8ce
Swift: Add stubs to test.
2023-11-03 12:07:15 +00:00
Michael Nebel
eb228b6e68
C#: Address some review comments.
2023-11-03 11:32:53 +01:00
Michael Nebel
62dd86bacb
C#: Update standalone integration tests expected output.
2023-11-03 11:32:48 +01:00
Michael Nebel
7b91be6c52
C#: Allways add Windows Desktop App dlls if the NuGet package is downloaded.
2023-11-03 11:31:28 +01:00
Michael Nebel
11505d6842
C#: Make the assembly cache more robust against non-existing paths.
2023-11-03 11:31:27 +01:00
Michael Nebel
56a70da28f
C#: Remove package cleanup in the dependency manager.
2023-11-03 11:31:27 +01:00
Michael Nebel
70996a4c7e
C#: Rename dllDirNames to dllPaths.
2023-11-03 11:31:27 +01:00
Michael Nebel
576eda3ec6
C#: Add missing package directory to included dlls.
2023-11-03 11:31:27 +01:00
Michael Nebel
4cebb7e848
C#: Integrate the assets parsing and fetching in the dependency manager.
2023-11-03 11:31:27 +01:00
Michael Nebel
f8d427336e
C#: Add assets parsing unit test.
2023-11-03 11:31:27 +01:00
Michael Nebel
7bbf1a24d4
C#: Add assets.json parser.
2023-11-03 11:31:27 +01:00
Michael Nebel
c6c00e7179
C#: Add tests cases for parsing dotnet restore output to find assets.json files.
2023-11-03 11:31:27 +01:00
Michael Nebel
3a7df994cb
C#: The dependency manager should find assets.json files when doing a project or solution restore.
2023-11-03 11:31:27 +01:00
Michael Nebel
387a241efd
C#: Set output verbosity to normal for both solution and project restore (needed to identify where assets file are located).
2023-11-03 11:31:27 +01:00
Paolo Tranquilli
506b911767
Merge pull request #14629 from github/redsun82/rework-resource-dir
...
Swift: rework resource dir
2023-11-03 11:14:49 +01:00
Michael Nebel
4009f03087
Merge pull request #14665 from michaelnebel/csharp/projectreference
...
C#: Update DependencyManager logic to exclude commented out references.
2023-11-03 10:30:03 +01:00
Tom Hvitved
9807a8e1d3
Merge pull request #14675 from hvitved/csharp/split-generated-mad-files-take2
...
C#: Split `generated/dotnet_runtime.yml` into separate files (take 2)
2023-11-03 10:24:38 +01:00
Tom Hvitved
af524f0043
Revert "C#: Temporary changes to model generator"
...
This reverts commit 0f6cea6bd6ecd61139dc09e7b68bf0b8ebc009fe.
2023-11-03 09:51:40 +01:00
Tom Hvitved
894f9ab8fa
C#: Split generated/dotnet_runtime.yml into separate files
2023-11-03 09:51:40 +01:00
Tom Hvitved
7082efa037
C#: Temporary changes to model generator
2023-11-03 09:51:40 +01:00
Tom Hvitved
c34ad25cf9
Merge pull request #14674 from github/revert-14663-csharp/split-generated-mad-files
...
Revert "C#: Split `generated/dotnet_runtime.yml` into separate files"
2023-11-03 09:51:22 +01:00
Tom Hvitved
13e60d7b11
Revert "C#: Split generated/dotnet_runtime.yml into separate files"
2023-11-03 09:07:54 +01:00
Anders Schack-Mulligen
132cc03e3b
Merge pull request #14664 from aschackmull/shared/modulus-step
...
RangeAnalysis: Improve bounds that rely on relative modulus.
2023-11-03 08:16:48 +01:00
Mathias Vorreiter Pedersen
679d64f0e8
Merge pull request #14647 from microsoft/24-odbc-model-instantiation-upstream2
...
C++: Adding a model implementation for ODBC.
2023-11-02 19:42:27 +00:00
Benjamin Rodes
30a512c96b
Formatting
2023-11-02 15:01:15 -04:00
Robert Marsh
81d77bf37c
Merge pull request #14578 from geoffw0/stringwith
...
Swift: Models for String methods involving closures.
2023-11-02 13:53:22 -04:00
Benjamin Rodes
947e0274c7
Adding sql injection test for ODBC.
2023-11-02 13:27:42 -04:00
shati-patel
ac0fd93cb3
Update docs for customizing settings
2023-11-02 17:17:02 +00:00
shati-patel
2f4eea5a0d
Update docs for exploring ASTs
2023-11-02 17:16:47 +00:00
Benjamin Rodes
f404d7a5f8
Changes to address pr comments.
2023-11-02 13:11:23 -04:00
Mathias Vorreiter Pedersen
392b2af923
C++: Only the second indirection of the argument should be the remote flow source.
2023-11-02 16:51:24 +00:00
Mathias Vorreiter Pedersen
b82dfa9a21
C++: Fix failing test by allocating 'TFunctionInput's and 'TFunctionOutput's for more indirections. Note that we now mark two output nodes coming out of 'getaddrinfo' as a remote flow source (the first indirection and the second indirection). We'll fix that in the next commit.
2023-11-02 16:45:50 +00:00
Mathias Vorreiter Pedersen
5487b404ed
C++: Add failing test.
2023-11-02 16:41:19 +00:00
Michael Nebel
0bf2d77a7e
C#: Update integration tests.
2023-11-02 15:46:54 +01:00
Michael Nebel
a161d6e666
C#: Update unit tests.
2023-11-02 15:46:39 +01:00
Michael Nebel
9ea6ef06ef
C#: Commented out references in project files should not be used.
2023-11-02 15:45:30 +01:00
Anders Schack-Mulligen
f2b52650d5
Rangeanalysis: Filter useless modulo results.
2023-11-02 15:29:56 +01:00
Tom Hvitved
a35bda2946
Merge pull request #14663 from hvitved/csharp/split-generated-mad-files
...
C#: Split `generated/dotnet_runtime.yml` into separate files
2023-11-02 14:36:48 +01:00
Tom Hvitved
f82f1df5d6
Merge pull request #14657 from hvitved/csharp/qualified-name
...
C#: Move qualified name computation into `QualifiedName.qll`
2023-11-02 14:36:13 +01:00
Anders Schack-Mulligen
7bf271fb6c
RangeAnalysis: Improve bounds that rely on relative modulus.
2023-11-02 12:51:48 +01:00
Tom Hvitved
a9e2f55b61
C#: Split generated/dotnet_runtime.yml into separate files
2023-11-02 12:45:47 +01:00
Anders Schack-Mulligen
484d0fe4cd
Merge pull request #14659 from aschackmull/shared/modulus-analysis
...
Java/C++: Share modulus analysis
2023-11-02 12:45:35 +01:00
Tom Hvitved
12d856737a
Address review comments
2023-11-02 12:38:35 +01:00
Tony Torralba
8f4509f434
Merge pull request #14651 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-11-02 10:48:32 +01:00
Geoffrey White
431d9d58f1
Merge pull request #14639 from geoffw0/anchorquery
...
Swift: New query for Missing Regular Expression Anchor
2023-11-02 09:20:19 +00:00
Geoffrey White
242399817a
Swift: Remove 'only'.
2023-11-02 08:32:36 +00:00
yoff
fd757b0089
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2023-11-02 09:31:28 +01:00
Rasmus Lerchedahl Petersen
58bf70d61b
Python: filter self steps from use-use flow
...
Factor out use-use flow in order to do this.
Also improve names and comments.
I also wanted to change the types in `difinitionFlowStep`, but
that broke the module instantiation.
2023-11-02 09:31:28 +01:00
Rasmus Lerchedahl Petersen
613831b2e1
Python: add test for post-update loop flow
2023-11-02 09:31:28 +01:00
Geoffrey White
c937230f1a
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-02 08:30:53 +00:00
yoff
c26c68c286
Merge pull request #14617 from yoff/python/module-for-import-time-flow
...
Python: module for import time flow
2023-11-02 09:28:51 +01:00
Anders Schack-Mulligen
7c3684dbb7
RangeAnalysis: Rename semExprModulus to exprModulus.
2023-11-02 08:19:23 +01:00
Anders Schack-Mulligen
400910e4d3
C++: Fix modulus analysis test.
2023-11-02 08:19:23 +01:00
github-actions[bot]
155073c498
Add changed framework coverage reports
2023-11-02 00:16:04 +00:00
Geoffrey White
48c3db2290
Swift: Change note.
2023-11-01 18:49:45 +00:00
Geoffrey White
206acea41c
Swift: Fix defaultImplicitTaintRead for sinks that are field accesses on a subclass of the type containing the field.
2023-11-01 17:49:25 +00:00
Geoffrey White
727a7e804c
Update swift/ql/src/queries/Security/CWE-020/MissingRegexAnchor.qhelp
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-01 16:32:25 +00:00
Sam Browning
37361d9f79
Merge branch 'main' of https://github.com/github/codeql
2023-11-01 11:43:33 -04:00
Anders Schack-Mulligen
f8ab64dff0
Java: Switch to shared modulus analysis.
2023-11-01 16:34:28 +01:00
Tom Hvitved
c717e346fb
C#: Move qualified name computation into QualifiedName.qll
2023-11-01 16:21:55 +01:00
Anders Schack-Mulligen
ac115e0a6f
Rangeanalysis: Reshuffle perf fix. This should result in the same join-order, but with less materialisation.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
bb2bbd2d4d
Rangeanalysis: Remove useless pragma.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
f6794fe859
Rangeanalysis: Adjust modulo analysis comment.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
8e9aa5b560
C++: Switch to shared modulus analysis.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
a7f3ef1a6c
Rangeanalysis: Parameterise shared modulus analysis.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
8e2b17cd86
Rangeanalysis: Copy C++ ModulusAnalysis file verbatim.
2023-11-01 15:59:24 +01:00
Anders Schack-Mulligen
6d859daf3d
Merge pull request #14656 from aschackmull/shared/range-utils
...
Rangeanalysis: Share ssaRead predicate
2023-11-01 15:57:52 +01:00
Mathias Vorreiter Pedersen
b54b5ae0a9
Merge pull request #14648 from MathiasVP/simplify-invalid-ptr-deref
...
C++: Remove one use of range analysis in `cpp/invalid-pointer-deref`
2023-11-01 14:42:20 +00:00
Geoffrey White
b3fa59d94b
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-01 13:15:06 +00:00
Tom Hvitved
3c86aad16d
Merge pull request #14628 from hvitved/ruby/type-tracking-store-post-update
...
Ruby: Summarized type-tracking stores should target post-update nodes
2023-11-01 13:54:21 +01:00
yoff
4ce1b680c2
Merge pull request #14654 from yoff/python/update-partial-flow-debug-query
...
Python: Update debug query to changed API
2023-11-01 13:32:09 +01:00
Anders Schack-Mulligen
048a7c4e42
Rangeanalysis: Rename SsaBound.getAVariable to getVariable.
2023-11-01 11:58:06 +01:00
Anders Schack-Mulligen
48291dd32d
Rangeanalysis: Remove superfluous ignoreZeroLowerBound.
2023-11-01 11:51:46 +01:00
Rasmus Lerchedahl Petersen
0b45b63bd2
Python: Update debug query to changed API
...
The change is commented out by default
which is why no compilation tests failed
when the API changed.
2023-11-01 11:39:51 +01:00
Tom Hvitved
0c5b528d54
Address review comments
2023-11-01 11:32:57 +01:00
Rasmus Lerchedahl Petersen
1366247f4c
Python: Add AWS Lambda as a supported framework
2023-11-01 10:51:35 +01:00
Rasmus Lerchedahl Petersen
f7a8a8ae19
Python: Fix QL alert
2023-11-01 09:24:59 +01:00
Mathias Vorreiter Pedersen
9736936e54
Merge pull request #14635 from MathiasVP/assign-pointer-add-and-sub-is-not-bitwise
2023-11-01 00:40:39 +01:00
Erik Krogh Kristensen
ddb145f15f
Merge pull request #14645 from erik-krogh/rerun-tests
...
JS: re-order expected test output of all JS tests
2023-10-31 21:52:52 +01:00
Rasmus Lerchedahl Petersen
38b811b050
Python: Separate -> PhaseDependentFlow
2023-10-31 21:50:33 +01:00
Edward Minnix III
1ec1dd368d
Merge pull request #13978 from egregius313/egregius313/java/mad/convert-sensitive-api-to-mad
...
Java: Convert `SensitiveApi.qll` to use Models-as-Data
2023-10-31 15:25:42 -04:00
Kevin Stubbings
3697ef72c4
Small changes
2023-10-31 12:23:18 -07:00
Mathias Vorreiter Pedersen
6e385cabd8
C++: Add change note.
2023-10-31 19:16:36 +00:00
Mathias Vorreiter Pedersen
37a536baf9
Merge pull request #14650 from jketema/invalid-experimental
...
C++: Drop `experimental` tag from `cpp/invalid-pointer-deref`
2023-10-31 20:14:25 +01:00
Kevin Stubbings
5cab25662c
Address issues
2023-10-31 11:50:51 -07:00
Jeroen Ketema
3478890090
C++: Drop experimental tag from cpp/invalid-pointer-deref
2023-10-31 19:46:22 +01:00
Kevin Stubbings
8ed10317bd
Test comment changes
2023-10-31 11:07:41 -07:00
Kevin Stubbings
dd9a2db137
Minor name changes
2023-10-31 11:03:54 -07:00
Kevin Stubbings
020b4becfd
Finish up
2023-10-31 11:00:00 -07:00
Mathias Vorreiter Pedersen
b79a5fee14
Merge pull request #14637 from MathiasVP/dataflow-for-realloc
...
C++: Add a taint model for `realloc`
2023-10-31 18:24:04 +01:00
Geoffrey White
554007b305
Swift: Add a couple more test cases close to the failures.
2023-10-31 17:19:28 +00:00
Geoffrey White
c82eb4dff3
Swift: Test spacing.
2023-10-31 17:18:08 +00:00
Benjamin Rodes
b9ac038de2
Moving change log.
2023-10-31 09:21:01 -07:00
Ian Lynagh
ceb3d14fe0
Merge pull request #14614 from igfoo/igfoo/enum
...
Kotlin: Make the enum test more precise
2023-10-31 16:18:12 +00:00
Benjamin Rodes
07ded4278f
Change log
2023-10-31 09:14:47 -07:00
Paolo Tranquilli
051a77fd79
Merge pull request #14537 from github/alexdenisov/remove-outdated-cli-arg
...
Swift: remove outdated CLI argument
2023-10-31 17:06:52 +01:00
Benjamin Rodes
18c8d90a1a
Adding a model implementation for ODBC.
...
(cherry picked from commit 04147f8d91cdf018ec03cbfdb953253e23687944)
2023-10-31 08:52:05 -07:00
erik-krogh
688afddaf2
Re-order expected test output of all JS tests
2023-10-31 16:38:22 +01:00
Erik Krogh Kristensen
8f58685b38
Merge pull request #14643 from aibaars/express-req-path
...
Javascript: add `req.path` as remote flow source
2023-10-31 16:36:48 +01:00
Paolo Tranquilli
567aa1102a
Swift: fix toolchain SHAs
2023-10-31 16:20:58 +01:00
Paolo Tranquilli
bc34374075
Swift: switch to downloading the 20.04 toolchain
2023-10-31 16:20:58 +01:00
Paolo Tranquilli
e25a655509
Swift: fix Linux compatibility problem and fetch resource dir from toolchain
...
This fetches the resource directory directly from the released
toolchains, allowing us to stop prebuilding and assembling them.
Moreover insertion of our resource directory is moved to the lua
tracing configuration (solving a `TODO`) and enhanced. Now all options
that start with the original resource directory (either explicit or
implied) are redirected to our resource directory.
This solves a problem where `-I <original resource dir>/some/path` was
passed to the extractor and did not work.
This works around the 5.9 linux compatibility problem by including the
`PackageDescription` swift modules in the in-dist toolchain. Copying the
toolchain and fixing the `-I` flag was not enough as for some reason
compilation of `PackageDescription.swiftinterface` was causing a crash
in the SIL pass. We work around that by pre-compiling those modules
during the build and including `.swiftmodule` files in the resource
directory.
TODO (apart from testing):
* the libraries included in the macOS toolchain are now fat (they were
intel only before), occupying more space. We should see if we need to
trim them down.
* there might be other swiftinterface files causing problems on linux
lurking around...
* if we go with this, we can simplify and trim down the prebuilding we
do leaving out the resource directory.
2023-10-31 16:20:58 +01:00
Mathias Vorreiter Pedersen
b9dfeb3aac
Merge pull request #14444 from alexet/range-cases
...
CPP: Add some range analysis cases
2023-10-31 15:55:41 +01:00
Anders Schack-Mulligen
34b9791e46
Rangeanalysis: Remove superfluous ignoreSsaReadCopy.
2023-10-31 15:32:25 +01:00
Anders Schack-Mulligen
322e6c91be
Rangeanalysis: Remove superfluous specificSsaRead.
2023-10-31 15:30:36 +01:00
Anders Schack-Mulligen
8b6c940e76
Rangeanalysis: Remove superfluous ignoreSsaReadAssignment.
2023-10-31 15:28:37 +01:00
Anders Schack-Mulligen
6d6f89e71e
Rangeanalysis: Remove superfluous ignoreSsaReadArithmeticExpr.
2023-10-31 15:25:28 +01:00
Anders Schack-Mulligen
a39a94ca8e
Rangeanalysis: Switch to shared ssaRead predicate.
2023-10-31 15:23:05 +01:00
Anders Schack-Mulligen
19644a8f07
Rangeanalysis: Implement shared ssaRead predicate
2023-10-31 15:07:11 +01:00
Rasmus Lerchedahl Petersen
7f6ae8b2ab
Python: improve readability
2023-10-31 14:52:37 +01:00
Alexander Eyers-Taylor
11152deeb5
Update cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-31 13:52:33 +00:00
yoff
f76cde36bb
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2023-10-31 14:12:24 +01:00
Ian Lynagh
e1f7f3cbd4
Kotlin: Add more info to enum test
2023-10-31 12:17:44 +00:00
Mathias Vorreiter Pedersen
e75562e508
Merge pull request #14633 from github/redsun82/capture-list-vars
...
Swift: add `VarDecl` children to `CaptureListExpr`
2023-10-31 12:48:14 +01:00
Arthur Baars
5cc94e1105
Express.js: add req.path as remote input source
2023-10-31 12:44:26 +01:00
Arthur Baars
21b7a51d0a
Add test case for req.path
2023-10-31 12:44:25 +01:00
Arthur Baars
1479509d93
Re-order expected test ouput
2023-10-31 12:44:25 +01:00
Mathias Vorreiter Pedersen
377da9fa66
C++: Accept test changes.
2023-10-31 11:18:35 +00:00
Mathias Vorreiter Pedersen
4a1bf95a87
C++: Expose a public memset model and use it in the exposure queries.
2023-10-31 11:17:51 +00:00
Mathias Vorreiter Pedersen
e8c18a3883
C++: Add FP in query test.
2023-10-31 11:17:51 +00:00
Chris Smowton
98032d58b8
Merge pull request #14640 from github/smowton/admin/make-go-tests-serial
...
Go: mark all integration tests non-parallelisable
2023-10-31 10:58:41 +00:00
Stephan Brandauer
5385cc3aaa
Merge branch 'main' into kaeluka/publish-automodel-querypack-007
2023-10-31 11:48:22 +01:00
Mathias Vorreiter Pedersen
5b17066e6c
Merge pull request #14638 from geoffw0/jsevaltest
...
Swift: Clean up the swift/unsafe-js-eval test
2023-10-31 11:43:41 +01:00
Paolo Tranquilli
ea04b500a3
Swift: tweak dataflow test
2023-10-31 11:39:25 +01:00
Ian Lynagh
b841d5f923
Merge pull request #14622 from igfoo/igfoo/JavaBinarySourceElement
...
Kotlin: Add support for JavaBinarySourceElement sources
2023-10-31 10:33:48 +00:00
Tamás Vajk
81b3ff2bb8
Merge pull request #14545 from tamasvajk/standalone/remove-netstandard.library.ref
...
C#: Handle `netstandard` references in standalone extraction
2023-10-31 11:32:42 +01:00
Chris Smowton
79e1aa0498
Merge pull request #14634 from github/post-release-prep/codeql-cli-2.15.2
...
Post-release preparation for codeql-cli-2.15.2
2023-10-31 10:24:53 +00:00
Chris Smowton
05a4c7fdc1
Add non-comment lines specifying serialisation group
2023-10-31 10:21:55 +00:00
Mathias Vorreiter Pedersen
66f4eccc30
Merge pull request #14632 from MathiasVP/share-ipa-numbering-for-indirect-nodes
...
C++: Share IPA numbering for indirect nodes
2023-10-31 11:20:41 +01:00
Stephan Brandauer
9087259b1b
Java: add instructions to automodel query publish script
2023-10-31 11:11:22 +01:00
Stephan Brandauer
968127eaa3
Java: release automodel extraction queries 0.0.7
2023-10-31 11:09:02 +01:00
Paolo Tranquilli
5407b57261
Swift: add change note
2023-10-31 10:57:02 +01:00
Paolo Tranquilli
aac6cf60ee
Swift: add explicative comment
2023-10-31 10:46:12 +01:00
Paolo Tranquilli
ffff10a7e8
Swift: synthesize CaptureListExpr::getVariable in QL instead of extracting it
2023-10-31 10:44:50 +01:00
Paolo Tranquilli
7bae2d9192
Swift: fix tests
2023-10-31 10:44:41 +01:00
Geoffrey White
6b031a4623
Swift: Fix the example links properly.
2023-10-31 08:52:24 +00:00
Geoffrey White
785175e77f
Swift: Fix QL-for-QL warning.
2023-10-31 08:49:48 +00:00
Geoffrey White
bfd852aacd
Swift: Fix the example links.
2023-10-31 08:48:56 +00:00
Chris Smowton
ec72150893
Go: mark all integration tests non-parallelisable
2023-10-30 22:16:26 +00:00
Tom Hvitved
435b7df764
Merge pull request #14607 from hvitved/csharp/type-ref-dedup
...
C#: Only use `getTypeRef` when there is not already a type available
2023-10-30 19:52:58 +01:00
Geoffrey White
8913638b25
Swift: I'm happy with 'high' precision for this query (as the Go version already is).
2023-10-30 18:45:19 +00:00
Geoffrey White
b259a0ff6a
Swift: get rid of getRemoteData() in the tests, it's obfuscating results.
2023-10-30 17:48:51 +00:00
Geoffrey White
c8706e2ad7
Swift: Add some annotations to the clarify UnsafeJSEval.swift test.
2023-10-30 17:43:37 +00:00
Mathias Vorreiter Pedersen
65081a9a1f
C++: Add change note.
2023-10-30 17:11:44 +00:00
Mathias Vorreiter Pedersen
08b528b5c4
C++: Add a taint-model for 'realloc' and accept test changes.
2023-10-30 17:08:01 +00:00
Mathias Vorreiter Pedersen
0837e400a2
C++: Add failing test.
2023-10-30 17:05:43 +00:00
Mathias Vorreiter Pedersen
efe064284b
C++: Add up and downgrade scripts.
2023-10-30 16:07:57 +00:00
Mathias Vorreiter Pedersen
86fe5b47db
C++: Remove 'assignpaddexpr' and 'assignpsubexpr' from the 'assign_bitwise_expr' type.
2023-10-30 16:06:53 +00:00
github-actions[bot]
2b939fdf08
Post-release preparation for codeql-cli-2.15.2
2023-10-30 16:06:51 +00:00
Paolo Tranquilli
f81a3ec464
Swift: add VarDecl children to CaptureListExpr
2023-10-30 17:04:53 +01:00
Mathias Vorreiter Pedersen
375f0ea8b6
C++: Update documentation.
2023-10-30 15:57:30 +00:00
Mathias Vorreiter Pedersen
1e699ec0e5
C++: Simplify 'InvalidPointerToDereference.qll' now that the difference between 'derefSource' and 'pai' is always 0.
2023-10-30 15:53:48 +00:00
Mathias Vorreiter Pedersen
c8edf3151b
C++: Remove the use of range analysis in 'invalidPointerToDerefSource'.
2023-10-30 15:47:47 +00:00
Tony Torralba
45cf50c2af
Apply JMS sink only when there isn't an implementation available
2023-10-30 15:56:24 +01:00
Geoffrey White
c233094846
Swift: Change note.
2023-10-30 14:33:43 +00:00
Geoffrey White
fa3d401226
Swift: Update the qhelp.
2023-10-30 14:33:43 +00:00
Geoffrey White
7cf5210063
Swift: Port the qhelp examples to Swift.
2023-10-30 14:33:43 +00:00
Geoffrey White
9a95b9bcda
Swift: Enable the isLineAnchoredHostnameRegExp case (not working).
2023-10-30 14:33:42 +00:00
Geoffrey White
c09df2e3f1
Swift: Add test cases for the isLineAnchoredHostnameRegExp query case.
2023-10-30 14:33:42 +00:00
Geoffrey White
8f115bfd06
Swift: Implement 'isUsedAsReplace'.
2023-10-30 14:33:42 +00:00
Mathias Vorreiter Pedersen
91d224eea5
Merge pull request #14623 from alexet/dataflow-fps
...
CPP: Add dataflow FP with output arguments
2023-10-30 14:30:51 +00:00
Alex Eyers-Taylor
fb0f9ec601
CPP: Add missing rnage analysis ranges in test.
2023-10-30 14:17:03 +00:00
Alexander Eyers-Taylor
b8d45ae927
Update cpp/ql/test/library-tests/dataflow/dataflow-tests/flowOut.cpp
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-10-30 14:04:45 +00:00
Ian Lynagh
e2ef0dc71d
Merge pull request #14621 from igfoo/igfoo/getFileClassFqName_IrField
...
Kotlin: Fix getFileClassFqName for IrField
2023-10-30 13:54:08 +00:00
Ian Lynagh
d46442245b
Merge pull request #14518 from igfoo/igfoo/trap_files
...
Kotlin: Log when we start and finish writing to TRAP files
2023-10-30 13:53:04 +00:00
Geoffrey White
435638a5bb
Swift: Port the JS tests to Swift.
2023-10-30 13:08:11 +00:00
Geoffrey White
954b0612d5
Swift: Initial state of the existing test.
2023-10-30 13:08:10 +00:00
Geoffrey White
14db0dfcc7
Swift: Fairly minimal fix to get the query and test working for Swift.
2023-10-30 13:08:10 +00:00
Geoffrey White
c040d4847b
Swift: Copy MissingRegexAnchor query from JS.
2023-10-30 13:08:10 +00:00
Harry Maclean
dc9f171ee6
Merge pull request #14631 from hmac/hmac-dynamic-neutral-model
...
JS/Ruby/Python: Add neutralModel extensible predicate
2023-10-30 12:50:09 +00:00
Mathias Vorreiter Pedersen
b4958e7d58
C++: Accept path changes.
2023-10-30 12:44:30 +00:00
Mathias Vorreiter Pedersen
a077b70d66
C++: Accept test changes.
2023-10-30 11:54:24 +00:00
Mathias Vorreiter Pedersen
535d1e2565
C++: Define indirect instructions (and operands) using a 'Node0Impl' column instead of an instruction (or operand).
2023-10-30 11:54:24 +00:00
Ian Lynagh
55df481e5c
Kotlin: Add support for JavaBinarySourceElement sources
2023-10-30 11:43:36 +00:00
Harry Maclean
083be305e1
Shared: Add neutralModel extensible predicate
...
The neutralModel extensible predicate already exists in Java and C#, so
this change brings the dynamic languages more in line with static
languages. The Model Editor uses this predicate to mark endpoints as
"not interesting" from a data flow perspective.
2023-10-30 11:31:57 +00:00
Harry Maclean
38ecde0cc1
Shared: Include data extensions in workspace
...
This change allows codeql to see data extensions stored in the .github
directory inside the codeql repo. This is useful when using the CodeQL
Model Editor whilst working inside the codeql repo.
2023-10-30 11:31:56 +00:00
Chris Smowton
78fcbd07d6
Merge pull request #14630 from github/release-prep/2.15.2
...
Release preparation for version 2.15.2
2023-10-30 11:26:32 +00:00
Mathias Vorreiter Pedersen
3a9ffe189e
Merge pull request #14567 from github/redsun82/swift-case-variables
...
Swift: clean up `VarDecl`, `NamedPattern` and `SwitchStmt` interactions
2023-10-30 11:23:38 +00:00
github-actions[bot]
4641990021
Release preparation for version 2.15.2
2023-10-30 11:05:53 +00:00
Mathias Vorreiter Pedersen
9e2f0b5ed0
Merge branch 'main' into redsun82/swift-case-variables
2023-10-30 10:14:45 +00:00
Mathias Vorreiter Pedersen
c4521a30aa
Merge pull request #14113 from geoffw0/implicitflow
...
Swift: Flow through OpenExistentialExpr
2023-10-30 10:08:29 +00:00
Mathias Vorreiter Pedersen
4e08ba6820
Merge pull request #14618 from geoffw0/qldoc
...
Swift: QLDoc and test for getCanonicalType
2023-10-30 10:06:26 +00:00
Tom Hvitved
bf3fb685ad
Python: Sync in changes to SummaryTypeTracker.qll
2023-10-30 10:52:07 +01:00
Tamás Vajk
b9c89750b9
Merge pull request #14493 from tamasvajk/fix/params-attribute-argument
...
C#: Fix params attribute argument extraction
2023-10-30 10:50:02 +01:00
Tom Hvitved
14cfb82a8c
Ruby: Summarized type-tracking stores should target post-update nodes
2023-10-30 10:47:29 +01:00
Mathias Vorreiter Pedersen
342b3d7733
Merge pull request #14619 from MathiasVP/fix-strtol-model
...
C++: Fix `strtol` model
2023-10-30 09:41:23 +00:00
Kevin Stubbings
e0782683eb
Added gin cors framework
2023-10-27 17:50:43 -07:00
Geoffrey White
1929dead39
Merge branch 'main' into implicitflow
2023-10-27 23:35:54 +01:00
Owen Mansel-Chan
c1ecd5a0da
Merge pull request #14608 from Kwstubbs/golang-cookie-reflectedxss-sanitizer
...
Go: GoAdd Cookie Sanitizer to Reflected XSS
2023-10-27 21:47:39 +01:00
Kevin Stubbings
57cbacb495
test.go change
2023-10-27 12:07:51 -07:00
Kevin Stubbings
ce0104799a
Fix minor issues
2023-10-27 11:42:22 -07:00
Alex Eyers-Taylor
60f3598da9
CPP: Add dataflow FP with output arguments
2023-10-27 19:07:10 +01:00
Ian Lynagh
e25c0498d4
Kotlin: Fix getFileClassFqName for IrField
2023-10-27 18:00:33 +01:00
Geoffrey White
8937e0b313
Swift: == -> =
2023-10-27 17:18:09 +01:00
Alex Ford
cb1cd5ed2a
Merge pull request #14560 from alexrford/rb/modgen
...
Ruby: add a query and script for autogenerating typeModel and summaryModel data extensions entries
2023-10-27 16:43:42 +01:00
Mathias Vorreiter Pedersen
28eb2caacb
Swift: Accept test changes.
2023-10-27 16:30:01 +01:00
Mathias Vorreiter Pedersen
33494fe9e1
C++: Extend the taint model and accept test changes.
2023-10-27 16:26:37 +01:00
Mathias Vorreiter Pedersen
e4683449cb
C++: Add failing test.
2023-10-27 16:26:37 +01:00
Mathias Vorreiter Pedersen
8bf8888c24
C++: Simplify 'parameterNeverEscapes' and add a comment.
2023-10-27 16:26:37 +01:00
Mathias Vorreiter Pedersen
6538a7645d
Swift: Add up and downgrade scripts.
2023-10-27 15:55:12 +01:00
Mathias Vorreiter Pedersen
6062fbb475
Merge pull request #14383 from geoffw0/nsstringregex
...
Swift: Add regular expression evaluation models for StringProtocol and NSString methods
2023-10-27 15:49:23 +01:00
Mathias Vorreiter Pedersen
572cec2c55
C++: Accept test changes.
2023-10-27 15:00:25 +01:00
Mathias Vorreiter Pedersen
43e8b900bf
C++: Fix 'strtol' model.
2023-10-27 14:59:11 +01:00
Geoffrey White
2a552d9721
Swift: Address QL-for-QL warning.
2023-10-27 14:56:19 +01:00
Mathias Vorreiter Pedersen
d6b6c432d9
C++: Add test with incorrect IR due to wrong model.
2023-10-27 14:53:06 +01:00
Owen Mansel-Chan
d534c93ff1
Merge pull request #14606 from owen-mc/go/incorrect-integer-conversion-fixes
...
Go: Two fixes to upper bound checks in "incorrect integer conversion" query
2023-10-27 14:50:11 +01:00
Alex Ford
f6ac63b259
Ruby: modgen - use FeatureEqualSourceSinkCallContext feature rather than late filtering for method context
2023-10-27 14:48:50 +01:00
Geoffrey White
12201d2e8e
Swift: Codegen.
2023-10-27 14:37:06 +01:00
Geoffrey White
6ad5c9542b
Swift: Add getCanonicalType to the NominalType test as well.
2023-10-27 14:37:06 +01:00
Dave Bartolomeo
b18a6d5e0b
Merge pull request #14582 from github/dbartol/threat-models-2
...
Java: Threat model implementation with priorities.
2023-10-27 09:33:53 -04:00
Geoffrey White
ce471105e2
Swift: QLDoc getCanonicalType.
2023-10-27 14:23:51 +01:00
Mathias Vorreiter Pedersen
4aed638066
Merge pull request #14577 from MathiasVP/capture-flow-swift
...
Swift: Add variable-capture flow
2023-10-27 14:09:04 +01:00
Rasmus Lerchedahl Petersen
1f8a51cffe
Python: add module for post-update flow
...
The logic for adding flow out of post-update-nodes
was also duplicated, so I added a module for that also.
The two modules are now only used together. I did not
fuse them, though, as I think they may not be used
together in the case of use-use-flow.
2023-10-27 15:07:49 +02:00
Rasmus Lerchedahl Petersen
e745df6478
Python: module for import time flow
...
The logic for separating local flow into _import time_
and _runtime_ was duplicated a few times.
Create a module for it instead, and add a good qldoc.
2023-10-27 15:07:49 +02:00
Erik Krogh Kristensen
c1a1ebfb60
Merge pull request #14616 from erik-krogh/identity-severity
...
JS: lower the severity of js/identity-replacement to medium
2023-10-27 14:27:05 +02:00
Anders Schack-Mulligen
e9cb272396
Merge pull request #14615 from aschackmull/dataflow/stage-alias
...
Dataflow: simplify using stage aliases.
2023-10-27 14:17:30 +02:00
Tom Hvitved
6ad8a4db1c
C#: Only use getTypeRef when there is not already a type available
2023-10-27 14:11:55 +02:00
erik-krogh
cf958f0828
lower the severity of js/identity-replacement to medium
2023-10-27 13:54:17 +02:00
Anders Schack-Mulligen
10c657bc23
Dataflow: simplify using stage aliases.
2023-10-27 13:40:21 +02:00
Ian Lynagh
0cf702a74f
Kotlin: Tweak the logs test to not be confused by the new logs
2023-10-27 12:04:43 +01:00
Alex Ford
0818354ad7
Ruby: modgen - fix unbound variable
2023-10-27 11:46:09 +01:00
Owen Mansel-Chan
00ba7e42b1
Merge pull request #14613 from owen-mc/change-note-check-on-shared
...
Update `Change-note-check` workflow to detect changes in shared folder
2023-10-27 11:45:03 +01:00
Anders Schack-Mulligen
c7be5ac527
Merge pull request #14602 from aschackmull/java/split-dispatch-cached-stages
...
Java: Split the different layers of virtual dispatch into separate cached stages.
2023-10-27 12:36:29 +02:00
Owen Mansel-Chan
1db622e740
Make check-change-note workflow include shared
2023-10-27 11:26:13 +01:00
Mathias Vorreiter Pedersen
68999f3cef
Swift: Fix test by including the 'allowParameterReturnInSelf' hook from the variable capture library.
2023-10-27 11:25:19 +01:00
Mathias Vorreiter Pedersen
9b150e4ea9
Swift: Add failing test.
2023-10-27 11:22:56 +01:00
Mathias Vorreiter Pedersen
a5a7d27c4b
Swift: Add change note.
2023-10-27 11:16:32 +01:00
Ian Lynagh
3c5b9ce0cd
Kotlin: Make the enum test more precise
...
In Kotlin 2 mode, there are more library classes matching Enum%, so the
output was spuriously different.
2023-10-27 11:15:12 +01:00
Owen Mansel-Chan
3c9783c7c9
Add change note
2023-10-27 11:12:37 +01:00
Mathias Vorreiter Pedersen
b41ec37993
Swift: Remove the code related to constructor capture (and the related TODO). This cannot happen in Swift.
2023-10-27 11:05:48 +01:00
Tom Hvitved
ee5c014382
Merge pull request #14609 from hvitved/csharp/stub-gen-attribute-usage
...
C#: Include `AttributeUsages` in stub generator
2023-10-27 12:05:34 +02:00
Owen Mansel-Chan
581305b234
Improve QLDoc for UpperBoundCheckGuard
2023-10-27 10:59:20 +01:00
Owen Mansel-Chan
8beacb8d4a
Change predicate name from getX to getOrder
2023-10-27 10:44:42 +01:00
Mathias Vorreiter Pedersen
9cae488ef4
Merge pull request #14612 from aschackmull/dataflow/type-doc
...
Dataflow: Improve qldoc on the type system.
2023-10-27 10:39:57 +01:00
Mathias Vorreiter Pedersen
65e13aa5ed
Swift: Add simple version of the 'captureList' test that works.
2023-10-27 10:27:35 +01:00
Mathias Vorreiter Pedersen
93234c0b5c
Swift: Add model for 'withVaList' and accept test changes.
2023-10-27 10:21:12 +01:00
Mathias Vorreiter Pedersen
9e2dd09ddc
Swift: Accept test regression (caused by no model for 'withVaList').
2023-10-27 10:20:07 +01:00
Max Schaefer
104700f6d3
Address review comment.
2023-10-27 10:19:28 +01:00
Anders Schack-Mulligen
0f4ea10638
Merge pull request #14611 from aschackmull/dataflow/partialflow-changenote
...
Dataflow: Add change note for partial flow api change.
2023-10-27 10:57:17 +02:00
Anders Schack-Mulligen
776e35279d
Dataflow: Improve qldoc on the type system.
2023-10-27 10:43:54 +02:00
Michael Nebel
e4276f7adb
Java: Apply suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-27 10:34:20 +02:00
Anders Schack-Mulligen
b106db6fda
Dataflow: Add change note for partial flow api change.
2023-10-27 09:46:46 +02:00
Anders Schack-Mulligen
9769953669
Java: Split the different layers of virtual dispatch into separate cached stages.
2023-10-27 09:40:20 +02:00
Kevin Stubbings
52a0fdabcf
formatting
2023-10-27 00:03:30 -07:00
Tom Hvitved
08d6379563
C#: Regenerate stubs for (Asp)NetCore.App
2023-10-27 08:34:55 +02:00
Tom Hvitved
abc16abf6f
C#: Include AttributeUsages in stub generator
2023-10-27 08:34:20 +02:00
Kevin Stubbings
135923c9c1
Change XNetHtmltest
2023-10-26 20:48:38 -07:00
Mathias Vorreiter Pedersen
63525a9d9e
Swift: Delete one TODO (it has been converted to an internal issue) and fix another.
2023-10-26 21:48:41 +01:00
Kevin Stubbings
e6e87a44a3
Add change note
2023-10-26 12:36:35 -07:00
Dave Bartolomeo
d2afb20f3f
Merge remote-tracking branch 'origin/main' into dbartol/threat-models-2
2023-10-26 14:05:40 -04:00
Erik Krogh Kristensen
a5bfeb68a8
Merge pull request #14604 from erik-krogh/fix-thistype
...
JS: fix `TypeExprKinds` crashing on a `ThisExpression`
2023-10-26 20:05:26 +02:00
Dave Bartolomeo
9800458467
Update shared/threat-models/codeql/threatmodels/ThreatModels.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-10-26 13:46:55 -04:00
Dave Bartolomeo
927eb8424d
Update shared/threat-models/codeql/threatmodels/ThreatModels.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-10-26 13:46:37 -04:00
Dave Bartolomeo
8d9e4d391f
Update shared/threat-models/codeql/threatmodels/ThreatModels.qll
...
Co-authored-by: Michael Nebel <michaelnebel@github.com >
2023-10-26 13:46:28 -04:00
Alexander Eyers-Taylor
55ec9d0a91
Merge pull request #14601 from aschackmull/java/fix-tests
...
Java: Update tests to new partial flow api
2023-10-26 17:52:01 +01:00
Alex Ford
5a1a3f0727
Ruby: modgen - deduplicate getAnyParameter logic
2023-10-26 17:45:47 +01:00
Alex Ford
86ba75cadf
Ruby: modgen - support self arguments
2023-10-26 17:42:46 +01:00
Alex Ford
6203887645
fixup
2023-10-26 17:38:43 +01:00
Mathias Vorreiter Pedersen
784bb72b33
Swift: Add some more tests.
2023-10-26 17:29:26 +01:00
Owen Mansel-Chan
b451adabfc
Two small QLDoc improvements
2023-10-26 17:10:12 +01:00
Owen Mansel-Chan
896a3c65be
Avoid doing float arithmetic with large integers
...
There is the possibility of overflow.
2023-10-26 17:09:53 +01:00
Owen Mansel-Chan
570ca3b6fe
Fix upper bound check to make test pass
2023-10-26 17:08:19 +01:00
Alex Ford
24946c0dfd
Ruby: modgen - restrict flow summaries to public methods
2023-10-26 17:05:31 +01:00
Alex Ford
fef2932f56
Apply suggestions from code review
...
Co-authored-by: Harry Maclean <hmac@github.com >
2023-10-26 17:04:51 +01:00
Owen Mansel-Chan
773f46d3b4
Add failing test for upper bound checks
2023-10-26 16:58:36 +01:00
Mathias Vorreiter Pedersen
30ecb4b0c8
Merge pull request #14588 from aschackmull/shared/rangeanalysis
...
C++/Java: Share core range analysis
2023-10-26 16:32:46 +01:00
yoff
867a39083e
Merge pull request #14114 from yoff/python/allow-namespace-packages
...
Python: Allow namespace packages
2023-10-26 16:56:05 +02:00
Tony Torralba
7af3d239ab
Java: Add JMS sink to java/unsafe-deserialization
2023-10-26 16:46:19 +02:00
Max Schaefer
08cc8b8e80
Autoformat.
2023-10-26 15:36:06 +01:00
erik-krogh
302199a74a
fix TypeExprKinds crashing on a ThisExpression
2023-10-26 16:33:54 +02:00
Max Schaefer
abef8483bd
Merge pull request #14600 from github/max-schaefer/express-rate-limit
...
JavaScript: Add support for importing `express-rate-limit` using a named import.
2023-10-26 15:15:22 +01:00
Max Schaefer
f42bd28ca9
Port changes to Ruby.
2023-10-26 15:06:45 +01:00
Mathias Vorreiter Pedersen
96a37f3a3c
Swift: Simplify more tests.
2023-10-26 14:55:17 +01:00
Max Schaefer
741735cc83
Port changes to JavaScript.
2023-10-26 14:47:24 +01:00
Mathias Vorreiter Pedersen
2ad121a8a5
Swift: Simplify test.
2023-10-26 14:46:59 +01:00
Rasmus Lerchedahl Petersen
dcc778520a
Python: refactor code
...
Also add explanatory comment.
Co-authored-by: Taus <tausbn@github.com >
2023-10-26 15:00:02 +02:00
Rasmus Lerchedahl Petersen
50041f07a3
Python: fix comment
2023-10-26 14:28:00 +02:00
Anders Schack-Mulligen
35f6e6ebb4
Java: Update tests to new partial flow api
2023-10-26 14:09:03 +02:00
Max Schaefer
aff848b038
Update javascript/ql/lib/semmle/javascript/security/dataflow/MissingRateLimiting.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-10-26 13:06:52 +01:00
Jeroen Ketema
dbb4167f80
Merge pull request #14579 from jketema/ir-backwards
...
C++: Define an extractor version table and use in IR generation
2023-10-26 13:36:15 +02:00
Owen Mansel-Chan
0ed01453b9
Fix getMaxIntValue to accept bitSize 64
2023-10-26 12:27:43 +01:00
Max Schaefer
2c7291336d
Move test files into right directory.
2023-10-26 12:16:52 +01:00
Max Schaefer
bb146a1758
JavaScript: Add support for rateLimit export from express-rate-limit package.
2023-10-26 12:14:57 +01:00
Mathias Vorreiter Pedersen
2465cc20f0
Swift: Don't define 'ClosureSelfParameterNode' as the expression node of the closure.
2023-10-26 11:56:27 +01:00
Max Schaefer
3939167ba2
Include more details in the message for py/weak-cryptographic-algorithm.
...
Specifically, we add a link to the location where the cryptographic algorithm is configured, which can be far away from its use.
2023-10-26 11:28:09 +01:00
Jeroen Ketema
64004926bc
C++: Use a more declarative predicate name
2023-10-26 12:07:19 +02:00
Jeroen Ketema
903f376620
C++: Define an extractor version table and use in IR generation
2023-10-26 12:07:19 +02:00
Mathias Vorreiter Pedersen
b1d4ca505d
Merge pull request #14599 from aschackmull/dataflow/partialflow-separate
...
Dataflow: Restrict partial flow to either forward or reverse flow.
2023-10-26 11:01:03 +01:00
Anders Schack-Mulligen
bbc3cfba6f
Dataflow: Fix documentation.
2023-10-26 11:29:16 +02:00
Anders Schack-Mulligen
a2e3b37847
Dataflow: Fix accidental visibility.
2023-10-26 11:28:52 +02:00
Chris Smowton
8198898d73
Merge pull request #14583 from smowton/smowton/admin/really-deprecate-old-java-names
...
Java: Deprecate MethodAccess and SuperMethodAccess
2023-10-26 10:25:05 +01:00
Owen Mansel-Chan
39eeed9238
Add failing test showcasing problem
2023-10-26 10:20:27 +01:00
Stephan Brandauer
5fe6a5a730
Merge pull request #14487 from github/kaeluka/extraction-query-docs
...
Java: basic version of automodel extraction query docs
2023-10-26 11:10:01 +02:00
Anders Schack-Mulligen
4dca4a7389
Dataflow: Restrict partial flow to either forward or reverse flow.
2023-10-26 10:33:03 +02:00
Anders Schack-Mulligen
ec58b209e3
Merge pull request #14584 from Marcono1234/kotlin-Literal-getLiteral
...
Kotlin: Mention `Literal::getLiteral()` difference from source code
2023-10-26 10:03:57 +02:00
Kevin Stubbings
21e4a5b2d5
Add Cookie Sanitizer
2023-10-25 22:07:08 -07:00
Kevin Stubbings
dafcd5ec98
Added support for Gin CORS
2023-10-25 17:23:10 -07:00
Maiky
a1e38c3444
Remove unnecessary imports and add returns
2023-10-26 01:16:43 +02:00
Chris Smowton
29d57d82b7
Deprecate MethodAccess and SuperMethodAccess
2023-10-25 22:26:38 +01:00
Ed Minnix
9d90c24006
Refactor to using MethodCall instead of MethodAccess
2023-10-25 14:31:56 -04:00
Ed Minnix
f288ddc3d5
Add signature back to trilead ssh2 model
2023-10-25 14:31:56 -04:00
Ed Minnix
d923784ae4
Add signatures to models
2023-10-25 14:31:56 -04:00
Ed Minnix
90c63ab6b0
Remove additional net.schmizz.sshj models
2023-10-25 14:31:56 -04:00
Edward Minnix III
2fb4dfeb90
TrustType should be nested in sun.security.pkcs11.Secmod models
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:55 -04:00
Ed Minnix
665b140a8a
Make SaltAndParams be nested
2023-10-25 14:31:55 -04:00
Edward Minnix III
700201556c
Remove extra model
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:55 -04:00
Ed Minnix
58dae6d1c6
Set provenance of models from otherApiCallableCredentialParam to manual and remove extra models
2023-10-25 14:31:55 -04:00
Edward Minnix III
2a91743477
Re-add IvParameterSpec constructor to otherApiCallableCredentialParam
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-10-25 14:31:55 -04:00
Ed Minnix
a28f19c857
Remove initialization vectors from SensitiveApi
2023-10-25 14:31:55 -04:00
Ed Minnix
c689065f83
Experiment: Remove IVs from credentials
2023-10-25 14:31:55 -04:00
Ed Minnix
855d96db66
Remove extra models
2023-10-25 14:31:55 -04:00
Ed Minnix
d85284da55
Update change note file date
2023-10-25 14:31:55 -04:00
Ed Minnix
02c98fae5f
Use hq-generated provenance
2023-10-25 14:31:55 -04:00
Ed Minnix
1ad06f3293
Add missing GaloisCounterMode model
2023-10-25 14:31:55 -04:00
Ed Minnix
9c15cf18e8
Refactor deprecated predicates to use new classes
...
Modified the predicates in `SensitiveApi` to rely on the new classes
which are using models as data. This allows us to remove the old
predicates containing the pre-MaD versions of the models.
2023-10-25 14:31:55 -04:00
Ed Minnix
3b0b5e403c
Replace crypto-parameter with credentials-key
2023-10-25 14:31:55 -04:00
Ed Minnix
a2bcc97a74
Remove CipherBlockChaining#init
2023-10-25 14:31:55 -04:00
Ed Minnix
743814a234
Delete private methods
2023-10-25 14:31:55 -04:00
Ed Minnix
c2d072e3f8
Remove redundant Cipher init methods
...
Remove redundant `init` methods which are overriding `FeedbackCipher`
and `SymmetricCipher`.
2023-10-25 14:31:54 -04:00
Ed Minnix
22d968fba3
Delete private methods
2023-10-25 14:31:54 -04:00
Ed Minnix
31b069041f
Initialization vector models
2023-10-25 14:31:54 -04:00
Ed Minnix
a8eb95a688
Remove redundant engineUnwrap method models
...
Most implementations of `engineUnwrap` are overriding the method from
`javax.crypto.CipherSpi`. Therefore, these models can be compressed into
a single model.
2023-10-25 14:31:54 -04:00
Ed Minnix
64d23d4f9b
Delete private methods
2023-10-25 14:31:54 -04:00
Ed Minnix
5b2d226c35
Remove unneeded models
2023-10-25 14:31:54 -04:00
Ed Minnix
1edca19419
Remove redundant KeyStoreSpi models
...
`java.security.KeyStoreSpi` is an abstract class. This removes its
subclasses' models, and instead uses model-as-data's capability to use
subclasses.
2023-10-25 14:31:54 -04:00
Ed Minnix
24c809b3b5
Move credentials-% sink kinds to "shared" status
2023-10-25 14:31:54 -04:00
Edward Minnix III
72a1289eba
Rename class to CredentialsSinkNode to better align with naming convention
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:54 -04:00
Ed Minnix
c6641dfbf3
fix model validator to credentials-password
2023-10-25 14:31:54 -04:00
Ed Minnix
a85df81b67
Rename sink kind to "credentials-username" to match naming convention
2023-10-25 14:31:54 -04:00
Ed Minnix
0612b3795a
Rename sink kind to "credentials-password" to match naming convention
2023-10-25 14:31:54 -04:00
Ed Minnix
3ee0fa9bc4
Add deprecation messages
2023-10-25 14:31:54 -04:00
Ed Minnix
b77b3763be
Fix com.amazonaws.auth models
2023-10-25 14:31:54 -04:00
Ed Minnix
8eeb861963
ch.ethz.ssh2 fixes
2023-10-25 14:31:54 -04:00
Edward Minnix III
2f53adf2c2
Fix typo
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-10-25 14:31:54 -04:00
Ed Minnix
dbb5aa9aad
Change note
2023-10-25 14:31:54 -04:00
Ed Minnix
083a5068c3
Remove unnecessary models
2023-10-25 14:31:53 -04:00
Ed Minnix
886c85ddc1
Fix net.schmizz.sshj models
2023-10-25 14:31:53 -04:00
Ed Minnix
958c6ff289
Remove credential-other
2023-10-25 14:31:53 -04:00
Ed Minnix
ee6cb96d07
Add a superclass for credential nodes
2023-10-25 14:31:53 -04:00
Ed Minnix
3219edc603
Change credential-other to more appropriate sink kinds
2023-10-25 14:31:53 -04:00
Ed Minnix
6b94b77a0a
Remove spaces in sig field of models
2023-10-25 14:31:53 -04:00
Ed Minnix
f8c3b2977a
Fix credential-other
2023-10-25 14:31:53 -04:00
Ed Minnix
f783ca7940
Fix credential-username
2023-10-25 14:31:53 -04:00
Ed Minnix
96d6ecb108
Fix crypto parameters
2023-10-25 14:31:53 -04:00
Ed Minnix
35e19eac96
Fix password models
2023-10-25 14:31:53 -04:00
Ed Minnix
4f8908106b
Refactor HardcodedCredentials to use new SensitiveApi api
2023-10-25 14:31:53 -04:00
Ed Minnix
f7c07d55ed
Credential-other sinks
2023-10-25 14:31:53 -04:00
Ed Minnix
49218cdbfb
Credential-username models
2023-10-25 14:31:53 -04:00
Ed Minnix
18661eee77
Crypto-parameter models
2023-10-25 14:31:53 -04:00
Ed Minnix
66486b08dc
Password models
2023-10-25 14:31:53 -04:00
Ed Minnix
4aec302fb7
Create new sink kinds
2023-10-25 14:31:53 -04:00
Jami
c7b9e405b7
Merge pull request #14517 from jcogs33/jcogs33/update-framework-cov-diff-workflow
...
CI: Update framework coverage difference commenter
2023-10-25 14:31:00 -04:00
Geoffrey White
2cfca032de
Swift: Fix use of deprecated predicate.
2023-10-25 17:32:55 +01:00
Maiky
eccde3f4f1
Add Tests
2023-10-25 18:31:51 +02:00
Geoffrey White
82b92c38f9
Swift: Change method types to DataFlow::Node / go ahead with planned deprecations.
2023-10-25 17:11:21 +01:00
Geoffrey White
bfd150a1d3
Swift: Clarify comment.
2023-10-25 16:38:59 +01:00
Geoffrey White
ff15b73250
Swift: Update the change note.
2023-10-25 16:32:59 +01:00
Geoffrey White
4a08ca39d6
Swift: Replace PotentialRegexEval with a more specialized solution.
2023-10-25 16:26:46 +01:00
Alex Ford
16c5edd3ca
Ruby: add a query and script for autogenerating typeModel and summaryModel data extensions entries
2023-10-25 15:52:02 +01:00
Mathias Vorreiter Pedersen
11194e574c
Swift: Get rid of the unnecessary parameter/argument position for the closure. Instead, we can just reuse the 'this' parameter and argument.
2023-10-25 15:46:10 +01:00
Geoffrey White
354983087e
Swift: this.(PotentialRegexEval) -> super. or this. .
2023-10-25 15:25:12 +01:00
Rasmus Wriedt Larsen
be494b73d4
Python: Minor cleanup for string pool interaction
...
This doesn't really seem to impact performance, is just a bit cleaner way to write the QL code.
In the worst case, since we do string concat with empty string, we would need to load string + attempt to store new string in string pool, which is useless since we can surely just reuse the integer ID.
-- Previously
Evaluated non-recursive predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0#join_rhs#CSE@5fdc6eia in 1ms (size: 2).
Evaluated relational algebra for predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0#join_rhs#CSE@5fdc6eia with tuple counts:
1 ~0% {1} r1 = CONSTANT(unique string)[""]
1 ~0% {1} r2 = CONSTANT(unique string)[".__init__"]
2 ~0% {1} r3 = r1 UNION r2
return r3
Evaluated recursive predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@b4f54xlv in 72ms on iteration 1 (delta size: 26339).
Evaluated relational algebra for predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@b4f54xlv on iteration 1 running pipeline base with tuple counts:
6382 ~0% {3} r1 = JOIN ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0#join_rhs#CSE WITH Module#68efc075::Module::getFile#0#dispred#ff CARTESIAN PRODUCT OUTPUT Rhs.1, Lhs.0, Rhs.0
6066 ~2% {4} r2 = JOIN r1 WITH Module#68efc075::isPreferredModuleForName#2#ff ON FIRST 1 OUTPUT Lhs.2, _, Lhs.1, Rhs.1
{2} r3 = REWRITE r2 WITH Tmp.1 := "", Out.1 := InverseAppend(Tmp.1,In.2,In.3) KEEPING 2
3721 ~0% {2} r4 = SCAN r3 OUTPUT In.1, In.0
25945 ~2% {2} r5 = JOIN r4 WITH ImportResolution#f829f0f0::ImportResolution::getReferenceToModuleName#1#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
38 ~4% {3} r6 = SCAN SsaDefinitions#9197156e::SsaSource::init_module_submodule_defn#2#ff OUTPUT In.1, _, In.0
38 ~1% {3} r7 = REWRITE r6 WITH Out.1 := -1
38 ~1% {2} r8 = JOIN r7 WITH py_scope_flow_021#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2
38 ~0% {2} r9 = JOIN r8 WITH Module#68efc075::Module::getPackageName#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
394 ~2% {2} r10 = JOIN r9 WITH Essa#24e22a14::EssaVariable::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~0% {3} r11 = JOIN r10 WITH DataFlowPublic#c4b6ce7e::EssaNode#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1
394 ~0% {5} r12 = JOIN r11 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1, _
394 ~0% {2} r13 = REWRITE r12 WITH Tmp.0 := ".", Tmp.4 := "", Out.0 := (In.2 ++ Tmp.0 ++ In.3 ++ Tmp.4) KEEPING 2
394 ~0% {5} r14 = JOIN r11 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1, _
394 ~1% {2} r15 = REWRITE r14 WITH Tmp.0 := ".", Tmp.4 := ".__init__", Out.0 := (In.2 ++ Tmp.0 ++ In.3 ++ Tmp.4) KEEPING 2
788 ~3% {2} r16 = r13 UNION r15
401 ~2% {2} r17 = JOIN r16 WITH Module#68efc075::isPreferredModuleForName#2#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~1% {2} r18 = JOIN r17 WITH Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
26339 ~1% {2} r19 = r5 UNION r18
return r19
-- Now
Evaluated recursive predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@409a0xhe in 8ms on iteration 1 (delta size: 26339).
Evaluated relational algebra for predicate ImportResolution#f829f0f0::ImportResolution::getImmediateModuleReference#1#ff#reorder_1_0@409a0xhe on iteration 1 running pipeline base with tuple counts:
3033 ~0% {2} r1 = JOIN Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs WITH Module#68efc075::isPreferredModuleForName#2#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3033 ~0% {4} r2 = JOIN Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs WITH Module#68efc075::isPreferredModuleForName#2#ff ON FIRST 1 OUTPUT Lhs.1, _, Rhs.1, _
{2} r3 = REWRITE r2 WITH Tmp.1 := "", Tmp.3 := ".__init__", Out.1 := InverseAppend(Tmp.1,Tmp.3,In.2) KEEPING 2
688 ~0% {2} r4 = SCAN r3 OUTPUT In.1, In.0
3721 ~0% {2} r5 = r1 UNION r4
25945 ~2% {2} r6 = JOIN r5 WITH ImportResolution#f829f0f0::ImportResolution::getReferenceToModuleName#1#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
38 ~4% {3} r7 = SCAN SsaDefinitions#9197156e::SsaSource::init_module_submodule_defn#2#ff OUTPUT In.1, _, In.0
38 ~1% {3} r8 = REWRITE r7 WITH Out.1 := -1
38 ~1% {2} r9 = JOIN r8 WITH py_scope_flow_021#join_rhs ON FIRST 2 OUTPUT Rhs.2, Lhs.2
38 ~0% {2} r10 = JOIN r9 WITH Module#68efc075::Module::getPackageName#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
394 ~2% {2} r11 = JOIN r10 WITH Essa#24e22a14::EssaVariable::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~0% {3} r12 = JOIN r11 WITH DataFlowPublic#c4b6ce7e::EssaNode#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Rhs.1
394 ~2% {4} r13 = JOIN r12 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1
394 ~0% {2} r14 = REWRITE r13 WITH Tmp.0 := ".", Out.0 := (In.2 ++ Tmp.0 ++ In.3) KEEPING 2
394 ~0% {5} r15 = JOIN r12 WITH Essa#24e22a14::EssaVariable::getName#0#dispred#ff ON FIRST 1 OUTPUT _, Lhs.2, Lhs.1, Rhs.1, _
394 ~5% {2} r16 = REWRITE r15 WITH Tmp.0 := ".", Tmp.0 := (In.2 ++ Tmp.0 ++ In.3), Tmp.4 := ".__init__", Out.0 := (Tmp.0 ++ Tmp.4) KEEPING 2
788 ~0% {2} r17 = r14 UNION r16
401 ~1% {2} r18 = JOIN r17 WITH Module#68efc075::isPreferredModuleForName#2#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
394 ~1% {2} r19 = JOIN r18 WITH Module#68efc075::Module::getFile#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
26339 ~0% {2} r20 = r6 UNION r19
return r20
2023-10-25 14:53:51 +01:00
Mathias Vorreiter Pedersen
951b6beeb1
Swift: Untangle the confusion between 'getParameter' and 'asParameter'.
2023-10-25 14:44:09 +01:00
Jeroen Ketema
990d7161b2
Merge pull request #14337 from aschackmull/cpp/container-not-locatable
...
C++: Remove getLocation from Container.
2023-10-25 15:37:57 +02:00
Mathias Vorreiter Pedersen
78e08cf63c
Swift: Remove irrelevant TODO.
2023-10-25 13:55:07 +01:00
Anders Schack-Mulligen
6882504397
C#: Fix compilation
2023-10-25 14:31:49 +02:00
Anders Schack-Mulligen
5ded55cd9f
C#: Sync Bound.qll
2023-10-25 14:08:48 +02:00
Anders Schack-Mulligen
283d6efdf8
Rangeanalysis/Java/C++: Address some ql4ql findings.
2023-10-25 14:06:35 +02:00
Jeroen Ketema
75a1173d63
C++: Add change note
2023-10-25 14:05:38 +02:00
Jeroen Ketema
dc512728fa
C++: Make File extend Locatable
2023-10-25 14:05:38 +02:00
Jeroen Ketema
4ea5c13390
C++: Add back getLocation in File
2023-10-25 14:05:38 +02:00
Anders Schack-Mulligen
7124a53c9c
C++: Remove getLocation from Container.
2023-10-25 14:05:38 +02:00
Jami
53d92d58fc
Merge pull request #14581 from jcogs33/jcogs33/add-internal-to-model-exclusions
...
Java: exclude internal packages globally from MaD models
2023-10-25 08:04:03 -04:00
Michael Nebel
b3e5b86f0a
Java: Cleanup threat models tests.
2023-10-25 14:02:31 +02:00
Mathias Vorreiter Pedersen
05385eb704
Merge pull request #14587 from MathiasVP/fix-indirect-strtok-model
...
C++: Fix `strtok` model for indirections
2023-10-25 12:09:13 +01:00
Owen Mansel-Chan
27646ce971
Merge pull request #14547 from owen-mc/go/enable-data-flow-consistency-checks
...
Go: make data flow consistency checks available (and fix some)
2023-10-25 11:15:44 +01:00
Paolo Tranquilli
fb470e4140
Swift: remove useless commented-out line
2023-10-25 12:15:25 +02:00
Geoffrey White
bf503849ea
Swift: Fixup line numbers after merge.
2023-10-25 11:09:13 +01:00
Geoffrey White
bf6e6a1e68
Merge branch 'main' into stringwith
2023-10-25 10:58:25 +01:00
Geoffrey White
a3d53ba9ec
Merge pull request #14574 from github/geoffw0-patch-2
...
Swift: Update README.md
2023-10-25 10:56:01 +01:00
Geoffrey White
7029f14651
Merge pull request #14511 from geoffw0/substring
...
Swift: Model Substring
2023-10-25 10:46:47 +01:00
Anders Schack-Mulligen
2592c94c54
Java: Replace range analysis with shared version.
2023-10-25 11:29:55 +02:00
Anders Schack-Mulligen
36082808d3
Java: Implement shared range analysis signatures.
2023-10-25 11:29:55 +02:00
Anders Schack-Mulligen
c1c4a5bfcf
Rangeanalysis: Copy qldoc and simplification from Java.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
cd44d67529
Rangeanalysis: Add temporary Java compatibility flag.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
06fe10bbe9
Rangeanalysis: Bugfix division with float representation.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
7b214a24df
C++: Add division test
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
232c147f6b
Rangeanalysis: Port join-order fix from Java version.
2023-10-25 11:17:02 +02:00
Anders Schack-Mulligen
ec39de20d8
C++: Convert to qlpack version of core range analysis.
2023-10-25 11:17:01 +02:00
Anders Schack-Mulligen
38274db205
Rangeanalysis: Parameterise library.
2023-10-25 11:17:01 +02:00
Anders Schack-Mulligen
169ba03778
Rangeanalysis: Copy C++ version verbatim.
2023-10-25 11:17:01 +02:00
Anders Schack-Mulligen
aed830cf1b
Rangeanalysis: Make new qlpack
2023-10-25 11:17:01 +02:00
Paolo Tranquilli
a245d0019e
Swift: tiny cosmetic tweak
2023-10-25 10:56:21 +02:00
Mathias Vorreiter Pedersen
032572b924
C++: Fix 'strtok' model.
2023-10-25 09:39:36 +01:00
Mathias Vorreiter Pedersen
f54379d096
C++: Add failing test.
2023-10-25 09:38:49 +01:00
Paolo Tranquilli
9196939384
Swift: canonicalize all VarDecls
2023-10-25 10:38:17 +02:00
Tony Torralba
4920c7f8b0
Merge pull request #14585 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-10-25 10:02:50 +02:00
Stephan Brandauer
cffcc7334d
Java: automodel extraction docs: add two intro sentences
2023-10-25 09:45:00 +02:00
Stephan Brandauer
0f2db1bcdb
Java: automodel extraction docs: use markdown footnote
2023-10-25 09:32:59 +02:00
Stephan Brandauer
3eeb6ffec4
Java: automodel extraction docs: spell out positive and negative
2023-10-25 09:05:22 +02:00
Stephan Brandauer
44c87561b3
Java: review suggestion from adityasharad
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2023-10-25 09:00:28 +02:00
Stephan Brandauer
c240c1b3f5
Java: review suggestions from aeisenberg
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-10-25 08:59:21 +02:00
github-actions[bot]
6cbadece0e
Add changed framework coverage reports
2023-10-25 00:15:35 +00:00
Marcono1234
bf20b8e5a5
Kotlin: Mention Literal::getLiteral() difference from source code
...
It appears the Kotlin extractor does not have access to the actual
string representation in the source code, and for most literal types
uses simply the represented value also as `getLiteral` result, see
https://github.com/github/codeql/blob/codeql-cli/v2.15.1/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt#L4443
2023-10-25 02:04:54 +02:00
Geoffrey White
8a5f3e4825
Swift: Fix an issue with RegexTracking.qll using PotentialRegexEval rather than RegexEval.
2023-10-24 22:49:19 +01:00
Jami
7c053ed428
CI: add .strip() to comment/ID file read
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2023-10-24 17:48:38 -04:00
Geoffrey White
021ed88a0a
Swift: Add a test revealing unevaluated regexs.
2023-10-24 22:42:15 +01:00
Chris Smowton
12d0f1a84b
Merge pull request #14575 from github/smowton/feature/more-intuitive-java-class-names
...
Java: Replace MethodAccess, LValue, RValue with more intuitive names. Introduce NewClassExpr.
2023-10-24 19:01:37 +01:00
Dave Bartolomeo
33f10d8d19
Better handling of all threat model without too many binding sets
2023-10-24 13:59:15 -04:00
Cornelius Riemenschneider
790615fbc2
Merge pull request #14552 from github/criemen/bazel-js
...
Javascript extractor: Bazel-based build
2023-10-24 19:36:39 +02:00
Dave Bartolomeo
5fd56ce866
Alternate threat model implementation
2023-10-24 13:12:37 -04:00
Jami Cogswell
121fd0896b
Java: exclude internal packages in general from models
2023-10-24 12:49:49 -04:00
Geoffrey White
42a2ec9891
Merge branch 'main' into substring
2023-10-24 17:03:00 +01:00
Geoffrey White
06b1cd939c
Merge pull request #14502 from geoffw0/xmlquery
...
Swift: Model RawRepresentable
2023-10-24 16:25:15 +01:00
Geoffrey White
d2d70cc782
Swift: Change note.
2023-10-24 16:17:21 +01:00
Geoffrey White
79f675cdb7
Swift: Fix a model.
2023-10-24 16:17:21 +01:00
Geoffrey White
a5206028b0
Swift: Expand a test to explore why it fails (lack of pointer models and closure capture flow).
2023-10-24 16:17:21 +01:00
Chris Smowton
30610c9a3f
Temporarily de-deprecate SuperMethodAccess to accommodate private tests
2023-10-24 16:05:52 +01:00
Geoffrey White
3bcee63980
Update README.md
...
Change the Warning to a Note and rephrase.
2023-10-24 15:46:32 +01:00
Mathias Vorreiter Pedersen
862de152a1
Swift: Add required qldoc.
2023-10-24 15:45:17 +01:00
Mathias Vorreiter Pedersen
6f37d7c374
Swift: Accept changes in paths.
2023-10-24 15:39:19 +01:00
Mathias Vorreiter Pedersen
9652679c6f
Merge pull request #14568 from alexet/alexet/add-fn-tests
...
CPP: Add test demonstrating use-after-free false negatives.
2023-10-24 15:38:01 +01:00
Stephan Brandauer
e97456f5fc
Java: automodel extraction docs: note on packaging and backwards compatibility
2023-10-24 16:30:59 +02:00
Mathias Vorreiter Pedersen
56b49a4de3
Swift: Add a closure flow step from the right-hand side of variable declarations to the underlying pattern.
2023-10-24 15:28:28 +01:00
Mathias Vorreiter Pedersen
3d5098aaeb
Swift: Add failing test.
2023-10-24 15:28:25 +01:00
Mathias Vorreiter Pedersen
1c298e6001
Swift: Fix 'parameter' -> 'argument' flow into closures.
2023-10-24 15:28:01 +01:00
Mathias Vorreiter Pedersen
310ebe47b3
Swift: Clean up test file.
2023-10-24 15:27:59 +01:00
Cornelius Riemenschneider
42c343e820
Address review
2023-10-24 16:03:35 +02:00
Chris Smowton
92d3d9d83f
Update integration test expectations
2023-10-24 14:47:19 +01:00
Chris Smowton
4205f1bd03
Temporarily un-deprecate MethodAccess to decouple from private tests
2023-10-24 14:03:26 +01:00
Chris Smowton
b849a66c97
Update test expectations
2023-10-24 14:02:30 +01:00
Nora Dimitrijević
9dbf7e818d
Swift: align definition of InputSig slightly closer to Java version
...
Though there is a regression in the tests, so more work is needed.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
9de3cc703a
Swift: add CapturePostUpdateNode
...
However, this doesn't change any of the test results.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
5418d39a0d
Swift: add and accept a few new simple test cases
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
af49a3aa64
Swift: accept new results in old tests
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
8115774a7a
Swift: Add the capture flow step as part of the normal data flow relation
...
TODO: see if we need to exclude duplicate SSA steps
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
4e1b44a059
Swift: port simpleAstFlowStep/hasAliasedAccess
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
21a369de13
Swift: Add closure content read-write steps
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
c04654d8f9
Swift: getImmediateBasicBlockDominator/2 should use immediatelyDominates/0.
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
95a7d6559c
Swift: initial version of a swift port of most of the java code
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
3253c0425c
Swift: s/getName/getShortName/ in InlineFlowTest.qll
2023-10-24 13:56:31 +01:00
Nora Dimitrijević
050b8e682f
Swift: add failing inline expectation test based on closure AST tests.
2023-10-24 13:56:31 +01:00
Jeroen Ketema
ba67217b44
Merge pull request #14571 from MathiasVP/fix-indirect-taint
...
C++: Fix indirect taint
2023-10-24 14:47:43 +02:00
Chris Smowton
06238dd5f6
Improve reflective class names
2023-10-24 13:29:32 +01:00
Chris Smowton
011666b48c
Fix description and improve predicate name of VarWrite.
2023-10-24 12:59:57 +01:00
Geoffrey White
d3063e849e
Swift: Model string closure methods.
2023-10-24 12:58:38 +01:00
Chris Smowton
ede17585a6
Amend NewClassExpr description
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-24 12:51:42 +01:00
Chris Smowton
e3edea2a5f
Apply simple suggestions from code review
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2023-10-24 12:51:03 +01:00
Stephan Brandauer
eb97ce3294
Java: automodel extraction query docs, candidate examples
2023-10-24 13:49:38 +02:00
Chris Smowton
efb63aada3
Add change note
2023-10-24 11:45:41 +01:00
Chris Smowton
3627eb2bcf
Add missing qldoc
2023-10-24 11:15:08 +01:00
Chris Smowton
e8c9708282
Autoformat
2023-10-24 11:06:19 +01:00
Chris Smowton
09e83d1173
Fix isEnclosingMethodAccess wrapper
2023-10-24 11:03:57 +01:00
Chris Smowton
ac38d4c9c6
Mass rename L/RValue -> VarWrite/Read
2023-10-24 10:58:29 +01:00
Chris Smowton
59a49eef0b
Add aliases for public, importable renamed classes and predicates.
...
Also rename and aliases a couple of uses of Access noted along the way.
2023-10-24 10:54:35 +01:00
Chris Smowton
f552a15aae
Mass-rename MethodAccess -> MethodCall
2023-10-24 10:30:26 +01:00
Geoffrey White
f597f0272a
Update README.md
...
Turned the warning at the top into a warning box.
Made the section headers consistent.
I was going to add a section, but I realized it belongs somewhere else. :)
2023-10-24 10:12:20 +01:00
Michael Nebel
26f767073d
Merge pull request #14363 from michaelnebel/csharp/sunsetqlstubgen
...
C#: Sunset QL based stub generator.
2023-10-24 11:05:56 +02:00
Chris Smowton
a10731c591
Java: introduce more-intuitive names for ClassInstanceExpr, L/RValue and MethodAccess.
2023-10-24 09:38:49 +01:00
Mathias Vorreiter Pedersen
1fce26534f
C++: Remove implied conjunct.
2023-10-24 09:25:32 +01:00
Tony Torralba
4e823b4306
Merge pull request #14566 from atorralba/atorralba/java/springframework-6-models
...
Java: Added up to date models for Spring's ResponseEntity
2023-10-24 09:11:37 +02:00
Geoffrey White
4cf40ed259
Swift: Add a test case for withMutableCharacters.
2023-10-23 23:30:19 +01:00
Mathias Vorreiter Pedersen
67ed12c916
C++: Correctly model that 'operator->', and 'get'
...
on smart pointers perform a load.
2023-10-23 20:11:23 +01:00
Mathias Vorreiter Pedersen
b107c4c641
C++: Fix missing result in 'ModelUtil'. The problem was that 'n.asInstruction()' on line 81 wasn't necessarily a 'CallInstruction' (it could be a conversion).
2023-10-23 19:34:25 +01:00
Mathias Vorreiter Pedersen
c0b04eac7c
C++: Add failing test.
2023-10-23 19:29:28 +01:00
Alex Eyers-Taylor
26b0363707
CPP: Add test demonstrating use-after-free false negatives.
2023-10-23 17:01:52 +01:00
Paolo Tranquilli
2f0ee12584
Swift: fix patterns/bound_and_unbound.ql test
2023-10-23 17:36:42 +02:00
Paolo Tranquilli
f22d60f011
Swift: clean up VarDecl, NamedPattern and SwitchStmt interactions
...
* `variables` under `CaseStmt` are now AST children, which solves
orphan `VarDecl`s in that case
* reordered `CaseStmt` AST children to be `labels > variables > body`
(was `body > labels`)
* made `NamedPattern::getVarDecl` an extracted property instead of
`getName`
* The above led to duplicate DB entities because of a quirk in the
Swift compiler code. This is solved by tweaking the extraction of
`variables` under `CaseStmt` to not use `getCaseBodyVariables`.
2023-10-23 17:36:42 +02:00
Paolo Tranquilli
140ff723e4
Merge pull request #14563 from github/redsun82/codegen-test-with
...
Codegen: add `@qltest.test_with`
2023-10-23 17:35:31 +02:00
Joe Farebrother
3f11d83b7b
Merge pull request #14500 from joefarebrother/shared-filepath-normalize
...
Shared: Add library for filepath normalization
2023-10-23 16:09:44 +01:00
Paolo Tranquilli
02a2debe94
Codegen: fix python compatibility problem
2023-10-23 16:56:44 +02:00
Tony Torralba
cd10dc8a27
Java: Added up to date models for Spring's ResponseEntity
2023-10-23 16:06:11 +02:00
Chris Smowton
e301223644
Merge pull request #14541 from JarLob/patch-3
...
fix CWE number
2023-10-23 15:05:02 +01:00
Michael Nebel
743be92624
C#: Adjust workflow to point to the new location for the script.
2023-10-23 15:10:20 +02:00
Michael Nebel
5ba0e0ffce
C#: Adjust the relative path to the stub generator project file.
2023-10-23 15:09:38 +02:00
Michael Nebel
d4af05cbf9
C#: Move stub generator script.
2023-10-23 15:09:38 +02:00
Michael Nebel
ed6a068ebc
C#: Update the stub generator readme.
2023-10-23 15:09:38 +02:00
Michael Nebel
4e99266b65
C#: Sunset the QL based stub generator.
2023-10-23 15:09:38 +02:00
Paolo Tranquilli
7cc20587ad
Codegen: add @qltest.test_with
...
This allows to group together related AST classes to reuse the same
test source and extraction. For example this is useful for
`EnumDecl/EnumCaseDecl/EnumElementDecl`, where this is applied to.
2023-10-23 14:51:22 +02:00
Ian Lynagh
b89088737a
Merge pull request #14551 from igfoo/igfoo/loc
...
Java/Kotlin: Reshuffle our LoC queries
2023-10-23 11:50:03 +01:00
Stephan Brandauer
319b799f95
Merge pull request #14553 from github/kaeluka/fix-positive-example-query
...
Java: Automodel Framework Mode Extraction Bug
2023-10-23 09:48:49 +02:00
Jami Cogswell
687ecffe71
CI: don't upload comment/ID artifact if no existing comment
2023-10-22 15:28:07 -04:00
amammad
a0e2e1ef21
add to Frameworks.qll
2023-10-21 19:49:27 +02:00
amammad
1fe565a46f
cherrypy framework file system access Sinks are added
2023-10-21 19:47:30 +02:00
Owen Mansel-Chan
b46174f464
Merge pull request #14536 from owen-mc/go/amend-library-coverage
...
Go: Add Go frameworks for automated coverage reports
2023-10-20 21:28:30 +01:00
Dave Bartolomeo
76a9b71231
Merge branch 'main' into dbartol/threat-models
2023-10-20 14:05:17 -04:00
Stephan Brandauer
1d7c2f4799
Java: format
2023-10-20 16:37:46 +02:00
Stephan Brandauer
f0c0bbf4c8
remove bug: needless restriction to sink examples in framework mode +examples
2023-10-20 16:34:29 +02:00
Mathias Vorreiter Pedersen
6c10ba2fb1
Merge pull request #14495 from github/calumgrant/comp-generated-this
...
C++: Fix ImplicitThisFieldAccess
2023-10-20 15:25:26 +01:00
Cornelius Riemenschneider
9ba32a0440
Add bazel-based build for the Javascript extractor.
2023-10-20 16:23:50 +02:00
Cornelius Riemenschneider
de85f2bbf8
Fix errorprone violations.
2023-10-20 16:23:35 +02:00
Calum Grant
8054a5d086
C++: Add changenote
2023-10-20 14:48:20 +01:00
Tamas Vajk
3f1e145d2c
C#: Rework .net framework reference removal
2023-10-20 14:40:13 +02:00
Owen Mansel-Chan
0ba0063e6d
Update go/ql/lib/change-notes/2023-10-20-enclosing-callable-for-external-files.md
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2023-10-20 13:37:44 +01:00
Erik Krogh Kristensen
f562d5319f
Merge pull request #14539 from flyboss/main
...
fix typo ('Configration' to ‘Configuration’)
2023-10-20 14:10:42 +02:00
Ian Lynagh
26634a3266
Java/Kotlin: Add a changenote for the lines-of-code changes
2023-10-20 13:04:39 +01:00
Ian Lynagh
d816035da6
Java/Kotlin: Tweak LoC message
2023-10-20 13:02:11 +01:00
Ian Lynagh
13a9e83e6a
Java/Kotlin: Reshuffle our LoC queries
...
There's now a single lines-of-code query that gives the total number of
lines of code over both languages.
Per-language LoC queries are now just summaries.
2023-10-20 12:43:41 +01:00
Paolo Tranquilli
c92519ed6b
Merge pull request #14538 from github/redsun82/add-unspecified-element-children
...
Swift: add children to `UnspecifiedElement`
2023-10-20 12:27:05 +02:00
Owen Mansel-Chan
da68153a96
Fix change note name and location
2023-10-20 11:24:25 +01:00
Owen Mansel-Chan
5d729616cd
Add change note
2023-10-20 11:20:10 +01:00
Michael B. Gale
58fe66f5a8
Merge pull request #14550 from github/mbg/docs/bump-to-go1.21
...
Bump to Go 1.21 in supported compilers docs
2023-10-20 11:09:59 +01:00
flyboss
ee813c1e61
Update UnsafeHtmlConstructionQuery.qll
...
add a deprecated alias in case anyone depends on the misspelled name.
2023-10-20 17:57:23 +08:00
Michael B. Gale
46aa712c28
Bump to Go 1.21 in supported compilers docs
2023-10-20 10:49:02 +01:00
Esben Sparre Andreasen
1b9b6ae5b5
Merge pull request #14542 from github/esbena/proper-check-change-note
...
Improve change note checking
2023-10-20 11:47:53 +02:00
Ian Lynagh
a4ef183a2e
Merge pull request #14529 from igfoo/igfoo/classid_fqname
...
Kotlin: Don't convert back and forth between ClassId and FqName
2023-10-20 10:28:25 +01:00
Tamas Vajk
36f1070b93
Adjust expected test files
2023-10-20 09:42:00 +02:00
Tamas Vajk
fc1fc05d16
C#: Rework .net framework reference removal
2023-10-20 09:22:14 +02:00
Jami Cogswell
ee4a9c3f8d
CI: remove extraneous quotes that were causing 'get_previous_run_id' to always fail with a 'list index out of bounds' error
2023-10-19 19:23:14 -04:00
Jami Cogswell
6e29b70100
CI: update comment (if it exists)
2023-10-19 19:19:25 -04:00
Jami Cogswell
9263cfdf56
CI: save and upload comment id (if it exists)
2023-10-19 19:14:23 -04:00
Dave Bartolomeo
15e9838f16
Add a readme file
2023-10-19 17:27:21 -04:00
Dave Bartolomeo
fb1b41b649
Fix formatting
2023-10-19 17:20:38 -04:00
Dave Bartolomeo
c268163804
warnOnImplicitThis
2023-10-19 17:18:47 -04:00
Dave Bartolomeo
910b2a98f1
Merge remote-tracking branch 'origin/main' into dbartol/threat-models
2023-10-19 17:07:38 -04:00
Dave Bartolomeo
bd7de83aab
Use extension packs for threat models
2023-10-19 17:07:26 -04:00
Dave Bartolomeo
07eb60d044
Merge pull request #14531 from github/post-release-prep/codeql-cli-2.15.1
...
Post-release preparation for codeql-cli-2.15.1
2023-10-19 13:32:33 -04:00
Dave Bartolomeo
712f7758cf
Merge branch 'main' into post-release-prep/codeql-cli-2.15.1
2023-10-19 12:14:07 -04:00
Owen Mansel-Chan
e19ebf9ca8
Add external file scope
2023-10-19 16:48:38 +01:00
Owen Mansel-Chan
563805ff0c
Fix nodeGetEnclosingCallable
...
It wasn't updated when MkImplicitVarargsSlice was added as a branch of
TNode. This meant that it gave no result for `ImplicitVarargsSlice`s
in function calls used to initialise variables declared at file level.
2023-10-19 16:48:37 +01:00
Owen Mansel-Chan
a3cecd178f
Add consistency query
...
This can be run on an existing database to check for any assumptions
of the data flow library which do not hold.
2023-10-19 16:47:56 +01:00
Tamas Vajk
fbfafbfdd4
C#: Remove netstandard.library.ref from the references
2023-10-19 15:49:16 +02:00
Erik Krogh Kristensen
2a1ca637fd
Merge pull request #14543 from erik-krogh/string-not-int
...
move the documentation of codePointAt and codePointCount to the string type instead of the int type
2023-10-19 14:39:10 +02:00
erik-krogh
5cd732b3c6
move the documentation of codePointAt and codePointCount to the string type instead of the int type
2023-10-19 12:57:06 +02:00
Owen Mansel-Chan
67601b5312
Add DataFlowImplConsistency.qll for Go library
2023-10-19 11:43:00 +01:00
Mathias Vorreiter Pedersen
0ab159f803
Merge pull request #14135 from github/sashabu/frontend-update
...
C++: Update for changes in frontend.
2023-10-19 11:40:24 +01:00
Esben Sparre Andreasen
2c99e2f3d5
improve change note file name checks
2023-10-19 12:16:27 +02:00
Esben Sparre Andreasen
836bb6006c
improve env var usage in check-change-note.yml
2023-10-19 12:05:29 +02:00
Mathias Vorreiter Pedersen
0bfa53cfd6
Merge pull request #14524 from MathiasVP/add-more-dataflow-documentation
...
C++: Add more documentation about dataflow through indirections
2023-10-19 10:32:12 +01:00
Mathias Vorreiter Pedersen
4feda50add
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-19 11:00:42 +02:00
Mathias Vorreiter Pedersen
b5cbd909f7
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-19 11:00:33 +02:00
Mathias Vorreiter Pedersen
35702a9fdf
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-19 11:00:18 +02:00
Jeroen Ketema
a972d0943a
C++: Accept test changes after changes in IR generation
2023-10-19 10:45:14 +02:00
Jeroen Ketema
2a64552979
C++: Add support for C23/C++23 floating-point types
2023-10-19 10:45:14 +02:00
Jeroen Ketema
7e71d9e619
C++: Update expected test results after outputting less loads from the extractor
2023-10-19 10:45:14 +02:00
Jeroen Ketema
bec3e62771
C++: Update cpp/constant-array-overflow test results after frontend update
2023-10-19 10:45:14 +02:00
Jeroen Ketema
23c6027386
C++: Update expected test changes after frontend update
2023-10-19 10:45:13 +02:00
Jeroen Ketema
8b8a2726d4
C++: Accept semantic range analysis test changes due to extra loads in the IR
2023-10-19 10:45:13 +02:00
Jeroen Ketema
554087161b
C++: Accept sign analysis test changes
...
The IR now contains extra loads that need to be accounted for.
2023-10-19 10:45:13 +02:00
Jeroen Ketema
5036135f01
C++: Fix IR generation for the comma operator
2023-10-19 10:45:13 +02:00
Jeroen Ketema
0fceecee6d
C++: Fix extractor options for deprecated_with_msg test
...
The previous extractor options no longer work, because the default assumed
compiler versions have changed in the frontend.
2023-10-19 10:45:13 +02:00
Jeroen Ketema
e271c7e5e7
C++: Accept IR GVN test changes a CopyValue is now Load due to IR changes
2023-10-19 10:45:13 +02:00
Jeroen Ketema
91a98f3512
C++: Accept new dataflow IR inconsistencies
...
These are due to additional loads being generated on fields, and should not
cause any problems. Ideally, we should tune the definition of
`TPostFieldUpdateNode` to make these go away.
2023-10-19 10:45:13 +02:00
Jeroen Ketema
231e9ef098
C++: Accept PrintAST value category changes after frontend update
2023-10-19 10:45:13 +02:00
Jeroen Ketema
a6dae91215
C++: Accept IR test changes after value category updates
2023-10-19 10:45:12 +02:00
Jeroen Ketema
3202bcce70
C++: Handle ternary operators whose value category is a prvalue with a load
2023-10-19 10:45:12 +02:00
Jeroen Ketema
c60cb136bb
C++: Do not generate loads for ParenthesisExprs
2023-10-19 10:45:12 +02:00
Jeroen Ketema
4339e18ed6
C++: Update IR generation for changes in frontend
2023-10-19 10:45:12 +02:00
Jaroslav Lobačevski
2b541b78ac
fix CWE number
2023-10-19 09:36:25 +02:00
Tony Torralba
049ba54948
Merge pull request #14533 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-10-19 08:56:36 +02:00
Erik Krogh Kristensen
daca5121f6
Merge pull request #14540 from github/dependabot/cargo/ql/tracing-0.1.40
...
Bump tracing from 0.1.39 to 0.1.40 in /ql
2023-10-19 08:47:56 +02:00
dependabot[bot]
2af1302a4a
Bump tracing from 0.1.39 to 0.1.40 in /ql
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.39 to 0.1.40.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.39...tracing-0.1.40 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-19 03:33:14 +00:00
flyboss
86336565eb
fix typo
2023-10-19 02:34:31 +00:00
github-actions[bot]
065353667f
Add changed framework coverage reports
2023-10-19 00:15:51 +00:00
Tony Torralba
da44b13fd4
Merge pull request #14515 from atorralba/atorralba/java/spring-csrf-improv
...
Java: Improve java/spring-disabled-csrf-protection
2023-10-18 17:49:10 +02:00
Paolo Tranquilli
d55289bf68
Swift: add children to UnspecifiedElement
...
This will allow better downgrade scripts in the future.
2023-10-18 16:42:04 +02:00
Michael B. Gale
4246ebf9e0
Merge pull request #14535 from github/mbg/go/dependabot-ignore-tests
...
Go: Add Dependabot config for `go/ql/test` which ignores all dependencies
2023-10-18 14:40:16 +01:00
Michael B. Gale
771b5eca47
No allow, only ignore
2023-10-18 14:25:38 +01:00
Michael B. Gale
10e9c6defd
Update .github/dependabot.yml
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-18 14:23:32 +01:00
Michael B. Gale
df191e4b6d
Update .github/dependabot.yml
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-18 14:22:06 +01:00
Mathias Vorreiter Pedersen
7f97492580
C++: Make sphinx happy.
2023-10-18 14:15:55 +01:00
Mathias Vorreiter Pedersen
a36d432184
C++: Simplify a paragraph and use line numbers in CPP code.
2023-10-18 14:15:01 +01:00
Mathias Vorreiter Pedersen
c04546da98
C++: Use named code blocks.
2023-10-18 14:03:09 +01:00
Mathias Vorreiter Pedersen
308d027d1e
C++: Fix typo.
2023-10-18 14:02:05 +01:00
Mathias Vorreiter Pedersen
44e214b933
C++: Stick to the pointer vs. indirection terminology.
2023-10-18 13:47:09 +01:00
Alex Denisov
eb3e140008
Swift: remove outdated CLI argument
2023-10-18 14:44:47 +02:00
Mathias Vorreiter Pedersen
f6b1d66167
C++: Convert another paragraph to a numbered list.
2023-10-18 13:38:50 +01:00
Mathias Vorreiter Pedersen
1b1a78bf04
C++: Convert a paragraph to a numbered list.
2023-10-18 13:34:32 +01:00
Mathias Vorreiter Pedersen
342f4f867b
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
2023-10-18 14:30:46 +02:00
Mathias Vorreiter Pedersen
9d2e21e470
C++: Move the note in the beginning of the document into a reusable file.
2023-10-18 13:29:52 +01:00
Mathias Vorreiter Pedersen
ff3d4b8b40
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:18:23 +02:00
Mathias Vorreiter Pedersen
3b6c43c9a1
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:18:05 +02:00
Mathias Vorreiter Pedersen
8812567c69
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:15:11 +02:00
Mathias Vorreiter Pedersen
0d36d918c9
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:11:58 +02:00
Mathias Vorreiter Pedersen
d4cbb8cb22
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:11:24 +02:00
Mathias Vorreiter Pedersen
9a91145d7e
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:09:39 +02:00
Mathias Vorreiter Pedersen
efe7153ac2
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:09:05 +02:00
Mathias Vorreiter Pedersen
9ad461daa0
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:08:40 +02:00
Mathias Vorreiter Pedersen
59b26c0dad
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
2023-10-18 14:08:20 +02:00
Mathias Vorreiter Pedersen
b71248face
Update docs/codeql/codeql-language-guides/codeql-for-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:06:14 +02:00
Mathias Vorreiter Pedersen
dc77614bd1
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:59 +02:00
Mathias Vorreiter Pedersen
56a1a7cc4d
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:45 +02:00
Mathias Vorreiter Pedersen
f3dd2ebe7d
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:19 +02:00
Mathias Vorreiter Pedersen
16fbffe47b
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:05:05 +02:00
Mathias Vorreiter Pedersen
51cf400669
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:04:39 +02:00
Mathias Vorreiter Pedersen
02e3d2704c
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:03:50 +02:00
Mathias Vorreiter Pedersen
e6ae3ffe7a
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:03:41 +02:00
Mathias Vorreiter Pedersen
d21943137f
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-10-18 14:03:28 +02:00
Owen Mansel-Chan
bddd448fdf
Add Go frameworks for automated coverage reports
...
Note that the space at the beginning of the package patterns for the
standard library is deliberate, because builtin functions use the empty
string as their package and we want to attribute them to the standard
library.
2023-10-18 12:49:31 +01:00
Calum Grant
6472ed7fe0
C++: Fix GVN for ImplicitThisFieldAccess
2023-10-18 12:40:55 +01:00
Calum Grant
c51efb1477
C++: Tighten up definitions of field accesses
2023-10-18 11:39:09 +01:00
Michael B. Gale
bd811f25da
Add Dependabot config for go/ql/test
2023-10-18 11:06:02 +01:00
github-actions[bot]
8dcd8b9e5b
Post-release preparation for codeql-cli-2.15.1
2023-10-17 20:24:00 +00:00
Chris Smowton
70aa490bbd
Merge pull request #14503 from smowton/smowton/admin/adapt-tests-to-jdk21
...
Java: Adapt tests to JDK21
2023-10-17 20:07:47 +01:00
Edward Minnix III
15afc3ed64
Merge pull request #14491 from egregius313/egregius313/java/mad/convert-iv
...
Java: Refactor `java/static-initialization-vector` to use Models as Data
2023-10-17 13:15:45 -04:00
Geoffrey White
b93442a2b6
Merge pull request #14523 from geoffw0/appendingformat
...
Swift: Model StringProtocol.appendingformat and String.decodecstring
2023-10-17 18:04:29 +01:00
Ian Lynagh
ab891465a4
Kotlin: Don't convert back and forth between ClassId and FqName
...
This showed up as a bug in Kotlin 2 mode:
We were starting with the Class Id "java/util/Map.Entry", which we then
converted to the FqName "java.util.Map.Entry", and then back to a
Class Id with ClassId.topLevel. This gave us a Class Id that
referenceClass wasn't able to resolve.
Now we just stick with the Class Id that we started with, and the class
can be resolved by Kotlin 2.
2023-10-17 17:01:53 +01:00
Robert Marsh
53e80e0f27
Merge pull request #14398 from rdmarsh2/rdmarsh2/swift/autoclosure-cfg
...
Swift: add CFG for normal autoclosures
2023-10-17 11:50:24 -04:00
Mathias Vorreiter Pedersen
c8e8ac0b55
C++: Make sphinx happy.
2023-10-17 16:15:59 +01:00
Mathias Vorreiter Pedersen
9a6fc967db
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 17:05:27 +02:00
Mathias Vorreiter Pedersen
17ee7c2352
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 17:04:33 +02:00
Mathias Vorreiter Pedersen
c4075b3ec7
C++: Make an explanation of 'allowImplicitRead' slightly more explicit.
2023-10-17 16:02:48 +01:00
Mathias Vorreiter Pedersen
d390b6235b
C++: Delete 'we assume'.
2023-10-17 16:00:09 +01:00
Ed Minnix
8ed5bfb27d
Remove reference to DataFlow2
2023-10-17 10:59:36 -04:00
Mathias Vorreiter Pedersen
0a71705dfe
C++: Add a small note about performance.
2023-10-17 15:57:37 +01:00
Mathias Vorreiter Pedersen
2fcf0abb7f
C++: Fix phinx syntax.
2023-10-17 15:45:16 +01:00
Mathias Vorreiter Pedersen
c5307bed2b
C++: Replace 'use_data' with 'read_data'.
2023-10-17 15:36:14 +01:00
Mathias Vorreiter Pedersen
d6ccd63ed2
C++: Reorganize the setup in the 'Flow from a qualifier to a field access' section.
2023-10-17 15:33:25 +01:00
Mathias Vorreiter Pedersen
3de32e813b
C++: Simplify introductory text and code.
2023-10-17 15:19:59 +01:00
Mathias Vorreiter Pedersen
bbf9bcde2a
Merge pull request #14482 from MathiasVP/additional-call-targets-for-cpp
...
C++: Add an abstract class that can be used to extend `viableCallable`
2023-10-17 14:57:21 +01:00
Mathias Vorreiter Pedersen
e264bddb25
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 15:51:20 +02:00
Mathias Vorreiter Pedersen
fa3053f7fa
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-17 15:50:55 +02:00
AlexDenisov
401639e10b
Merge pull request #14528 from github/alexdenisov/debug-notes-on-db-upgrades
...
Docs: add a note on db migration scripts debugging
2023-10-17 15:49:39 +02:00
Alex Denisov
057172c391
Docs: add a note on db migration scripts debugging
2023-10-17 14:55:35 +02:00
Rasmus Wriedt Larsen
28bedda5ea
Merge pull request #14513 from RasmusWL/yield-modeling
...
Python: Improve `yield` modeling
2023-10-17 14:15:01 +02:00
Stephan Brandauer
9d719aa44e
Merge pull request #13444 from github/java/update-mad-decls-after-triage-2023-06-13T14-50-57
...
Java: Update MaD Declarations after Triage
2023-10-17 13:54:10 +02:00
Joe Farebrother
aa418dc7d0
Add more line breaks in qldoc
2023-10-17 12:51:22 +01:00
Mathias Vorreiter Pedersen
68f2501bf0
Merge pull request #14496 from geoffw0/memberinittest
...
Swift: Add data flow tests for member initialization.
2023-10-17 12:35:07 +01:00
Mathias Vorreiter Pedersen
9a2c1daebe
C++: Add tests for 'AdditionalCallTarget'.
2023-10-17 11:48:44 +01:00
Geoffrey White
5ffb773568
Swift: Explore instantiated / not instantiated classes.
2023-10-17 11:30:03 +01:00
Mathias Vorreiter Pedersen
0ad338f04a
Merge pull request #14521 from geoffw0/defaultstep
...
Swift: Add CollectionContent to defaultImplicitTaintRead
2023-10-17 11:07:10 +01:00
Tony Torralba
96d6e8e3f2
Update change note
2023-10-17 11:57:53 +02:00
Tony Torralba
3cd06b0026
More review suggestions
2023-10-17 11:54:32 +02:00
Tony Torralba
62a9ffd277
Apply suggestions from code review
2023-10-17 11:51:55 +02:00
Mathias Vorreiter Pedersen
75a8f01f65
C++: Add more documentation about dataflow through indirections.
2023-10-17 09:53:40 +01:00
Tony Torralba
4ecda9cccd
Add consistency check exception
2023-10-17 10:18:19 +02:00
Rasmus Wriedt Larsen
80506f1028
Python: Accept .expected changes
2023-10-17 10:11:39 +02:00
Rasmus Wriedt Larsen
62a992473f
Python: Update QLDoc
2023-10-17 10:09:19 +02:00
Rasmus Wriedt Larsen
2bf4c32433
Python: Add syntactic support for yield in contextlib.contextmanager
2023-10-17 09:51:20 +02:00
Rasmus Wriedt Larsen
2399793c8a
Python: Expand contextmanager test even more
2023-10-17 09:41:30 +02:00
Chris Smowton
3145c53a19
Accept test changes for JDK21
2023-10-16 22:00:41 +01:00
Chris Smowton
bd77f572f1
Compile collections test for Java 11
2023-10-16 21:54:09 +01:00
Geoffrey White
0a96eb0a40
Swift: Change note.
2023-10-16 21:43:55 +01:00
Geoffrey White
2679d1fdb5
Swift: Add models.
2023-10-16 21:40:38 +01:00
Erik Krogh Kristensen
24e779b826
Merge pull request #14520 from github/dependabot/cargo/ql/regex-1.10.2
...
Bump regex from 1.10.0 to 1.10.2 in /ql
2023-10-16 22:27:50 +02:00
Geoffrey White
451d779f4a
Swift: Test String.decodeCString.
2023-10-16 21:22:03 +01:00
Geoffrey White
459b006244
Swift: Test StringProtocol.appendingFormat.
2023-10-16 21:22:03 +01:00
dependabot[bot]
cf0173acad
Bump regex from 1.10.0 to 1.10.2 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.0 to 1.10.2.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.0...1.10.2 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-16 17:49:47 +00:00
Michael B. Gale
d15c60ba76
Merge pull request #14516 from github/mbg/go/fix-dependabot-yml-again
2023-10-16 18:48:26 +01:00
Geoffrey White
c6ff42986d
Swift: Change note.
2023-10-16 18:43:03 +01:00
Geoffrey White
990c40c8c8
Swift: Barrier for duplicate results in constant queries, resulting from sources like [1, 2, 3].
2023-10-16 18:28:51 +01:00
Geoffrey White
6108f787dd
Swift: Effect on query tests.
2023-10-16 18:28:51 +01:00
Geoffrey White
0509c0fdf3
Swift: Effect on dataflow tests.
2023-10-16 18:28:50 +01:00
Geoffrey White
89867d6214
Swift: Default content read step.
2023-10-16 18:28:50 +01:00
Robert Marsh
efb04f6db4
Swift: update generated files list
2023-10-16 17:22:52 +00:00
Robert Marsh
d0ec2fd643
Swift: fix QLDoc typos
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-10-16 13:20:41 -04:00
Ian Lynagh
0a0ce1f202
Kotlin: Log when we start and finish writing to TRAP files
2023-10-16 16:14:23 +01:00
Ed Minnix
c65d407937
Remove old DataFlow2 import
2023-10-16 10:30:00 -04:00
Tony Torralba
d08ee76b16
Java: Improve java/spring-disabled-csrf-protection
2023-10-16 16:01:14 +02:00
Michael B. Gale
8c818a8657
group => groups
2023-10-16 14:53:03 +01:00
Mathias Vorreiter Pedersen
26a665369b
C++: Add QLDoc.
2023-10-16 14:15:55 +01:00
Joe Farebrother
05162c68ec
Fix typo
2023-10-16 13:43:06 +01:00
Joe Farebrother
aade79f723
Improve qldoc and fix changenote
2023-10-16 13:02:28 +01:00
Geoffrey White
1f92267786
Swift: Sort out identical files situation.
2023-10-16 11:26:12 +01:00
Geoffrey White
890b9d59ed
Swift: Fix line numbers.
2023-10-16 11:09:54 +01:00
Rasmus Wriedt Larsen
883bd9f3b3
Python: Add test for type-tracking with yield
2023-10-16 12:09:07 +02:00
Geoffrey White
225a9fe2d8
Merge branch 'main' into implicitflow
2023-10-16 11:02:34 +01:00
Geoffrey White
0e1da37379
Revert "Swift: Hide OpenExistentialExpr from the AST instead."
...
This reverts commit 9ad1749957 .
2023-10-16 10:49:39 +01:00
Geoffrey White
39a6375606
Swift: Change note.
2023-10-16 10:17:32 +01:00
Geoffrey White
613c7b24b5
Swift: Model .base, withUTF8(_:).
2023-10-16 10:17:32 +01:00
Geoffrey White
0bc24b8641
Swift: Model replaceSubrange more generally.
2023-10-16 10:17:32 +01:00
Geoffrey White
c6f2a2936b
Swift: Widen the StringProtocol model.
2023-10-16 10:14:43 +01:00
Geoffrey White
dcba1b9913
Swift: Tests for Substring.
2023-10-16 10:14:42 +01:00
Maiky
20bf3c7f67
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-15 15:47:19 +02:00
Chris Smowton
7fbba3a659
Java: adapt stub to ExecutorService change in JDK19
2023-10-13 20:30:28 +01:00
Chris Smowton
8f985e0045
Java: restrict test to source classes
2023-10-13 20:30:28 +01:00
Chris Smowton
0510b0c825
Java: restrict test to source methods
...
Otherwise it finds standard library methods that depend on stdlib internals as to what happens to get extracted. In particular the extractor bump to JDK21 led to MethodHandles being in scope and a new method being found; seems better to avoid considering the standard library at all.
2023-10-13 20:30:28 +01:00
Geoffrey White
cea87a53e0
Swift: Fix LocalTaint.expected.
2023-10-13 18:19:26 +01:00
Ed Minnix
3356261031
Static IV refactor to MaD
2023-10-13 12:50:49 -04:00
Geoffrey White
e2ac3769bc
Swift: Change note.
2023-10-13 17:42:14 +01:00
Geoffrey White
aa0db1426d
Swift: Simplify the QL a bit further.
2023-10-13 17:42:14 +01:00
Geoffrey White
d0f214a9a7
Swift: Widen the model to include things that are not strictly RawRepresentable but which appear similar. This fixes the XXE test cases. Unclear whether xmlParserOption in the test should in fact extend RawRepresentable, or not.
2023-10-13 17:35:05 +01:00
Joe Farebrother
9097d93ac7
Add shared library for filepath normalization
2023-10-13 17:07:47 +01:00
Robert Marsh
b832fc8e32
Swift: additional QLDoc around closures
2023-10-13 14:54:38 +00:00
Mathias Vorreiter Pedersen
140ff537c0
C++: Split 'defaultViableCallable' and 'viableCallable'.
2023-10-13 15:47:02 +01:00
Geoffrey White
4e29ed5ff0
Swift: Model RawRepresentable.
2023-10-13 15:00:49 +01:00
Geoffrey White
228aaee0bf
Swift: Add data flow tests for RawRepresentable, OptionSet.
2023-10-13 14:34:05 +01:00
Geoffrey White
9e473ebda4
Swift: Remove the 'rawValue' step as well.
2023-10-13 14:02:15 +01:00
Geoffrey White
da14f428e2
Swift: Remove now redundant additional taint step. from the XXE query.
2023-10-13 13:57:54 +01:00
Calum Grant
192c16bbb3
C++: Format QL and delete note
2023-10-13 13:07:43 +01:00
Geoffrey White
33f83a2089
Swift: Add some failing data flow test cases.
2023-10-13 12:24:43 +01:00
Calum Grant
552221868f
C++: Expand ImplicitThisFieldAccess
2023-10-13 12:05:20 +01:00
Tamas Vajk
791a6422b3
C#: Fix params attribute argument extraction
2023-10-13 11:30:02 +02:00
Tamas Vajk
e730815f41
C#: Add test case for params arguments in attributes
2023-10-13 11:29:32 +02:00
Robert Marsh
dd71204128
Swift: update test expectations for for-in locations
2023-10-12 18:59:36 +00:00
Stephan Brandauer
bcde466d6c
use of characteristics
2023-10-12 17:22:05 +02:00
Stephan Brandauer
1bbf88f208
Java: basic version of automodel extraction queries
2023-10-12 17:07:46 +02:00
Mathias Vorreiter Pedersen
782ecd77b7
C++: Add change notes.
2023-10-12 11:15:41 +01:00
Mathias Vorreiter Pedersen
6865ce56bc
C++: Add an abstract class that can be used to extend 'viableCallable'.
2023-10-12 10:35:36 +01:00
Rasmus Lerchedahl Petersen
a4117538ab
Python: update test expectations
...
This update looks different locally for me,
so this is slightly sketchy..
2023-10-11 16:31:56 +02:00
Alex Eyers-Taylor
3ac3169278
CPP: Add some range analysis cases
2023-10-10 20:01:14 +01:00
Robert Marsh
484d020c39
Merge branch 'main' into rdmarsh2/swift/autoclosure-cfg
2023-10-10 18:47:13 +00:00
Remco Vermeulen
76e56cdac7
Adjust query severities
2023-10-09 12:52:09 -07:00
Robert Marsh
dab9a859f3
Merge branch 'main' into rdmarsh2/swift/autoclosure-cfg
2023-10-09 14:21:28 +00:00
amammad
ad2631202d
fix comments
2023-10-08 21:32:04 +02:00
amammad
6c8cc79b4d
v1
2023-10-08 21:24:54 +02:00
Robert Marsh
30a9656ebb
Swift: change note for autoclosure cfg
2023-10-06 20:19:35 +00:00
Robert Marsh
cb749bd973
Swift: CFG for normal autoclosure exprs
2023-10-06 20:14:49 +00:00
Robert Marsh
661da76838
Swift: add function call autoclosure tests
2023-10-06 19:49:33 +00:00
Geoffrey White
9ad1749957
Swift: Hide OpenExistentialExpr from the AST instead.
2023-10-06 17:55:29 +01:00
Geoffrey White
76db1c5c8b
Swift: Add the same code to the AST test as well.
2023-10-06 17:13:49 +01:00
Geoffrey White
b0c7964ea6
Swift: Add the same code to the CFG test as well.
2023-10-06 10:07:52 +01:00
Geoffrey White
b3185e9519
Swift: Expand the test case.
2023-10-06 09:43:33 +01:00
Geoffrey White
e225ea6bef
Swift: Remove redundant code.
2023-10-05 11:14:54 +01:00
Geoffrey White
dcd88100f0
Swift: Minor corrections, update parse.expected.
2023-10-05 11:11:52 +01:00
Geoffrey White
446416f1ab
Swift: Change note.
2023-10-05 11:06:11 +01:00
Geoffrey White
a1512c8af0
Swift: This should always have been private.
2023-10-05 11:06:11 +01:00
Geoffrey White
9bdddabd8a
Swift: Avoid changing interfaces we don't need to. Improve QLDoc.
2023-10-05 10:45:59 +01:00
Geoffrey White
fddda0368c
Swift: Add PotentialRegexEval / doesEvaluate mechanism.
2023-10-05 10:45:59 +01:00
Geoffrey White
fa10dbea9f
Swift: Support mode flags through NSString.CompareOptions.
2023-10-05 10:45:59 +01:00
Geoffrey White
a052a4e385
Swift: Update to a proper data flow config so we can add implicit reads from arrays at the sink.
2023-10-05 10:45:58 +01:00
Geoffrey White
cdc0d1fff1
Swift: Check the options flag contains .regularExpression.
2023-10-05 10:45:58 +01:00
Geoffrey White
fe4ef48844
Swift: Rename some predicates and make them work on dataflow nodes.
2023-10-05 10:26:08 +01:00
Geoffrey White
b5ff104a00
Swift: Naive model for regular expression evaluations through NSString and StringProtocol methods.
2023-10-04 19:19:29 +01:00
Geoffrey White
5263cccefc
Swift: Bite the bullet and make 'regex' a non-optional field of the regex test, so that we can be confident where we fail to identify them.
2023-10-04 19:19:28 +01:00
Geoffrey White
24c385b1da
Swift: Expand and correct regex tests.
2023-10-04 19:19:28 +01:00
Rasmus Lerchedahl Petersen
177db998c7
Python: add change note
2023-09-29 15:28:08 +02:00
Rasmus Lerchedahl Petersen
ed3ffde5e6
Python: modules are now possibly non-unique
...
We should consider if this is the right way..
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
be506c64ba
Python: update test-expectations
...
These are semantic differences.
They generally look good, except perhaps
we should exclude illegal package names?
(It passes `legalShortName`, though).
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
4f35a62583
Python: broaden search for imports
...
This now finds vulnerabilities in
https://github.com/github/field-security-codeql/issues/100
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
d9854eb409
Python: Add QLDoc
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
1d4832cbfe
python: allow namespace packages as packages
...
remove the logic around isPotentialPackage
2023-09-29 15:10:19 +02:00
Rasmus Lerchedahl Petersen
362cf107a4
python: add tests for module import
...
- `--max-import-depth=3` to give points-to a chance
- `not_root` dir to force namespace package logic
- add usage in `example.py` to get files extracted
2023-09-29 15:10:19 +02:00
Geoffrey White
bb1720d50a
Swift: Fix test after merge.
2023-09-27 19:31:04 +01:00
Geoffrey White
936f846b09
Merge branch 'main' into implicitflow
2023-09-27 19:27:07 +01:00
Maiky
52007fb9a2
Change v3 to v2
2023-09-17 21:42:18 +02:00
Geoffrey White
0cb00c9091
Swift: Change note.
2023-08-31 15:50:54 +01:00
Geoffrey White
93c39c5fdd
Swift: Add data flow through OpenExistentialExpr.
2023-08-31 15:50:32 +01:00
Geoffrey White
b8d29e8fc1
Swift: Add a more realistic test case as well.
2023-08-31 15:46:47 +01:00
Geoffrey White
aeeafd75bf
Swift: Add a test for flow through OpenExistentialExpr.
2023-08-31 15:27:18 +01:00
Maiky
08c54767f2
Correct Ldap Unauth Bind Sink
2023-07-05 17:56:49 +02:00
Maiky
d654e98650
Add empty string as source
2023-06-18 22:21:12 +02:00
Taus
e5b17af9b5
Java: Fix bad tool output
2023-06-14 12:16:44 +02:00
Taus
b860b21ced
Update MaD Declarations after Triage
2023-06-13 16:50:58 +02:00
Maiky
1a9bfb38aa
Correct barrier
2023-06-05 01:25:17 +02:00
Maiky
bf9d0b93d7
Add Improper LDAP Auth Query (CWE-287)
2023-06-03 23:20:11 +02:00
Sam Browning
1a51c015b4
Add requirements.txt
2023-04-27 15:19:45 -04:00