Erik Krogh Kristensen
1a0e3c8907
Merge pull request #12743 from erik-krogh/null-ptr-2
...
JS: only set the file in the diagnostics message if the file is within the source root
2023-04-03 14:04:19 +02:00
erik-krogh
a7c2892af4
only set the file in the diagnostics message if the file is within the source root
2023-04-03 12:38:10 +02:00
Alex Ford
571c3f3fba
Merge pull request #12720 from github/release-prep/2.12.6
...
Release preparation for version 2.12.6
2023-03-31 10:02:13 +01:00
github-actions[bot]
0a3218676c
Release preparation for version 2.12.6
2023-03-30 19:25:06 +00:00
Alex Ford
62fcea030a
Merge pull request #12718 from github/post-release-prep/codeql-cli-2.12.5
...
Post-release preparation for codeql-cli-2.12.5
2023-03-30 15:50:56 +01:00
github-actions[bot]
e87ce62f95
Post-release preparation for codeql-cli-2.12.5
2023-03-30 13:48:58 +00:00
Calum Grant
928a5632ed
Merge pull request #12711 from aibaars/ruby-version-docs
...
Ruby: update supported version to 3.2
2023-03-30 11:15:35 +01:00
Arthur Baars
cc100ea746
Ruby: update supported version to 3.2
2023-03-29 16:15:41 +02:00
Alex Ford
ee6fa93007
Merge pull request #12657 from alexrford/rb/sensitive-get-no-path-problem
...
Ruby: convert `rb/sensitive-get-query` into a `@kind problem`
2023-03-27 12:08:27 +01:00
Alex Ford
6f08447427
Ruby: add a change note for rb/sensitive-get-query flow path removal
2023-03-27 09:45:23 +01:00
Alex Ford
24aa16c919
Ruby: update rb/sensitive-get-query test output
2023-03-27 09:44:55 +01:00
Alex Ford
15c9e7666a
Ruby: convert rb/sensitive-get-query into a @kind problem
2023-03-27 09:42:10 +01:00
Paolo Tranquilli
329684c2b0
Merge pull request #12634 from github/redsun82/swift-successuful-extractions
...
Swift: add a query showing successfully extracted files
2023-03-23 12:52:13 +01:00
Paolo Tranquilli
ccb816ed84
Java: autoformat
2023-03-23 10:22:18 +01:00
Alex Denisov
635564531c
Swift: add a query showing successfully extracted files
...
(cherry picked from commit 7c15527300 )
2023-03-22 13:52:09 +01:00
Chris Smowton
218ed8ad37
Merge pull request #12614 from smowton/smowton/admin/backport-integration-test-fix
...
Java: Backport https://github.com/github/codeql/pull/12609 to rc/3.9
2023-03-21 14:30:17 +00:00
Felicity Chapman
5c607b81fd
Merge pull request #12613 from github/fix-missing-docs-link
...
Minor update: Add new article to manual TOC
2023-03-21 14:14:12 +00:00
Chris Smowton
a865f1666d
maven-httpo-repository: add Maven wrapper
...
Maven 3.9.1 changes the format of the error message this test is looking for (though it still matches the target regex). Use the Maven wrapper to avoid such sensitivity to the precise version present in the environment.
2023-03-21 12:19:52 +00:00
Felicity Chapman
719708cb89
Fix typo
2023-03-21 12:00:55 +00:00
Felicity Chapman
da96ed1ff9
A few tweaks
2023-03-21 12:00:55 +00:00
Felicity Chapman
41becfe2ba
Add new article to manual TOC
2023-03-21 12:00:55 +00:00
Henry Mercer
d824695da2
Merge pull request #12561 from github/henrymercer/cli-prepare-diagnostics-rename
...
JS: Update for renamed `com.semmle.util.diagnostics` package
2023-03-17 10:31:27 +00:00
Asger F
940e492766
Merge pull request #12551 from github/release-prep/2.12.5
...
Release preparation for version 2.12.5
2023-03-17 11:23:25 +01:00
Henry Mercer
74cc1a42d0
JS: Update for renamed com.semmle.util.diagnostics package
2023-03-16 18:19:10 +00:00
Jeroen Ketema
66b03dbd1d
Apply suggestions from code review
2023-03-16 14:29:16 +01:00
Jeroen Ketema
e7079b35bc
Apply suggestions from code review
2023-03-16 14:28:17 +01:00
github-actions[bot]
fe4d27e8cc
Release preparation for version 2.12.5
2023-03-16 12:58:50 +00:00
Jeroen Ketema
8aa9207281
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-16 10:28:44 +01:00
Tom Hvitved
a13b6ed230
Merge pull request #12536 from hvitved/dataflow/call-enclosing-callable-consistency-check
...
Data flow: Add consistency check for `DataFlowCall::getEnclosingCallable`
2023-03-16 10:19:42 +01:00
Rasmus Wriedt Larsen
b3a49ab143
Merge pull request #12467 from RasmusWL/kwargs-parameter-position-fixup
...
Python/Ruby: Use new parameter position for synthetic hash-splat instead
2023-03-16 09:52:46 +01:00
Mathias Vorreiter Pedersen
eec1e9ffcd
C++: Fix change note.
2023-03-16 08:01:07 +00:00
Mathias Vorreiter Pedersen
7585a3862f
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-16 07:57:20 +00:00
Mathias Vorreiter Pedersen
58602927bd
C++: Add change note.
2023-03-16 07:57:03 +00:00
Tom Hvitved
404ead8a18
Python: Update expected test output
2023-03-16 08:40:53 +01:00
Tom Hvitved
b3ef1e9372
C++: Update expected test output
2023-03-16 08:40:53 +01:00
Tom Hvitved
64f13fa08f
C#: Exclude call inside static field initializers from consistency check
2023-03-16 08:40:53 +01:00
Tom Hvitved
9f798902bd
Data flow: Add consistency check for DataFlowCall::getEnclosingCallable
2023-03-16 08:40:53 +01:00
Henry Mercer
720eed398b
Merge pull request #12523 from github/henrymercer/polish-diagnostics
...
Polish diagnostic messages
2023-03-15 15:06:52 +00:00
Mathias Vorreiter Pedersen
3376d2aa12
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-15 14:12:01 +00:00
Mathias Vorreiter Pedersen
dffde8f8b8
Merge pull request #12532 from MathiasVP/local-flow-for-getAdditionalFlowIntoCallNodeTerm
...
C++: Use local flow instead of GVN in `getAdditionalFlowIntoCallNodeTerm`
2023-03-15 14:10:49 +00:00
Mathias Vorreiter Pedersen
08419b77af
C++: Respond to PR reviews.
2023-03-15 14:07:04 +00:00
Anders Schack-Mulligen
bc9942eb75
Merge pull request #12530 from aschackmull/java/refactor-dataflow-queries-3
...
Java: Refactor more dataflow queries to the new API (take 3)
2023-03-15 14:57:29 +01:00
Tom Hvitved
a6e9d111a5
Merge pull request #12534 from hvitved/swift/summary-call-encl-callable
...
Swift: Fix `SummaryCall::getEnclosingCallable`
2023-03-15 14:35:00 +01:00
Tom Hvitved
96639c594f
Swift: Fix SummaryCall::getEnclosingCallable
2023-03-15 13:58:12 +01:00
Arthur Baars
fe34ec1378
Ruby: fix formatting errors
2023-03-15 13:45:06 +01:00
Henry Mercer
5de0eae992
Ruby: Update diagnostic source names for consistency
2023-03-15 12:05:09 +00:00
Henry Mercer
a90f4915a7
C#: Add new lines before call to action
2023-03-15 12:00:47 +00:00
Henry Mercer
0de4259bff
Revert "Ruby: Use rb prefix in diagnostic IDs for consistency with queries"
...
This reverts commit a6509c7a37 .
2023-03-15 12:00:47 +00:00
Anders Schack-Mulligen
ecf5591bc6
Merge pull request #12527 from aschackmull/java/remove-dataflow-for-serializability
...
Java: Delete `DataFlowForSerializability` and `DataFlowForOnActivityResult`
2023-03-15 12:37:17 +01:00
Mathias Vorreiter Pedersen
913ff201f1
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into local-flow-for-getAdditionalFlowIntoCallNodeTerm
2023-03-15 11:15:16 +00:00
Mathias Vorreiter Pedersen
11932a54e8
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-15 11:13:49 +00:00
Mathias Vorreiter Pedersen
9bd3347a3c
C++: Remove import.
2023-03-15 10:33:47 +00:00
Mathias Vorreiter Pedersen
623f6ff701
C++: Move things around so that 'getAdditionalFlowIntoCallNodeTerm' is in the same stage as 'DataFlowImplCommon'.
2023-03-15 10:01:47 +00:00
Mathias Vorreiter Pedersen
deb43c21e6
C++: Use local flow instead of GVN to find parameters that are used in switch statements.
2023-03-15 10:00:47 +00:00
Anders Schack-Mulligen
6408d7cbbe
Java: Refactor RsaWithoutOaep.
2023-03-15 10:37:54 +01:00
Anders Schack-Mulligen
b3b5c2c767
Java: Refactor UnsafeContentUriResolution.
2023-03-15 10:32:58 +01:00
Anders Schack-Mulligen
4b814ec71c
Java: Refactor SensitiveCommunication.ql.
2023-03-15 10:32:35 +01:00
Anders Schack-Mulligen
ca8e013618
Java: Refactor FragmentInjection.
2023-03-15 10:23:21 +01:00
Anders Schack-Mulligen
5bd530f570
Java: Refactor IntentUriPermissionManipulation.
2023-03-15 10:13:28 +01:00
Anders Schack-Mulligen
b14b95cd79
Java: Refactor LogInjection
2023-03-15 10:10:02 +01:00
Anders Schack-Mulligen
abf3abdc65
Java: Delete DataFlowForOnActivityResult.
2023-03-15 09:47:21 +01:00
Anders Schack-Mulligen
bea7c43584
Java: Delete DataFlowForSerializability
2023-03-15 09:42:02 +01:00
Anders Schack-Mulligen
e8a7139020
Merge pull request #12476 from aschackmull/java/refactor-dataflow-queries-2
...
Java: Refactor more dataflow queries to the new API
2023-03-15 09:40:32 +01:00
Arthur Baars
fbe9823a42
Merge branch 'main' into henrymercer/polish-diagnostics
2023-03-14 23:42:33 +01:00
Henry Mercer
1454890a58
C#: Add new paragraphs before call to action
2023-03-14 21:52:23 +00:00
Henry Mercer
1394abcf98
JS: Update diagnostics IDs for consistency with rules
2023-03-14 21:44:19 +00:00
Henry Mercer
1f63c5d5e4
JS: Update parse error diagnostic name for consistency
2023-03-14 21:43:32 +00:00
Harry Maclean
604d5f0c71
Merge pull request #12510 from hmac/merge-ruby-extractor
...
Ruby: Merge extractor crates
2023-03-15 09:41:07 +13:00
Harry Maclean
fd43ba0827
Update .github/workflows/ruby-build.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2023-03-15 09:28:53 +13:00
Harry Maclean
6dcc884fe1
Ruby: Small doc change
...
This is primarily to bust the actions cache, to test a change in the
ruby-build workflow.
2023-03-15 08:42:24 +13:00
Harry Maclean
eefc4866ea
Ruby: build query pack in temporary directory
...
This ensures we don't clobber any existing directories in the repo.
2023-03-15 08:20:23 +13:00
Harry Maclean
aaeb8a0aa0
Merge pull request #12493 from hmac/ar-sinks
2023-03-15 07:59:07 +13:00
Geoffrey White
959f93a766
Merge pull request #12520 from geoffw0/basetypefix
...
Swift: Fix result type of NominalType.getABaseType.
2023-03-14 18:23:54 +00:00
Geoffrey White
a391c01d36
Swift: Fix result type of NominalType.getABaseType.
2023-03-14 17:36:30 +00:00
Henry Mercer
bc106873c1
C#: Fix casing of "CodeQL Action"
2023-03-14 17:24:30 +00:00
Henry Mercer
7e4f77bfb3
C#: Only serialize the location if it is present
2023-03-14 17:23:00 +00:00
Henry Mercer
a6509c7a37
Ruby: Use rb prefix in diagnostic IDs for consistency with queries
2023-03-14 17:13:50 +00:00
Henry Mercer
769f9051af
Ruby: Serialize severities as lowercase
2023-03-14 17:09:25 +00:00
Henry Mercer
6fbc8261f2
Java: Add a full stop
2023-03-14 17:03:42 +00:00
Henry Mercer
770924455e
Java: Use Dotcom help links
2023-03-14 17:00:48 +00:00
Henry Mercer
ce96f009b7
Java: Capitalise HTTPS
2023-03-14 16:58:24 +00:00
Henry Mercer
819e0dfbf0
Java: Use "relevant" instead of "suspicious"
2023-03-14 16:54:14 +00:00
Henry Mercer
110cb64b7a
Java: Avoid reference to other diagnostics
2023-03-14 16:52:58 +00:00
Henry Mercer
4c329b7b62
Java: Remove "please" in diagnostics
...
Per review from docs team
2023-03-14 16:46:06 +00:00
Anders Schack-Mulligen
30163e4f60
Merge pull request #12515 from aschackmull/java/neutral-dispatch
...
Java: Remove low-confidence dispatch to known neutrals.
2023-03-14 15:35:05 +01:00
Tom Hvitved
c132891669
Merge pull request #12513 from hvitved/dataflow/lambda-flow-no-expects-content
...
Data flow: Exclude `expectsContent` nodes from lambda flow
2023-03-14 15:28:35 +01:00
Asger F
feb7c49006
Merge pull request #12382 from asgerf/js/import-assertion
...
JS: Support import assertions
2023-03-14 14:56:32 +01:00
Ian Lynagh
32e8b130ad
Merge pull request #12501 from tamasvajk/java/javadoc_printast
...
Java: Fix printAST to handle javadoc belonging to multiple elements
2023-03-14 13:42:22 +00:00
Anders Schack-Mulligen
a9d2b936af
Java: Add qldoc.
2023-03-14 14:15:15 +01:00
Asger F
d953ad63fe
Merge pull request #12445 from asgerf/js/react-forward-ref
...
JS: Handle forwardRef in React
2023-03-14 13:21:16 +01:00
Asger F
d74da30fc7
JS: Include trap test for trailing commas
2023-03-14 13:15:12 +01:00
Asger F
8ab3f39b5e
Merge pull request #12423 from asgerf/js/trusted-types-global-flow
...
JS: Track trusted types policy callbacks
2023-03-14 13:09:50 +01:00
Paolo Tranquilli
5ff7a898a6
Merge pull request #12516 from github/redsun82/swift-specialize-generic-decl
...
Swift: make `AnyGenericType::getDecl`'s type more specific
2023-03-14 12:23:02 +01:00
AlexDenisov
decd5c1ae7
Merge pull request #12508 from github/redsun82/swift-deduplication-test
...
Swift: add an initial draft for a deduplication test
2023-03-14 11:56:23 +01:00
Paolo Tranquilli
54b6c6f8f7
Swift: make AnyGenericType::getDecl's type more specific
...
As shown by the extractor's code not needing any change, the DB values
already had that more specific type, which is why the upgrade/downgrade
scripts are actually no-ops.
2023-03-14 11:49:07 +01:00
Anders Schack-Mulligen
dbfc256f40
Java: Remove low-confidence dispatch to known neutrals.
2023-03-14 11:34:07 +01:00
Paolo Tranquilli
91ce88e2d9
Swift: make deduplication test cross-platform
2023-03-14 11:24:03 +01:00
Edward Minnix III
de1ecf943e
Merge pull request #11915 from egregius313/egregius313/arbitrary-apk-installation
...
Java: Arbitrary APK installation
2023-03-14 06:23:51 -04:00
Paolo Tranquilli
cc608f764d
Swift: add missing include
2023-03-14 11:23:33 +01:00
Tony Torralba
dd0723c36b
Merge pull request #12511 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-03-14 10:05:32 +01:00
Tom Hvitved
bdd56f1b6e
Data flow: Sync files
2023-03-14 10:01:56 +01:00
Tom Hvitved
8dd99b951b
Data flow: Exclude expectsContent nodes from lambda flow
2023-03-14 10:01:11 +01:00
Tom Hvitved
08557974ae
Merge pull request #12499 from hvitved/ruby/more-constructor-flow
...
Ruby: Add missing flow through `self.new` constructor calls
2023-03-14 09:14:42 +01:00
Erik Krogh Kristensen
04f422ea5d
Merge pull request #12047 from erik-krogh/py-shell
...
Py: add unsafe-shell-command-construction
2023-03-14 07:48:38 +01:00
Harry Maclean
999b12f78b
Ruby: better errors in generator
...
Provide more context if a file cannot be opened by the generator.
2023-03-14 18:12:01 +13:00
Harry Maclean
7ee7a0df34
Ruby: fix prefix in create-extractor-pack scripts
2023-03-14 18:12:01 +13:00
github-actions[bot]
2c93ab99d8
Add changed framework coverage reports
2023-03-14 00:15:57 +00:00
Harry Maclean
d814e15a2f
Ruby: Refactor
2023-03-14 12:58:32 +13:00
Harry Maclean
f19e48d473
Ruby: Update binary prefixes in build
2023-03-14 12:53:37 +13:00
Harry Maclean
4de31e8577
Ruby: Ensure right directory for extractor build
2023-03-14 12:40:37 +13:00
Harry Maclean
f3272239bd
Ruby: Format rust files
2023-03-14 12:31:50 +13:00
Harry Maclean
cd9927cf66
Ruby: Update create-extractor-pack
2023-03-14 12:23:09 +13:00
Harry Maclean
0e5dcddb98
Ruby: Fix cargo fmt step in build
2023-03-14 12:17:04 +13:00
Harry Maclean
5c59692b3a
Ruby: Update workflow for new extractor location
2023-03-14 12:10:56 +13:00
Harry Maclean
e070bd512e
Ruby: Move some support files to new extractor
2023-03-14 12:07:39 +13:00
Harry Maclean
194edd76e5
Ruby: Put all binaries in same directory
2023-03-14 12:03:46 +13:00
Harry Maclean
a7e276343e
Ruby: Update .gitignore for moved extractor
2023-03-14 12:03:03 +13:00
Harry Maclean
f53c31398c
Ruby: Fix imports in extractor
2023-03-14 12:02:11 +13:00
Harry Maclean
15bd825805
Ruby: finish reorganising extractor files
2023-03-14 11:49:18 +13:00
Harry Maclean
6f23111320
Ruby: Remove old Cargo.toml files
2023-03-14 11:47:21 +13:00
Harry Maclean
983b84276b
Ruby: Lift extractor binaries
2023-03-14 11:45:46 +13:00
Harry Maclean
1a71c3f174
Ruby: Merge extractor crates
...
This just moves the files, so as not to confuse git when we make changes
to them.
2023-03-14 11:43:17 +13:00
Anders Schack-Mulligen
5792b4d363
Merge pull request #12503 from aschackmull/java/qltest-callback-instance-sideeffect
...
Java: Add a qltest demonstrating side-effect on a callback instance.
2023-03-13 17:26:12 +01:00
Mathias Vorreiter Pedersen
d96dbea7be
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-13 17:19:13 +01:00
Mathias Vorreiter Pedersen
136769d647
Merge pull request #12507 from MathiasVP/fix-as-expr-performance-2
...
C++: Map some indirect nodes to expressions in `localExprFlowStep`
2023-03-13 16:03:48 +00:00
Paolo Tranquilli
fcd14a78ab
Swift: add an initial draft for a deduplication test
2023-03-13 15:55:45 +01:00
Mathias Vorreiter Pedersen
a5051655a1
C++: Autoformat.
2023-03-13 15:41:17 +01:00
Ian Lynagh
70b85a3e00
Merge pull request #12431 from igfoo/igfoo/double_interception
...
Kotlin: Test double interceptions
2023-03-13 14:30:49 +00:00
erik-krogh
6a5d6eb5c2
lower precision of py/shell-command-constructed-from-input to medium
2023-03-13 14:56:42 +01:00
erik-krogh
d001cc40d3
Merge branch 'main' into py-shell
2023-03-13 14:56:04 +01:00
Mathias Vorreiter Pedersen
00450d10bb
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-13 14:50:17 +01:00
Mathias Vorreiter Pedersen
58c1518fbd
C++: Fix QLDoc.
2023-03-13 14:45:00 +01:00
Mathias Vorreiter Pedersen
97462a3fa0
C++: Include more expressions in 'asExpr' in local expression flow.
2023-03-13 14:29:11 +01:00
Tamas Vajk
c57fcfb8fb
Java: Fix printAST to handle javadoc belonging to multiple elements
2023-03-13 14:26:33 +01:00
Tony Torralba
705691b096
Merge pull request #12446 from github/java/update-mad-decls-after-triage-2023-03-08T14-51-59
...
Java: Update MaD Declarations after Triage
2023-03-13 14:07:59 +01:00
Robert Marsh
64f23ebb4d
Merge pull request #12436 from MathiasVP/ir-range-analysis-for-unary-minus
...
C++: IR-based range analysis for unary minus
2023-03-13 09:02:38 -04:00
Anders Schack-Mulligen
f54b02edb3
Java: Add a qltest demonstrating side-effect on a callback instance.
2023-03-13 13:22:18 +01:00
Anders Schack-Mulligen
0c95ab2cdc
Merge pull request #12474 from hvitved/dataflow/call-back-post-update
...
Data flow: Synthesize post-update nodes for callback arguments inside summarized callables
2023-03-13 13:21:52 +01:00
Ian Lynagh
4fbc747f93
Kotlin: Move kotlin_double_interception test to posix_only
...
It's failing on Windows
2023-03-13 11:57:57 +00:00
Ian Lynagh
fd8f7e071b
Kotlin: Tweak double_interception test
2023-03-13 11:57:57 +00:00
Ian Lynagh
fae4a8f37b
Kotlin: double interception test: Fix for old python versions
2023-03-13 11:57:57 +00:00
Ian Lynagh
8b6047dfd1
Kotlin: Handle double-interceptions without failing
2023-03-13 11:57:57 +00:00
Ian Lynagh
81e71c4669
Kotlin: Add a test for double niterception
2023-03-13 11:57:57 +00:00
dependabot[bot]
6e75df4088
Merge pull request #12494 from github/dependabot/cargo/ruby/serde-1.0.155
2023-03-13 11:49:00 +00:00
Erik Krogh Kristensen
060c37b6a2
Merge pull request #12345 from erik-krogh/delOldDeps
...
delete old deprecations
2023-03-13 12:48:24 +01:00
Tom Hvitved
163bb2b94d
Add change note
2023-03-13 12:45:46 +01:00
Tom Hvitved
714b61b63e
Ruby: Add missing flow through self.new constructor calls
2023-03-13 12:45:46 +01:00
dependabot[bot]
219bac74bf
Bump serde from 1.0.154 to 1.0.155 in /ruby
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.154 to 1.0.155.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-13 11:36:09 +00:00
dependabot[bot]
de84dddfc1
Merge pull request #12495 from github/dependabot/cargo/ql/serde-1.0.155
2023-03-13 11:32:03 +00:00
Arthur Baars
e0a49e2999
Merge pull request #12486 from aibaars/windows-long-paths
...
Ruby: support long paths on Windows
2023-03-13 12:18:50 +01:00
Tamas Vajk
e44aca0b33
Java: Add printAST test with javadoc
2023-03-13 12:02:50 +01:00
Arthur Baars
41a53ec109
Address comments
2023-03-13 11:50:03 +01:00
Geoffrey White
e4837f7da9
Merge pull request #12489 from geoffw0/typealiastests
...
Swift: Skeleton + tests for type alias support
2023-03-13 10:38:43 +00:00
Asger F
5461f94c6c
Merge pull request #12424 from asgerf/js/html-sanitizer-for-sql
...
JS: Add html sanitizers as a taint step in a few queries
2023-03-13 11:36:19 +01:00
Asger F
41dd63adc7
Handle forwardRef in React
2023-03-13 11:30:18 +01:00
Anders Schack-Mulligen
7c0e89ffdd
Java: Refactor ArithmeticTainted.ql, TempDirLocalInformationDisclosure.ql
2023-03-13 11:27:14 +01:00
Anders Schack-Mulligen
da273269cb
Java: Refactor PolynomialReDoS.ql
2023-03-13 11:27:14 +01:00
Anders Schack-Mulligen
f53a05bf13
Merge pull request #12475 from aschackmull/dataflow/mergepathgraph
...
Dataflow: Add MergePathGraph module.
2023-03-13 11:26:24 +01:00
Jeroen Ketema
a0fca20f0d
Merge pull request #12498 from jketema/frontend-tests
...
C++: Update `.expected` after frontend changes
2023-03-13 11:25:58 +01:00
Anders Schack-Mulligen
c380ecbbbc
Data flow: Add change notes.
2023-03-13 11:09:13 +01:00
erik-krogh
6c1ebd999e
Merge branch 'main' into delOldDeps
2023-03-13 11:00:29 +01:00
Erik Krogh Kristensen
25e6b976c8
Merge pull request #12405 from github/dependabot/cargo/ql/rayon-1.7.0
...
Bump rayon from 1.6.1 to 1.7.0 in /ql
2023-03-13 10:57:11 +01:00
Geoffrey White
7512d81331
Merge pull request #12484 from geoffw0/summarydetail
...
Swift: Update swift/summary/summary-statistics to DataFlow::ConfigSig
2023-03-13 09:54:54 +00:00
Tom Hvitved
6ee231fac5
Ruby: Add more tests for flow through constructors
2023-03-13 10:52:01 +01:00
Geoffrey White
0d1be2294c
Merge branch 'main' into typealiastests
2023-03-13 09:38:54 +00:00
Geoffrey White
8d666d00c2
Swift: Update codegen.
2023-03-13 09:21:44 +00:00
Geoffrey White
9a5dbd078e
Merge pull request #12485 from geoffw0/qldocraw
...
Swift: Add generated QLDoc to the Raw.qll file.
2023-03-13 09:10:55 +00:00
Jeroen Ketema
bd47c4f9ec
C++: Update .expected after frontend changes
2023-03-13 09:40:10 +01:00
Tony Torralba
e834f9302e
Fix Apache Commons HTTP Client and SQL Injection tests
2023-03-13 09:36:53 +01:00
Harry Maclean
9c3d141c9c
Ruby: Add change note
2023-03-13 18:57:55 +13:00
dependabot[bot]
7ab3bb1239
Bump serde from 1.0.154 to 1.0.155 in /ql
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.154 to 1.0.155.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.155 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-13 04:10:45 +00:00
Harry Maclean
fe995dd99b
Ruby: ActiveRecord::Connection.execute SQL sink
2023-03-13 09:03:54 +13:00
Harry Maclean
025cd34dab
Ruby: Taint flow through ActionController params
...
We were not recognising "require" as returning a Parameters instance.
2023-03-13 08:52:41 +13:00
Harry Maclean
2d95b6a049
Ruby: Add count_by_sql as SQL sink
2023-03-13 08:40:32 +13:00
Harry Maclean
c97dccf0de
Ruby: Add reorder as a SQL sink
...
In recent versions of Rails this method doesn't seem to be vulnerable,
but it may be in previous versions. There's a slight FP risk here, but
I think it is small.
2023-03-13 08:38:17 +13:00
Mathias Vorreiter Pedersen
ab58d4c11f
Merge pull request #12415 from github/rdmarsh2/swift/constructor-flow
2023-03-10 23:16:37 +00:00
Arthur Baars
c67bfff33b
Ruby: strip \\?\ from display paths
2023-03-10 22:32:11 +01:00
Arthur Baars
4bfcc31ef0
Ruby: support long paths on Windows
2023-03-10 22:32:11 +01:00
Ed Minnix
59eea2a4a3
Change FlowState classes to use IPAs instead of string
2023-03-10 15:24:04 -05:00
Ed Minnix
b6eeac5bc8
Update names to new naming convention
2023-03-10 15:13:58 -05:00
Robert Marsh
d9732361fc
Swift: autoformat
2023-03-10 19:28:01 +00:00
Geoffrey White
fbde174a89
Swift: Autoformat.
2023-03-10 19:02:54 +00:00
Arthur Baars
50ff82fe51
Merge pull request #12482 from github/revert-12245-calumgrant/codeowners-dynamic
...
Revert "Update CODEOWNERS for dynamic teams"
2023-03-10 19:44:12 +01:00
Geoffrey White
7ddd08fb1e
Swift: Extend an extractor test as well.
2023-03-10 18:35:03 +00:00
Geoffrey White
f6e7837cb8
Swift: Extend the PrintAST test as well.
2023-03-10 18:28:11 +00:00
Geoffrey White
0c900e4b8a
Swift: Add a test for aliased types.
2023-03-10 18:26:48 +00:00
Mathias Vorreiter Pedersen
d4269251be
Swift: Add QL skeleton for aliased types.
2023-03-10 18:15:40 +00:00
Arthur Baars
7b8ac609f7
Merge pull request #12478 from aibaars/js-fix-npe
...
JS: fix NPE
2023-03-10 18:49:46 +01:00
Geoffrey White
c2f6ee320f
Swift: Add QLDoc to the Raw.qll file.
2023-03-10 17:43:30 +00:00
Robert Marsh
e931d59bea
Merge pull request #12479 from jketema/simple-range-analysis-wrapper
...
C++: Introduce wrapper for the semantic range analysis mimicking the simple one
2023-03-10 10:01:28 -05:00
Edward Minnix III
e2acc26419
Apply docs review suggestions
...
- Punctuation
- Rewording
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-03-10 09:47:47 -05:00
Calum Grant
1b2ba15753
Revert "Update CODEOWNERS for dynamic teams"
2023-03-10 14:39:22 +00:00
Geoffrey White
7bd0f53df9
Swift: Update swift/summary/summary-statistics to DataFlow::ConfigSig.
2023-03-10 14:39:03 +00:00
Taus
998827f491
Merge pull request #12481 from aschackmull/all/autoformat-ignore-blame
...
Ignore auto-format commits in git blame.
2023-03-10 15:36:04 +01:00
Owen Mansel-Chan
286a56c9b3
Merge pull request #12450 from owen-mc/unexpected-directory-layout
...
Diagnostic for imports with relative package paths
2023-03-10 14:35:02 +00:00
Anders Schack-Mulligen
1e64748ffe
Dataflow: Autoformat.
2023-03-10 15:12:19 +01:00
Anders Schack-Mulligen
955cc5a1be
Ignore auto-format commits in git blame.
2023-03-10 15:08:49 +01:00
Anders Schack-Mulligen
289f921171
Dataflow: Sync.
2023-03-10 14:56:54 +01:00
Anders Schack-Mulligen
a836444bc6
Dataflow: Add some qldoc.
2023-03-10 14:56:54 +01:00
Anders Schack-Mulligen
00f0879ff5
Dataflow: Sync.
2023-03-10 14:56:54 +01:00
Anders Schack-Mulligen
cce3728edf
Dataflow: Add MergePathGraph module.
2023-03-10 14:56:54 +01:00
Anders Schack-Mulligen
52e4076684
Merge pull request #12427 from aschackmull/java/refactor-dataflow-queries-1
...
Java: Refactor some dataflow queries to the new API
2023-03-10 14:40:14 +01:00
Jeroen Ketema
faecf44870
C++: Add predicate implementations we get for free from simple range analysis
2023-03-10 14:31:15 +01:00
Geoffrey White
7f06109a4f
Swift: Add detail to the swift/summary/summary-statistics query.
2023-03-10 13:20:25 +00:00
Jeroen Ketema
0e45c9982b
C++: Introduce wrapper for the semantic range analysis mimicking the simple one
2023-03-10 13:30:24 +01:00
Owen Mansel-Chan
674799af8c
Implement diagnostic for relative package paths
2023-03-10 12:20:44 +00:00
Owen Mansel-Chan
d6712b2111
Add test for unexpected directory layout error
2023-03-10 12:20:43 +00:00
Arthur Baars
1a70297662
JS: fix NPE
2023-03-10 12:52:41 +01:00
Tom Hvitved
32a699e34a
Data flow: Sync files
2023-03-10 12:43:21 +01:00
Tom Hvitved
6eea906bbf
Data flow: Synthesize post-update nodes for callback arguments inside summarized callables
2023-03-10 12:43:21 +01:00
Anders Schack-Mulligen
64dd8b9488
Merge branch 'main' into java/refactor-dataflow-queries-1
2023-03-10 12:38:06 +01:00
Tony Torralba
746c2d1fca
Add change note
2023-03-10 12:35:14 +01:00
Tony Torralba
f07f0888aa
Fix tests
2023-03-10 12:35:13 +01:00
Tony Torralba
393a0759db
More stubs
2023-03-10 12:35:13 +01:00
Tony Torralba
8aa80882ea
Sync files
2023-03-10 12:35:13 +01:00
Tony Torralba
8065714ebe
Add tests
2023-03-10 12:35:13 +01:00
Tony Torralba
eef3dc81df
Add stubs
2023-03-10 12:35:13 +01:00
Tony Torralba
698dfa46fc
Minor fixes to the models
2023-03-10 12:35:13 +01:00
Tony Torralba
77d9bac52d
Support ai-generated summaries
2023-03-10 12:35:13 +01:00
Stephan Brandauer
0c19da926c
Update MaD Declarations after Triage
2023-03-10 12:35:13 +01:00
Anders Schack-Mulligen
83569911ae
Merge pull request #12230 from aschackmull/all/autoformat
...
Mass autoformat with class and module declarations format fix
2023-03-10 12:29:34 +01:00
Tony Torralba
ec7e486a3b
Swift: update generated files' hashes
2023-03-10 11:10:34 +01:00
Anders Schack-Mulligen
159d8e978c
Dataflow: one more autoformat post rebase
2023-03-10 10:04:35 +01:00
Harry Maclean
4a6bceccf5
Merge pull request #7017 from github/nickrolfe/extractor_options
...
Ruby: expose TRAP compression option
2023-03-10 21:46:53 +13:00
Anders Schack-Mulligen
3640b6d3a8
Shared: Autoformat
2023-03-10 09:41:20 +01:00
Anders Schack-Mulligen
711d7057f7
Swift: Autoformat
2023-03-10 09:41:20 +01:00
Anders Schack-Mulligen
08c658e66b
Go: Autoformat
2023-03-10 09:41:20 +01:00
Anders Schack-Mulligen
a5d229903d
Ruby: Autoformat
2023-03-10 09:41:20 +01:00
Anders Schack-Mulligen
8d97fe9ed3
JavaScript: Autoformat
2023-03-10 09:41:20 +01:00
Anders Schack-Mulligen
21d5fa836b
Python: Autoformat
2023-03-10 09:41:17 +01:00
Anders Schack-Mulligen
ef97e539ec
C/C++: Autoformat
2023-03-10 09:39:41 +01:00
Anders Schack-Mulligen
5ad7ed49dd
C#: Autoformat
2023-03-10 09:39:41 +01:00
Anders Schack-Mulligen
730eae9521
Java: Autoformat
2023-03-10 09:39:41 +01:00
Harry Maclean
9cf2acface
Ruby: Make trap option title consistent with C#
2023-03-10 21:11:58 +13:00
Harry Maclean
cf64e0e85f
Ruby: trap_compression -> trap.compression
...
Change the trap_compression extractor option to be an object `trap` with
a nested option `compression`. This means that on the command line you
would supply the option as follows:
codeql database create --extractor-option trap.compression=gzip
This is a little less jarring than the previous design, which would use
underscores amonst the hyphens:
codeql database create --extractor-option trap_compression=gzip
2023-03-10 19:18:49 +13:00
Nick Rolfe
7649772935
Expose TRAP compression option via the new extractor options feature.
2023-03-10 19:09:51 +13:00
Arthur Baars
348165205c
Merge pull request #12442 from aibaars/diagnostics-tests
...
Ruby: add some integration tests for diagnostic messages
2023-03-09 21:58:42 +01:00
Henry Mercer
a816b813d1
Merge pull request #12470 from github/codeql-ci/atm/release-0.4.9
...
JS: Bump version numbers of ML-powered packs after 0.4.9 release
2023-03-09 18:40:31 +00:00
Mathias Vorreiter Pedersen
d25a312557
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-09 18:38:00 +00:00
Mathias Vorreiter Pedersen
d89b8ba446
Merge pull request #12469 from MathiasVP/speedup-CleartextSqliteDatabase
...
C++: Restrict sinks in `cpp/cleartext-storage-database`
2023-03-09 18:33:51 +00:00
Michael B. Gale
d627358f7e
Merge pull request #12453 from github/mbg/csharp/fix-env-prop
2023-03-09 17:55:48 +00:00
Henry Mercer
079451142e
Merge branch 'main' into codeql-ci/atm/release-0.4.9
2023-03-09 16:08:22 +00:00
Jeroen Ketema
67a07e98a2
Merge pull request #12339 from jketema/new-docs
...
C++: Add copy of dataflow docs for new use-use dataflow library
2023-03-09 16:56:43 +01:00
yoff
b3fa844322
Merge pull request #12461 from yoff/python/add-api-test-captured
...
python: add test documenting effect of scopes
2023-03-09 16:55:27 +01:00
github-actions[bot]
a82aaea514
JS: Bump version of ML-powered library and query packs to 0.4.10
2023-03-09 15:54:49 +00:00
Jeroen Ketema
13483be5ed
Merge pull request #12465 from jketema/get-a-use-2
...
C++: Use `getAUse` in `getIRRepresentationOfIndirectOperand`
2023-03-09 16:54:32 +01:00
Owen Mansel-Chan
250a0a71e1
Merge pull request #12466 from owen-mc/update-go-diagnostics
...
The source name of a diagnostic should not change
2023-03-09 15:51:32 +00:00
Edward Minnix III
3ee14f914b
Merge pull request #50 from egregius313/egregius313/refactor-apk-query-using-dataflow-modules
...
Convert dataflow configurations in Arbitrary APK Installation query to use new module-configuration
2023-03-09 10:50:02 -05:00
github-actions[bot]
f0bb25bfce
JS: Bump patch version of ML-powered library and query packs
2023-03-09 15:46:31 +00:00
Edward Minnix III
e8f1f364c5
Refactor to module api for PathNodes
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-03-09 10:45:55 -05:00
Ed Minnix
cb53ff70a6
Remove unused imports
2023-03-09 10:44:59 -05:00
Mathias Vorreiter Pedersen
84a61d1e02
C++: No need for 'matches'.
2023-03-09 15:36:26 +00:00
Mathias Vorreiter Pedersen
59402eb754
Merge pull request #12462 from MathiasVP/disable-std-order-in-fwd-flow-stage-1
...
DataFlow: Disable standard order in `Stage1::fwdFlow`
2023-03-09 15:30:05 +00:00
Arthur Baars
eadc605c0e
Merge pull request #12460 from github/dependabot/cargo/ql/serde-1.0.154
...
Bump serde from 1.0.152 to 1.0.154 in /ql
2023-03-09 16:25:18 +01:00
Jeroen Ketema
a40a578576
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp.rst
2023-03-09 16:24:13 +01:00
Mathias Vorreiter Pedersen
2931e5dea8
C++: Reduce duplication by blocking flow into sources (since we'll already be considering flow starting at those sources) and out of sinks (since we'll already be alerting on this sink if it's relevant).
2023-03-09 14:59:13 +00:00
Mathias Vorreiter Pedersen
03ba7ea851
C++: Move the weird global property 'not sqlite_encryption_used()' from the sink definition to the source definition. The dataflow library starts tracking flow from the sources, so it's better to to rule out the entire database in the source definition than in the sink definition.
2023-03-09 14:59:13 +00:00
Mathias Vorreiter Pedersen
7819a7d2bc
C++: Severely restrict the set of sinks in 'cpp/cleartext-storage-database'. This reduces the number of sinks considered on the 'sysown/proxysql' from > 62000 sinks to ~1000 sinks.
2023-03-09 14:59:13 +00:00
Alex Ford
5ef71f9d28
Merge pull request #12306 from alexrford/rb/more-expr-nodes
...
Ruby: ensure that all Ast `Expr`s have a dataflow node type more precise than `ExprNode`
2023-03-09 14:54:34 +00:00
Rasmus Wriedt Larsen
293f791611
Python: Remove solved consistency work-around
...
This has not been needed for some time now, but hadn't been removed
before now.
2023-03-09 15:45:20 +01:00
Asger F
6e744093e2
Merge pull request #12398 from github/post-release-prep/codeql-cli-2.12.4
...
Post-release preparation for codeql-cli-2.12.4
2023-03-09 15:38:21 +01:00
Jeroen Ketema
de97ae38dc
C++: C++: Use getAUse in getIRRepresentationOfIndirectOperand
2023-03-09 15:15:00 +01:00
Rasmus Wriedt Larsen
38fe9b71b9
Ruby: Use new parameter position for synthetic hash-splat instead
...
We wanted to ensure that a callable did not have multiple parameters
with same parameter position. Originally we fixed this with
e0bd210797 . This commit reverts that and
solves it by introducing a new parameter position instead.
2023-03-09 15:05:07 +01:00
Owen Mansel-Chan
f87b307ddb
The source name of a diagnostic should not change
2023-03-09 14:00:52 +00:00
Rasmus Wriedt Larsen
bdda0f574b
Python: Use new parameter position for synthetic **kwargs instead
...
We wanted to ensure that a callable did not have multiple parameters
with same parameter position. Originally we fixed this with
02b3a1b515 (like Ruby). This commit
reverts that and solves it by introducing a new parameter position
instead.
2023-03-09 15:00:20 +01:00
Jeroen Ketema
30ad113d4c
Merge pull request #12454 from jketema/get-a-use
...
C++: Use `getAUse` in `getIRRepresentationOfOperand`
2023-03-09 14:14:23 +01:00
dependabot[bot]
dd3e357ad3
Bump serde from 1.0.152 to 1.0.154 in /ql
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.154.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.154 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-09 12:30:57 +00:00
dependabot[bot]
a731a82a10
Merge pull request #12459 from github/dependabot/cargo/ruby/serde-1.0.154
2023-03-09 12:28:57 +00:00
Arthur Baars
c98e0fa0b4
Ruby: fix comment
2023-03-09 13:14:57 +01:00
Arthur Baars
8096f86224
Ruby: lower severity of parse error to warning
2023-03-09 13:14:57 +01:00
Arthur Baars
942cd7c275
Merge pull request #12113 from erik-krogh/diagnostics
...
JS: Implement diagnostics
2023-03-09 12:57:06 +01:00
Mathias Vorreiter Pedersen
2bbeb7383f
Merge pull request #12452 from MathiasVP/inline-this-could-access-member
...
C++: Inline `thisCouldAccessMember`
2023-03-09 11:38:50 +00:00
Mathias Vorreiter Pedersen
1f77f77153
DataFlow: Sync identical files.
2023-03-09 10:41:15 +00:00
Mathias Vorreiter Pedersen
c7b41ca470
C++: Disable standard order for 'fwdFlow' in stage 1 of dataflow.
2023-03-09 10:41:06 +00:00
Owen Mansel-Chan
55003300fe
Merge pull request #12341 from owen-mc/go-tools-status
...
Go: tools status page support
2023-03-09 09:59:01 +00:00
Jeroen Ketema
e5ce27fbf9
C++: Fix a number of instances where a dataflow node did not have a location
2023-03-09 10:32:30 +01:00
Jeroen Ketema
31fa230c0d
C++: Remove toStringImpl predicate that is overridden in every subclass
2023-03-09 10:29:17 +01:00
Jeroen Ketema
4ee13a3234
C++: Remove getLocationImpl predicate that is always overridden
...
Also remove the predicate referred to in ints implementation, as it is no
longer used.
2023-03-09 10:27:15 +01:00
Jeroen Ketema
791f5913d2
C++: Fix multiple getLocation consistency error in use-use dataflow
2023-03-09 10:25:02 +01:00
Mathias Vorreiter Pedersen
f19f7967c2
C++: Fix join order.
...
Before (I stopped midway):
```
(72s) Tuple counts for _#Class#bacd9b46::Class::getADerivedClass#0#dispredPlus#ff_#Declaration#4bfb53be::AccessHolder::getE__#antijoin_rhs#1/3@fb0627h8 after 1m4s:
...
20000 ~0% {5} r28 = r26 UNION r27
224367484 ~7% {9} r29 = JOIN r28 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff_1023#join_rhs ON FIRST 1 OUTPUT Rhs.3, "protected", Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2', Lhs.0, Lhs.4, Rhs.1, Rhs.2
111914129 ~0% {7} r30 = JOIN r29 WITH specifiers ON FIRST 2 OUTPUT Lhs.6, Lhs.2 'arg0', Lhs.3 'arg1', Lhs.4 'arg2', Lhs.5, Lhs.7, Lhs.8
123503367 ~0% {8} r31 = JOIN r30 WITH Declaration#4bfb53be::DirectAccessHolder::isFriendOfOrEqualTo#1#dispred#ff ON FIRST 1 OUTPUT Lhs.3 'arg2', Rhs.1, Lhs.1 'arg0', Lhs.2 'arg1', Lhs.4, Lhs.0, Lhs.5, Lhs.6
331748250 ~0% {10} r32 = JOIN r31 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 2 OUTPUT Lhs.2 'arg0', Lhs.3 'arg1', Lhs.0 'arg2', Lhs.4, Lhs.5, Lhs.6, Lhs.7, Lhs.1, Rhs.2, Rhs.3
331748250 ~0% {10} r33 = SELECT r32 ON In.8 = In.9
331748250 ~2% {9} r34 = SCAN r33 OUTPUT In.7, In.5, In.8, In.0 'arg0', In.1 'arg1', In.2 'arg2', In.3, In.4, In.6
38000 ~4% {10} r35 = JOIN r34 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 3 OUTPUT Rhs.3, Lhs.3 'arg0', Lhs.4 'arg1', Lhs.5 'arg2', Lhs.6, Lhs.7, Lhs.1, Lhs.8, Lhs.0, Lhs.2
37500 ~0% {11} r36 = JOIN r35 WITH specifiers ON FIRST 1 OUTPUT Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2', Lhs.4, Lhs.5, Lhs.6, Lhs.7, Lhs.8, Lhs.9, Lhs.0, Rhs.1
28973 ~0% {11} r37 = SELECT r36 ON In.10 >= "protected"
28973 ~98% {6} r38 = SCAN r37 OUTPUT In.8, "public", In.0 'arg0', In.1 'arg1', In.2 'arg2', In.6
111913629 ~6% {7} r39 = JOIN r29 WITH specifiers ON FIRST 2 OUTPUT Lhs.6, Lhs.4 'arg2', Lhs.2 'arg0', Lhs.3 'arg1', Lhs.5, Lhs.7, Lhs.8
110582830 ~0% {8} r40 = JOIN r39 WITH Declaration#4bfb53be::DirectAccessHolder::isFriendOfOrEqualTo#1#dispred#ff ON FIRST 2 OUTPUT Lhs.1 'arg2', Lhs.5, Lhs.6, Lhs.2 'arg0', Lhs.3 'arg1', Lhs.1 'arg2', Lhs.4, Lhs.0
123503367 ~0% {8} r41 = JOIN r30 WITH Declaration#4bfb53be::DirectAccessHolder::isFriendOfOrEqualTo#1#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.3 'arg2', Lhs.1 'arg0', Lhs.2 'arg1', Lhs.4, Lhs.0, Lhs.5, Lhs.6
0 ~0% {8} r42 = JOIN r41 WITH #Class#bacd9b46::Class::getADerivedClass#0#dispredPlus#ff ON FIRST 2 OUTPUT Lhs.0, Lhs.6, Lhs.7, Lhs.2 'arg0', Lhs.3 'arg1', Lhs.1 'arg2', Lhs.4, Lhs.5
110582830 ~0% {8} r43 = r40 UNION r42
15000 ~6% {8} r44 = JOIN r43 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 3 OUTPUT Lhs.5 'arg2', Lhs.1, Lhs.3 'arg0', Lhs.4 'arg1', Lhs.6, Lhs.7, Lhs.2, Lhs.0
...
```
After:
```
Tuple counts for _#Class#bacd9b46::Class::getADerivedClass#0#dispredPlus#ff_#Declaration#4bfb53be::AccessHolder::getE__#antijoin_rhs#1/3@997a3ai9 after 744ms:
...
78600 ~8% {6} r29 = r26 UNION r28
437816 ~0% {9} r30 = JOIN r29 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 1 OUTPUT Lhs.1 'arg0', Lhs.2 'arg1', Lhs.0 'arg2', Lhs.3, Lhs.4, Lhs.5, Rhs.1, Rhs.2, Rhs.3
430928 ~0% {9} r31 = SELECT r30 ON In.7 = In.8
430928 ~0% {7} r32 = SCAN r31 OUTPUT In.5, In.6, In.0 'arg0', In.1 'arg1', In.2 'arg2', In.3, In.7
1096333 ~0% {7} r33 = JOIN r32 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 2 OUTPUT Lhs.1, Lhs.5, Rhs.2, Lhs.2 'arg0', Lhs.3 'arg1', Lhs.4 'arg2', Lhs.6
777970 ~0% {8} r34 = JOIN r33 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 3 OUTPUT Lhs.0, Lhs.1, Lhs.2, Rhs.3, Lhs.3 'arg0', Lhs.4 'arg1', Lhs.5 'arg2', Lhs.6
334217 ~0% {6} r35 = JOIN r14 WITH Declaration#4bfb53be::DirectAccessHolder::isFriendOfOrEqualTo#1#dispred#ff ON FIRST 1 OUTPUT Lhs.3 'arg2', Rhs.1, Lhs.1 'arg0', Lhs.2 'arg1', Lhs.4, Lhs.0
235623 ~0% {8} r36 = JOIN r35 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 2 OUTPUT Lhs.2 'arg0', Lhs.3 'arg1', Lhs.0 'arg2', Lhs.4, Lhs.5, Lhs.1, Rhs.2, Rhs.3
235623 ~0% {8} r37 = SELECT r36 ON In.6 = In.7
235623 ~0% {7} r38 = SCAN r37 OUTPUT In.5, In.6, In.0 'arg0', In.1 'arg1', In.2 'arg2', In.3, In.4
437303 ~0% {9} r39 = JOIN r38 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff_0213#join_rhs ON FIRST 2 OUTPUT Rhs.3, Lhs.2 'arg0', Lhs.3 'arg1', Lhs.4 'arg2', Lhs.5, Lhs.6, Lhs.0, Lhs.1, Rhs.2
437303 ~4% {10} r40 = JOIN r39 WITH specifiers ON FIRST 1 OUTPUT Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2', Lhs.4, Lhs.5, Lhs.6, Lhs.7, Lhs.8, Lhs.0, Rhs.1
352102 ~1% {10} r41 = SELECT r40 ON In.9 >= "protected"
352102 ~0% {6} r42 = SCAN r41 OUTPUT In.7, In.3, In.0 'arg0', In.1 'arg1', In.2 'arg2', In.6
775332 ~0% {8} r43 = JOIN r42 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 2 OUTPUT Lhs.0, Lhs.1, Rhs.2, Rhs.3, Lhs.2 'arg0', Lhs.3 'arg1', Lhs.4 'arg2', Lhs.5
1553302 ~51% {8} r44 = r34 UNION r43
1553302 ~152% {7} r45 = JOIN r44 WITH Class#bacd9b46::Class::accessOfBaseMember#2#dispred#ffff ON FIRST 4 OUTPUT Lhs.7, "public", Lhs.4 'arg0', Lhs.5 'arg1', Lhs.6 'arg2', Lhs.2, Lhs.3
...
```
2023-03-09 09:23:56 +00:00
Rasmus Lerchedahl Petersen
32d95834d1
python: add test documenting effect of scopes
2023-03-09 10:19:44 +01:00
Jeroen Ketema
55da3257bf
C++: Fix multiple toString consistency error in use-use dataflow
2023-03-09 10:08:25 +01:00
Jeroen Ketema
a2248cb5a0
C++: Use getAUse in getIRRepresentationOfOperand
2023-03-09 09:45:54 +01:00
Jeroen Ketema
fadd23a2a0
Merge pull request #12443 from jketema/even-more-configsig
...
C++: Update more queries with `DataFlow::ConfigSig`
2023-03-09 08:54:31 +01:00
dependabot[bot]
060cd9fada
Bump serde from 1.0.152 to 1.0.154 in /ruby
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.154.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.154 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-09 04:06:43 +00:00
Ed Minnix
48ca1d0b72
Convert the taint tracking configurations to modules
2023-03-08 19:51:54 -05:00
Ed Minnix
ae0b4970ac
Remove commented out code
2023-03-08 19:21:58 -05:00
Ed Minnix
da43a61506
Convert dataflow configuration to using new module-configuration
2023-03-08 19:19:00 -05:00
Chris Smowton
db5bd98781
Return on failure to create file
2023-03-08 22:48:57 +00:00
Owen Mansel-Chan
820de5d36f
Remove fatal/panic exits from diagnostic code
2023-03-08 22:00:34 +00:00
Ed Minnix
eeb9a88c3a
Renamed test file to follow camel casing convention
2023-03-08 13:56:25 -05:00
Ed Minnix
f680a2ecbf
Update test java file to support InlineExpectationsTest
2023-03-08 13:50:02 -05:00
Jeroen Ketema
57c8f5111d
C++: Address docs review comments
2023-03-08 19:38:25 +01:00
Ed Minnix
bfd430b446
Remove qlref tests
2023-03-08 13:21:31 -05:00
Ed Minnix
24c9a516c9
Add QLdoc to ArbitraryApkInstallationQuery.qll
2023-03-08 13:21:09 -05:00
Chris Smowton
cacae957b5
Merge pull request #12441 from smowton/smowton/fix/golang-incorrect-integer-conversion-sanitizer
...
Go: fix incorrect-integer-conversion sanitizer
2023-03-08 18:19:46 +00:00
Jeroen Ketema
3f905f2675
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp-new.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-03-08 19:10:11 +01:00
Michael B. Gale
695160d480
Remove check for stdout redirection
2023-03-08 18:09:09 +00:00
Jeroen Ketema
f6e05836f1
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp-new.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-03-08 19:08:35 +01:00
Jeroen Ketema
2ecc8a5abe
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp-new.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-03-08 19:08:19 +01:00
Mathias Vorreiter Pedersen
540ce1f0db
Contrary to what the QLDoc says, this predicate was way too large to be
...
evaluated on the 'quick-lint/quick-lint-js' project.
Before:
```
Most expensive predicates for completed query RuleOfTwo.ql:
time | evals | max @ iter | predicate
------|-------|--------------|----------
25m9s | | | Declaration#4bfb53be::DirectAccessHolder::thisCouldAccessMember#3#dispred#ffff@8a38e2tm
17m1s | | | Declaration#4bfb53be::DirectAccessHolder::thisCouldAccessMember#3#dispred#fffb@0796c497
3.5s | 130 | 116ms @ 3 | Declaration#4bfb53be::DirectAccessHolder::thisCanAccessClassTrans#fff@926a68j9
3.3s | | | Declaration#4bfb53be::DirectAccessHolder::thisCouldAccessMember#3#dispred#fffb_1230#join_rhs@25e9ffj8
1.7s | 3 | 1.7s @ 1 | Element#496c7fc2::ElementBase::toString#0#dispred#ff@fcd81c49
1.3s | | | Declaration#4bfb53be::DirectAccessHolder::thisCouldAccessMember#3#dispred#fffb_0132#join_rhs@9c2065t1
1.3s | | | Declaration#4bfb53be::DirectAccessHolder::thisCouldAccessMember#3#dispred#ffff_0132#join_rhs@672330eh
1.1s | | | Declaration#4bfb53be::DirectAccessHolder::thisCanAccessClassTrans#fff_102#join_rhs@f7d5464o
829ms | 336 | 85ms @ 6 | Enclosing#c50c5fbf::exprEnclosingElement#1#ff@e34d9wq1
615ms | | | Expr#ef463c5d::Expr::getType#ff@e265e79q
```
After:
```
Most expensive predicates for completed query RuleOfTwo.ql:
time | evals | max @ iter | predicate
------|-------|-------------|----------
11.8s | | | _#Class#bacd9b46::Class::getADerivedClass#0#dispredPlus#ff_#Declaration#4bfb53be::AccessHolder::getE__#antijoin_rhs#1@fb0627h8
4.8s | | | _#Class#bacd9b46::Class::getADerivedClass#0#dispredPlus#ff_#Declaration#4bfb53be::AccessHolder::getE__#antijoin_rhs#4@c43dbeia
3.8s | | | _#Class#bacd9b46::Class::getADerivedClass#0#dispredPlus#ff_#Declaration#4bfb53be::AccessHolder::getE__#antijoin_rhs#3@313e5963
3.4s | 130 | 93ms @ 3 | Declaration#4bfb53be::DirectAccessHolder::thisCanAccessClassTrans#fff@a0289bfg
1.5s | 3 | 1.5s @ 1 | Element#496c7fc2::ElementBase::toString#0#dispred#ff@fcd81c49
806ms | | | Declaration#4bfb53be::DirectAccessHolder::thisCanAccessClassTrans#fff_021#join_rhs@cc1b76s7
721ms | 336 | 61ms @ 5 | Enclosing#c50c5fbf::exprEnclosingElement#1#ff@e34d9wq1
489ms | | | Expr#ef463c5d::Expr::getType#ff@e265e79q
337ms | 130 | 62ms @ 5 | Class#bacd9b46::Class::accessOfBaseMemberMulti#ffff@0165b0dr
329ms | | | Variable#7a968d4e::ParameterDeclarationEntry::getAnonymousParameterDescription#0#dispred#ff@0f12bdvq
211ms | | | exprs_10#join_rhs@5481143i
```
2023-03-08 17:44:19 +00:00
Ed Minnix
882e909862
Renamed ArbitraryAPKInstallation to ArbitraryApkInstallation
2023-03-08 12:16:46 -05:00
Ed Minnix
5fb5f1b23b
Begin InlineExpectationsTest
2023-03-08 12:14:45 -05:00
Ed Minnix
3ea167cadf
Split ArbitraryApkInstallation file into 3 files
2023-03-08 12:12:11 -05:00
Edward Minnix III
2d1088e923
Change severity level to error
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-03-08 12:12:11 -05:00
Ed Minnix
0eaad4136e
Add RemoteFlowSource as a valid source
2023-03-08 12:12:11 -05:00
Ed Minnix
4d51e4fed0
Change description wording
2023-03-08 12:12:11 -05:00
Ed Minnix
10cd6328dc
Add missing QLDocs
2023-03-08 12:12:11 -05:00
Edward Minnix III
8ec5b5b7fa
Apply suggestions from code review
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2023-03-08 12:12:10 -05:00
Ed Minnix
8fcf00b73d
Test improvements
2023-03-08 12:12:10 -05:00
Ed Minnix
fa416564c7
Documentation and examples
2023-03-08 12:12:10 -05:00
Ed Minnix
d3d712fbff
Remove Url#parse as a source
2023-03-08 12:12:10 -05:00
Ed Minnix
5f4e8e3e6a
Add test cases relating to intents with the ACTION_INSTALL_PACKAGE action
2023-03-08 12:12:10 -05:00
Ed Minnix
f03e90f894
Remove http(s) literal sources
2023-03-08 12:12:10 -05:00
Edward Minnix III
839b88a4bc
Formatting, capitalization, and typos
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-03-08 12:12:10 -05:00
Ed Minnix
b606271a61
Additional documentation
2023-03-08 12:12:10 -05:00
Ed Minnix
01b20b3a26
Added external storage test case
2023-03-08 12:12:10 -05:00
Ed Minnix
c448481bf7
Added test expectations
2023-03-08 12:12:10 -05:00
Ed Minnix
12f78dbed4
Add DataFlow::PathGraph import
2023-03-08 12:12:10 -05:00
Ed Minnix
cd5a46123e
Add a change note
2023-03-08 12:12:10 -05:00
Ed Minnix
2d6cdff14b
Add period to alert message
2023-03-08 12:12:10 -05:00
Ed Minnix
0ec4df28f5
Add query metadata
2023-03-08 12:12:10 -05:00
Ed Minnix
3f589722c2
Refactor query to change returned source
2023-03-08 12:12:10 -05:00
Ed Minnix
618b608962
Arbitrary APK Installation MVP
2023-03-08 12:12:10 -05:00
Owen Mansel-Chan
9fc119cc55
Rearrange diagnostic error message
...
The context should come in the middle and the call to action should come
last.
2023-03-08 17:09:52 +00:00
Robert Marsh
6bfa08c5cc
Merge branch 'main' into rdmarsh2/swift/constructor-flow
2023-03-08 16:40:11 +00:00
Owen Mansel-Chan
63d3b3ff2a
Fix diagnostic-limit-reached visibility and location
2023-03-08 16:34:29 +00:00
Owen Mansel-Chan
0d6f17ec90
Do not use field internal, which is deprecated
2023-03-08 16:34:01 +00:00
Robert Marsh
3bf3876c14
Swift: fix FPs with inout params in inits
2023-03-08 16:20:39 +00:00
Owen Mansel-Chan
17c550bc88
Address review comments
2023-03-08 15:51:45 +00:00
Arthur Baars
7ab0f88f78
JS: add link to docs to parse error diagnostic
2023-03-08 16:47:43 +01:00
Arthur Baars
ebf0bb889b
Ruby: add some integration tests for diagnostic messages
2023-03-08 16:35:43 +01:00
Arthur Baars
e5be8ab1e5
JS: add integration test for diagnostic messages
2023-03-08 16:04:49 +01:00
Jeroen Ketema
30cbc91092
C++: Update XXE XML query with DataFlow::ConfigSig
2023-03-08 15:04:53 +01:00
Jeroen Ketema
6f2407412e
C++: Update some dataflow tests to use DataFlow::ConfigSig
2023-03-08 15:04:53 +01:00
Jeroen Ketema
8253f2d343
C++: Update UnsafeDaclSecurityDescriptor with DataFlow::ConfigSig
2023-03-08 15:04:53 +01:00
Jeroen Ketema
7fe1a9431c
C++: Update PotentiallyExposedSystemData with DataFlow::ConfigSig
2023-03-08 15:04:53 +01:00
Jeroen Ketema
53aa34bdd3
C++: Update UnsafeCreateProcessCall with DataFlow::ConfigSig
2023-03-08 15:04:53 +01:00
Jeroen Ketema
af612a12de
C++: Update TlsSettingsMisconfiguration with DataFlow::ConfigSig
2023-03-08 15:04:52 +01:00
Jeroen Ketema
4363a8ea30
C++: Update leap year queries with DataFlow::ConfigSig
2023-03-08 15:04:52 +01:00
Jeroen Ketema
e65ba13da4
C++: Update NonConstantFormat with DataFlow::ConfigSig
2023-03-08 15:04:52 +01:00
Jeroen Ketema
661160a98e
C++: Update PrivateCleartextWrite with DataFlow::ConfigSig
2023-03-08 15:04:45 +01:00
Michael B. Gale
ce937e78c0
Merge pull request #12383 from github/mbg/csharp/fix/diag-filename
...
C#: Append process id to diagnostics filename
2023-03-08 14:04:29 +00:00
Arthur Baars
22c6c53993
Merge pull request #12434 from aibaars/diagnostics-links
...
Ruby: add some links to diagnostic messages
2023-03-08 14:41:46 +01:00
Mathias Vorreiter Pedersen
a247a8b3ea
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-08 13:35:35 +00:00
Mathias Vorreiter Pedersen
e68bb53a6b
Merge pull request #12435 from jketema/more-config
...
C++: Convert a number of data flow based queries to use `ConfigSig`
2023-03-08 13:25:54 +00:00
Mathias Vorreiter Pedersen
619266d04b
C++: Fix floating point imprecision.
2023-03-08 13:24:01 +00:00
Mathias Vorreiter Pedersen
ce0f2b1788
C++: Accept test changes.
2023-03-08 13:23:58 +00:00
Mathias Vorreiter Pedersen
b0cb65403b
C++: Add range analysis for unary minus.
2023-03-08 13:23:18 +00:00
Mathias Vorreiter Pedersen
4cb5bea2c6
C++: Add simple negation test cases.
2023-03-08 13:23:05 +00:00
Michael Nebel
29ee1bda50
Merge pull request #12369 from michaelnebel/csharp/unsafestubs
...
C#: .NET 7 Runtime and ASP.NET 7 stubs.
2023-03-08 13:54:23 +01:00
Michael Nebel
6adc04eca0
Merge pull request #12370 from michaelnebel/csharp/unsafemember
...
C#: Improve the `unsafe` predicate on Modifiable.
2023-03-08 13:47:59 +01:00
Anders Schack-Mulligen
e7f85673e9
Java: Fix tests and make modules private
2023-03-08 13:35:25 +01:00
Michael B. Gale
71d0a2378b
Append process id to diagnostics filename
2023-03-08 12:15:46 +00:00
Arthur Baars
2d6f3ed6c2
Address comments
2023-03-08 13:10:03 +01:00
Mathias Vorreiter Pedersen
c84d88f5aa
Merge pull request #12429 from MathiasVP/actually-implement-language-specific-flow-into-call-node-cand1
...
C++: Implement `getAdditionalFlowIntoCallNodeTerm`
2023-03-08 11:58:56 +00:00
yoff
a45a0ee50d
Merge pull request #12425 from RasmusWL/arg-passing-problem
...
Python: Add test of keyword argument with same name as positional-only parameter
2023-03-08 12:01:26 +01:00
Mathias Vorreiter Pedersen
8308c661b4
Merge pull request #12432 from MathiasVP/fix-ir-uninitialized-node
...
C++: Fix `asUninitialized`
2023-03-08 10:03:46 +00:00
Chris Smowton
a63a4c29e2
Go: fix incorrect-integer-conversion sanitizer
...
This was amended as part of https://github.com/github/codeql/pull/12186 , but the conversion was inadequate because the new implementation didn't work when a sink (type conversion) led directly to a non-`localTaintStep` step, such as a store step or an interprocedural step. Here I move the sink back one step to the argument of the type
conversion and sanitize the result of the conversion instead, to ensure there is always a unique local successor to a sink.
This should eliminate unexpected extra results that resulted from https://github.com/github/codeql/pull/12186 . Independently there are also *lost* results that stem from needing a higher `fieldFlowBranchLimit` that are not addressed in this PR, but raising that limit is a performance risk and so I will address this separately.
2023-03-08 09:48:35 +00:00
Mathias Vorreiter Pedersen
5a6b94eda2
C++: Respond to PR reviews.
2023-03-08 09:38:56 +00:00
Michael Nebel
0714310661
C#: Add some more test examples.
2023-03-08 10:14:49 +01:00
Mathias Vorreiter Pedersen
263b208282
C++: Disambiguate a test annotation.
2023-03-08 09:07:07 +00:00
Michael Nebel
7ce5c0d55d
C#: Add change note.
2023-03-08 10:02:28 +01:00
Michael Nebel
c88f52c63e
C#: Add stubs test case.
2023-03-08 10:02:27 +01:00
Michael Nebel
b6d97b07bf
C#: Also print the unsafe keyword for eg. classes when creating stubs.
2023-03-08 10:02:27 +01:00
Michael Nebel
67e7b8fc23
C#: If a type (or any child of a type) is a pointer like type then it is unsafe.
2023-03-08 10:02:27 +01:00
Jeroen Ketema
5391b13db9
C++: Make dataflow configuration modules private in qll files
2023-03-08 09:18:09 +01:00
Jeroen Ketema
0f8a12f3ac
C++: Add change note for deprecated data flow configurations in qll files
2023-03-08 09:00:43 +01:00
Robert Marsh
94d80b0e87
Swift: accept LocalTaint test for constructor flow
2023-03-07 21:17:26 +00:00
Robert Marsh
86fd21de45
Swift: respond to PR comments on constructor flow
2023-03-07 21:17:01 +00:00
Paolo Tranquilli
a4c0a0353f
Merge pull request #12426 from github/redsun82/cpp-file-permissions-example
...
C++: fix example code for `FilePermissions.qll`
2023-03-07 19:55:46 +01:00
Jeroen Ketema
13bdd9c0c6
C++: Fix query compliation
...
Apparently some queries we skipped in the testing I did locally.
2023-03-07 19:16:10 +01:00
Jeroen Ketema
57c5d5f2c7
C++: Add QLDoc on configuration modules where the original class had one
2023-03-07 19:01:05 +01:00
Jeroen Ketema
0c39d1e5ca
C++: Fix query formatting
2023-03-07 18:55:58 +01:00
Jeroen Ketema
2eb2e11ef7
C++: Fix query compilation
2023-03-07 18:53:07 +01:00
AlexDenisov
6a985a3df9
Merge pull request #12392 from github/alexdenisov/mangle-builtin-types
...
Swift: mangle builtin types
2023-03-07 18:22:13 +01:00
Jeroen Ketema
fb57914751
C++: Convert a number of data flow based queries to use ConfigSig
2023-03-07 18:21:52 +01:00
Arthur Baars
858aa9ae63
Ruby: add some links to diagnostic messages
2023-03-07 17:55:13 +01:00
Mathias Vorreiter Pedersen
cc0b8bbebb
Merge pull request #12430 from MathiasVP/no-to-string-on-state-in-cast-array-pointer-arith
...
C++: Convert `cpp/upcast-array-pointer-arithmetic` to the new API
2023-03-07 16:48:15 +00:00
Alex Denisov
1283bcb860
Swift: mangle builtin types
2023-03-07 17:45:08 +01:00
AlexDenisov
d469b9711d
Merge pull request #12388 from github/alexdenisov/introduce-type-mangling
...
Swift: introduce type mangling
2023-03-07 17:44:30 +01:00
Owen Mansel-Chan
07098bf8bf
Minor refactor in diagnostics.go
2023-03-07 16:38:53 +00:00
Owen Mansel-Chan
2edccec693
Do not link to GitHub AE version of documentation
2023-03-07 16:38:53 +00:00
Owen Mansel-Chan
c28f51f820
Remove diagnostics-limit-exceeded test
...
There is no way to trigger this any more.
2023-03-07 16:38:52 +00:00
Owen Mansel-Chan
05a4fdf6d8
Put all package-not-found errors into one diagnostic
2023-03-07 16:38:52 +00:00
Owen Mansel-Chan
a4c9120a9a
Update one of the diagnostic messages
2023-03-07 16:38:52 +00:00
Owen Mansel-Chan
2c5239ff7b
Use full stops at the end of diagnostics messages
2023-03-07 16:38:51 +00:00
Owen Mansel-Chan
a7a10de9ea
Emit diagnostic to pass fourth integration tests
2023-03-07 16:38:51 +00:00
Owen Mansel-Chan
8d28253175
Add tests for fourth diagnostic (Go files found but not processed)
2023-03-07 16:38:51 +00:00
Owen Mansel-Chan
01a2e74df7
Add test for diagnostic-limit-hit diagnostic
2023-03-07 16:38:50 +00:00
Owen Mansel-Chan
b6a9f87238
Use "go/autobuilder/" as prefix for all diagnostics
2023-03-07 16:38:50 +00:00
Owen Mansel-Chan
4907e5754f
Address review comments
2023-03-07 16:38:49 +00:00
Owen Mansel-Chan
2a41e6ae66
Emit diagnostic to pass third inegration tests
2023-03-07 16:38:49 +00:00
Owen Mansel-Chan
4fe4dfbf83
Add tests for third diagnostic (package not found)
2023-03-07 16:38:49 +00:00
Owen Mansel-Chan
c0cc1c3fd5
Emit diagnostic to pass second integration test
2023-03-07 16:38:48 +00:00
Owen Mansel-Chan
3f805d3456
Remove unused param from function
2023-03-07 16:38:48 +00:00
Owen Mansel-Chan
137b2c9ef9
Add test for second diagnostic (newer go version)
2023-03-07 16:38:47 +00:00
Owen Mansel-Chan
cbb2fb9968
Emit diagnostic to pass first integration test
2023-03-07 16:38:47 +00:00
Owen Mansel-Chan
4d3b05e041
Add test for first diagnostic (different OS/arch)
2023-03-07 16:38:46 +00:00
Geoffrey White
72d6f56df1
Merge pull request #12413 from geoffw0/ptrout2
...
Swift: Permit data flow from all generic arguments
2023-03-07 16:27:12 +00:00
Mathias Vorreiter Pedersen
eea02e1ac1
C++: Accept test changes.
2023-03-07 16:18:43 +00:00
Mathias Vorreiter Pedersen
a39a6ea648
C++: Don't use indirect instructions for asUnitialized.
2023-03-07 16:18:27 +00:00
Mathias Vorreiter Pedersen
ce02de48a0
C++: Fix Code Scanning error.
2023-03-07 14:40:36 +00:00
Mathias Vorreiter Pedersen
f2b311a008
C++: We don't need to check type equivalence at the end anymore: the dataflow state now precisely tracks the types.
2023-03-07 14:31:11 +00:00
Mathias Vorreiter Pedersen
ce6366f023
C++: Use the parameterized module dataflow API in 'cpp/upcast-array-pointer-arithmetic'.
...
This allows us to swap out the old string state with the Type-based state.
2023-03-07 14:17:12 +00:00
Mathias Vorreiter Pedersen
0d1e061f5a
C++: Implement 'getAdditionalFlowIntoCallNodeTerm'.
2023-03-07 13:45:32 +00:00
Mathias Vorreiter Pedersen
63690066c5
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-03-07 13:06:43 +00:00
Mathias Vorreiter Pedersen
b054b9c5cd
Merge pull request #12408 from jketema/merge-main
...
C++: use-use dataflow merge main
2023-03-07 13:05:30 +00:00
Anders Schack-Mulligen
2288eab0fd
Java: Refactor BrokenCryptoAlgorithm, MaybeBrokenCryptoAlgorithm
2023-03-07 13:53:36 +01:00
Paolo Tranquilli
c4fd39ec3f
C++: fix example code for FilePermissions.qll
2023-03-07 13:50:20 +01:00
Arthur Baars
78a802359e
Remove references to 'ruby' in generic extractor code
2023-03-07 13:38:48 +01:00
Anders Schack-Mulligen
50935899fa
Java: Refactor XSS.ql
2023-03-07 13:33:00 +01:00
Paolo Tranquilli
bdad847584
Merge pull request #12422 from github/redsun82/cpp-scanf-fp
...
C++: add false positives to `MissingCheckScanf` test
2023-03-07 13:29:22 +01:00
Rasmus Wriedt Larsen
dda29e99b2
Python: Add test of keyword argument with same name as positional-only parameter
...
This is a bit of an edge case, but allowed. Since we currently don't
provide information on positional only arguments, we can't do much to
solve it right now.
2023-03-07 13:28:48 +01:00
Asger F
05b5aea477
JS: Changenote
2023-03-07 13:15:44 +01:00
Michael B. Gale
7627a53c49
Merge pull request #12371 from github/mbg/csharp/increase-diagnostic-visibility
...
C#: Make diagnostics visible everywhere
2023-03-07 12:13:09 +00:00
Michael B. Gale
974fdd305e
Merge pull request #12372 from github/mbg/csharp/check-integration-test-diagnostics
...
C#: Add diagnostic checks to all remaining integration tests
2023-03-07 12:11:47 +00:00
Michael B. Gale
b75f138507
Merge pull request #12385 from github/mbg/csharp/readd-tsp-support
...
C#: Add support for the tool status page
2023-03-07 12:10:52 +00:00
Asger F
856b50735d
JS: Expand test case
2023-03-07 13:04:26 +01:00
Paolo Tranquilli
429518bcea
C++: add further FP to test
2023-03-07 12:03:34 +01:00
Paolo Tranquilli
311cf4e7fd
C++: add false positives to MissingCheckScanf test
...
See https://github.com/github/codeql/issues/12412 for the initial
report.
2023-03-07 11:56:05 +01:00
Anders Schack-Mulligen
d839b4038e
Java: Refactor TaintedPath.ql
2023-03-07 11:53:03 +01:00
Anders Schack-Mulligen
cc75a1a97e
Java: Refactor RequestForgery.ql
2023-03-07 11:39:03 +01:00
Anders Schack-Mulligen
35beadc3bb
Java: Refactor SensitiveInfoLog.ql
2023-03-07 11:31:49 +01:00
Michael Nebel
40d31120d9
Merge pull request #12264 from michaelnebel/csharp/nugetnet7
...
C#: Stub generator improvements.
2023-03-07 11:30:57 +01:00
Jeroen Ketema
3a4c0a2aae
Merge pull request #12389 from jketema/more-deprecated
...
C++: Add `deprecated` to predicates that are deprecated according to the QLDoc
2023-03-07 11:21:43 +01:00
Anders Schack-Mulligen
4408482699
Java: Refactor NumericCastTainted, NumericCastTaintedLocal
2023-03-07 10:42:00 +01:00
Anders Schack-Mulligen
d4e6e77200
Java: Refactor StackTraceExposure, XSS.qll
2023-03-07 10:38:00 +01:00
Anders Schack-Mulligen
c4cf2febfb
Java: Refactor ResponseSplitting, ResponseSplittingLocal
2023-03-07 10:37:45 +01:00
Michael Nebel
af12affc36
C#: Re-generate stubs to update comments.
2023-03-07 10:35:13 +01:00
Asger F
0affd898de
JS: Track trusted type policy callbacks
2023-03-07 10:22:26 +01:00
Michael Nebel
676c352819
C#: Update expected test output.
2023-03-07 10:19:26 +01:00
Michael Nebel
e85b2ebd20
C#: Replace stub member comment with file level comment.
2023-03-07 10:19:26 +01:00
Michael Nebel
c8f7304d9b
C#: Address review comments.
2023-03-07 10:19:25 +01:00
Michael Nebel
e797b5c226
C#: Narrow the set of declarations where we make explicit interface implementations.
2023-03-07 10:19:25 +01:00
Michael Nebel
d8acc7cd17
C#: Stub generator support for explicit interface implementations of explicit conversion operators including test cases.
2023-03-07 10:19:25 +01:00
Michael Nebel
59349ed7c7
C#: Add test cases for static and virtual operators in interfaces and overlapping interface declarations.
2023-03-07 10:19:25 +01:00
Michael Nebel
50570dc3ee
C#: Only add explicit interface implementation to the generated stub if it is unique.
2023-03-07 10:19:25 +01:00
Michael Nebel
5ba59fc9a8
C#: Stub generator support for operators in interfaces and interface implementations.
2023-03-07 10:19:25 +01:00
Michael Nebel
b68e78d908
C#: Stub generator support for static virtual and static abstract interface members.
2023-03-07 10:19:25 +01:00
Michael Nebel
aa4b98bbd5
C#: The stub generator should just format whitespaces.
2023-03-07 10:19:25 +01:00
Jeroen Ketema
9ec479a2a0
C++: Update queries to use DataFlow::ConfigSig
2023-03-07 10:15:11 +01:00
Tom Hvitved
9b02eb729f
Merge pull request #12419 from hvitved/ruby/stored-xss-config-rewrite
...
Ruby: Rewrite Stored XSS query to use new data flow interface
2023-03-07 09:46:08 +01:00
Asger F
4f0e17bf97
JS: Add step to a few other queries
2023-03-07 09:39:40 +01:00
Jeroen Ketema
c9bccd9b43
C++: Fix more tests that used deprecated function
2023-03-07 09:01:13 +01:00
Tom Hvitved
b6a709df50
Ruby: Rewrite Stored XSS query to use new data flow interface
2023-03-07 07:23:27 +01:00
Robert Marsh
686f7ccd5a
Swift: add flow for self out of constructors
2023-03-06 20:46:36 +00:00
Robert Marsh
9731989421
Swift: add tests for flow through constructors
2023-03-06 20:39:58 +00:00
Arthur Baars
51599b3cae
Address review comments
2023-03-06 18:40:29 +01:00
Geoffrey White
2ed140c696
Swift: Update the pointertypes test.
2023-03-06 17:14:14 +00:00
Mathias Vorreiter Pedersen
ff53e53e8c
Merge pull request #12236 from MathiasVP/language-specific-field-flow-branch-limit-term
...
Dataflow: Add a language specific term to `join` and `branch`
2023-03-06 16:59:09 +00:00
Geoffrey White
4d327dbf4f
Swift: The PointerType class isn't used any d any more.
2023-03-06 16:36:41 +00:00
Geoffrey White
61340c4b20
Swift: Permit data flow from generic arguments, rather than just pointers.
2023-03-06 16:34:12 +00:00
Geoffrey White
1e5b904514
Swift: Add test cases for mutating pointers inside containers.
2023-03-06 16:17:39 +00:00
Mathias Vorreiter Pedersen
aa09361a42
Merge pull request #12407 from MathiasVP/fix-internal-system-data-tests
2023-03-06 15:45:25 +00:00
Jeroen Ketema
47930f94e2
Merge remote-tracking branch 'upstream/main' into merge-main
2023-03-06 15:20:39 +01:00
Asger F
d4b4d22378
JS: Step through HTML sanitizers in SQL injection query
2023-03-06 15:10:26 +01:00
Mathias Vorreiter Pedersen
92ad099c1b
DataFlow: Remove bindingsets, remove the call column, and swap parameter and argument columns.
2023-03-06 13:47:59 +00:00
Mathias Vorreiter Pedersen
3bf28cc752
DataFlow: Sync identical files.
2023-03-06 13:46:21 +00:00
Mathias Vorreiter Pedersen
9647b6a3f5
Swift: Add stub.
2023-03-06 13:45:04 +00:00
Mathias Vorreiter Pedersen
e6b6369a21
Ruby: Add stub.
2023-03-06 13:44:59 +00:00
Mathias Vorreiter Pedersen
5ebd50044f
Python: Add stub.
2023-03-06 13:44:24 +00:00
Mathias Vorreiter Pedersen
4720e2a30a
Java: Add stub.
2023-03-06 13:44:24 +00:00
Mathias Vorreiter Pedersen
067abacbb8
Go: Add stub.
2023-03-06 13:44:23 +00:00
Mathias Vorreiter Pedersen
b667e0136f
C#: Add stub.
2023-03-06 13:44:23 +00:00
Mathias Vorreiter Pedersen
05314b48e8
C++: Add stub.
2023-03-06 13:44:23 +00:00
Mathias Vorreiter Pedersen
6e8a2a6375
DataFlow: Add a language-specific predicate for modifying 'branch' and 'join'.
2023-03-06 13:44:19 +00:00
Geoffrey White
56b6441ef5
Merge pull request #12391 from geoffw0/ptrout
...
Swift: Permit data flow out through pointer arguments
2023-03-06 13:37:22 +00:00
Anders Schack-Mulligen
5c7f2ac7f7
Merge pull request #12186 from aschackmull/dataflow/refactor-configuration
...
Data flow: Refactor configuration
2023-03-06 13:38:59 +01:00
Mathias Vorreiter Pedersen
d2d91cfb29
C++: Accept test changes.
2023-03-06 11:30:40 +00:00
Mathias Vorreiter Pedersen
8836cbae5b
C++: Make sure we use an indirect sink only for the sinks that receive a
...
pointer to the data. Also fix a bug where we used 'asExpr' instead
of 'asIndirectExpr'.
2023-03-06 11:22:58 +00:00
dependabot[bot]
3538cf89b9
Merge pull request #12404 from github/dependabot/cargo/ql/serde_json-1.0.94
2023-03-06 09:55:33 +00:00
Arthur Baars
d2ab40c184
Merge pull request #12208 from gregxsunday/main
...
Add ZipSlip and TarSlip query to ruby
2023-03-06 10:40:06 +01:00
dependabot[bot]
ce5e76a3a0
Bump serde_json from 1.0.93 to 1.0.94 in /ql
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.94 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-06 09:32:26 +00:00
Anders Schack-Mulligen
557cb17f4d
Dataflow: Minor perf fix for single config wrapper.
2023-03-06 10:24:33 +01:00
Calum Grant
b8e123dc08
Merge pull request #12402 from github/dependabot/cargo/ruby/serde_json-1.0.94
...
Bump serde_json from 1.0.93 to 1.0.94 in /ruby
2023-03-06 09:24:21 +00:00
Anders Schack-Mulligen
d4c5877484
Merge pull request #3 from MathiasVP/fix-exec-tainted
...
C++: Use refactored dataflow library in `cpp/command-line-injection`
2023-03-06 09:32:34 +01:00
Jeroen Ketema
72d03e4060
C++: Fix test that used deprecated function
2023-03-06 09:07:52 +01:00
dependabot[bot]
d34d7e51e5
Bump rayon from 1.6.1 to 1.7.0 in /ql
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases )
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.6.1...rayon-core-v1.7.0 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-06 04:18:21 +00:00
dependabot[bot]
f93b304578
Bump serde_json from 1.0.93 to 1.0.94 in /ruby
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.94 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-06 04:15:01 +00:00
Dave Bartolomeo
e169702165
Merge branch 'main' into post-release-prep/codeql-cli-2.12.4
2023-03-04 09:20:44 -05:00
github-actions[bot]
af61b45785
Post-release preparation for codeql-cli-2.12.4
2023-03-04 14:16:55 +00:00
Dave Bartolomeo
d589b324c9
Merge pull request #12386 from github/release-prep/2.12.4
...
Release preparation for version 2.12.4
2023-03-03 16:59:55 -05:00
Dave Bartolomeo
b342e93989
Move change note to appropriate pack
2023-03-03 14:43:00 -05:00
Geoffrey White
6f120a66d0
Merge pull request #12368 from geoffw0/taintarith3
...
Swift: Fill some gaps in arithmetic / bitwise operations modelling
2023-03-03 18:20:54 +00:00
Geoffrey White
9aaf30691c
Merge pull request #12307 from geoffw0/stringconflationtaint
...
Swift: Update swift/string-length-conflation to taint tracking
2023-03-03 17:27:15 +00:00
Geoffrey White
c29dcefcf2
Swift: Fix .expected file. Locations had changed after the formatting fix.
2023-03-03 17:24:07 +00:00
Geoffrey White
395bf675fe
Swift: Make the test work on Linux.
2023-03-03 17:14:57 +00:00
Jeroen Ketema
aa00424b75
C++: Fix experimental query that uses the deprecated freeCall predicate
2023-03-03 17:53:49 +01:00
Geoffrey White
2d889304bb
Swift: Some cases in the SqlInjection test are fixed by this.
2023-03-03 16:49:13 +00:00
Geoffrey White
b2bcb2d378
Swift: Fix formatting.
2023-03-03 16:32:21 +00:00
Chris Smowton
d4e02eb846
Merge pull request #12384 from smowton/smowton/admin/java-tsp-message-cleanup
...
Java TSP: test changes re: formatting improvements
2023-03-03 16:24:35 +00:00
Geoffrey White
6e3040987a
Swift: Autoformat.
2023-03-03 16:24:28 +00:00
Geoffrey White
234f17b578
Swift: Use PointerType in data flow's 'modifiable' predicate.
2023-03-03 16:23:49 +00:00
Geoffrey White
3249cee1c9
Swift: Add an overall PointerType.
2023-03-03 16:23:46 +00:00
Geoffrey White
589e0af20a
Swift: Test for pointer types.
2023-03-03 16:23:29 +00:00
Geoffrey White
9423c21d46
Swift: Add simple model for pointer types.
2023-03-03 16:23:27 +00:00
Jeroen Ketema
391d9bed5b
C++: Add deprecated to predicates that are deprecated according to the QLDoc
2023-03-03 17:15:47 +01:00
Jeroen Ketema
2ee8344e92
Merge pull request #12387 from jketema/qualified-deprecation
...
C++: Properly deprecate `hasQualifiedName` by using the `deprecated` keyword
2023-03-03 17:11:56 +01:00
Alex Denisov
7f3e7224df
Swift: introduce type mangling
2023-03-03 16:28:41 +01:00
AlexDenisov
4aeff0f8dc
Merge pull request #12335 from github/alexdenisov/extract-lazy-declarations
...
Swift: extract lazy declarations
2023-03-03 16:06:20 +01:00
Geoffrey White
9f86bcb1b8
Swift: Proof of concept fix.
2023-03-03 15:04:47 +00:00
Geoffrey White
15227d3c09
Swift: Add tests where a user-defined (non-modelled) function taints the pointee of a pointer argument.
2023-03-03 15:00:22 +00:00
Jeroen Ketema
6495f1911f
C++: Properly deprecate hasQualifiedName by using the deprecated keyword
2023-03-03 15:57:59 +01:00
erik-krogh
b875d30bc6
fix repeated predicate name in change-note
2023-03-03 15:55:17 +01:00
Chris Smowton
b234bbd119
Accept test changes
2023-03-03 14:46:21 +00:00
Mathias Vorreiter Pedersen
907e6299a4
C++: Convert 'ExecTainted' to use the new refactored dataflow library.
2023-03-03 14:41:29 +00:00
Michael Nebel
24fa2be7b3
C#: Update flow summaries expected output test.
2023-03-03 15:37:36 +01:00
Michael Nebel
d2d7ed7bae
C#: .NET 7 stubs.
2023-03-03 15:37:36 +01:00
Jeroen Ketema
549fb0324b
Apply suggestions from code review
2023-03-03 15:26:38 +01:00
github-actions[bot]
462da63970
Release preparation for version 2.12.4
2023-03-03 14:11:51 +00:00
Jeroen Ketema
fe5fbaa142
C++: Replace hasQualifiedName by hasGlobalName in docs examples
2023-03-03 15:08:00 +01:00
Jeroen Ketema
620c69df12
C++: Add more static qualifiers in syntax zoo test
2023-03-03 15:03:31 +01:00
Michael B. Gale
9dc9925f59
Abstract over DiagnosticsStream for tests
2023-03-03 13:05:43 +00:00
Michael Nebel
df6f5d52b9
C#: Use dependency injection in the auto builder for Diagnostic classifier.
2023-03-03 13:05:28 +00:00
Michael B. Gale
85751e7ddd
Simplify DiagnosticClassifier in CSharpAutobuilder
2023-03-03 13:05:28 +00:00
Michael B. Gale
fe3066da56
Apply ql-for-ql suggestion
2023-03-03 13:05:28 +00:00
Michael B. Gale
a5f7913af3
Fix expected test output for Windows tests
2023-03-03 13:05:28 +00:00
Michael B. Gale
c2049c22a3
Refactor to avoid public setters
2023-03-03 13:05:27 +00:00
Michael B. Gale
4f0a93295a
Move Language class to Semmle.Util
2023-03-03 13:05:27 +00:00
Michael B. Gale
6f3b5c01d5
Fix IDisposable contract violation
2023-03-03 13:05:27 +00:00
Michael B. Gale
be2d64a9d4
Simplify Xamarin query to be platform-independent
2023-03-03 13:05:27 +00:00
Michael B. Gale
92359de363
Add test for missing Xamarin SDKs
2023-03-03 13:05:27 +00:00
Michael B. Gale
1638f8edc5
Add test for missing project files
2023-03-03 13:05:26 +00:00
Michael B. Gale
40bda03180
Add test for dotnet incompatible projects
2023-03-03 13:05:26 +00:00
Michael B. Gale
5c641362bc
Show .NET core error only if files exist
2023-03-03 13:05:26 +00:00
Michael B. Gale
04aaccb186
Fix C++ test missing env var
2023-03-03 13:05:26 +00:00
Michael B. Gale
6eda71b659
Add tests for build script diagnostics
2023-03-03 13:05:26 +00:00
Michael B. Gale
b26f9d0ff1
Use relative paths
2023-03-03 13:05:25 +00:00
Michael B. Gale
b2d1cfe3d1
Add diagnostic for missing project files
2023-03-03 13:05:25 +00:00
Michael B. Gale
b97c885c8d
Add helper for markdown lists of projects
2023-03-03 13:05:25 +00:00
Michael B. Gale
5b6444d32d
Refactor autobuild logic into an IBuildRule
2023-03-03 13:05:25 +00:00
Michael B. Gale
65608d7900
Fix: drop please
2023-03-03 13:05:24 +00:00
Michael B. Gale
95f9d0761a
Add docs link for missing Xamarin SDKs
2023-03-03 13:05:24 +00:00
Michael B. Gale
0d5c5a7e92
Link to docs for autobuild failures
2023-03-03 13:05:24 +00:00
Michael B. Gale
9d19752c2e
Make improvements based on PR feedback
2023-03-03 13:05:24 +00:00
Michael B. Gale
62cd8ca26f
Update C/C++ autobuilder
2023-03-03 13:05:24 +00:00
Michael B. Gale
abf3f9f232
Use TryGetValue
2023-03-03 13:05:23 +00:00
Michael B. Gale
6471889fa6
Detect missing Xamarin SDKs
2023-03-03 13:05:23 +00:00
Michael B. Gale
b1f9a3d22a
Fixup: better error message for no-projects-or-solutions
2023-03-03 13:05:23 +00:00
Michael B. Gale
9165ec92c5
Report .NET Core & MSBuild failures
2023-03-03 13:05:23 +00:00
Michael B. Gale
62b59747d1
Track which projects/solutions fail to build
2023-03-03 13:05:23 +00:00
Michael B. Gale
43df6397bb
Report projects incompatible with .NET Core
2023-03-03 13:05:22 +00:00
Michael B. Gale
802e2319b5
Set DiagnosticMessage defaults
...
Refactor `GetDiagnosticSource` into `MakeDiagnostic`
which sets the defaults.
2023-03-03 13:05:22 +00:00
Michael B. Gale
28b350ee95
Change logic for autobuild failures
...
This is to account for multiple attempted rules that failed
2023-03-03 13:05:22 +00:00
Michael B. Gale
dfcc57ba83
Support asynchronous stdout/stderr processing
2023-03-03 13:05:22 +00:00
Michael B. Gale
ec2deb0889
Fixup: We => CodeQL
2023-03-03 13:05:22 +00:00
Michael B. Gale
dc7cf272db
Add no projects/solutions diagnostic
2023-03-03 13:05:21 +00:00
Michael B. Gale
55d7b74489
Add diagnostics for BuildCommandAutoRule
2023-03-03 13:05:21 +00:00
Michael B. Gale
b88382e3e7
BuildCommandAutoRule: expose more information
...
We expose the list of candidate script paths and the chosen script path
so that we can inspect them for diagnostics purposes.
2023-03-03 13:05:21 +00:00
Michael B. Gale
60afa6e9f0
Add basic reporting of a general autobuild failure
2023-03-03 13:05:21 +00:00
Michael B. Gale
38a3a5ebfa
Add initial code for diagnostic messages
2023-03-03 13:05:21 +00:00
Michael B. Gale
e029b1f0a8
Read ..._DIAGNOSTIC_DIR variable
2023-03-03 13:05:20 +00:00
Michael B. Gale
467429c23e
Refactor env var code in Autobuilder class
2023-03-03 13:05:19 +00:00
Asger F
37999eaea0
JS: Fix implicit this
2023-03-03 13:43:17 +01:00
Asger F
f4b13e0955
JS: Update printAst expected output
2023-03-03 13:42:42 +01:00
Kasper Svendsen
fe65fb8743
Merge pull request #12360 from kaspersv/kaspersv/actioncontroller-prevent-bad-join
...
ActionController: Prevent bad join
2023-03-03 13:38:33 +01:00
Asger F
f2f972567d
Merge pull request #12379 from github/revert-12217-mbg/csharp/tsp-support
...
Revert "C#: Tool status page support"
2023-03-03 13:29:13 +01:00
Erik Krogh Kristensen
d94e51aaf6
Merge pull request #12377 from erik-krogh/jHtml
...
JS: add the html argument to the jQuery functions as an XSS sink
2023-03-03 13:19:38 +01:00
Jeroen Ketema
87b1c3eaa8
Merge pull request #12381 from jketema/silence
...
C++: Silence some more bogus consistency errors in syntax zoo
2023-03-03 12:51:39 +01:00
Nick Fyson
48c30771da
Merge pull request #12374 from github/codeql-ci/atm/update-model-pack/ecb17d40286d14132b481c065a43459a7f0ba9059015b7a49c909c9f9ce5fec5
...
ATM: Update model pack to version 0.3.1-2023-03-01-12h42m43s.strong-turtle-1xp3dqvv.ecb17d40286d14132b481c065a43459a7f0ba9059015b7a49c909c9f9ce5fec5
2023-03-03 11:42:57 +00:00
Asger F
7f96fe725b
JS: Change note
2023-03-03 12:21:20 +01:00
Asger F
1264029282
JS: Bump extractor version string
2023-03-03 12:21:20 +01:00
Asger F
7a55b003d2
JS: Fix location of assert clause
2023-03-03 12:21:20 +01:00
Asger F
38194c6ae7
JS: Extract import assertions to DB
2023-03-03 12:21:20 +01:00
Asger F
f454151e7a
JS: Convert TypeScript import assertions
2023-03-03 12:21:20 +01:00
Asger F
3af085afcb
JS: Drive-by allow trailing commas in dynamic imports
2023-03-03 12:21:20 +01:00
Asger F
8d9060f1f9
JS: Store in the Java AST
2023-03-03 12:21:03 +01:00
Asger F
c715de2a10
JS: parse import assertions without storing in AST
2023-03-03 12:21:03 +01:00
Asger F
5fdc293d82
JS: Add trap test for import assertions
2023-03-03 12:21:03 +01:00
Mathias Vorreiter Pedersen
16e817c814
Merge pull request #12356 from MathiasVP/use-phi-reads
...
C++: Include "phi reads" in `DataFlow::Node`
2023-03-03 11:14:08 +00:00
Jeroen Ketema
4faede0e2c
C++: Silence some more bogus consistency errors in syntax zoo
...
These were due to several functions occurring that would have the same TRAP key.
By making the functions static or wrapping the defining class in an anonymous
namespace the TRAP keys will differ from each other.
2023-03-03 12:07:33 +01:00
Jeroen Ketema
7f9b856a21
Merge pull request #12378 from jketema/silence
...
C++: Silence a number of bogus consistency errors in syntax zoo
2023-03-03 12:05:29 +01:00
Anders Schack-Mulligen
0addcfa7c5
Dataflow: Fix some perf issues.
2023-03-03 11:45:32 +01:00
Asger F
8f0b77d54f
Revert "C#: Tool status page support"
2023-03-03 11:44:42 +01:00
Geoffrey White
7b596f4928
Merge pull request #10431 from ihsinme/ihsinme-patch-111
...
CPP: Add query for CWE-369: Divide By Zero.
2023-03-03 10:42:04 +00:00
Jeroen Ketema
f649def3f8
C++: Silence a number of bogus consistency errors in syntax zoo
...
These were due to several functions occurring that would have the same TRAP
key. By making the functions static the TRAP keys will differ from each other.
2023-03-03 11:16:19 +01:00
erik-krogh
a6c9af4182
add the html argument to the jQuery functions as an XSS sink
2023-03-03 11:09:53 +01:00
erik-krogh
94870b838f
add failing test
2023-03-03 11:08:33 +01:00
Nick Fyson
5869c36366
Merge branch 'main' into codeql-ci/atm/update-model-pack/ecb17d40286d14132b481c065a43459a7f0ba9059015b7a49c909c9f9ce5fec5
2023-03-03 10:03:22 +00:00
Alex Denisov
ae7a0c517c
Swift: do not allocate mangler statically
2023-03-03 10:28:08 +01:00
Alex Denisov
60c1505097
Swift: address review comments
2023-03-03 10:26:44 +01:00
erik-krogh
a928f4c9ef
add change-notes
2023-03-03 09:23:10 +01:00
erik-krogh
f96d6accbb
delete old deprecations
2023-03-03 09:23:02 +01:00
Paolo Tranquilli
1a19909abf
Merge pull request #12373 from github/redsun82/swift-qldoc
...
Swift: turn on QLdoc check
2023-03-03 08:26:39 +01:00
Mathias Vorreiter Pedersen
959237e8d2
C++: Fix missing type for Phi nodes.
2023-03-02 22:48:10 +00:00
Mathias Vorreiter Pedersen
2963dc1cb1
C++: Include phi read nodes in SSA.
...
There's a small fix to the mapping from 'global def -> use'.
Finally, this commit also accepts a test failure related to new missing
types for phi nodes. The fix for that is in the next commit.
2023-03-02 22:48:06 +00:00
Mathias Vorreiter Pedersen
b3f92fcf0f
C++: Add FN caused by missing static local initialization in SSA.
2023-03-02 22:37:52 +00:00
erik-krogh
fc9e63275f
only print a constant when catching an OOM
2023-03-02 22:14:29 +01:00
Erik Krogh Kristensen
094a2b0c46
Apply suggestions from code review
...
Co-authored-by: Asger F <asgerf@github.com >
2023-03-02 22:14:17 +01:00
Alex Denisov
ffcb382705
Swift: only consider Builting and __ObjC declarations as lazy
2023-03-02 20:00:23 +01:00
github-actions[bot]
50c90bbc5c
ATM: Update model pack dependency of ML-powered model building and query packs
2023-03-02 17:31:03 +00:00
Geoffrey White
764a52354e
Merge pull request #12367 from geoffw0/nsstring2
...
Swift: Additional NSString taint test cases
2023-03-02 15:56:15 +00:00
Michael B. Gale
75b4a0e8ea
Add diagnostic checks to all integration tests
2023-03-02 15:25:49 +00:00
Paolo Tranquilli
162b995428
Swift: turn on QLdoc check
2023-03-02 16:16:12 +01:00
Anders Schack-Mulligen
b34f99f716
Dataflow: Add change notes.
2023-03-02 16:01:29 +01:00
Michael B. Gale
6c501d15b6
Make diagnostics visible everywhere
2023-03-02 14:53:53 +00:00
erik-krogh
88810420b1
add location to the parse-error diagnostics
2023-03-02 14:54:58 +01:00
erik-krogh
c460eae2e1
implement diagnostics
2023-03-02 14:54:54 +01:00
Jeroen Ketema
f6ce27075c
C++: Address review comments
2023-03-02 14:32:49 +01:00
Anders Schack-Mulligen
a498ab241b
Go: Fix query.
2023-03-02 13:53:37 +01:00
Mathias Vorreiter Pedersen
a1a2d7c469
Merge pull request #12355 from geoffw0/splittest
...
Swift: Split the taint flow test.
2023-03-02 12:53:07 +00:00
Geoffrey White
27ec36298f
Swift: Understand binary pointwise operations.
2023-03-02 12:42:34 +00:00
Geoffrey White
ec2c58b416
Swift: Understand overflow binary bitwise operations.
2023-03-02 12:11:25 +00:00
Geoffrey White
1206b73d87
Swift: Understand overflow binary arithmetic operations.
2023-03-02 12:11:15 +00:00
Michael B. Gale
fd9b279ef9
Merge pull request #12217 from github/mbg/csharp/tsp-support
2023-03-02 11:47:30 +00:00
Geoffrey White
53f52df809
Swift: Add taint test cases for overflow, bitwise and pointwise arithmetic operations.
2023-03-02 11:41:31 +00:00
Geoffrey White
c42add2191
Swift: Add test cases for overflow and pointwise binary arithmetic operations.
2023-03-02 11:28:59 +00:00
Jeroen Ketema
7ce230af77
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp-new.rst
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-03-02 11:58:29 +01:00
Geoffrey White
730532f96a
Swift: Add some (limited) test coverage for NSString <-> Data conversion.
2023-03-02 10:33:57 +00:00
Geoffrey White
1332309f59
Swift: Add some (limited) test coverage for String <-> NSString conversions.
2023-03-02 10:33:57 +00:00
Mathias Vorreiter Pedersen
c2efb4d232
Merge pull request #12350 from MathiasVP/no-standard-order-for-convertsIntoArgumentRev
...
C++: Disable a bad standard order
2023-03-02 10:27:20 +00:00
Arthur Baars
9e5ef9cf9d
Merge pull request #12216 from aibaars/diagnostics-2
...
Ruby: improve diagnostic messages
2023-03-02 10:30:58 +01:00
Kasper Svendsen
9cac4bbe0f
ActionController: Prevent bad join
2023-03-02 10:02:08 +01:00
Tony Torralba
7705d5f513
Merge pull request #12357 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-03-02 09:30:38 +01:00
Michael Nebel
2525ac3dd2
C#: Use dependency injection in the auto builder for Diagnostic classifier.
2023-03-02 09:18:56 +01:00
Jeroen Ketema
87f0f1fb33
C++: Fix description of asIndirectExpr and asParameter\1 in docs
2023-03-02 09:08:38 +01:00
github-actions[bot]
3b9de22af9
Add changed framework coverage reports
2023-03-02 00:18:47 +00:00
Geoffrey White
8e069b7686
Swift: Split the taint flow test.
2023-03-01 20:45:46 +00:00
yoff
65acf16ecc
Merge pull request #12320 from yoff/python/document-api-call-node
...
Python: Document `API::CallNode`
2023-03-01 20:19:30 +01:00
Jeroen Ketema
c6dc55ef9b
C++: Update use-use dataflow docs to reflect what is going on in the library
2023-03-01 19:00:33 +01:00
Geoffrey White
bf6f6eec34
Merge pull request #12225 from geoffw0/nsstring
...
Swift: Taint models for NSString
2023-03-01 16:30:06 +00:00
Tony Torralba
59bd1e5ab1
Merge pull request #12228 from github/java/mad-decls-triage-request-2276
...
Java: Update MaD sink decls after triage
2023-03-01 17:08:38 +01:00
Geoffrey White
f8079056ec
Swift: Fix test on Linux.
2023-03-01 15:47:30 +00:00
Mathias Vorreiter Pedersen
2f8d71762c
C++: Disable standard order for 'convertsIntoArgumentRev'.
2023-03-01 15:16:49 +00:00
Michael B. Gale
93a45fce5e
Simplify DiagnosticClassifier in CSharpAutobuilder
2023-03-01 14:58:49 +00:00
Alex Denisov
276fec39fc
Swift: consider lazy declaration emitted if the process lost in the race
2023-03-01 15:42:44 +01:00
Asger F
b6ec9464eb
JS: Remove trailing whitespace
2023-03-01 15:29:51 +01:00
Alex Denisov
ded0e570b0
Swift: extract lazy declarations
2023-03-01 15:22:22 +01:00
AlexDenisov
fed504c1d0
Merge pull request #12348 from github/alexdenisov/extract-emission-body-decisions
...
Swift: move decision making out of dispatcher. NFC
2023-03-01 15:18:44 +01:00
Alex Denisov
8194fe3743
Swift: do not make module depend on itself for linkage awareness
2023-03-01 14:30:06 +01:00
Paolo Tranquilli
37438599de
Merge branch 'main' into alexdenisov/extract-emission-body-decisions
2023-03-01 13:47:12 +01:00
Paolo Tranquilli
c0f9b111a0
Merge pull request #12347 from github/alexdenisov/move-location-extraction
...
Swift: move location extraction logic into a separate class. NFC
2023-03-01 13:46:52 +01:00
Anders Schack-Mulligen
34cc93846b
Python: Adjust InsecureProtocol query.
2023-03-01 13:36:10 +01:00
Arthur Baars
2c611d3fef
Address review comments
2023-03-01 13:30:02 +01:00
Michael Nebel
2db588f72e
Merge pull request #12322 from michaelnebel/csharp/operatorexplicitinterface
...
C# 11: Support for explicit interface implementations of operators.
2023-03-01 12:55:21 +01:00
Erik Krogh Kristensen
64dad3db8a
Merge pull request #12333 from kaspersv/kaspersv/fix-join-order
...
ReflectedXss: Prevent bad join order
2023-03-01 12:48:30 +01:00
Mathias Vorreiter Pedersen
0469df1c18
Merge pull request #12338 from MathiasVP/expr-sanitizer-for-exec-tainted
...
C++: Speedup `cpp/command-line-injection`
2023-03-01 11:40:05 +00:00
AlexDenisov
5701798f1c
Merge branch 'main' into alexdenisov/move-location-extraction
2023-03-01 12:24:41 +01:00
AlexDenisov
bb8d195607
Merge pull request #12337 from github/alexdenisov/extract-mangler
...
Swift: extract mangler into a separate class. NFC
2023-03-01 12:23:24 +01:00
Alex Denisov
def9831180
Swift: move decision making out of dispatcher
2023-03-01 12:02:58 +01:00
Alex Denisov
b1aef82117
Swift: move location extraction logic into a separate class
2023-03-01 11:32:50 +01:00
Tom Hvitved
16fa8b2914
Merge pull request #12051 from hmac/actioncontroller-filter-flow-steps
...
Ruby: flow steps for ActionController filters
2023-03-01 10:51:09 +01:00
Michael Nebel
ad5a45e465
C#: Add change note.
2023-03-01 10:42:29 +01:00
Michael Nebel
477b4566ed
C#: Update expected test output.
2023-03-01 10:42:29 +01:00
Michael Nebel
f209eed91c
C#: Extractor- and library support for explicit interface implementations for operators.
2023-03-01 10:42:28 +01:00
Michael Nebel
51be175111
C#: Add public members testcase and expected output.
2023-03-01 10:42:28 +01:00
Michael Nebel
363dd49a3c
C#: Add explicit interface implementation examples and update expected test output.
2023-03-01 10:42:28 +01:00
Michael Nebel
0dc6ada616
Merge pull request #12234 from michaelnebel/csharp/filescopedtypes
...
C# 11: Support for `file` scoped types.
2023-03-01 10:39:46 +01:00
Geoffrey White
b6db0de437
Swift: Add inline expectation results.
2023-03-01 09:26:30 +00:00
Geoffrey White
228c0e221d
Merge branch 'main' into nsstring
2023-03-01 09:12:36 +00:00
Geoffrey White
11e0efee68
Merge pull request #12308 from geoffw0/taintplusequals2
...
Swift: Model assignment operators (+= etc)
2023-03-01 09:02:29 +00:00
Tony Torralba
0439eb640d
Add tests
2023-03-01 09:49:28 +01:00
Tony Torralba
4e7dbbf5f0
Add stubs
2023-03-01 09:48:33 +01:00
Tom Hvitved
92359e539b
Fix another bad join
...
Before
```
[2023-03-01 08:19:51] Evaluated non-recursive predicate Filters#b57b2328::Filters::selfPostUpdate#2#ff@6718c917 in 6751ms (size: 83265).
Evaluated relational algebra for predicate Filters#b57b2328::Filters::selfPostUpdate#2#ff@6718c917 with tuple counts:
3872025 ~3% {2} r1 = JOIN _CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_DataFlowPrivate#462ff392::Cached::TExprNode#ff#shared WITH Statement#f35022d0::Stmt::getCfgScope#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
3637917 ~0% {2} r2 = JOIN r1 WITH Method#8b49e67f::Callable#f ON FIRST 1 OUTPUT Lhs.0, Lhs.1
679799 ~0% {2} r3 = JOIN r2 WITH Method#8b49e67f::Method#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1
3069328 ~0% {3} r4 = JOIN r3 WITH Variable#1965ffe5::Variable::getDeclaringScope#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
22039083 ~0% {3} r5 = JOIN r4 WITH Variable#1965ffe5::VariableAccess::getVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
10051483 ~0% {3} r6 = JOIN r5 WITH Variable#9f7d933a::SelfVariableAccessImpl#class#f ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2
10057538 ~5% {3} r7 = JOIN r6 WITH CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
10057538 ~5% {3} r8 = JOIN r7 WITH CfgNodes#ace8e412::ExprNodes::SelfVariableAccessCfgNode#ff ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2
10057538 ~0% {3} r9 = JOIN r8 WITH DataFlowPrivate#462ff392::Cached::TExprNode#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
10033937 ~1% {3} r10 = JOIN r9 WITH DataFlowPublic#e1781e31::PostUpdateNode::getPreUpdateNode#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
83281 ~2% {2} r11 = JOIN r10 WITH DataFlowPublic#e1781e31::PostUpdateNode::getPreUpdateNode#0#dispred#ff ON FIRST 2 OUTPUT Lhs.0, Lhs.2
return r11
```
After
```
[2023-03-01 08:31:20] Evaluated non-recursive predicate Filters#b57b2328::Filters::selfPostUpdate#2#ff@06d73c6q in 161ms (size: 83265).
Evaluated relational algebra for predicate Filters#b57b2328::Filters::selfPostUpdate#2#ff@06d73c6q with tuple counts:
23680 ~2% {1} r1 = SCAN Method#8b49e67f::Method#ff OUTPUT In.0
23680 ~2% {1} r2 = STREAM DEDUP r1
23680 ~0% {2} r3 = JOIN r2 WITH Method#8b49e67f::Callable#f ON FIRST 1 OUTPUT Lhs.0, Lhs.0
54790 ~4% {3} r4 = JOIN r3 WITH Variable#1965ffe5::Variable::getDeclaringScope#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.0
202490 ~0% {3} r5 = JOIN r4 WITH Variable#1965ffe5::VariableAccess::getVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
98332 ~5% {3} r6 = JOIN r5 WITH Variable#9f7d933a::SelfVariableAccessImpl#class#f ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2
83491 ~1% {2} r7 = JOIN r6 WITH Statement#f35022d0::Stmt::getCfgScope#0#dispred#ff ON FIRST 2 OUTPUT Lhs.0, Lhs.2
83584 ~0% {2} r8 = JOIN r7 WITH CfgNodes#ace8e412::ExprCfgNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
83584 ~0% {2} r9 = JOIN r8 WITH DataFlowPrivate#462ff392::Cached::TExprNode#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
83265 ~2% {2} r10 = JOIN r9 WITH DataFlowPublic#e1781e31::PostUpdateNode::getPreUpdateNode#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1
return r10
```
2023-03-01 08:34:07 +01:00
Aditya Sharad
aa6c60abfc
Merge pull request #12342 from github/codeql-cli-2.12.3-mergeback
...
Mergeback: codeql-cli-2.12.3 into main
2023-02-28 10:30:51 -08:00
Felicity Chapman
6224d6ce31
Merge branch 'codeql-cli-2.12.3' into codeql-cli-2.12.3-mergeback
2023-02-28 17:08:49 +00:00
Mathias Vorreiter Pedersen
a96145a4ac
Merge pull request #12340 from MathiasVP/remove-uncertain-write-def-input-predicate
...
C++: Remove dead code
2023-02-28 17:07:17 +00:00
Mathias Vorreiter Pedersen
d5b0ad6bfc
C++: Remove cached predicate that's no longer used.
2023-02-28 16:20:29 +00:00
Michael B. Gale
49039246e1
Apply ql-for-ql suggestion
2023-02-28 15:55:50 +00:00
Michael B. Gale
f22c86442e
Fix expected test output for Windows tests
2023-02-28 15:53:52 +00:00
Jeroen Ketema
2f797fffc1
C++: Add copy of dataflow docs for new use-use dataflow library
2023-02-28 16:48:26 +01:00
Michael B. Gale
fea29d5172
Refactor to avoid public setters
2023-02-28 15:22:36 +00:00
Erik Krogh Kristensen
f3f5f6eacf
Merge pull request #12190 from erik-krogh/fix-erb
...
JS: Actually extract `.html.erb` files.
2023-02-28 16:11:32 +01:00
Mathias Vorreiter Pedersen
075a83c987
Stage stats before on 'ExecTainted.ql' before:
...
```
1 10 1 Fwd 609968 1398 -1 94 769936 ExecTaintConfiguration
2 15 1 Rev 239464 774 -1 52 320663 ExecTaintConfiguration
3 20 2 Fwd 205794 511 650 39 18576546 ExecTaintConfiguration
4 25 2 Rev 161966 351 428 39 13639502 ExecTaintConfiguration
5 30 3 Fwd 31889 322 791 39 5982574 ExecTaintConfiguration
6 35 3 Rev 30068 303 661 39 4181421 ExecTaintConfiguration
7 40 4 Fwd 24031 232 1432 39 14725618 ExecTaintConfiguration
8 45 4 Rev 21506 219 907 39 5962780 ExecTaintConfiguration
9 50 5 Fwd 20149 204 1527 38 8350094 ExecTaintConfiguration
10 55 5 Rev 20102 204 1472 38 7515307 ExecTaintConfiguration
11 60 6 Fwd 19950 200 904 33 9673369 ExecTaintConfiguration
12 65 6 Rev 18431 200 901 33 7030957 ExecTaintConfiguration
```
Stage stats after:
```
1 10 1 Fwd 368610 699 -1 65 445199 ExecTaintConfiguration
2 15 1 Rev 112848 336 -1 23 150522 ExecTaintConfiguration
3 20 2 Fwd 91528 219 270 22 4120713 ExecTaintConfiguration
4 25 2 Rev 66017 141 159 22 2657398 ExecTaintConfiguration
5 30 3 Fwd 12161 119 208 22 792468 ExecTaintConfiguration
6 35 3 Rev 11640 111 167 22 569193 ExecTaintConfiguration
7 40 4 Fwd 11423 109 331 22 1203871 ExecTaintConfiguration
8 45 4 Rev 10851 107 323 22 904017 ExecTaintConfiguration
9 50 5 Fwd 10694 107 763 22 2428404 ExecTaintConfiguration
10 55 5 Rev 10332 104 735 22 2355698 ExecTaintConfiguration
11 60 6 Fwd 10302 104 729 22 5772762 ExecTaintConfiguration
12 65 6 Rev 9482 102 725 22 4020951 ExecTaintConfiguration
```
2023-02-28 15:05:29 +00:00
Mathias Vorreiter Pedersen
8dd0bdbdb0
C++: Rename 'fst' and 'snd' to 'incoming' and 'outgoing'.
2023-02-28 15:05:18 +00:00
Felicity Chapman
770326e770
Merge pull request #12321 from github/fc-7775-docs-update
...
CodeQL extension for VS Code docs update
2023-02-28 14:59:46 +00:00
Jeroen Ketema
5845528bae
Merge pull request #12336 from jketema/docs-examples
...
C++: Add tests for all dataflow examples that occur in our docs
2023-02-28 15:45:46 +01:00
Alex Denisov
97d5401118
Swift: extract mangler into a separate class
2023-02-28 15:29:44 +01:00
Michael B. Gale
e3762c7f93
Move Language class to Semmle.Util
2023-02-28 14:16:33 +00:00
Felicity Chapman
a7d221cdab
Update docs/codeql/reusables/beta-note-mrva.rst
2023-02-28 14:12:57 +00:00
Michael B. Gale
e60676fbde
Fix IDisposable contract violation
2023-02-28 13:56:06 +00:00
Jeroen Ketema
3014f207f3
C++: Add tests for all dataflow examples that occur in our docs
2023-02-28 14:45:00 +01:00
Mathias Vorreiter Pedersen
484f761c6d
Merge pull request #12316 from MathiasVP/no-taint-indirect-direct-conflation
...
C++: Remove indirect -> direct taint-flow
2023-02-28 13:43:04 +00:00
Anders Schack-Mulligen
5469a82efb
Go,Java,Python: Fix some tests.
2023-02-28 14:31:00 +01:00
Michael Nebel
734001b7c4
Merge pull request #12334 from michaelnebel/csharp/staticinitialisers
...
C#: Update query to handle static field writes from properties.
2023-02-28 14:10:46 +01:00
Geoffrey White
d5952a174e
Merge pull request #12329 from geoffw0/network
...
Swift: Modernize the cleartext-* queries
2023-02-28 13:04:10 +00:00
Michael Nebel
51746627d2
C#: Address review comments.
2023-02-28 13:38:34 +01:00
Felicity Chapman
aba7440293
Update docs/codeql/codeql-for-visual-studio-code/running-codeql-queries-at-scale-with-mrva.rst
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2023-02-28 12:29:16 +00:00
Felicity Chapman
832dc27b08
Update docs/codeql/codeql-for-visual-studio-code/running-codeql-queries-at-scale-with-mrva.rst
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2023-02-28 12:22:26 +00:00
Michael Nebel
4ef866b3a3
C#: Add change note.
2023-02-28 13:21:31 +01:00
Michael Nebel
baea74fa1b
C#: Add new testexamples and update expected testoutput.
2023-02-28 13:21:31 +01:00
Michael Nebel
621674e82e
C#: Update cs/static/field-written-by-instance to handle properties.
2023-02-28 13:21:30 +01:00
Chris Smowton
687f3c6b2e
Merge pull request #12330 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-02-28 11:27:00 +00:00
Felicity Chapman
0af529ed7b
Apply suggestions from code review
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2023-02-28 11:12:29 +00:00
Kasper Svendsen
86925646f3
ReflectedXss: Prevent bad join order
2023-02-28 12:06:27 +01:00
Mathias Vorreiter Pedersen
d93d22ba3e
C++: Fix FPs in 'cpp/non-constant-format'.
2023-02-28 10:05:05 +00:00
Michael Nebel
2db3694015
C#: Add code comment explaining the exclusion of the declared accessibility extraction for file scoped types.
2023-02-28 11:02:38 +01:00
Mathias Vorreiter Pedersen
1e5b235f4b
C++: Accept test changes in 'cpp/non-constant-format'. These are actually FPs.
2023-02-28 10:02:32 +00:00
Felicity Chapman
b21253732b
Update for review feedback
2023-02-28 09:58:51 +00:00
Mathias Vorreiter Pedersen
85c7116e8f
C++: Fix the following join (I canceled it mid-way):
...
```
Tuple counts for SsaInternals#7b362d2f::getAPriorDefinition#1#ff/2@bfabfc7o after 11.4s:
1000 ~4% {2} r1 = SCAN Ssa#da392372::Make#SsaInternals#7b362d2f::SsaInput#::Definition::definesAt#3#dispred#ffff OUTPUT In.1, In.0
474321529 ~0% {4} r2 = JOIN r1 WITH SsaInternals#7b362d2f::DefOrUse::hasIndexInBlock#3#dispred#ffff_3012#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.2, Rhs.3, Rhs.1
0 ~0% {2} r3 = JOIN r2 WITH SsaInternals#7b362d2f::SsaCached::lastRefRedef#4#ffff ON FIRST 3 OUTPUT Lhs.3, Rhs.3
0 ~0% {2} r4 = JOIN r3 WITH SsaInternals#7b362d2f::nodeToDefOrUse#3#fff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1 'result'
0 ~0% {2} r5 = JOIN r4 WITH SsaInternals#7b362d2f::ssaDefinition#1#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1 'defOrUse', Lhs.1 'result'
return r5
```
2023-02-28 09:53:37 +00:00
Anders Schack-Mulligen
64c60d59b1
Go: Fix compilation.
2023-02-28 09:57:22 +01:00
github-actions[bot]
b6f81fc938
Add changed framework coverage reports
2023-02-28 00:17:14 +00:00
Mathias Vorreiter Pedersen
04b84320c9
C++: Accept more query-test changes.
2023-02-28 00:06:35 +00:00
Geoffrey White
5110cf1e02
Swift: Convert some fiddly GRDB database sinks to CSV.
2023-02-27 23:31:48 +00:00
Geoffrey White
f289811473
Swift: Fix and autoformat.
2023-02-27 23:01:05 +00:00
Geoffrey White
ea4c2e4321
Swift: Add CSV extension points.
2023-02-27 23:01:05 +00:00
Geoffrey White
c533334470
Swift: Implementation classes should be private.
2023-02-27 23:01:04 +00:00
Geoffrey White
c21ec1c3f5
Swift: Standardize the taint sources, sinks, sanitizers.
2023-02-27 23:01:04 +00:00
Geoffrey White
6928e62d8b
Swift: Split the three sensitive exprs queries into separate QL and QLL files.
2023-02-27 23:01:04 +00:00
Geoffrey White
59a2aa817c
Merge branch 'main' into nsstring
2023-02-27 22:34:04 +00:00
Geoffrey White
bb55456885
Merge branch 'main' into taintplusequals2
2023-02-27 22:33:26 +00:00
Mathias Vorreiter Pedersen
3906a1923b
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into no-taint-indirect-direct-conflation
2023-02-27 18:40:04 +00:00
Mathias Vorreiter Pedersen
f9c724d9a3
Merge pull request #12325 from MathiasVP/gets-return-deref
...
C++: Make `gets` indirect output a LocalFlowSource
2023-02-27 18:39:36 +00:00
Arthur Baars
6c57823232
Merge branch 'main' into diagnostics-2
2023-02-27 19:00:03 +01:00
Jeroen Ketema
9c202f508f
Merge pull request #12324 from jketema/taint-fix
...
C++: Use correct DataFlow import in new TaintTracking.qll
2023-02-27 18:37:46 +01:00
Geoffrey White
36a33bc718
Swift: Delete file that was resurrected by the merge.
2023-02-27 17:33:21 +00:00
Nick Rolfe
0f4df0da99
Merge pull request #12326 from RasmusWL/python-fix-expected
...
Python: Fix expected of call-graph after merge
2023-02-27 17:30:10 +00:00
Geoffrey White
296093ded6
Merge branch 'main' into nsstring
2023-02-27 17:26:57 +00:00
Mathias Vorreiter Pedersen
7bb806563f
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into no-taint-indirect-direct-conflation
2023-02-27 17:19:36 +00:00
Mathias Vorreiter Pedersen
d90d895944
Merge pull request #12323 from MathiasVP/fix-enclosing-callable
...
C++: Fix missing enclosing callables
2023-02-27 17:19:06 +00:00
Erik Krogh Kristensen
50aa5e072a
Merge pull request #12177 from erik-krogh/alias-html
...
JS: More precise type-test sanitizer guards in unsafe-html-construction
2023-02-27 18:16:11 +01:00
Mathias Vorreiter Pedersen
2a9133aae0
C++: Accept query-test changes.
2023-02-27 17:15:53 +00:00
Mathias Vorreiter Pedersen
d628905156
C++: Accept more test changes.
2023-02-27 17:13:23 +00:00
Felicity Chapman
1d13811e46
Revise troubleshooting article
2023-02-27 16:42:07 +00:00
Rasmus Wriedt Larsen
d198b91c82
Python: Fix expected of call-graph after merge
...
Since the import resolution was fixed, but tests not rerun, these
expectations were not updated to reflect that we now handle them
properly 💪
2023-02-27 17:38:28 +01:00
Edward Minnix III
7f607fb46b
Merge pull request #12032 from egregius313/egregius313/promote-hardcoded-jwt-credential
...
Java: Promote Hardcoded JWT credential query
2023-02-27 11:33:53 -05:00
Mathias Vorreiter Pedersen
a4c075f03b
C++: The data pointed to by 'gets' is also a source of user input.
2023-02-27 16:25:32 +00:00
Jeroen Ketema
b4f6d519db
C++: Use correct DataFlow import in new TaintTracking.qll
...
Using the IR version directly gives errors about conflicting imports if both
DataFlow and TaintTracking are imported.
2023-02-27 17:22:12 +01:00
Felicity Chapman
8e4eb9ad46
Tweaks to mention variant analysis in related articles
2023-02-27 16:21:09 +00:00
erik-krogh
505168f24b
fix upper-case .html.erb files
2023-02-27 17:19:43 +01:00
Felicity Chapman
49ec539b60
Updates following initial PM review
2023-02-27 16:07:28 +00:00
Mathias Vorreiter Pedersen
b36d4931f2
C++: Fix test annotation.
2023-02-27 15:47:52 +00:00
Felicity Chapman
29802af647
Fix typo in heading
2023-02-27 15:06:19 +00:00
Mathias Vorreiter Pedersen
d2f8cb6920
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into fix-enclosing-callable
2023-02-27 15:02:39 +00:00
Felicity Chapman
9bee9c003a
Apply suggestions from code review
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2023-02-27 14:58:17 +00:00
Mathias Vorreiter Pedersen
31f3504113
C++: Remove this bad materialization:
...
```
Evaluated relational algebra for predicate _CppType#d1355c92::CppType::hasUnspecifiedType#2#dispred#fff_10#join_rhs_SsaInternals#50208335::DefO__#shared@ec353boa with tuple counts:
459594 ~0% {2} r1 = JOIN _IRVariable#e9bf30b2::IRVariable::getAst#0#dispred#ff_Parameter#ed81dd8f::Parameter#f#shared WITH SsaInternalsCommon#3c4fa02d::BaseIRVariable::getIRVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1 'arg1', Rhs.1
461383 ~2% {3} r2 = JOIN r1 WITH Variable#7a968d4e::Variable::getUnspecifiedType#0#dispred#ff ON FIRST 1 OUTPUT Lhs.0 'arg1', Lhs.1, Rhs.1
477945 ~6% {4} r3 = JOIN r2 WITH Variable#7a968d4e::Variable::getUnspecifiedType#0#dispred#ff ON FIRST 1 OUTPUT Lhs.2, Lhs.0 'arg1', Lhs.1, Rhs.1
346338 ~2% {4} r4 = JOIN r3 WITH SsaInternalsCommon#3c4fa02d::Indirection::getNumberOfIndirections#0#dispred#ff ON FIRST 1 OUTPUT Lhs.3, Lhs.1 'arg1', Lhs.2, Rhs.1 'arg2'
178593374 ~0% {4} r5 = JOIN r4 WITH CppType#d1355c92::CppType::hasUnspecifiedType#2#dispred#fff_10#join_rhs ON FIRST 1 OUTPUT Lhs.2, Lhs.1 'arg1', Lhs.3 'arg2', Rhs.1 'arg3'
934806228 ~0% {4} r6 = JOIN r5 WITH SsaInternals#50208335::DefOrUse::getSourceVariable#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1 'arg0', Lhs.1 'arg1', Lhs.2 'arg2', Lhs.3 'arg3'
return r6
Tuple counts for _DataFlowPrivate#fbdd7bd7::InstructionNode0#class#ff_SsaInternals#50208335::Def#ff_SsaInternals#5020__#antijoin_rhs/4@305d42l5 after 25.6s:
180185672 ~0% {4} r1 = JOIN _CppType#d1355c92::CppType::hasUnspecifiedType#2#dispred#fff_10#join_rhs_SsaInternals#50208335::DefO__#shared WITH SsaInternals#50208335::Def#ff ON FIRST 1 OUTPUT Lhs.0 'arg3', Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2'
180185672 ~0% {5} r2 = JOIN r1 WITH SsaInternals#50208335::Def::getValue#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2', Lhs.0 'arg3'
180185672 ~0% {5} r3 = JOIN r2 WITH DataFlowPrivate#fbdd7bd7::InstructionNode0#class#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2', Lhs.4 'arg3'
178459578 ~1% {4} r4 = JOIN r3 WITH project#Instruction#577b6a83::InitializeParameterInstruction#ff ON FIRST 1 OUTPUT Lhs.1 'arg0', Lhs.2 'arg1', Lhs.3 'arg2', Lhs.4 'arg3'
return r4
Tuple counts for SsaInternals#7b362d2f::TFinalParameterUse#dom#ff/2@9ff4dbcg after 7.9s:
180185672 ~1% {4} r1 = JOIN _CppType#d1355c92::CppType::hasUnspecifiedType#2#dispred#fff_10#join_rhs_SsaInternals#50208335::DefO__#shared WITH SsaInternals#50208335::Def#ff ON FIRST 1 OUTPUT Lhs.1 'p', Lhs.2, Lhs.3, Lhs.0
1726094 ~0% {4} r2 = r1 AND NOT _DataFlowPrivate#fbdd7bd7::InstructionNode0#class#ff_SsaInternals#50208335::Def#ff_SsaInternals#5020__#antijoin_rhs(Lhs.0 'p', Lhs.1, Lhs.2, Lhs.3)
1726094 ~54% {4} r3 = SCAN r2 OUTPUT In.0 'p', In.1, In.2, 1
1769636 ~54% {5} r4 = JOIN r3 WITH PRIMITIVE range#bbf ON Lhs.3,Lhs.1
1769636 ~45% {4} r5 = SCAN r4 OUTPUT In.2, (In.4 'indirectionIndex' + 1), In.0 'p', In.4 'indirectionIndex'
591253 ~11541% {2} r6 = JOIN r5 WITH SsaInternalsCommon#3c4fa02d::isModifiableAtImpl#2#ff ON FIRST 2 OUTPUT Lhs.2 'p', Lhs.3 'indirectionIndex'
1769636 ~52% {4} r7 = SCAN r4 OUTPUT In.2, In.0 'p', In.4 'indirectionIndex', (In.4 'indirectionIndex' + 1)
1724893 ~41% {5} r8 = JOIN r7 WITH CppType#d1355c92::CppType::hasType#2#dispred#fff ON FIRST 1 OUTPUT Rhs.1, Lhs.1 'p', Lhs.0, Lhs.2 'indirectionIndex', Lhs.3
1718843 ~46% {5} r9 = JOIN r8 WITH Type#2e8eb3ef::Type::stripType#0#dispred#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1 'p', Lhs.2, Lhs.3 'indirectionIndex', Lhs.4
8608 ~0% {5} r10 = JOIN r9 WITH SmartPointer#917721ba::SmartPtr#f ON FIRST 1 OUTPUT Lhs.1 'p', Lhs.2, Lhs.3 'indirectionIndex', Lhs.4, Lhs.0
8608 ~0% {5} r11 = r10 AND NOT PointerWrapper#7cc81d2d::PointerWrapper::pointsToConst#0#dispred#f(Lhs.4)
8608 ~4986% {2} r12 = SCAN r11 OUTPUT In.0 'p', In.2 'indirectionIndex'
599861 ~11711% {2} r13 = r6 UNION r12
return r13
```
2023-02-27 14:57:36 +00:00
Mathias Vorreiter Pedersen
354a12c906
C++: Fix queries. Since there's no longer indirect -> direct flow in
...
taint-tracking we need to make sure the affected sink definitions also
handle indirect flow.
2023-02-27 14:57:36 +00:00
Mathias Vorreiter Pedersen
1db24dd28d
C++: Fix missing types. We now assign the node corresponding to **p
...
an `UnknownType`.
2023-02-27 14:57:36 +00:00
Mathias Vorreiter Pedersen
4e16bb65e3
C++: Accept test changes. Because we now allocate _three_ indirect nodes
...
for a value of type `void*` (i.e., `p`, `*p` and `**p`) we need to decide
on a type for the `**p` value. We will do this in the next commit.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
16ba4652af
C++: Allocate an additional indirection for void pointers.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
f6b9ca3da6
C++: Add failing test.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
da4a059388
C++: Accept test changes.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
52e6e1dece
C++: Fix flow through partial definitions.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
575ac46bf3
C++: Add failing test.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
b952f619db
C++: Accept test changes.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
057e810122
C++: Fix flow through arrays.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
9d64c0a023
C++: Add failing test.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
1e4caca23a
C++: Accept query changes. Nothing bad to see here.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
2cb4a554ea
C++: Fix a bug in Expr <-> Node mapping.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
09df318e9e
C++: Also track flow out of indirect sources.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
a806569b5f
C++: The next commit is going to track flow out of both direct and indirect sources. This means we'll get a lot of duplication since there'll be flow from indirect source -> indirect sink and direct source -> direct sink (which both map to the same expressions). This commit changes the testing so that we only report a duplication when they're at different locations.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
5a8b900394
C++: Properly track smart pointer wrappers.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
64abf5b163
C++: Add conflation into DefaultTaintTracking.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
b951bf0f8f
C++: Remove conflation from taint-tracking.
2023-02-27 14:57:35 +00:00
Mathias Vorreiter Pedersen
a5bb093935
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-02-27 14:57:06 +00:00
Erik Krogh Kristensen
927c322b7b
Merge pull request #11769 from erik-krogh/moreSan
...
JS: Sanitizer for `sanitizer(x) === true`
2023-02-27 15:48:34 +01:00
Mathias Vorreiter Pedersen
332b759873
Merge pull request #12275 from jketema/uniform-ssa
...
Make "Detecting a potential buffer overflow" example more uniform
2023-02-27 14:38:11 +00:00
Mathias Vorreiter Pedersen
1dd95a61c1
Merge pull request #12292 from github/calumgrant/aggregate-domain
...
Query and tests for sum without domain
2023-02-27 14:19:20 +00:00
Mathias Vorreiter Pedersen
7437de2909
C++: Fix issue where 'getEnclosingCallable' didn't exist for some globals.
2023-02-27 14:06:13 +00:00
Tony Torralba
db6cb1ffe3
Remove dubious model after investigating it
2023-02-27 14:57:56 +01:00
yoff
335be21943
Update docs/codeql/codeql-language-guides/using-api-graphs-in-python.rst
...
Co-authored-by: Taus <tausbn@github.com >
2023-02-27 14:53:31 +01:00
Taus
25043f51a4
Merge pull request #11376 from RasmusWL/call-graph-code
...
Python: New type-tracking based call-graph
2023-02-27 14:51:21 +01:00
Anders Schack-Mulligen
9671c8824c
C#: Remove reference to stageStats.
2023-02-27 14:30:05 +01:00
Anders Schack-Mulligen
7e3e10c34b
C/C++: Remove reference to Partial Flow.
2023-02-27 14:30:05 +01:00
Anders Schack-Mulligen
bf650c755c
Dataflow: Sync changes to all languages.
2023-02-27 14:30:05 +01:00
Paolo Tranquilli
5cb3279816
Merge pull request #12319 from github/redsun82/swift-codegen
...
Codegen: make Swift codegen language agnostic
2023-02-27 14:06:20 +01:00
Felicity Chapman
70ed029d0e
More updates
2023-02-27 12:41:53 +00:00
Alex Ford
7c85448cba
Merge pull request #12080 from alexrford/js-use-shared-cryptography
...
JS: Use shared `CryptographicOperation` concept
2023-02-27 12:26:38 +00:00
Tony Torralba
0e3f4f6c7c
Merge pull request #12305 from pwntester/new_java_net_URL_toURI_taintstep
...
Java: Add new java.net.URI taintsteps
2023-02-27 13:09:46 +01:00
Geoffrey White
8ef6521cc9
Swift: Undo toString changes.
2023-02-27 12:01:02 +00:00
Ed Minnix
ed1aac1aa5
Remove unneeded example file
2023-02-27 12:16:14 +01:00
Ed Minnix
06a1368e7c
Additional test cases
2023-02-27 12:16:14 +01:00
Ed Minnix
4aec708fac
Add change note
2023-02-27 12:16:14 +01:00
Ed Minnix
6de946ef00
Remove experimental files
2023-02-27 12:16:14 +01:00
Ed Minnix
3ff1a97e38
Add byte[] signatures
2023-02-27 12:16:14 +01:00
Ed Minnix
d71386e001
Add example file for documentation
2023-02-27 12:16:14 +01:00
Ed Minnix
fa6ac063d1
Add com.auth0.jwt.algorithm.Algorithm sinks
...
The HMAC* constructors of the com.auth0.jwt.algorithm.Algorithm class
take a secret as a parameter. Therefore, the arguments should be added
to be checked for hardcoded credentials.
2023-02-27 12:16:14 +01:00
AlexDenisov
85bf10ee0f
Merge pull request #12227 from github/redsun82/swift-5.7.3
...
Swift: update to 5.7.3
2023-02-27 10:24:07 +01:00
Rasmus Lerchedahl Petersen
1447c2348a
python: describe API::CallNode
2023-02-27 10:06:23 +01:00
Paolo Tranquilli
1218145259
Codegen: update README.md files
2023-02-27 10:01:50 +01:00
Paolo Tranquilli
06a6450be4
Codegen: make --qltest-output optional
2023-02-27 09:46:48 +01:00
Paolo Tranquilli
cdd4e8021b
Move swift/codegen to misc/codegen
2023-02-27 09:46:48 +01:00
Paolo Tranquilli
6d192cdcc1
Swift: make C++ code generation language agnostic
2023-02-27 09:46:48 +01:00
Paolo Tranquilli
feb4e60c4b
Swift: make all ql generation language agnostic
2023-02-27 09:46:48 +01:00
Paolo Tranquilli
aca18f5da8
Swift: make codegen use a config file
2023-02-27 09:46:48 +01:00
Paolo Tranquilli
e4627cb702
Swift: make codegen a bit more language-agnostic
2023-02-27 09:46:48 +01:00
Tony Torralba
c027e10ef7
Add java.net tests
2023-02-27 09:33:16 +01:00
Tony Torralba
4a9f63ea1a
Fix toASCIIString casing
2023-02-27 09:32:42 +01:00
erik-krogh
0e60fc5512
Merge branch 'main' into alias-html
2023-02-27 09:16:25 +01:00
Erik Krogh Kristensen
f8f926ad50
Merge pull request #12175 from erik-krogh/reg-input
...
JS: add process.env and process.argv etc. as source for `js/regex-injection`
2023-02-27 09:12:02 +01:00
Rasmus Lerchedahl Petersen
9b08b06de4
python: update deprecated predicate names
2023-02-27 09:07:07 +01:00
Erik Krogh Kristensen
4ffe20ae75
Merge pull request #12189 from erik-krogh/more-export
...
JS: also consider relative exports when finding library inputs
2023-02-27 09:02:55 +01:00
Felicity Chapman
8af12071e1
First draft with bare bones
2023-02-24 21:39:16 +00:00
Geoffrey White
e71c7e7842
Swift: Autoformat.
2023-02-24 19:09:14 +00:00
Geoffrey White
a5943603ea
Swift: 'Any' -> 'An' (make QL-for-QL happy)
2023-02-24 19:08:11 +00:00
Alvaro Muñoz
f393a3c549
Add toExternalForm
2023-02-24 18:50:31 +01:00
Alvaro Muñoz
f1d765aa27
Missing taintstep for java.net.URL.toURI()
2023-02-24 18:45:52 +01:00
Felicity Chapman
874c362961
Add basic framework of new articles
2023-02-24 17:14:49 +00:00
Michael B. Gale
e2af8f1b43
Simplify Xamarin query to be platform-independent
2023-02-24 17:13:10 +00:00
Alex Ford
a54ca38e31
Ruby: DataFlow::CallableNode extends DataFlow::StmtSequenceNode
2023-02-24 16:40:35 +00:00
Alex Ford
e948e22186
Ruby: all Exprs have a corresponding DataFlow::Node that is more specific than just DataFlow::ExprNode
2023-02-24 16:40:35 +00:00
Michael B. Gale
31673431af
Add test for missing Xamarin SDKs
2023-02-24 16:24:32 +00:00
Michael B. Gale
3ef3441883
Add test for missing project files
2023-02-24 16:24:07 +00:00
Michael B. Gale
354f716ca8
Add test for dotnet incompatible projects
2023-02-24 16:23:52 +00:00
Michael B. Gale
430af661cd
Show .NET core error only if files exist
2023-02-24 16:16:33 +00:00
Mathias Vorreiter Pedersen
f92433171d
Merge pull request #12304 from MathiasVP/more-fixes-to-large-join-order-query
...
QL: More fixes to the join-order query
2023-02-24 14:21:05 +00:00
Michael B. Gale
b203533fc6
Fix C++ test missing env var
2023-02-24 14:16:20 +00:00
Michael B. Gale
7de26550ad
Add tests for build script diagnostics
2023-02-24 13:49:06 +00:00
Michael B. Gale
bdbcaab0ba
Use relative paths
2023-02-24 13:49:06 +00:00
Michael B. Gale
1e2329d0dd
Add diagnostic for missing project files
2023-02-24 13:49:05 +00:00
Michael B. Gale
3bf6b6f96f
Add helper for markdown lists of projects
2023-02-24 13:49:05 +00:00
Mathias Vorreiter Pedersen
c9f8ebd620
QL: Remove redundant conjunct in aggregates.
2023-02-24 13:19:52 +00:00
Mathias Vorreiter Pedersen
375de59a14
QL: More fixes to the join-order query.
2023-02-24 12:44:17 +00:00
Calum Grant
10aad99e21
Add avg case
2023-02-24 11:02:07 +00:00
Grzegorz Niedziela
48007d14d5
move tests to experimental as well and fix .qlref reference
2023-02-24 10:38:21 +00:00
Tom Hvitved
af14f36127
Merge pull request #12289 from hvitved/util/file-system
...
Util: Add shared file system implementation
2023-02-24 11:23:48 +01:00
Chris Smowton
da459c4086
Merge pull request #12281 from smowton/smowton/feature/kotlin-too-new-diagnostic
...
Add test for a too-new Kotlin version
2023-02-24 08:48:30 +00:00
Mathias Vorreiter Pedersen
95283154ae
Merge pull request #12303 from MathiasVP/join-order-query-fixes
2023-02-23 22:56:29 +00:00
Mathias Vorreiter Pedersen
1f40518c78
QL: Fixup the join-order query.
2023-02-23 22:39:20 +00:00
Mathias Vorreiter Pedersen
a86a8ced54
Merge pull request #12302 from MathiasVP/recursive-join-order-metric
...
QL: Extend the join-order badness query to recursive predicates
2023-02-23 22:35:35 +00:00
Mathias Vorreiter Pedersen
f0fe6fba88
QL: Accept test changes.
2023-02-23 22:25:04 +00:00
Mathias Vorreiter Pedersen
b0e391cff0
QL: Extend the join order metric to cover recursive predicates.
2023-02-23 22:12:23 +00:00
Mathias Vorreiter Pedersen
bb692a7e4a
Merge pull request #12299 from github/calumgrant/qlql
...
Add classes and predicates to StructuredLogs
2023-02-23 21:47:28 +00:00
Calum Grant
41d88a45d9
Fix merge
2023-02-23 21:02:43 +00:00
Calum Grant
efa2647f09
Merge branch 'main' into calumgrant/qlql
2023-02-23 20:55:09 +00:00
Taus
b993b5ef77
Merge pull request #12298 from MathiasVP/join-order-metric-query-with-more-rows
...
QL: Output more rows in the join order query
2023-02-23 20:31:43 +01:00
Taus
6141c96b8c
Merge pull request #12294 from MathiasVP/visit-recursive-evaluation
...
QL: Add a visitor for traversing recursive evaluations
2023-02-23 20:28:53 +01:00
Henry Mercer
39a30cf34b
Merge pull request #12297 from github/codeql-ci/atm/release-0.4.8
...
JS: Bump version numbers of ML-powered packs after 0.4.8 release
2023-02-23 19:18:28 +00:00
Mathias Vorreiter Pedersen
9ee078d1f2
QL: More column information.
2023-02-23 19:17:22 +00:00
Calum Grant
dde18de2d1
Fixes
2023-02-23 19:03:05 +00:00
Calum Grant
196dbd3a33
Exploratory query to test the API
2023-02-23 19:01:52 +00:00
Calum Grant
77871e287d
Use RAExpr
2023-02-23 18:35:24 +00:00
Calum Grant
e368b8f72a
Add classes and predicates to StructuredLogs
2023-02-23 17:48:21 +00:00
Mathias Vorreiter Pedersen
229e291e1b
QL: Fix naming.
2023-02-23 17:34:07 +00:00
Mathias Vorreiter Pedersen
dcc9b66aae
Merge branch 'main' into visit-recursive-evaluation
2023-02-23 17:16:47 +00:00
Mathias Vorreiter Pedersen
9c8b8dff88
QL: Output more rows in the join order query.
2023-02-23 17:07:27 +00:00
Mathias Vorreiter Pedersen
48bf15f79c
Merge pull request #12291 from github/calumgrant/slow-predicates
...
Slow predicates query
2023-02-23 16:41:39 +00:00
Mathias Vorreiter Pedersen
11ea8e0f85
Merge pull request #12295 from MathiasVP/join-order-metric-query
...
QL: Non-recursive join-order-metric query
2023-02-23 16:40:07 +00:00
Geoffrey White
1a7e7481b2
Swift: Add flow thtaint flow through assignments other than =.
2023-02-23 16:25:32 +00:00
Geoffrey White
a222757e69
Swift: Add support for pointwise assignment operators.
2023-02-23 16:25:32 +00:00
Geoffrey White
15e3892b03
Swift: Add support for overflow assignment operators.
2023-02-23 16:25:32 +00:00
Geoffrey White
1d4925d7af
Swift: Expand assignment operations.
2023-02-23 16:25:31 +00:00
Henry Mercer
eb1fe57590
Merge branch 'main' into codeql-ci/atm/release-0.4.8
2023-02-23 16:23:32 +00:00
github-actions[bot]
7e2b286f03
JS: Bump version of ML-powered library and query packs to 0.4.9
2023-02-23 16:12:23 +00:00
github-actions[bot]
e02368f6fa
JS: Bump patch version of ML-powered library and query packs
2023-02-23 16:04:39 +00:00
Mathias Vorreiter Pedersen
858b3de547
Merge branch 'main' into join-order-metric-query
2023-02-23 15:54:38 +00:00
Mathias Vorreiter Pedersen
23b9abcbbf
QL: Add a query for finding the predicates with the highest tuple sums.
2023-02-23 15:53:32 +00:00
Mathias Vorreiter Pedersen
7595c1c306
QL: Add a visitor for traversing recursive evaluations.
2023-02-23 15:53:32 +00:00
Taus
d48938d168
Merge branch 'main' into calumgrant/slow-predicates
2023-02-23 16:53:04 +01:00
Taus
0419b5b24c
Merge pull request #12296 from github/tausbn/ql-remove-unused-predicates
...
QL: Remove unused predicates
2023-02-23 16:47:34 +01:00
Taus
38ca4a8d3d
QL: Remove unused predicates
2023-02-23 15:25:38 +00:00
Michael B. Gale
b034b2f2a3
Refactor autobuild logic into an IBuildRule
2023-02-23 14:54:37 +00:00
Chris Smowton
eb8a0c1129
Add test for a too-new Kotlin version
2023-02-23 14:53:27 +00:00
Mathias Vorreiter Pedersen
d7d9bea5e8
QL: Add a query for computing the join order metric for non-recursive predicates.
2023-02-23 14:27:39 +00:00
Geoffrey White
71813fa0a7
Swift: Implement full tree of Assignment classes
2023-02-23 13:23:36 +00:00
Geoffrey White
aaa89f7f32
Swift: Add a test for assignment exprs.
2023-02-23 13:15:06 +00:00
Mathias Vorreiter Pedersen
d734982e7b
Merge pull request #12286 from github/tausbn/ql-add-a-bunch-of-convenience-predicates
...
QL: Add predicates for timestamps and locations
2023-02-23 12:45:46 +00:00
Calum Grant
fccf2d705e
Add the expected file
2023-02-23 12:25:29 +00:00
Calum Grant
6cf575df78
Query and tests for sum without domain
2023-02-23 12:19:25 +00:00
gregxsunday
34b441c3cc
move query to experimental folder
2023-02-23 12:12:04 +00:00
gregxsunday
5a85fa12c7
add block test cases and update tests
2023-02-23 12:09:22 +00:00
gregxsunday
f9b5846675
add detection of sources directly used with blocks
2023-02-23 12:09:12 +00:00
Grzegorz Niedziela
4ab6a7bdfd
Merge branch 'github:main' into main
2023-02-23 10:50:15 +00:00
Calum Grant
564d7c0d53
Fix bug
2023-02-23 10:22:18 +00:00
Calum Grant
eb553266ae
Add this.
2023-02-23 09:51:29 +00:00
Calum Grant
58563744d6
A simple query
2023-02-23 09:50:09 +00:00
Tom Hvitved
ad37523b07
C#: Adopt shared file system implementation
2023-02-23 10:21:04 +01:00
Tom Hvitved
bd5ae88a9a
Ruby: Move FileSystem.qll implementation into shared util pack
2023-02-23 10:21:04 +01:00
Chris Smowton
748387a69f
Merge pull request #11943 from smowton/smowton/admin/java-autobuilder-diagnostic-tests
...
Java: Add tests for autobuilder-detected diagnostics
2023-02-23 09:20:03 +00:00
Michael Nebel
cf659f9a5e
Merge pull request #12261 from michaelnebel/csharpjava/refactorissupported
...
C#/Java: Re-factor the `isSupported` predicate.
2023-02-23 10:06:11 +01:00
Michael Nebel
ca94e02107
Merge pull request #12258 from michaelnebel/csharp/enumanddelegatemodfiers
...
C#: Generalise modifier extraction from symbols.
2023-02-23 10:04:55 +01:00
Paolo Tranquilli
8ed99bc83b
Merge pull request #12284 from github/redsun82/swift-printast
...
Swift: fix comments in PrintAst library
2023-02-23 09:27:14 +01:00
Taus
6a32a3ae58
QL: Add predicates for timestamps and locations
2023-02-22 22:47:51 +00:00
Mathias Vorreiter Pedersen
24935c97bc
Merge pull request #12285 from github/calumgrant/ql-ra-parser
...
RA parser first draft
2023-02-22 19:07:03 +00:00
Chris Smowton
560a341e87
Fix multiple-candidate-builds message
2023-02-22 17:43:08 +00:00
Chris Smowton
c4640a6a9a
Fix diagnostic markdown links
2023-02-22 17:43:08 +00:00
Chris Smowton
73e4480cc6
Update test expectations
2023-02-22 17:43:08 +00:00
Chris Smowton
2c216793a4
Diagnostics tests: don't create own diagnostics directory
...
The CLI does this now. Also omit default arguments to the integration test script.
2023-02-22 17:43:08 +00:00
Chris Smowton
53ac1e0133
Replace test absolute directory
2023-02-22 17:43:08 +00:00
Chris Smowton
57ac951451
Add tests for Java autobuilder errors
2023-02-22 17:43:08 +00:00
Chris Smowton
fd1ce5d12c
Switch to using language-specific diagnostic environment variable
2023-02-22 17:43:08 +00:00
Chris Smowton
7a2c6b5645
Java no-build-system test: switch to single-file diagnostics.expected format
2023-02-22 17:43:07 +00:00
Chris Smowton
40e45d3636
Add test for missing Java build system
2023-02-22 17:43:07 +00:00
Chris Smowton
7dc5e7e0fe
Merge pull request #12283 from github/smowton/admin/merge-rc38-into-main-2023
...
Merge rc/3.8 into main
2023-02-22 17:35:11 +00:00
Calum Grant
0fdcf0338a
Tidy up warnings
2023-02-22 17:02:49 +00:00
Calum Grant
f3e5a8f90f
Minor tidy
2023-02-22 17:01:07 +00:00
Calum Grant
9980756ee8
RA parser first draft
2023-02-22 16:51:16 +00:00
Paolo Tranquilli
62f4e48433
Swift: fix comments in PrintAst library
2023-02-22 16:46:46 +01:00
Mathias Vorreiter Pedersen
676f4125c3
Merge pull request #12282 from MathiasVP/float-and-array-padding
...
QL: Handle large numbers and -1 padding
2023-02-22 15:16:54 +00:00
Chris Smowton
9155e08b65
Merge remote-tracking branch 'origin/rc/3.8' into smowton/admin/merge-rc38-into-main-2023
2023-02-22 15:12:06 +00:00
Chris Smowton
2c7a2fc6d7
Merge pull request #12272 from smowton/smowton/admin/rc38-ci-fixes
...
Merge rc/3.7 into rc/3.8
2023-02-22 15:10:35 +00:00
Mathias Vorreiter Pedersen
498d0c359e
QL: Convert various int getters to float (to avoid overflow) and correctly handle '-1' padding.
2023-02-22 14:54:40 +00:00
Mathias Vorreiter Pedersen
b738c2684b
Merge pull request #12279 from MathiasVP/kind-predicate-logs
...
QL: Start of the AST for `kind: predicates` evaluator logs
2023-02-22 14:25:11 +00:00
Mathias Vorreiter Pedersen
5e3289a089
Merge pull request #12280 from github/tausbn/ql-make-json-parsing-a-bit-more-robust
...
QL: Make the JSON parser a bit more robust
2023-02-22 14:16:48 +00:00
Mathias Vorreiter Pedersen
d64d03ec48
QL: Fix Code Scanning warning.
2023-02-22 14:15:47 +00:00
Mathias Vorreiter Pedersen
f155f19725
QL: Respond to comments.
2023-02-22 14:15:18 +00:00
Taus
2cdec47585
QL: Make the JSON parser a bit more robust
...
Updates the grammar to allow trailing commas in objects and arrays.
Also bumps the file size limit to 10MB.
2023-02-22 13:45:47 +00:00
Mathias Vorreiter Pedersen
161acf0ebe
QL: Add more getters.
2023-02-22 13:43:51 +00:00
Mathias Vorreiter Pedersen
2c31d6863c
QL: Start on the AST for kind: predicates evaluator logs.
2023-02-22 13:26:47 +00:00
Michael B. Gale
93b7a2bc92
Fix: drop please
2023-02-22 12:32:11 +00:00
Michael B. Gale
c3e25d2549
Add docs link for missing Xamarin SDKs
2023-02-22 12:32:10 +00:00
Michael B. Gale
08b51c3b06
Link to docs for autobuild failures
2023-02-22 12:32:10 +00:00
Michael B. Gale
0f320996cf
Make improvements based on PR feedback
2023-02-22 12:32:07 +00:00
Mathias Vorreiter Pedersen
5b1288143f
Merge pull request #12277 from github/tausbn/clean-up-structured-logs-module
...
QL: Clean up structured logs module
2023-02-22 12:27:07 +00:00
Taus
5304fe2bcb
QL: Clean up structured logs module
...
Pushes it into an internal module and removes the abstract class.
2023-02-22 11:07:48 +00:00
Jeroen Ketema
eb6c8480f8
Make "Detecting a potential buffer overflow" example more uniform
...
All queries that use SSA import `semmle.code.cpp.controlflow.SSA` explicitly,
except for the last one. Also import the library there. Note that this is not
strictly necessary, as the library is transitively imported via `import cpp`.
2023-02-22 10:02:12 +01:00
Mathias Vorreiter Pedersen
dffb12070e
Merge pull request #12271 from github/tausbn/ql-fix-json-extraction
...
QL: Fix JSON extraction
2023-02-22 08:50:49 +00:00
Chris Smowton
b28f1a562a
Merge pull request #12273 from intrigus-lgtm/patch-8
...
Fix grammar
2023-02-22 08:43:07 +00:00
Michael Nebel
47c69d924b
C#: Update comment on the isSupported predicate.
2023-02-22 09:05:28 +01:00
Michael Nebel
b4a6d1e1b6
C#: Add change note.
2023-02-22 08:59:14 +01:00
Michael Nebel
3e0aacd36b
C#: Generalize modifier extraction from symbols.
2023-02-22 08:53:29 +01:00
intrigus-lgtm
540d3a3a99
Fix grammar
2023-02-22 00:42:50 +01:00
Taus
a3a099cf56
QL: Add a few more methods
...
Still need to implement something to encapsulate RA, link it up, etc.
2023-02-21 21:27:17 +00:00
Chris Smowton
7106f7d52e
Add gradle wrappers to compiler_arguments and kotlin_kfunction tests
...
`
2023-02-21 21:20:43 +00:00
Chris Smowton
8bb068f3a9
Merge remote-tracking branch 'origin/rc/3.7' into smowton/admin/rc38-ci-fixes
2023-02-21 21:17:30 +00:00
Taus
729563c9a3
QL: Add preliminary support for structured logs
2023-02-21 21:09:34 +00:00
Chris Smowton
d849e27b37
Merge pull request #12259 from smowton/smowton/admin/gradle-wrappers-rc37
...
[rc/3.7]: Add Gradle wrappers for Kotlin tests
2023-02-21 21:04:39 +00:00
Taus
cf734919b9
QL: Fix bad string grammar
...
What was there before made it so that you couldn't actually extract the
contents of a string.
2023-02-21 20:20:58 +00:00
Taus
bab53b5736
QL: Fix JSON extraction
...
I had forgotten about this extra filtering that takes place in the
extractor.
2023-02-21 19:50:27 +00:00
Mathias Vorreiter Pedersen
ad8d9c5b91
Merge pull request #12269 from github/tausbn/ql-add-json-extraction
...
QL: Add JSON (+C/L) extraction
2023-02-21 16:42:19 +00:00
Arthur Baars
aac65b0df0
Merge pull request #12268 from aibaars/update-erb
...
Ruby: update tree-sitter-embedded-template
2023-02-21 14:31:30 +01:00
Taus
b5ebd1a0fd
QL: Add JSON (+C/L) extraction
2023-02-21 12:59:30 +00:00
Arthur Baars
814bef021d
Ruby: update tree-sitter-embedded-template
2023-02-21 13:49:33 +01:00
Anders Schack-Mulligen
46d6f5af7e
Java: Update some tests.
2023-02-21 13:14:35 +01:00
Geoffrey White
c462e010d1
Merge pull request #12266 from geoffw0/taintplusequals
...
Swift: Taint through arithmetic
2023-02-21 09:32:53 +00:00
Anders Schack-Mulligen
acf6a77c6b
Dataflow: Amend qldoc
2023-02-21 10:20:42 +01:00
Anders Schack-Mulligen
bb0ec46eb2
Java: Update tests.
2023-02-21 10:04:25 +01:00
Anders Schack-Mulligen
00a273b959
Java: Refactor data flow library.
2023-02-21 10:04:14 +01:00
Tom Hvitved
c3679d0661
Fix bad join
2023-02-21 19:28:55 +13:00
Tom Hvitved
9880952e72
Revert "Ruby: Fix performance of Filter.getAnAction"
...
This reverts commit f6c863c13bc840cba983ed12232725b8a8552cb4.
2023-02-21 19:28:55 +13:00
Harry Maclean
710ddb1f96
Ruby: Fix performance of Filter.getAnAction
...
Only look at the current class and the immediate superclass.
This will miss some edge cases but is much faster.
2023-02-21 19:28:54 +13:00
Harry Maclean
2bc7d4e1ee
Ruby: Clean up
2023-02-21 19:28:54 +13:00
Harry Maclean
7a01c4a974
Ruby: Add change note for filter dataflow
2023-02-21 19:28:54 +13:00
Harry Maclean
ba4d0a81d5
Ruby: Simplify filter dataflow
...
This introduces some false flow (the `ThreeController` and
`FourController` examples in `filter_flow.rb`) but is simpler and
in line with how we model flow for normal method calls.
2023-02-21 19:28:53 +13:00
Harry Maclean
0a02b45ad7
Ruby: More filter flow steps
...
Add a jump step from the last self post-update node in a method to the self parameter of the
next method.
2023-02-21 19:28:26 +13:00
Harry Maclean
fae5320c3a
Ruby: Add filter flow tests
2023-02-21 19:27:53 +13:00
Harry Maclean
04e80fa48f
Ruby: Use lookupMethod
...
The hope is that this predicate is already used elsewhere, so its cost
is amortized.
2023-02-21 19:26:36 +13:00
Harry Maclean
889d97163e
Ruby: Refactor getFilterCallable
...
Try to force a join with the filter argument string first, to reduce
tuple counts.
2023-02-21 19:26:36 +13:00
Harry Maclean
2590682262
Ruby: inline RenderCallUtils::getBaseName
...
This seems to yield a small performance increase.
2023-02-21 19:26:36 +13:00
Harry Maclean
ae3d91b546
Ruby: First draft of rails callback flow
2023-02-21 19:26:36 +13:00
Harry Maclean
6eeb711988
Ruby: Add AdditionalJumpStep class
2023-02-21 19:26:36 +13:00
Geoffrey White
cb8f5979d1
Swift: Update swift/string-length-conflation to taint tracking and remove a special case that's now covered by taint.
2023-02-20 18:18:15 +00:00
Geoffrey White
9b117fefd7
Swift: Generalize the arithmetic we allow taint through.
2023-02-20 18:18:15 +00:00
Geoffrey White
a5bb336647
Merge pull request #12265 from geoffw0/taintunaryplus
...
Swift: Add unary +
2023-02-20 18:04:37 +00:00
Geoffrey White
87c0b6195f
Swift: Add taint tests for various arithmetic operators.
2023-02-20 17:22:51 +00:00
Geoffrey White
3038543242
Swift: Add UnaryPlusExpr.
2023-02-20 17:15:20 +00:00
Calum Grant
779c2365fe
Merge pull request #12091 from github/cg/shared-code-metrics
...
Script to generate shared code metrics
2023-02-20 16:58:30 +00:00
Geoffrey White
e19e28fbb9
Merge pull request #12263 from geoffw0/flowsourceinline
...
Swift: Convert the flow sources test to inline expectations.
2023-02-20 16:13:01 +00:00
Erik Krogh Kristensen
6894803b14
Merge pull request #12257 from erik-krogh/compile-stuff
...
CI: Fix CI use of the compilation cache
2023-02-20 16:46:09 +01:00
Geoffrey White
31967cc032
Swift: Add a couple of dataflow test cases for operators that behave as an identity function.
2023-02-20 15:42:07 +00:00
Stephan Brandauer
7714acea82
delete a model that should pbly be a summary step
2023-02-20 15:44:58 +01:00
erik-krogh
389b7ceff5
support the new shared compilation cache directory
2023-02-20 15:34:03 +01:00
erik-krogh
f6fdf45359
remember to actually output the compilation dir
2023-02-20 15:32:50 +01:00
Geoffrey White
690b5debf4
Swift: Remove the old test.
2023-02-20 13:58:53 +00:00
Geoffrey White
dd7f54677b
Swift: Add inline expectation tags.
2023-02-20 13:57:24 +00:00
Joe Farebrother
1fb27354b9
Merge pull request #12242 from joefarebrother/testgen-improvements
...
Java: Test generator fixes
2023-02-20 13:53:18 +00:00
Arthur Baars
f71c3301b3
Ruby: address review comment
2023-02-20 14:32:24 +01:00
Arthur Baars
6fd836d3a9
Ruby: improve wording of error messages
2023-02-20 14:32:02 +01:00
Alex Ford
774030a8db
Merge pull request #12083 from pwntester/ruby_twirp_support
...
[Ruby] Add support for Twirp framework
2023-02-20 13:16:52 +00:00
Michael Nebel
86888b894a
Java: Re-factor isSupported for the telemetry queries.
2023-02-20 13:53:18 +01:00
Michael Nebel
f594411c43
C#: Re-factor isSupported for the telemetry queries.
2023-02-20 13:53:18 +01:00
yoff
52dd1f451c
Merge pull request #12260 from yoff/python/fix-precision-usafe-unpack
...
python: Lower precision as discussed
2023-02-20 13:38:50 +01:00
Michael Nebel
cdda4005fd
C#: Add missing hasProvenance overrides.
2023-02-20 13:19:56 +01:00
Michael Nebel
813ffa440c
Java: Consider ai-generated flow summaries to as generated summaries in dataflow.
2023-02-20 12:11:48 +01:00
Geoffrey White
b66ed57e17
Swift: Fix a mistake in FlowSources.qll.
2023-02-20 11:11:46 +00:00
Rasmus Lerchedahl Petersen
9e97877938
python: lower precision as discussed
2023-02-20 12:06:19 +01:00
Geoffrey White
d9f2d348f4
Swift: Add an inline expectations test for flow sources.
2023-02-20 11:03:10 +00:00
Chris Smowton
dbe0797063
Add Gradle wrappers for Kotlin tests
...
This avoids tests' behaviour changing due to environmental Gradle version changes
2023-02-20 10:51:51 +00:00
Michael Nebel
54c0404110
Java: Allow ai-generated as a provenance value.
2023-02-20 11:47:09 +01:00
Tom Hvitved
658cc33bb8
Merge pull request #12212 from hvitved/util/inline-expect-test-use-end-line
...
Util: Use end line instead of start line for actual results
2023-02-20 11:41:02 +01:00
Stephan Brandauer
cf5a651b1f
use provenance ai-generated for triage data and use the read-file MaD label
2023-02-20 11:33:18 +01:00
Stephan Brandauer
8d7031c166
Update Java MaD sink decls after triage
...
Triage request: 2276
2023-02-20 11:33:18 +01:00
Geoffrey White
6cec8ece3f
Swift: Split off FlowConfig.qll.
2023-02-20 10:27:40 +00:00
Michael Nebel
35793b4de5
C#: Add change note.
2023-02-20 10:30:11 +01:00
Michael Nebel
7aeb61ca71
C#: Add file scoped test cases.
2023-02-20 10:30:10 +01:00
Michael Nebel
81fde0ea79
C#: Make library support for file scoped types.
2023-02-20 10:30:10 +01:00
Michael Nebel
ffb8a57893
C#: Make extractor support for file scoped types.
2023-02-20 10:30:10 +01:00
Harry Maclean
9aea725f3d
Merge pull request #12053 from hmac/actioncontroller-renderer-2
...
Ruby: Model ApplicationController.renderer
2023-02-20 22:28:30 +13:00
Geoffrey White
343ddede5a
Merge branch 'main' into nsstring
2023-02-20 09:15:58 +00:00
Mathias Vorreiter Pedersen
49be5fd19a
Merge pull request #12250 from geoffw0/filemanagersource
...
Swift: Taint sources for FileManager
2023-02-20 09:12:11 +00:00
Tom Hvitved
879eff41ea
Merge branch 'main' into util/inline-expect-test-use-end-line
2023-02-20 10:03:38 +01:00
Rasmus Wriedt Larsen
efc75e02cc
Merge pull request #12168 from RasmusWL/crypto-stdlib-modeling
...
Python: Add modeling of `hmac`
2023-02-20 09:26:53 +01:00
ihsinme
213abc6642
Update DivideByZeroUsingReturnValue.expected
2023-02-19 21:42:48 +03:00
ihsinme
54acbf7676
Update test.cpp
2023-02-19 21:42:14 +03:00
ihsinme
49af5ec536
Update DivideByZeroUsingReturnValue.ql
2023-02-19 21:41:28 +03:00
Harry Maclean
4e07fd3eb1
Ruby: Model ApplicationController.renderer
2023-02-19 13:37:27 +13:00
Taus
89aec093c8
Merge pull request #12233 from github/tausbn/add-blame-extractor
2023-02-18 15:06:25 +01:00
erik-krogh
cd823d7495
add git info to the checkout
2023-02-18 13:43:24 +01:00
erik-krogh
52a9d5379b
add buramu to the files cached for the extractor
2023-02-18 13:22:41 +01:00
erik-krogh
db9a0d1c52
make the deprecation query calculate based on months, and adjust the cutoff to 14 months
2023-02-18 12:39:16 +01:00
erik-krogh
6f8ae703ca
add the deprecation file when running QL-for-QL
2023-02-18 12:31:14 +01:00
erik-krogh
1a308316c6
fix join-order of ql/outdated-deprecation
2023-02-18 12:28:06 +01:00
erik-krogh
fcff18aa3c
add query header for OutdatedDeprecations
2023-02-18 12:22:34 +01:00
erik-krogh
4f97c0470b
exclude java integration tests from QL-for-QL
2023-02-18 12:21:35 +01:00
Chris Smowton
655aa700bc
Merge pull request #12247 from smowton/smowton/fix/integer-conversion-sign
...
Go integer conversion: check against sink, not source signedness
2023-02-18 08:55:52 +00:00
Jami
f72cb5f650
Merge pull request #12215 from jcogs33/jcogs33/move-awt-swing-from-isJdkInternal
...
Java: move java.awt and javax.swing from `isJdkInternal` to `isInfrequentlyUsed`
2023-02-17 15:48:39 -05:00
Geoffrey White
7a9bbb1414
Swift: Model FileManager sources.
2023-02-17 20:04:27 +00:00
Chris Smowton
c7da1c9e0d
Use example that compiles on 32-bit arch
2023-02-17 19:35:04 +00:00
Chris Smowton
be468fe122
Change note
2023-02-17 19:21:15 +00:00
Chris Smowton
4e86edf4fe
Add test case
2023-02-17 19:16:36 +00:00
Chris Smowton
4d1608aafa
Go integer conversion: check against sink, not source signedness
2023-02-17 18:53:18 +00:00
Geoffrey White
5d125572ec
Swift: Test for FileManager taint sources.
2023-02-17 18:14:16 +00:00
Nick Rolfe
cef6765890
Merge pull request #12221 from github/post-release-prep/codeql-cli-2.12.3
...
Post-release preparation for codeql-cli-2.12.3
2023-02-17 17:59:45 +00:00
Calum Grant
c72a5d5dc0
Merge pull request #12245 from github/calumgrant/codeowners-dynamic
...
Update CODEOWNERS for dynamic teams
2023-02-17 17:25:08 +00:00
Chris Smowton
7205f30803
Merge pull request #12223 from github/smowton/admin/announce-jdk-20-2
...
Java: Announce JDK20 support
2023-02-17 16:10:24 +00:00
Calum Grant
e400a1ad77
Update CODEOWNERS
...
As agreed in the retro, we'll make all dynamic team members responsible for PRs
2023-02-17 15:48:24 +00:00
Joe Farebrother
a9f1436930
Test generator fixes
...
- Revert previous change to constructor return values; as constructors are supposed to be modeled using Argument[-1] rather than ReturnValue
- Fix generation of ambiguous calls when one of the conflicting methods is overridden
2023-02-17 15:30:06 +00:00
Nick Rolfe
5929c99eb1
Merge branch 'main' into post-release-prep/codeql-cli-2.12.3
2023-02-17 15:02:17 +00:00
Arthur Baars
71c8bb20f9
Merge pull request #12238 from aibaars/query-format-q
...
CI: make 'codeql query format' less verbose
2023-02-17 15:58:19 +01:00
Nick Rolfe
3e5534f0ba
Merge branch 'main' into post-release-prep/codeql-cli-2.12.3
2023-02-17 14:39:26 +00:00
Taus
9f4f7a76c9
QL: Add query for outdated deprecations
2023-02-17 14:27:15 +00:00
Calum Grant
2cfd6c5597
Update misc/scripts/shared-code-metrics.py
...
Co-authored-by: Anders Peter Fugmann <anders@fugmann.net >
2023-02-17 14:26:58 +00:00
Calum Grant
35a53fa990
Merge pull request #12183 from RasmusWL/example-update
...
Python: Update a few examples so queries work on them
2023-02-17 14:21:38 +00:00
Arthur Baars
94467e638e
CI: make 'codeql query compile' less verbose
2023-02-17 15:20:31 +01:00
Tom Hvitved
59efcd593a
Python: Update test expectations
2023-02-17 15:20:21 +01:00
Tom Hvitved
0bceefc930
Java: Update test expectations
2023-02-17 15:20:21 +01:00
gregxsunday
fe97d2a05d
fix file formatting
2023-02-17 14:01:28 +00:00
Arthur Baars
87cb3fd59f
Update .github/workflows/compile-queries.yml
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-02-17 14:58:19 +01:00
Arthur Baars
c167919ff6
CI: make 'codeql query format' less verbose
2023-02-17 14:53:40 +01:00
Geoffrey White
ad886a3241
Swift: Autoformat.
2023-02-17 13:50:11 +00:00
Taus
db748fae6b
QL: Integrate blame parser into extractor
2023-02-17 13:22:18 +00:00
Taus
59c1cfb43a
QL: Add grammar for parsing blame files
2023-02-17 13:21:44 +00:00
Taus
0e0ec89e60
QL: Add tool for extracting blame info
...
I had some trouble getting this to work with version 1.54 of the Rust
toolchain, so I had to bump it up to 1.59.
2023-02-17 13:20:06 +00:00
Grzegorz Niedziela
9d8c117c61
added QLDocs for ZipSlip module
2023-02-17 12:57:35 +00:00
Grzegorz Niedziela
815b5a0312
add changelog file
2023-02-17 12:50:10 +00:00
Grzegorz Niedziela
c03ba2cc13
fix docs references
2023-02-17 12:50:01 +00:00
Grzegorz Niedziela
652c7ff1ed
Push Sanitizer definition to ZipSlipCustomization.qll
2023-02-17 12:49:31 +00:00
Grzegorz Niedziela
8bbbb95a87
Make ZipSlip module classes private and push Sanitizer definition to ZipSlipCustomization.qll
2023-02-17 12:49:04 +00:00
Chris Smowton
d3e73891b5
Merge pull request #12229 from smowton/smowton/fix/gradle-wrapper-for-java-tests
...
Java: Add Gradle wrappers for Kotlin tests
2023-02-17 12:37:25 +00:00
Tom Hvitved
37fc8f5039
Swift: Update test expectations
2023-02-17 13:24:28 +01:00
Tom Hvitved
18c6b68232
Go: Update test expectations
2023-02-17 13:22:29 +01:00
Tom Hvitved
e9bce9f8cd
Ruby: Update test expectations
2023-02-17 13:22:28 +01:00
Tom Hvitved
85e4707e0c
Util: Use end line instead of start line for actual results
2023-02-17 13:22:28 +01:00
Geoffrey White
417d175ff2
Merge branch 'main' into nsstring
2023-02-17 11:32:40 +00:00
Arthur Baars
51f34eb3e9
Ruby: diagnostics: add support for markdown messages
2023-02-17 12:01:41 +01:00
Michael Nebel
8b967f9706
C#: Re-factor BuildNamedTypeId.
2023-02-17 11:49:12 +01:00
Geoffrey White
4356d359a6
Merge pull request #12226 from geoffw0/stringfix
...
Swift: Fix minor mistakes in the String models.
2023-02-17 10:23:56 +00:00
Chris Smowton
d1cd4cd099
Add Gradle wrappers for Kotlin tests
...
This avoids tests' behaviour changing due to environmental Gradle version changes
2023-02-17 10:10:22 +00:00
Geoffrey White
c692a316b0
Swift: Add new results found in UncontrolledFormatString test.
2023-02-17 10:07:32 +00:00
Geoffrey White
9cd9627778
Swift: Fix identical rows.
2023-02-17 10:00:06 +00:00
Geoffrey White
981f232ea9
Swift: Additional test cases.
2023-02-17 09:49:02 +00:00
Rasmus Wriedt Larsen
39e7bba563
Merge pull request #12203 from RasmusWL/import-resolution-phi
...
Python: Handle if-then-else definitions in import resolution
2023-02-17 10:10:42 +01:00
Paolo Tranquilli
c4c9fd72bb
Swift: update to 5.7.3
...
No changes to the Swift frontend library headers, so no changes to the
extractor seem to be required.
2023-02-17 10:03:52 +01:00
erik-krogh
271cc6b961
remove lefterover debug comment
2023-02-17 09:50:22 +01:00
yoff
2f8dddabb6
Merge pull request #11570 from Sim4n6/UnsafeUnpack
...
Python: Unsafe unpacking using `shutil.unpack_archive()` query and tests
2023-02-17 09:48:05 +01:00
Geoffrey White
0aa9c76f42
Swift: Grammar and formatting.
2023-02-17 08:45:51 +00:00
Michael Nebel
2f6ffdd88f
Merge pull request #12207 from michaelnebel/csharp/requiredmembers
...
C# 11: Required fields and properties.
2023-02-17 09:29:46 +01:00
Chris Smowton
6fc5bdd871
Announce JDK20 support
2023-02-17 08:15:33 +00:00
Michael Nebel
b87de911ba
C#: Add change note.
2023-02-17 08:40:39 +01:00
Michael Nebel
3971dedcf6
C#: Add testcase for required members.
2023-02-17 08:40:39 +01:00
Michael Nebel
c0b8e852c5
C#: Add library support for required members.
2023-02-17 08:40:39 +01:00
Michael Nebel
2d46dd2936
C#: Add extractor support for the required modifier for fields and properties.
2023-02-17 08:40:39 +01:00
Michael Nebel
ff9e738d38
Merge pull request #12167 from michaelnebel/csharp/deprecategetassemblyname
...
C#: Checked operator support.
2023-02-17 08:39:32 +01:00
Geoffrey White
a894fc6ce8
Swift: Fix mistakes in String.qll models.
2023-02-16 18:24:36 +00:00
Geoffrey White
f64cb2983a
Swift: Add tests for a few models we didn't cover.
2023-02-16 18:15:17 +00:00
github-actions[bot]
8eb8daa4d4
Post-release preparation for codeql-cli-2.12.3
2023-02-16 17:23:25 +00:00
Paolo Tranquilli
300db4f236
Merge pull request #12214 from github/redsun82/swift-codegen
...
Swift: fix weird module naming in codegen
2023-02-16 17:24:03 +01:00
Geoffrey White
cb11524dde
Merge pull request #12154 from geoffw0/pathinjectionext
...
Swift: More path injection sinks
2023-02-16 16:00:31 +00:00
Michael B. Gale
8e83fd00b7
Update C/C++ autobuilder
2023-02-16 15:52:29 +00:00
Michael B. Gale
aa6efce695
Use TryGetValue
2023-02-16 15:52:13 +00:00
Michael B. Gale
5537d79d90
Detect missing Xamarin SDKs
2023-02-16 15:29:16 +00:00
Michael B. Gale
7e4808440e
Fixup: better error message for no-projects-or-solutions
2023-02-16 15:29:16 +00:00
Michael B. Gale
c55281a68e
Report .NET Core & MSBuild failures
2023-02-16 15:29:15 +00:00
Michael B. Gale
eda33fc5cb
Track which projects/solutions fail to build
2023-02-16 15:29:15 +00:00
Michael B. Gale
f68c529f04
Report projects incompatible with .NET Core
2023-02-16 15:29:15 +00:00
Michael B. Gale
61ff4c7896
Set DiagnosticMessage defaults
...
Refactor `GetDiagnosticSource` into `MakeDiagnostic`
which sets the defaults.
2023-02-16 15:29:13 +00:00
Michael B. Gale
9865c506e6
Change logic for autobuild failures
...
This is to account for multiple attempted rules that failed
2023-02-16 15:28:42 +00:00
Michael B. Gale
99924919be
Support asynchronous stdout/stderr processing
2023-02-16 15:28:42 +00:00
Michael B. Gale
c5a2cfcf95
Fixup: We => CodeQL
2023-02-16 15:28:41 +00:00
Michael B. Gale
219b232c83
Add no projects/solutions diagnostic
2023-02-16 15:28:41 +00:00
Michael B. Gale
7b5e19d462
Add diagnostics for BuildCommandAutoRule
2023-02-16 15:28:37 +00:00
Erik Krogh Kristensen
2b529fbf53
Merge pull request #12213 from github/erik-krogh/patch-test
...
CI: inline the move-caches script into the action
2023-02-16 16:00:13 +01:00
Michael B. Gale
5963501368
BuildCommandAutoRule: expose more information
...
We expose the list of candidate script paths and the chosen script path
so that we can inspect them for diagnostics purposes.
2023-02-16 14:16:23 +00:00
Michael B. Gale
f4c4871ab3
Add basic reporting of a general autobuild failure
2023-02-16 14:16:23 +00:00
Michael B. Gale
4e7c39a5d1
Add initial code for diagnostic messages
2023-02-16 14:16:23 +00:00
Michael B. Gale
fce9cb0b28
Read ..._DIAGNOSTIC_DIR variable
2023-02-16 14:16:23 +00:00
Michael B. Gale
fb6c27ba10
Refactor env var code in Autobuilder class
2023-02-16 14:16:22 +00:00
Michael B. Gale
35b60167e1
Merge pull request #12153 from github/mbg/fix/msbuild-on-macos-arm
...
C#: Improve C# autobuilder compatibility with Arm-based Macs
2023-02-16 14:12:43 +00:00
Jami Cogswell
94fd412809
Java: move awt and swing to isInfrequentlyUsed predicate
2023-02-16 09:02:41 -05:00
erik-krogh
767da59397
remove the paths requirement from running QL-for-QL
2023-02-16 14:57:00 +01:00
Paolo Tranquilli
f50382ba70
Swift: fix weird module naming in codegen
2023-02-16 14:53:31 +01:00
erik-krogh
45d00ae9dd
inline the move-caches script into the action
2023-02-16 14:52:46 +01:00
Nick Rolfe
44dc5a1f0b
Merge pull request #12209 from github/release-prep/2.12.3
...
Release preparation for version 2.12.3
2023-02-16 13:25:19 +00:00
Paolo Tranquilli
7cfe15c304
Merge pull request #12205 from github/redsun82/swift-codegen
...
Swift: fix subtle `codegen` bug on missing files
2023-02-16 13:45:35 +01:00
Rasmus Wriedt Larsen
9ed021ad66
Python: Accept change to WeakFilePermissions.expected
...
💪
2023-02-16 13:27:16 +01:00
Arthur Baars
006ee5aad9
Ruby: improve encoding related messages
2023-02-16 13:12:55 +01:00
Nick Rolfe
b4d59ff932
Go: changenote grammar tweaks
2023-02-16 12:07:47 +00:00
github-actions[bot]
b0315119c6
Release preparation for version 2.12.3
2023-02-16 11:49:06 +00:00
Grzegorz Niedziela
d8eafea719
Merge branch 'github:main' into main
2023-02-16 11:24:57 +00:00
gregxsunday
d1aaa9ad86
Add ZipSlip/TarSlip query for ruby
2023-02-16 11:24:15 +00:00
Joe Farebrother
430b432add
Merge pull request #12195 from joefarebrother/testgen-improvements
...
Java: Test generator improvements
2023-02-16 11:20:55 +00:00
Michael B. Gale
eab3c6dd5e
Fix missing implementations for C++ tests
2023-02-16 11:07:38 +00:00
Michael B. Gale
e28be5d98f
Make msbuild work on Arm-based Macs
2023-02-16 11:07:38 +00:00
Michael B. Gale
75c75ea49c
Correctly select dotnet platform on arm-based macs
2023-02-16 11:07:37 +00:00
Alex Ford
9cfd0f5f46
JS: fix qldoc
2023-02-16 11:00:37 +00:00
Paolo Tranquilli
3ec2a3c711
Swift: fix subtle codegen bug on missing files
...
While the internal registry was being cleaned up from files removed by
codegen itself, it was not dropping files removed outside of codegen.
Because of this files removed by the user were not being regenerated
again if no change was staged to them, unless `--force` was provided.
This also fixes some such "ghost" entries in the registry and some
missing generated files.
2023-02-16 11:46:51 +01:00
Paolo Tranquilli
3b1b3b46ae
Merge pull request #12202 from github/redsun82/swift-codegen
...
> Out of curiosity: What is the end goal that we're trying to get to with this?
Up until now we would be writing that predicate by hand, see [this example](29c8260004/swift/ql/lib/codeql/swift/elements/expr/MethodLookupExpr.qll (L29-L30) ). Now this will be given to us from the get go.
For me this was prompted to give a nicer live demo later at my presentation 🙂
2023-02-16 11:35:05 +01:00
Michael B. Gale
29c8260004
Merge pull request #12196 from github/mbg/csharp/add-msbuild-integration-tests
2023-02-16 10:29:28 +00:00
Rasmus Wriedt Larsen
766e6c400e
Python: Handle if-then-else definitions in import resolution
2023-02-16 11:18:30 +01:00
Rasmus Wriedt Larsen
80f5342a6d
Python: Add import regression for if-then-else definitions
2023-02-16 11:12:08 +01:00
Tony Torralba
87b54e674e
Merge pull request #12178 from felickz/main
...
Java - Adding support for com.microsoft.sqlserver.jdbc.SQLServerDataSource to CWE-798
2023-02-16 11:03:34 +01:00
Michael B. Gale
9db1366e4b
Change target framework to 4.0 for mono
2023-02-16 09:55:58 +00:00
Michael B. Gale
f1adb4319a
Add C# integration test which uses MSBuild
2023-02-16 09:55:57 +00:00
Paolo Tranquilli
e2d7a6910c
Swift: generate raw helpers in synthesized stubs
...
This will add helpers to get the underlying raw entities or constructor
arguments on stubs for synthesized classes.
For example a schema like:
```
@synth.from_class(A)
class B:
pass
@synth.on_arguments(base=A, index=int)
class C:
pass
```
will generate
```
cached
private Raw::A getUnderlyingEntity() { this = Synth::TB(result) }
```
in the `B.qll` stub and
```
cached
private Raw::A getUnderlyingBase() { this = Synth::TC(result, _) }
cached
private int getUnderlyingIndex() { this = Synth::TC(_, result) }
```
in the `C.qll` stub.
As stubs these can be freely changed later on.
2023-02-16 10:49:21 +01:00
Chris Smowton
180246b99c
Merge pull request #12197 from smowton/smowton/admin/go-120-features
...
Go: complete Go 1.20 support
2023-02-16 08:12:02 +00:00
Chad Bentz
f3124d3239
Merge branch 'main' into main
2023-02-15 18:46:15 -05:00
Chad Bentz
2f1bd93a49
change-notes for this minorAnalysis lib change
2023-02-15 18:40:40 -05:00
Chad Bentz
2f576a4fe9
test both arguments of getConnection
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-02-15 18:26:56 -05:00
Geoffrey White
00302dc05f
Swift: Model NSObject.
2023-02-15 22:12:39 +00:00
Owen Mansel-Chan
45c1537f06
Merge pull request #12198 from github/smowton/admin/update-change-note
...
Update Twirp change note to new style
2023-02-15 21:54:48 +00:00
Geoffrey White
7e8645a1f6
Swift: Model NSMutableString.
2023-02-15 21:50:05 +00:00
Geoffrey White
d04ed14b8c
fix model -2
2023-02-15 21:18:50 +00:00
Rasmus Wriedt Larsen
c4fbfb0d07
Merge branch 'main' into call-graph-code
2023-02-15 20:15:04 +01:00
Rasmus Wriedt Larsen
ee5382d8a6
Merge pull request #12193 from RasmusWL/import-resolution-fixup
...
Python: Fix `from <pkg> import *` import resolution
2023-02-15 20:13:24 +01:00
Chris Smowton
3ce7fafb67
Fix unsafe test routine name
2023-02-15 19:05:01 +00:00
Chris Smowton
14655e1d8c
Autoformat go
2023-02-15 18:41:14 +00:00
Geoffrey White
75dd95f458
Swift: Correct one of the tests.
2023-02-15 18:37:51 +00:00
Geoffrey White
99caafb9b9
Swift: Model NSString.
2023-02-15 18:37:51 +00:00
Chris Smowton
261a1348f0
Update Twirp change note to new style
2023-02-15 18:37:50 +00:00
Chris Smowton
c65fd69374
Add change note
2023-02-15 18:35:17 +00:00
Chris Smowton
233bd8ce8c
Claim Go 1.20 support
2023-02-15 18:31:28 +00:00
Chris Smowton
7e7850374e
Implement standard library models for Go 1.20
2023-02-15 18:29:49 +00:00
Joe Farebrother
d9e5c6c48a
Fix typo
2023-02-15 17:21:03 +00:00
Alex Ford
74782bf6a2
Merge branch 'main' into ruby_twirp_support
2023-02-15 17:15:08 +00:00
Chris Smowton
7d2b78b463
Note that all interface types are considered comparable as of Go 1.20
2023-02-15 17:15:00 +00:00
Alex Ford
1556b1a728
Merge branch 'main' into js-use-shared-cryptography
2023-02-15 17:13:53 +00:00
Alex Ford
801ed1ce7c
Ruby: add Twirp.expected
2023-02-15 17:05:33 +00:00
Alex Ford
1958b9dcd5
JS: add missing qldoc
2023-02-15 16:59:03 +00:00
Alex Ford
43af306d60
dynamic: more detailed qldoc for CryptographicOperation#getBlockMode()
2023-02-15 16:55:18 +00:00
Alex Ford
e8cbf7287d
JS: breaking change note for CryptographicOperation sync
2023-02-15 16:50:24 +00:00
Alex Ford
925b4a3fa8
JS: improve documentation on deprecated CryptographicOperation#getInput() predicate
2023-02-15 16:23:46 +00:00
Alex Ford
d4d0b91085
dynamic: switch CryptographicOperation::Range#getBlockMode() back to being an abstract predicate
2023-02-15 16:23:46 +00:00
Alex Ford
c7aaad9ed0
JS: avoid adding a deprecated CryptographicOperation#getInput to py/ruby
2023-02-15 16:23:46 +00:00
Joe Farebrother
95a131d0d3
Update help text
2023-02-15 16:18:47 +00:00
Joe Farebrother
8ee36a5278
Test generator improvements
...
- Accept yml files as input
- Output the correct type for constructors
2023-02-15 16:11:22 +00:00
erik-krogh
51ddb55d7b
use tainted-object to precisely model that plain object are fine, but their properties are not
2023-02-15 15:02:03 +01:00
erik-krogh
09794fa836
delete PrefixStringSanitizer
2023-02-15 14:55:02 +01:00
Rasmus Wriedt Larsen
c72dbc49fc
Merge pull request #12165 from RasmusWL/crypto-updates
...
Python/Ruby/JS Crypto: Add a few algorithms + block modes
2023-02-15 14:35:40 +01:00
Rasmus Wriedt Larsen
7e16fa9cbe
Python: Add change-note
2023-02-15 14:25:33 +01:00
Rasmus Wriedt Larsen
220f227707
Python: Add wrapper for isPreferredModuleForName
...
We talked about how it's annoying that we in 4 places have the same fix
`isPreferredModuleForName(<module>.getFile(), <name> + ["", ".__init__"])`
, and that it would be nice to have a simple wrapper predicate that
ensures we never forget to do the `+ ["", ".__init__"]` dance...
I had trouble coming up with a name for this (ironically), but
I think `getModuleFromName` is good enough.
2023-02-15 14:23:39 +01:00
Rasmus Wriedt Larsen
66c3529465
Python: Fix import * from __init__.py files
2023-02-15 14:10:37 +01:00
Rasmus Wriedt Larsen
df6039d6cf
Python: Add import resolution regression
2023-02-15 13:50:27 +01:00
Rasmus Wriedt Larsen
e1ae3c3cfb
Python: sys.exit if import resolution tests fail
2023-02-15 13:44:45 +01:00
Chris Smowton
368ca6cb30
Add test exercising Go 1.20 array conversions
2023-02-15 12:31:09 +00:00
Mathias Vorreiter Pedersen
2203eb6607
C++: Fix Code Scanning error.
2023-02-15 11:51:55 +00:00
Geoffrey White
d763c5a3a0
Swift: Update LocalTaint.expected for the changes so far.
2023-02-15 11:42:42 +00:00
Geoffrey White
2882286c3f
Swift: Test taint sources for NSString.
2023-02-15 11:42:42 +00:00
Geoffrey White
9f734076b7
Swift: Test taint through NSString member variables.
2023-02-15 11:04:16 +00:00
Geoffrey White
452ca4ef0f
Swift: Test taint through NSMutableString.
2023-02-15 11:04:01 +00:00
Geoffrey White
16ec29e3df
Swift: Test taint throguh some NSObject methods.
2023-02-15 11:03:45 +00:00
Geoffrey White
85a0fd9b30
Swift: Test taint through NSString.
2023-02-15 11:03:06 +00:00
Chris Smowton
2cd1e09a7e
Merge pull request #12111 from smowton/smowton/feature/java-merge-classes-and-interfaces
...
Java: merge the @class and @interface database types and tables
2023-02-15 10:27:41 +00:00
erik-krogh
759854991a
fix various nits based on feedback
2023-02-15 11:10:43 +01:00
Chris Smowton
5f0b1973ee
Merge pull request #12188 from smowton/smowton/feature/go-1.20-support
...
Go: Upgrade extractor compiler and dependency versions
2023-02-15 10:06:01 +00:00
erik-krogh
bec8dc6775
add explicit this
2023-02-15 10:44:57 +01:00
erik-krogh
25a8469586
update expected output, now that .html.erb files are actually extracted
2023-02-15 10:28:05 +01:00
erik-krogh
710e79b2d5
bump extractor version
2023-02-15 10:26:00 +01:00
erik-krogh
f9b3a5b5e6
actually extract .html.erb files
2023-02-15 10:26:00 +01:00
Paolo Tranquilli
4be2e431ea
Merge pull request #12180 from github/redsun82/swift-codegen
...
Swift: some restructuring of codegen
2023-02-15 10:15:20 +01:00
Rasmus Wriedt Larsen
9e2eb56032
Python: Remove support for late *args arguments
...
I found this to cause bad performance, so the implementation of this has
to be thought out more carefully.
2023-02-15 09:42:11 +01:00
Anders Schack-Mulligen
b52df0de0c
Merge pull request #12191 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-02-15 09:07:40 +01:00
Harry Maclean
fb14920281
Merge pull request #12056 from hmac/test-refactor
2023-02-15 17:34:25 +13:00
github-actions[bot]
5f07d1f385
Add changed framework coverage reports
2023-02-15 00:17:48 +00:00
Mathias Vorreiter Pedersen
c11218fcde
Merge pull request #12184 from MathiasVP/discriminate-union-contents
2023-02-14 23:36:02 +00:00
erik-krogh
b7305fd229
also consider relative exports when finding library inputs
2023-02-14 21:08:13 +01:00
Chris Smowton
194316d1c0
Accept test changes
...
Some diagnostics have been reworded for Go 1.20, and a standard library type parameter is visible to the TypeParamType test.
2023-02-14 18:33:53 +00:00
Chris Smowton
d075e016b2
Upgrade Go to 1.20
2023-02-14 17:59:18 +00:00
erik-krogh
de4f5017e1
add change-note
2023-02-14 18:36:07 +01:00
Chris Smowton
9e584eb241
Upgrade Go extractor compiler and dependency versions
2023-02-14 17:34:47 +00:00
Chris Smowton
62d10f91d8
Improve join ordering
2023-02-14 17:21:24 +00:00
Chris Smowton
d5f7ef08b7
Update stats
2023-02-14 17:21:24 +00:00
Chris Smowton
7f76d8ae55
Replace redundant use of Class or Interface
2023-02-14 17:21:24 +00:00
Chris Smowton
82a2f4349a
Resolve a newly-introduced ambiguity
...
Also fix a simple redundancy noticed while debugging
2023-02-14 17:21:24 +00:00
Chris Smowton
f48d87ba55
Add deletions for removed tables
2023-02-14 17:21:24 +00:00
Chris Smowton
3514dd1e4d
Java: merge the @class and @interface database types and tables
...
This will allow the extractor to emit class(id, ...) when all it knows about a class is its name, due to not having it available on the classpath. Previously it would have had to guess whether it belonged to @class or @interface, possibly introducing an inconsistency.
2023-02-14 17:21:23 +00:00
Jami
029e1d47fe
Merge pull request #12081 from jcogs33/jcogs33/update-some-Files-sinks
...
Java: update `createTempDirectory` and `copy` "create-file" sinks
2023-02-14 10:53:17 -05:00
Taus
e40bb6ac87
Merge pull request #12029 from github/tausbn/python-clean-up-version-handling
...
Python: Clean up version handling
2023-02-14 16:40:09 +01:00
Alex Ford
8d90c02a67
JS: remove unused field
2023-02-14 15:24:22 +00:00
Jeroen Ketema
899f35a59b
Merge pull request #12185 from jketema/test-annotations
...
C++: Update test annotations for use-use dataflow
2023-02-14 15:48:35 +01:00
Jeroen Ketema
1d4e9745a3
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-02-14 15:40:36 +01:00
Mathias Vorreiter Pedersen
2591460731
Merge pull request #12181 from MathiasVP/fix-node-type
...
C++: Fix node types
2023-02-14 13:54:12 +00:00
Taus
1b30043422
Python: Move change note to correct directory
2023-02-14 13:48:55 +00:00
Jeroen Ketema
9e462866a0
C++: Update test annotations for use-use dataflow
2023-02-14 14:48:08 +01:00
erik-krogh
393649b7ce
don't call environment variables for command-line arguments
2023-02-14 14:27:41 +01:00
Alvaro Muñoz
4644a88b89
address code review comments
2023-02-14 14:27:17 +01:00
Mathias Vorreiter Pedersen
ba0be2fd9f
C++: Better discriminate for unions.
2023-02-14 13:26:40 +00:00
Taus
4f7c598ffc
Python: Add change note
2023-02-14 13:22:48 +00:00
erik-krogh
36478124ae
add process.env and process.argv etc. as source for js/regex-injection
2023-02-14 14:21:53 +01:00
erik-krogh
943bdeca6d
make appliesTo recursive
2023-02-14 14:16:45 +01:00
erik-krogh
9549cac3e5
add an additional barrier guard that finds "=== true" versions of previous barrier guards
2023-02-14 14:15:23 +01:00
erik-krogh
c355a26657
add failing test
2023-02-14 14:12:35 +01:00
erik-krogh
3f0fe96f85
add getBoolValue() as a utility predicate on BooleanLiteral
2023-02-14 14:12:35 +01:00
Erik Krogh Kristensen
2f8c9a5a2c
Merge pull request #12171 from erik-krogh/reg-dot
...
JS: dont recognize regexps that match dot as sanitizers
2023-02-14 14:10:44 +01:00
Erik Krogh Kristensen
e3e2df3247
Merge pull request #12166 from erik-krogh/more-html-san
...
JS: add `HtmlSanitizer` as a sanitizer DOMBasedXss
2023-02-14 14:09:56 +01:00
Taus
39516862c1
Merge remote-tracking branch 'origin/main' into tausbn/python-clean-up-version-handling
2023-02-14 13:07:40 +00:00
Mathias Vorreiter Pedersen
4ba5059064
Merge pull request #12182 from MathiasVP/content-approx
...
C++: Use `Content` approximation
2023-02-14 13:00:47 +00:00
Erik Krogh Kristensen
028fcc7edf
Merge pull request #11959 from erik-krogh/ssrfSan
...
JS: add encodeURIComponent as a sanitizer for request-forgery
2023-02-14 13:39:53 +01:00
Erik Krogh Kristensen
a498936f16
Merge pull request #12170 from erik-krogh/more-lib
...
JS: More library inputs
2023-02-14 13:38:00 +01:00
Erik Krogh Kristensen
bca3fa94fd
Merge pull request #12159 from erik-krogh/express-ws
...
JS: add express-ws as a source
2023-02-14 13:36:33 +01:00
Michael Nebel
469b289db9
C#: Add change note.
2023-02-14 13:14:45 +01:00
Michael Nebel
b3c234d020
C#: Add testcases for checked operators.
2023-02-14 12:59:36 +01:00
Michael Nebel
238a70fc55
C#: Add library support for checked operators.
2023-02-14 12:58:15 +01:00
Michael Nebel
b7123aaa89
C#: Add viable callable testcases for regular and checked operators.
2023-02-14 12:57:59 +01:00
Rasmus Wriedt Larsen
dc5bb4fb77
Python: Update a few examples so queries work on them
...
Fixes problem highlighted in https://github.com/github/codeql/issues/12156
2023-02-14 11:54:18 +01:00
Joe Farebrother
f68083872d
Merge pull request #12174 from joefarebrother/stubgen-name-conflicts
...
Java: Stub generator: Use fully qualified names to avoid conflicts
2023-02-14 10:10:24 +00:00
Mathias Vorreiter Pedersen
b01a45f7be
C++: Respond to PR reviews.
2023-02-14 09:51:48 +00:00
Mathias Vorreiter Pedersen
bda46b3748
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-02-14 09:49:32 +00:00
Paolo Tranquilli
81de500301
Swift: fix import not working in all python versions
2023-02-14 10:40:05 +01:00
Mathias Vorreiter Pedersen
ffef81bc47
C++: Add QLDoc.
2023-02-14 09:38:43 +00:00
Mathias Vorreiter Pedersen
0a3f958849
C++: Use content approximations.
2023-02-14 09:10:10 +00:00
Mathias Vorreiter Pedersen
7a81f06e84
C++: Accept test changes.
2023-02-14 09:01:51 +00:00
Mathias Vorreiter Pedersen
cc036c188f
C++: Fix missing and spurious types.
2023-02-14 09:01:42 +00:00
Mathias Vorreiter Pedersen
748a345e7f
C++: Add a test to reveal missing or spurious types on dataflow nodes.
2023-02-14 08:58:29 +00:00
Anders Schack-Mulligen
0600a2ba96
Merge pull request #12138 from aschackmull/java/gen-file-mark-perf
...
Java: Improve performance of GeneratedFileMarker.
2023-02-14 09:57:09 +01:00
Tony Torralba
935e22d10d
Merge pull request #12139 from atorralba/atorralba/java/xxe-local-query
...
Java: Add local version of the XXE query
2023-02-14 09:54:36 +01:00
Paolo Tranquilli
8e079320f3
Swift: some restructuring of codegen
...
Loading of the schema and dbscheme has been moved to a separate
`loaders` package for better separation of concerns.
2023-02-14 09:53:02 +01:00
Michael Nebel
781aab3eb7
Merge pull request #11634 from michaelnebel/java/excludeinterfacemembers
...
Java: Exclude interface members from model generation.
2023-02-14 09:35:56 +01:00
Chad Bentz
b0c8992eef
Adding CWE-798 MSSQL Tests
2023-02-13 19:44:02 -05:00
Chad Bentz
cfe169a4f9
Adding MSSQL to SensitiveAPI
2023-02-13 19:42:28 -05:00
erik-krogh
4140598769
update expected output for experimental query
2023-02-14 00:08:13 +01:00
erik-krogh
c17d057520
default to index.js when no main: is specified in package.json, and recognize more classes as library inputs
2023-02-13 21:24:41 +01:00
Joe Farebrother
0b722bfe30
Stub generator: Use fully qualified names to avoid conflicts
2023-02-13 17:09:32 +00:00
erik-krogh
68656274f4
dont recognize regexps that match dot as sanitizers
2023-02-13 17:36:51 +01:00
Jami Cogswell
e4c8387815
Java: update CaptureSinkModels.expected with read-file sink
2023-02-13 11:29:30 -05:00
Tony Torralba
1c57aa0456
Fix import locations
2023-02-13 17:13:01 +01:00
Tom Hvitved
8372ad9d84
Merge pull request #12169 from hvitved/util/numbers
...
Move `NumberUtils.qll` from Ruby into shared `util` pack
2023-02-13 16:37:51 +01:00
Tom Hvitved
2113c3c3d9
Ruby: Remove NumberUtils.qll
2023-02-13 15:59:50 +01:00
Tom Hvitved
29ce9bfe24
Util: Make some predicates private
2023-02-13 15:58:31 +01:00
Tom Hvitved
97f79602a9
Copy NumberUtils.qll from Ruby into shared util pack
2023-02-13 15:57:53 +01:00
Rasmus Wriedt Larsen
1c7fe97427
Python: Add modeling of hmac
2023-02-13 15:39:43 +01:00
Rasmus Wriedt Larsen
df22181963
Python: Add tests of hmac
2023-02-13 15:38:14 +01:00
erik-krogh
6192544fb4
add test for express-ws as a source
2023-02-13 15:26:50 +01:00
Jami Cogswell
1c3d4b98c8
Java: move change note
2023-02-13 09:15:31 -05:00
Jami Cogswell
191613e8bf
Java: update change note
2023-02-13 09:11:53 -05:00
Owen Mansel-Chan
4fa484dad2
Merge pull request #12130 from owen-mc/go/port-integration-tests
...
Go: port integration tests
2023-02-13 13:49:59 +00:00
Rasmus Wriedt Larsen
39e50f745d
Ruby: Fix .expected for CryptoAlgorithms
2023-02-13 14:21:12 +01:00
Michael Nebel
b3602a5b7f
C#: Use functionname as stored in the database.
2023-02-13 13:53:46 +01:00
Kasper Svendsen
c66a44f2e2
Merge pull request #12162 from kaspersv/kaspersv/inline-late-docs
...
QLDocs: Document inline_late pragma
2023-02-13 13:35:28 +01:00
Anders Schack-Mulligen
e877b161d8
Merge pull request #12124 from hvitved/dataflow/stage1-dispatch
...
Data flow: Call context virtual dispatch pruning in stage 1
2023-02-13 13:13:43 +01:00
Owen Mansel-Chan
7ebe472cfe
Move repo files into subfolder
...
This is so that the test-db doesn't get moved when all the repo files
are moved, which was causing some problems.
2023-02-13 11:59:38 +00:00
Owen Mansel-Chan
37d3793e87
Set LGTM_INDEX_IMPORT_PATH in two tests
...
This is needed for Dep and Glide
2023-02-13 11:59:38 +00:00
Owen Mansel-Chan
1f1e2dbf98
Make dep integration test linux-only
...
This is because there is no release of Dep for
MacOS (Arm).
2023-02-13 11:59:38 +00:00
Owen Mansel-Chan
3ee3acd8fd
Make Glide integration test linux-only
...
This is because it is hard to install Glide on the other platforms.
2023-02-13 11:59:37 +00:00
Owen Mansel-Chan
e635140eae
Add files needed for tests
2023-02-13 11:59:37 +00:00
Owen Mansel-Chan
f2c541a461
Delete build-sample test
...
This is adequately tested elsewhere.
2023-02-13 11:59:37 +00:00
Owen Mansel-Chan
f062a8d204
Copy LGTM integration tests over
2023-02-13 11:59:36 +00:00
Owen Mansel-Chan
947a9f12a1
Make DiagnosticsReporting.qll a library
2023-02-13 11:59:36 +00:00
Kasper Svendsen
11204987f1
Reword based on review comments
2023-02-13 12:49:50 +01:00
Michael Nebel
34c6b24882
Merge pull request #12147 from michaelnebel/csharp/relaxedshift
...
C# 11: Test of relaxed shift operator requirements.
2023-02-13 12:48:39 +01:00
Arthur Baars
457a2bb2a2
Merge pull request #12093 from aibaars/oneline-match
...
Ruby: add support for one-line pattern matches
2023-02-13 12:38:28 +01:00
Jeroen Ketema
73d877e3a5
Merge pull request #12163 from jketema/dataflow-new
...
C++: Add `semmle.code.cpp.dataflow.new`
2023-02-13 12:36:16 +01:00
Kasper Svendsen
ac54caac35
Update docs/codeql/ql-language-reference/annotations.rst
...
Co-authored-by: Philip Ginsbach <ginsbach@github.com >
2023-02-13 12:35:08 +01:00
Kasper Svendsen
426425a7ca
Update docs/codeql/ql-language-reference/annotations.rst
...
Co-authored-by: Philip Ginsbach <ginsbach@github.com >
2023-02-13 12:34:50 +01:00
Chris Smowton
0537579b28
Merge pull request #12131 from owen-mc/go/named-type-location
...
Add `hasLocationInfo` for `Type`s
2023-02-13 11:33:50 +00:00
Erik Krogh Kristensen
2f404df17c
Merge pull request #10782 from erik-krogh/rbPoly
...
Ruby: add library input as a source for `rb/polynomial-redos`
2023-02-13 12:26:07 +01:00
erik-krogh
b85bfc8ba6
add HtmlSanitizer as a sanitizer for DOMBasedXss
2023-02-13 11:57:29 +01:00
erik-krogh
c258e44772
add failing test for spurious edge through sanitizer
2023-02-13 11:49:57 +01:00
Erik Krogh Kristensen
26d5fb2412
Merge pull request #11824 from erik-krogh/secondMissAnchor
...
RB: add query detecting validators that use badly anchored regular expressions on library/remote input
2023-02-13 11:26:05 +01:00
Jeroen Ketema
b9200c92d5
C++: Address review comments
2023-02-13 11:14:48 +01:00
Kasper Svendsen
74472d786c
QLDocs: Document inline_late pragma
2023-02-13 10:51:48 +01:00
erik-krogh
634087b417
Merge branch 'main' into rbPoly
2023-02-13 10:46:00 +01:00
Michael Nebel
2ce6d5f920
Java: Update negative models test to not produce a negative summary for interface member.
2023-02-13 10:45:54 +01:00
Rasmus Wriedt Larsen
5235964b07
sync files
2023-02-13 10:44:12 +01:00
Rasmus Wriedt Larsen
b2e79e2948
Python/Ruby/JS Crypto: Add a few algorithms + block modes
...
I have tried to add a few links to support the claim that these
algorithms are strong/safe. It wasn't always super easy, so in some
cases I have ended up just linking to the documentation of the
`cryptography` Python package.
Co-authored-by: REDMOND\brodes <brodes@microsoft.com >
2023-02-13 10:40:47 +01:00
Paolo Tranquilli
f07c598a22
Merge pull request #12164 from github/redsun82/swift-codegen-outside-bazel
...
Swift: make `codegen` run also outside `bazel`
2023-02-13 10:32:20 +01:00
Michael Nebel
80628596dd
Java: Exclude interface members from model generation.
2023-02-13 10:21:32 +01:00
Geoffrey White
124e4ddd4f
Merge pull request #12150 from geoffw0/cfg2
...
Swift: control flow for #available
2023-02-13 09:17:06 +00:00
Tom Hvitved
0b8173e2e7
Ruby: Add another data flow test
2023-02-13 09:50:50 +01:00
Jeroen Ketema
3dfe0adf0a
C++: Fix formatting
2023-02-13 09:45:23 +01:00
Paolo Tranquilli
55aacd6fe9
Merge pull request #12137 from github/redsun82/swift-doc-for-schema-doc
...
Swift: add documentation for generated documentation
2023-02-13 09:43:34 +01:00
Paolo Tranquilli
483a87abe9
Swift: make codegen run also outside bazel
2023-02-13 09:39:31 +01:00
Jeroen Ketema
3482158fee
C++: Add semmle.code.cpp.dataflow.new
2023-02-13 09:38:23 +01:00
Jeroen Ketema
996eb6c63c
C++: Fix Ql-for-QL warnings
2023-02-13 09:22:31 +01:00
Tony Torralba
4fad01a739
Further refactoring
...
Avoid having two taint tracking configurations in the same file
2023-02-13 09:18:05 +01:00
Tony Torralba
f3e0b6e62c
PathGraph shouldn't be imported in a QLL library
2023-02-13 09:18:05 +01:00
Tony Torralba
422eb0d1bb
Add change note
2023-02-13 09:18:05 +01:00
Tony Torralba
5555b5cd19
Add local version of the XXE query
2023-02-13 09:18:05 +01:00
Paolo Tranquilli
542c9218de
Merge branch 'main' into redsun82/swift-doc-for-schema-doc
2023-02-13 09:07:02 +01:00
Tom Hvitved
f7a5a33474
Address review comment
2023-02-13 09:01:15 +01:00
erik-krogh
91393a7bc8
add change-note
2023-02-12 23:28:01 +01:00
erik-krogh
6474cfd4c8
add support for express-ws
2023-02-12 23:25:27 +01:00
Jami Cogswell
ad8849c6b8
Java: fix typo
2023-02-12 16:33:26 -05:00
Jami Cogswell
676e4e8461
Java: add change note
2023-02-12 16:32:31 -05:00
Sim4n6
d7af80136e
Fail tests when missing annotation on sink orfail
2023-02-12 21:27:20 +01:00
Sim4n6
518684b736
Put back the annotation result=BAD
2023-02-12 21:26:12 +01:00
Sim4n6
80d4fb5e33
Organisation TarSlip/UnsafeUnpack into two folders
2023-02-12 10:51:53 +01:00
Jami Cogswell
ce1c814daa
Java: update path-injection query to use new 'read-file' sink kind
2023-02-11 17:10:58 -05:00
Jami Cogswell
c87c3e30c7
Java: update getInvalidModelKind with 'read-file' kind
2023-02-11 17:07:25 -05:00
Owen Mansel-Chan
685b8b4abd
Tests are no longer fooled by type aliases
2023-02-10 22:09:21 +00:00
Owen Mansel-Chan
7042f67375
Refactor code to be simpler
2023-02-10 22:09:20 +00:00
Owen Mansel-Chan
778826b528
Accept test changes
...
Note that
go/ql/test/library-tests/semmle/go/Types/QualifiedNames.expected and
go/ql/test/library-tests/semmle/go/Types/Types.expected gain two lines.
In both cases this is because GenericArray and GenericSignature are
each instantiated twice, so they appear with two different locations.
2023-02-10 22:09:20 +00:00
Owen Mansel-Chan
202c0be303
Add hasLocationInfo for Types
...
It returns a dummy location except for named types with a type
declaration in the source.
2023-02-10 22:09:20 +00:00
Sim4n6
eed19a3e15
Fix autoformatting issues
2023-02-10 21:58:29 +01:00
Mathias Vorreiter Pedersen
378484ec01
Merge pull request #12149 from MathiasVP/fewer-flowthroughs
...
C++: Fix spurious flow-through
2023-02-10 18:45:46 +00:00
Geoffrey White
ad85b37585
Swift: Tidy up indenting.
2023-02-10 18:06:56 +00:00
Geoffrey White
d0efbbf5b8
Swift: More path injection models.
2023-02-10 18:02:50 +00:00
Geoffrey White
82f09b8511
Swift: More path injection test cases.
2023-02-10 17:55:06 +00:00
Arthur Baars
ecbd768df4
Ruby: reduce number of diagnostic messages with the status_page flag
...
For now we only report real parse errors and character encoding errors. Warnings about
unexpected or missing nodes in the AST are not reported. These are typically side effects
of earlier parse errors.
2023-02-10 18:53:46 +01:00
Arthur Baars
679f02c274
Address comments
2023-02-10 18:08:30 +01:00
Jeroen Ketema
7bd28183ba
Merge pull request #12151 from jketema/remove-experimental-dataflow
...
C++: Remove experimental copy of the use-use IR dataflow library
2023-02-10 18:08:14 +01:00
Mathias Vorreiter Pedersen
168202dbf7
Update cpp/ql/test/library-tests/dataflow/dataflow-tests/has-parameter-flow-out.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-02-10 16:36:40 +00:00
Jeroen Ketema
8522eddf5a
Merge pull request #12148 from jketema/opt-in
...
C++: Revert `semmle.code.cpp.dataflow` to its old state
2023-02-10 17:34:27 +01:00
Jeroen Ketema
5f33827eca
C++: Update test results
2023-02-10 17:10:52 +01:00
Geoffrey White
8624098318
Swift: sync identical files.
2023-02-10 15:24:57 +00:00
Jeroen Ketema
b023c6bb23
C++: Remove experimental copy of the use-use IR dataflow library
2023-02-10 16:20:33 +01:00
Nora
d55e9d5dac
Merge pull request #12000 from github/nora/update-query-history-actions
...
Rename Query History Actions
2023-02-10 16:18:36 +01:00
Geoffrey White
eda331ebc2
Swift: Clean up.
2023-02-10 15:11:31 +00:00
Geoffrey White
11f022c69f
Swift: Add some more qldoc.
2023-02-10 15:02:05 +00:00
Jeroen Ketema
1a83b712a0
C++: Add change note
2023-02-10 15:27:49 +01:00
Geoffrey White
15b8aa1979
Swift: Effect on other tests :)
2023-02-10 14:16:48 +00:00
Mathias Vorreiter Pedersen
9a8b3bad31
C++: Respond to PR reviews.
2023-02-10 13:56:19 +00:00
Geoffrey White
6cb9198ee2
Swift: Control flow through #available.
2023-02-10 13:32:33 +00:00
Paolo Tranquilli
9d433eb420
Merge branch 'main' into redsun82/swift-doc-for-schema-doc
2023-02-10 14:27:56 +01:00
Jeroen Ketema
ecdeb9a970
C++: Revert semmle.code.cpp.dataflow to its old state
...
While here make sure all queries and tests use IR dataflow when appropriate.
2023-02-10 14:21:44 +01:00
Mathias Vorreiter Pedersen
5bd7589109
C++: Fix spurious flow though and accept test changes.
2023-02-10 12:42:40 +00:00
Mathias Vorreiter Pedersen
faf9fd6253
C++: Add a testcase (and a new test) to test flow through functions.
2023-02-10 12:40:29 +00:00
Jeroen Ketema
ffbaef8771
C++: Update for test changes
2023-02-10 11:23:19 +01:00
Michael Nebel
db41463d72
C#: Test of relaxed shift operator requirements.
2023-02-10 10:33:20 +01:00
Geoffrey White
38f4f65fc0
Swift: Add CFG test cases for #available.
2023-02-10 09:29:08 +00:00
Mathias Vorreiter Pedersen
e1aef3127c
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-02-10 09:23:37 +00:00
Jeroen Ketema
8f15abc285
Merge pull request #12146 from jketema/global-indirect
...
C++: Do not mark global indirect flow as spurious in dataflow tests
2023-02-10 10:21:04 +01:00
Michael Nebel
1bd223b8c8
Merge pull request #12103 from michaelnebel/csharp/scopedmodfier
...
C# 11: Scoped parameters and local variables.
2023-02-10 10:04:09 +01:00
Jeroen Ketema
350fb89ebf
C++: Also mention all locations in the AST case
2023-02-10 09:49:24 +01:00
Mathias Vorreiter Pedersen
9aa9187dd7
Merge pull request #12141 from MathiasVP/fix-multiple-out-nodes
...
C++: Deduplicate `OutNode`s
2023-02-10 08:39:16 +00:00
Mathias Vorreiter Pedersen
4719fd5235
C++: Accept more test changes.
2023-02-10 08:38:46 +00:00
Jeroen Ketema
12930c68fb
C++: Do not mark global indirect flow as spurious in dataflow tests
2023-02-10 09:29:27 +01:00
Paolo Tranquilli
fc7c72db77
Swift: tweaks to the schema doc documentation
2023-02-10 08:58:07 +01:00
Paolo Tranquilli
adf47b9a9c
Merge branch 'main' into redsun82/swift-doc-for-schema-doc
2023-02-10 08:49:31 +01:00
Paolo Tranquilli
c92fd97783
Merge pull request #12140 from github/redsun82/swift-fix-upgrade
...
Swift: remove query predicates in upgrade/downgrade scripts
2023-02-10 08:49:08 +01:00
Geoffrey White
224bc9381a
Swift: Fix ConditionElement.toString().
2023-02-09 21:15:36 +00:00
Michael Nebel
8d8ebeade1
Merge pull request #12067 from michaelnebel/csharp/reflectionload
...
C#: Delete dead assembly load code.
2023-02-09 18:49:36 +01:00
Mathias Vorreiter Pedersen
981c976754
C++: Expand comments.
2023-02-09 17:10:07 +00:00
Mathias Vorreiter Pedersen
6b851d0529
C++: Fix an inconsistency with too many out nodes.
2023-02-09 16:55:19 +00:00
Paolo Tranquilli
7fa85b34ea
Swift: remove query predicates in upgrade/downgrade scripts
2023-02-09 17:24:27 +01:00
Mathias Vorreiter Pedersen
7439de37a3
C++: Add a new test that demonstrates multiple out nodes.
2023-02-09 16:23:32 +00:00
Jeroen Ketema
9d6098af15
Merge pull request #12004 from jketema/single-use
...
C++: Map operand nodes that are only used once onto the related instruction node
2023-02-09 17:18:39 +01:00
Sim4n6
09df055d86
Fix the exists cast warning
2023-02-09 15:25:54 +01:00
Sim4n6
b04d5684fb
add a blank line at the end of the file
2023-02-09 15:23:58 +01:00
Anders Schack-Mulligen
770f3c24bb
Java: Improve performance of GeneratedFileMarker.
2023-02-09 15:08:32 +01:00
Sim4n6
16ef50401b
Update python/ql/src/experimental/Security/UnsafeUnpackQuery.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-02-09 14:59:28 +01:00
Ian Lynagh
968f588893
Merge pull request #12090 from igfoo/igfoo/kotlin-1.8.10
...
Kotlin: 1.8.10 and 1.8.20 are supported, and use 1.8.10 for CI
2023-02-09 12:06:42 +00:00
Paolo Tranquilli
1e279125dc
Swift: add documentation for generated documentation
2023-02-09 12:52:16 +01:00
Michael Nebel
0f469ee0f7
C#: Add stats for the scoped annotation relation.
2023-02-09 12:28:15 +01:00
Arthur Baars
07947e6528
Address comments
2023-02-09 12:02:14 +01:00
Jeroen Ketema
e4c211df2d
C++: Address review comments
2023-02-09 11:58:41 +01:00
dependabot[bot]
80a397b4a5
Merge pull request #12134 from github/dependabot/cargo/ruby/serde_json-1.0.93
2023-02-09 10:50:27 +00:00
Michael Nebel
d4985a99e0
C#: Add change note.
2023-02-09 11:32:09 +01:00
Michael Nebel
59ab353827
C#: Add upgrade and downgrade scripts.
2023-02-09 11:32:09 +01:00
Michael Nebel
54b45134ef
C#: Add example code including tests.
2023-02-09 11:32:09 +01:00
Michael Nebel
c00b089aa8
C#: Introduce library support for scoped.
2023-02-09 11:32:08 +01:00
Michael Nebel
955f23d021
C#: Introduce extractor support for scoped variables and parameters.
2023-02-09 11:32:08 +01:00
Michael Nebel
dd6ceb7053
C#: Extend the DB schema with a scoped annotation relation.
2023-02-09 11:32:08 +01:00
Michael Nebel
7e174dce8b
C#: Re-factor. Introduce variablekind enum.
2023-02-09 11:32:08 +01:00
Michael Nebel
89bebe9d36
C#: Re-factor local variable populate.
2023-02-09 11:32:08 +01:00
Michael B. Gale
ad4ae1c331
Merge pull request #12132 from github/mbg/fix/log-injection-precision
...
Go: Downgrade `go/log-injection` precision to medium
2023-02-09 10:29:24 +00:00
Michael B. Gale
70a6ff84af
Add change note
2023-02-09 09:56:36 +00:00
Geoffrey White
0f6b05dedf
Merge pull request #12126 from geoffw0/append
...
Swift: Move some models into collections
2023-02-09 09:33:08 +00:00
Michael Nebel
b895065be9
Merge pull request #12058 from michaelnebel/csharp/structdefaults
...
C# 11: Check that we get AST for structs that doesn't initialise all fields.
2023-02-09 09:51:00 +01:00
Anders Schack-Mulligen
3e2bf23bfe
Merge pull request #12118 from michaelnebel/telemetry/performancefix
...
C#/Java: Materialize sink/source/summary predicates to avoid bad join order.
2023-02-09 09:39:38 +01:00
dependabot[bot]
bd98ae0dcc
build(deps): bump serde_json from 1.0.91 to 1.0.93 in /ruby
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.91 to 1.0.93.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.91...v1.0.93 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-09 08:13:18 +00:00
Erik Krogh Kristensen
f2904ca29b
Merge pull request #12135 from github/dependabot/cargo/ql/serde_json-1.0.93
...
build(deps): bump serde_json from 1.0.92 to 1.0.93 in /ql
2023-02-09 09:08:45 +01:00
dependabot[bot]
5e2f9e1568
build(deps): bump serde_json from 1.0.92 to 1.0.93 in /ql
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.92...v1.0.93 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-09 03:09:08 +00:00
Chris Smowton
f113eaa77d
Merge pull request #12059 from pwntester/go_twirp_support
...
[GoLang] Add support for Twirp framework
2023-02-08 21:55:56 +00:00
Sim4n6
4196230a8a
use if-then-else rather than nested exists
2023-02-08 21:46:50 +01:00
Sim4n6
9e285020a1
Comment modif + remove redundant cast
2023-02-08 21:14:53 +01:00
Michael B. Gale
46d49cd66f
Downgrade log injection precision to medium
...
This is in line with the precision of this query for other languages
2023-02-08 15:49:06 +00:00
Michael Nebel
f6a02310d3
C#: Fix bad join order in TestLibrary characteristic predicate.
2023-02-08 16:37:49 +01:00
Owen Mansel-Chan
18335854b6
Update go/ql/lib/semmle/go/frameworks/Twirp.qll
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2023-02-08 15:33:35 +00:00
Rasmus Wriedt Larsen
5c23b47ef4
Python: Fix typo in QLDoc
...
Co-authored-by: Taus <tausbn@github.com >
2023-02-08 16:27:06 +01:00
Rasmus Wriedt Larsen
8bb1d8631a
Python: Add call-graph hotfix for sympy
2023-02-08 16:19:29 +01:00
Rasmus Wriedt Larsen
23144f584a
Merge branch 'main' into call-graph-code
2023-02-08 16:17:34 +01:00
Mathias Vorreiter Pedersen
946e301ed6
Merge pull request #12079 from rdmarsh2/rdmarsh2/use-use-taint-test-reads
...
C++: allow read steps at the sink in IR taint test
2023-02-08 15:08:00 +00:00
Erik Krogh Kristensen
3ebac65167
apply change-note suggestions from doc review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-02-08 14:55:54 +01:00
Robert
13c7c8449c
Merge pull request #12123 from github/robertbrignull/telemetry_privacy_docs
...
Update telemetry privacy document for UI interaction and exceptions
2023-02-08 13:40:35 +00:00
Mathias Vorreiter Pedersen
825628675e
C++: Only allow implicit reads of fields that exist on the sink node's type.
2023-02-08 13:08:22 +00:00
Arthur Baars
78ad9d67b4
Address comments
2023-02-08 13:40:46 +01:00
Ian Lynagh
844e372651
Kotlin: Add a changenote for 1.8.20 support
2023-02-08 11:35:23 +00:00
Ian Lynagh
069c9674d1
Kotlin: Update supported versions
2023-02-08 11:35:23 +00:00
Ian Lynagh
6255298876
Kotlin: Use 1.8.10 for CI
...
I don't think there's any need for the CI version to be one of the
versions we build extractors for, so I've removed that check.
2023-02-08 11:35:23 +00:00
Chris Smowton
99bed0b089
Merge pull request #12127 from smowton/smowton/perf/golang-less-string-construction
...
Go: Consolidate repeated calls to `matches` and `regexpMatch`
2023-02-08 11:07:39 +00:00
Michael Nebel
02364d072e
Java: Fix bad join in TestLibrary characteristic predicate.
2023-02-08 11:59:59 +01:00
Alvaro Muñoz
764155ce97
remove bracket
2023-02-08 11:57:03 +01:00
Michael B. Gale
3abf321071
Merge pull request #11496 from github/mbg/add/writable-file-closed-error-query
...
Go: Add query to detect lack of error handling for `os.File.Close` on writable handles
2023-02-08 10:53:44 +00:00
Owen Mansel-Chan
931c683146
Use regex for case-insensitive string comparisons
...
This is slightly more efficient.
2023-02-08 10:45:07 +00:00
erik-krogh
eb564760be
improve qhelp based on doc review
2023-02-08 11:00:54 +01:00
Mathias Vorreiter Pedersen
7f09684577
Merge pull request #12121 from github/alexdenisov/extract-availability-info
...
Swift: extract availability info
2023-02-08 09:54:42 +00:00
Michael Nebel
f8dbbe006e
C#/Java: Materialize sink/source/summary predicates to avoid join on input/output before filtering.
2023-02-08 10:04:43 +01:00
Owen Mansel-Chan
c427f8fc95
Do not import file defining a Configuration
2023-02-08 06:31:25 +00:00
Henry Mercer
6e9484970f
Merge pull request #12128 from github/codeql-ci/atm/release-0.4.7
...
JS: Bump version numbers of ML-powered packs after 0.4.7 release
2023-02-07 22:29:20 +00:00
Henry Mercer
e972cb069e
Merge branch 'main' into codeql-ci/atm/release-0.4.7
2023-02-07 21:31:08 +00:00
github-actions[bot]
4f76ebbb0b
JS: Bump version of ML-powered library and query packs to 0.4.8
2023-02-07 19:44:25 +00:00
github-actions[bot]
30b2644f17
JS: Bump patch version of ML-powered library and query packs
2023-02-07 19:34:58 +00:00
Chris Smowton
99d3f689dc
Consolidate repeated calls to matches and regexpMatch
...
This is especially useful if it avoids temporary string construction, such as toLowerCase().matches(...)
2023-02-07 19:22:49 +00:00
Robert
15b293c56d
Apply copy edits
2023-02-07 17:11:47 +00:00
Geoffrey White
60e7d6b540
Swift: Move insert to RangeReplaceableCollection.
2023-02-07 17:08:23 +00:00
Geoffrey White
7cb665cde1
Swift: Move popLast to BidirectionalCollection and add popFirst.
2023-02-07 16:56:00 +00:00
Geoffrey White
d17c7bb0e8
Swift: Move first(_:), last(_:) into Sequence, BidirectionalCollection.
2023-02-07 16:47:02 +00:00
Geoffrey White
3586926157
Swift: Move first, last into Collection, BidirectionalCollection.
2023-02-07 16:36:06 +00:00
Taus
080ce09bd7
Python: Update six test expectations
2023-02-07 16:21:15 +00:00
Taus
8dea993f41
Python: Update failing test
...
Seems the name for the codec changed between Python 2 and 3. :)
2023-02-07 16:21:15 +00:00
Taus
49a3dd6131
Python: Clean up version handling
...
Depends on an internal PR.
2023-02-07 16:21:15 +00:00
Mathias Vorreiter Pedersen
334c41c3e1
Merge pull request #12122 from github/post-release-prep/codeql-cli-2.12.2
...
Post-release preparation for codeql-cli-2.12.2
2023-02-07 16:17:57 +00:00
Geoffrey White
b69d8625e5
Swift: Move append methods into RangeReplaceableCollection.
2023-02-07 16:07:35 +00:00
Geoffrey White
f9f08fff83
Swift: Use RangeReplaceableCollection in the test.
2023-02-07 16:03:51 +00:00
Tom Hvitved
8e8897b08b
Data flow: Sync files
2023-02-07 15:15:04 +01:00
Tom Hvitved
10534b62c9
Data flow: Call context virtual dispatch pruning in stage 1
2023-02-07 15:14:27 +01:00
Robert
80a503b65d
Update telemetry privacy document for UI interaction and exceptions
2023-02-07 14:00:22 +00:00
Mathias Vorreiter Pedersen
1980e25ac9
Merge pull request #12120 from MathiasVP/even-fewer-strings
...
C++: Avoid unnecessary calls to `toLowerCase()`
2023-02-07 13:57:12 +00:00
Alex Denisov
3448cde048
Swift: add database migration
2023-02-07 14:31:19 +01:00
Alex Denisov
712c25e6f4
Swift: extract availability info
2023-02-07 14:26:39 +01:00
github-actions[bot]
522a892d32
Post-release preparation for codeql-cli-2.12.2
2023-02-07 13:19:06 +00:00
Jeroen Ketema
20ce4cdf91
C++: Map operand nodes that are only used once onto the related instruction node
2023-02-07 14:17:54 +01:00
Mathias Vorreiter Pedersen
746f04bafc
C++: Construct fewer strings.
2023-02-07 11:44:32 +00:00
Tom Hvitved
984729f9b0
Merge pull request #12117 from hvitved/ruby/delay-location-to-string
...
Ruby: Avoid computing `Location::toString` in full
2023-02-07 12:42:03 +01:00
Mathias Vorreiter Pedersen
ff29356ae9
Merge pull request #12106 from MathiasVP/fewer-strings
...
C++: Replace `toUpperCase().matches("...")` with case-insensitive `regexpMatch`
2023-02-07 11:31:36 +00:00
Paolo Tranquilli
c9397a5abf
Merge pull request #10950 from github/redsun82/swift-regex
...
Swift: extract `RegexLiteralExpr`
2023-02-07 11:30:43 +01:00
Alvaro Muñoz
642a138eaa
Update Twirp.qll
2023-02-07 10:44:48 +01:00
Geoffrey White
d8616e77d5
Merge pull request #12108 from geoffw0/strings3
...
Swift: Remove a no-longer-needed special case from swift/unsafe-js-eval.
2023-02-07 09:44:41 +00:00
Mathias Vorreiter Pedersen
aef66c462a
Merge pull request #12107 from aibaars/downgrade-tree-sitter
...
Ruby: downgrade tree-sitter to 0.20.7
2023-02-07 09:29:42 +00:00
Paolo Tranquilli
a3b443c310
Swift: add upgrade/downgrade scripts for regex extraction
2023-02-07 10:21:37 +01:00
Paolo Tranquilli
ad04a408c7
Swift: add doc to RegexLiteralExpression
2023-02-07 10:21:37 +01:00
Paolo Tranquilli
50889b8fa1
Swift: move regex test to integration tests
2023-02-07 10:21:37 +01:00
Tom Hvitved
c0e3186607
Ruby: Avoid computing Location::toString in full
2023-02-07 10:06:47 +01:00
Paolo Tranquilli
d201c1eadd
Swift: support linux-only tests
2023-02-07 09:41:06 +01:00
Paolo Tranquilli
a244b825df
Merge branch 'main' into redsun82/swift-regex
2023-02-07 09:37:09 +01:00
Anders Schack-Mulligen
3c580896dc
Merge pull request #11712 from aschackmull/java/constant-guards
...
Java: Apply deadcode guard to data flow nodes.
2023-02-07 09:14:20 +01:00
Harry Maclean
43ce26e4d0
Ruby: re-add Eval.rb
2023-02-07 09:37:26 +13:00
Jeroen Ketema
a4c3ea2efc
Merge pull request #9245 from ihsinme/ihsinme-patch-102
...
CPP: Add query for CWE-805: Buffer Access with Incorrect Length Value using some functions
2023-02-06 21:24:07 +01:00
Jeroen Ketema
1c35109675
C++: Add experimental tag to experimental query
2023-02-06 20:31:26 +01:00
Jeroen Ketema
868f07bc91
Merge branch 'main' into ihsinme-patch-102
2023-02-06 20:16:53 +01:00
Geoffrey White
996536b08e
Swift: Remove a no-longer-needed special case from swift/unsafe-js-eval.
2023-02-06 17:35:21 +00:00
ihsinme
065ca3c227
Update DivideByZeroUsingReturnValue.ql
2023-02-06 19:42:46 +03:00
Mathias Vorreiter Pedersen
4016299aa8
Update cpp/ql/lib/semmle/code/cpp/security/Encryption.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-02-06 15:55:15 +00:00
Jeroen Ketema
d108185ec7
Merge pull request #12102 from jketema/fix-typos
...
C++: Fix some typos in the use-use dataflow code
2023-02-06 16:50:48 +01:00
Arthur Baars
12f5732782
Ruby: downgrade tree-sitter to 0.20.7
...
The 0.20.9 version caused a stack overflow error on
the mongo-ruby-driver repository.
2023-02-06 16:27:51 +01:00
Erik Krogh Kristensen
4eebeab8a8
Merge pull request #12078 from erik-krogh/qlCache
...
QL: simplify the QL-for-QL workflow, which should also fix the cache
2023-02-06 16:21:45 +01:00
Mathias Vorreiter Pedersen
1c9a526afa
C++: Construct fewer strings.
2023-02-06 15:18:15 +00:00
erik-krogh
9364a85e49
add Rust format check to QL-for-QL tests
2023-02-06 14:26:30 +01:00
Erik Krogh Kristensen
9360ae9638
Merge pull request #12076 from erik-krogh/poly-sink-track
...
PY: add tracking of strings to compile-sites for poly-redos
2023-02-06 14:21:04 +01:00
Anders Schack-Mulligen
b4607d3fab
Java: Add change notes.
2023-02-06 13:55:34 +01:00
Geoffrey White
dc59ed08f9
Merge pull request #12094 from geoffw0/string2
...
Swift: Models for the String class
2023-02-06 11:24:19 +00:00
Mathias Vorreiter Pedersen
9e96d6182d
Merge pull request #12096 from MathiasVP/recognize-more-iterators
...
C++: Teach iterator flow about `std::back_inserter`
2023-02-06 11:08:21 +00:00
Chris Smowton
cd2fc6566f
Merge pull request #12101 from owen-mc/go/gofmt-remove-confusing-error-message
...
Fix files that gofmt can't parse
2023-02-06 10:58:54 +00:00
Jeroen Ketema
30952f6a24
C++: Fix some typos in the use-use dataflow code
2023-02-06 11:56:59 +01:00
Mathias Vorreiter Pedersen
00fe448e3a
Merge pull request #12072 from aschackmull/dataflow/stage3-perf
...
Dataflow: Fix join in `fwdFlowRead` (take 2)
2023-02-06 10:43:11 +00:00
Erik Krogh Kristensen
f32fa25c1a
Merge pull request #12100 from github/dependabot/cargo/ql/serde_json-1.0.92
...
build(deps): bump serde_json from 1.0.91 to 1.0.92 in /ql
2023-02-06 10:33:32 +01:00
Arthur Baars
e382d6d000
Ruby: update stats
2023-02-06 10:28:19 +01:00
Arthur Baars
ec46f33a01
Ruby: add change note
2023-02-06 10:17:19 +01:00
Arthur Baars
f391948b53
Ruby: update expected output
2023-02-06 10:17:19 +01:00
Arthur Baars
4af0c4bb03
Ruby: desugar one-line pattern matches
2023-02-06 10:17:19 +01:00
Arthur Baars
3c15fd266d
Ruby: add one-line pattern match test
2023-02-06 10:17:19 +01:00
Arthur Baars
edbba85b96
Ruby: add one-line pattern matches to AST
2023-02-06 10:17:18 +01:00
Arthur Baars
e390ca50b0
Ruby: upgrade/downgrade scripts
2023-02-06 10:17:18 +01:00
Arthur Baars
90c51ef404
Ruby: re-generate dbscheme and library
2023-02-06 10:17:18 +01:00
Arthur Baars
c554a10e06
Ruby: update tree-sitter-ruby
2023-02-06 10:17:18 +01:00
Michael B. Gale
f7a2a8677a
Rename change note file
2023-02-06 09:13:11 +00:00
Michael B. Gale
6c0d2bdee1
Add example without defer statement
2023-02-06 09:10:41 +00:00
Mathias Vorreiter Pedersen
316eecc064
C++: Accept test changes.
2023-02-06 09:09:00 +00:00
Michael B. Gale
25f907867b
Update expected test output
2023-02-06 08:51:46 +00:00
Michael B. Gale
abe38373da
Inline precededBySync
2023-02-06 08:47:47 +00:00
Michael B. Gale
c252ec0414
Add test for deferred close that returns error
2023-02-06 08:47:47 +00:00
Michael B. Gale
e05bce9863
Update expected test results
2023-02-06 08:47:46 +00:00
Michael B. Gale
314ecab90a
Use dominatesNode and improve variable naming
2023-02-06 08:47:46 +00:00
Michael B. Gale
85a339030b
Make the query a path-problem
2023-02-06 08:47:46 +00:00
Michael B. Gale
199c8641ec
Rename close to sink in query
2023-02-06 08:47:46 +00:00
Michael B. Gale
f648b021a9
Despecialise parameter names for precededBySync
2023-02-06 08:47:46 +00:00
Michael B. Gale
bd6c167be6
Fixup: more docs improvements
2023-02-06 08:47:46 +00:00
Michael B. Gale
f866e16679
Use any instead of exists for isCloseSink
2023-02-06 08:47:45 +00:00
Michael B. Gale
5ab6056b26
Fixup: docs comment
2023-02-06 08:47:45 +00:00
Michael B. Gale
3f446bc76e
Use three-argument hasQualifiedName
2023-02-06 08:47:45 +00:00
Michael B. Gale
07041bb659
Use Method instead of Function where able
2023-02-06 08:47:45 +00:00
Michael B. Gale
416ed57583
Fix qldoc comments
2023-02-06 08:47:45 +00:00
Michael B. Gale
f321adf9f4
Fix typo
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-02-06 08:47:44 +00:00
Michael B. Gale
10109b4925
Fix class comments
2023-02-06 08:47:44 +00:00
Michael B. Gale
49ce91fd5b
Update precision to high
2023-02-06 08:47:44 +00:00
Michael B. Gale
7e9617f3ce
Detect lack of error handling for os.File.Close
2023-02-06 08:47:43 +00:00
Tamás Vajk
c03fe70b8d
Merge pull request #12086 from tamasvajk/feature/fix-exception-handling-archive
...
C#: Change handled exception in `TrapWriter.ArchiveContents`
2023-02-06 08:53:56 +01:00
Owen Mansel-Chan
9ed7836367
Fix files that gofmt can't parse
...
We have some .go files that gofmt can't parse because they don't start
with "package". This was intentional, as they are fragments to be
included in .qhelp files. They don't affect the return code as gofmt
doesn't change their formatting, so this wasn't changing the result of
the check. However, it was confusing that when the check failed because
some other files weren't formatted correctly, the user would see the
stderr complaining about those files, so we capture stderr.
It would be an improvement to print which files are not formatted
correctly, but that was beyond my abilities with bash and makefiles.
2023-02-06 07:16:58 +00:00
dependabot[bot]
33e8414fc4
build(deps): bump serde_json from 1.0.91 to 1.0.92 in /ql
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.91...v1.0.92 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-06 03:29:59 +00:00
Sim4n6
ec82d61991
Add another frequently used step
2023-02-05 14:36:17 +01:00
Chris Smowton
03385ac0b5
Merge pull request #12097 from github/smowton/admin/macos-ventura
...
Add MacOS Ventura to supported platforms
2023-02-04 17:54:21 +00:00
Philip Ginsbach
8cefde36bf
Merge pull request #12088 from github/ginsbach/DocumentFinalAlias
...
document final type aliases
2023-02-04 12:23:03 +00:00
Chris Smowton
f8b574c654
Add MacOS Ventura to supported platforms
...
Rebase of e8bf8fe7a4
2023-02-04 08:28:03 +00:00
Harry Maclean
02b09ca9f7
Ruby: Remove unused test files
2023-02-04 14:42:59 +13:00
Harry Maclean
cfb3bc9dce
Ruby: Remove unused test file
2023-02-04 14:30:56 +13:00
Harry Maclean
0711326619
Ruby: Move PosixSpawn tests to their own directory
2023-02-04 14:30:23 +13:00
Harry Maclean
dbbef0534b
Ruby: Move Core tests into core directory
2023-02-04 14:28:25 +13:00
Harry Maclean
b5d98d9011
Ruby: Move GraphQL test to their own directory
2023-02-04 14:25:38 +13:00
Harry Maclean
6c816d5602
Ruby: Move ActionDispatch tests to own directory
2023-02-04 14:19:08 +13:00
Harry Maclean
58d7af4018
Ruby: Move ActionView tests into their own dir
...
This ensures that changes to unrelated test files don't affect these
tests.
2023-02-04 14:19:08 +13:00
Mathias Vorreiter Pedersen
7642245747
Merge pull request #12095 from github/post-release-prep/codeql-cli-2.12.2
...
Post-release preparation for codeql-cli-2.12.2
2023-02-04 01:03:14 +00:00
Jami Cogswell
2d7e71dfce
Java: add read-file sink kind for first arg of copy
2023-02-03 17:28:46 -05:00
Mathias Vorreiter Pedersen
559c799309
C++: Also recognize iterators obtained via a function that doesn't receive the container as a qualiifer.
2023-02-03 21:43:21 +00:00
github-actions[bot]
57f40ccd48
Post-release preparation for codeql-cli-2.12.2
2023-02-03 21:12:22 +00:00
Alvaro Muñoz
23c7bc8143
import RequestForgery from tests.ql
2023-02-03 22:05:50 +01:00
Jami
b6805c6913
Merge pull request #11863 from jcogs33/jcogs33/update-paramsString
...
Java: update paramsString
2023-02-03 15:47:38 -05:00
erik-krogh
ecafce8191
improve the CryptoJS model by using API::Node
2023-02-03 21:44:23 +01:00
Sarita Iyer
8edd378290
Merge pull request #12077 from github/codeql-cli-articles-migration-update
...
Update CodeQL CLI docs articles and links to point to new location on GitHub Docs site
2023-02-03 15:25:33 -05:00
Geoffrey White
364c173fc3
Swift: Accept additional taint flow in UnsafeJsEval test.
2023-02-03 19:21:10 +00:00
Geoffrey White
1f69fff26c
Swift: Fix mistake caught by QL-for-QL.
2023-02-03 19:15:08 +00:00
Geoffrey White
f82a548cf9
Swift: Comments and formatting.
2023-02-03 18:50:51 +00:00
Geoffrey White
c666f9c845
Merge pull request #12089 from geoffw0/filedoc
...
Swift: QLDoc models files consistently.
2023-02-03 18:45:20 +00:00
Mathias Vorreiter Pedersen
77250af444
Merge pull request #12050 from MathiasVP/flow-out-of-iterators-3
2023-02-03 18:43:37 +00:00
Mathias Vorreiter Pedersen
431738175d
Merge pull request #11171 from MathiasVP/global-flow
2023-02-03 18:42:46 +00:00
Geoffrey White
ec72c7504c
Swift: Add a partial model of Collection.
2023-02-03 18:42:42 +00:00
Geoffrey White
e357b44943
Swift: Add a partial model of Sequence.
2023-02-03 18:42:42 +00:00
Geoffrey White
4bb0bbf488
Swift: Remove redundant copies.
2023-02-03 18:42:41 +00:00
Geoffrey White
e230951a14
Swift: Model StringProtocol methods.
2023-02-03 18:42:41 +00:00
Sarita Iyer
75b0676c95
Add tocs with links to deprecated articles
2023-02-03 13:37:53 -05:00
Jonas Jensen
41f7c7ae53
Merge pull request #12092 from jbj/aliases-upper-case
2023-02-03 18:40:53 +01:00
Alvaro Muñoz
04d5b7e579
make RequestForgery import private
2023-02-03 18:19:35 +01:00
Alvaro Muñoz
4b198f9af8
apply code review feedback
2023-02-03 18:12:49 +01:00
Mathias Vorreiter Pedersen
09a7573163
C++: Add comments to the new FP.
2023-02-03 17:09:19 +00:00
Alvaro Muñoz
844193d065
use regexp to capture generated file names
2023-02-03 18:08:56 +01:00
Mathias Vorreiter Pedersen
ae774a6b95
C++: Add a test with an indirect source.
2023-02-03 16:59:54 +00:00
Alvaro Muñoz
1d0e80c2f5
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-02-03 17:59:29 +01:00
Alvaro Muñoz
3002230af9
remove duplicated import
2023-02-03 17:48:13 +01:00
Philip Ginsbach
1ec2c2591b
fix documentation generator problem
2023-02-03 16:42:07 +00:00
Robert Marsh
ad8e82ac65
C++: allow read steps at the sink in IR taint test
2023-02-03 11:38:49 -05:00
Owen Mansel-Chan
2f637e2c8e
Remove unused variable
2023-02-03 16:36:20 +00:00
Alvaro Muñoz
c517eb89b2
add more sinks
2023-02-03 17:33:08 +01:00
Jonas Jensen
73112e401c
Change type name to upper case
...
QL doesn't allow types to be declared in lower case, so the example did
not compile.
2023-02-03 17:30:12 +01:00
Calum Grant
7d8b624a71
Basic script to generate shared code metrics
2023-02-03 16:24:39 +00:00
Philip Ginsbach
a354e776bf
document final type aliases
2023-02-03 15:59:47 +00:00
Alvaro Muñoz
20dc30d7e8
add RequestForgery test
2023-02-03 16:38:56 +01:00
Philip Ginsbach
a639f13fd9
Merge pull request #12085 from github/ginsbach/DocumentModuleSignatureMemberDefaults
...
document module signature member defaults
2023-02-03 15:33:00 +00:00
Alvaro Muñoz
6b3d458865
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-02-03 16:20:21 +01:00
Alvaro Muñoz
c7637a7e1f
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-02-03 16:19:48 +01:00
Alex Ford
7768026e70
Merge branch 'main' into js-use-shared-cryptography
2023-02-03 15:18:30 +00:00
Anders Schack-Mulligen
2d6d8aaa74
Java: Account for additional constants in ArrayIndexOutOfBounds query.
2023-02-03 16:16:39 +01:00
Anders Schack-Mulligen
a1aeb995e6
Java: Apply deadcode guard to data flow nodes.
2023-02-03 16:16:39 +01:00
Anders Schack-Mulligen
e8dbd65d77
Java: Refactor compile-time constant calculation and apply to ConstantIntegerExpr.
2023-02-03 16:16:27 +01:00
Alvaro Muñoz
a0cf8e786c
fix SSRF sink
2023-02-03 16:16:00 +01:00
Alvaro Muñoz
7140b956e8
improve generated files matching predicates
2023-02-03 16:13:44 +01:00
Sarita Iyer
d99f7b56bd
Merge branch 'codeql-cli-articles-migration-update' of https://github.com/github/codeql into codeql-cli-articles-migration-update
2023-02-03 09:56:51 -05:00
Sarita Iyer
c33c5ed517
Update codeql-cli links
2023-02-03 09:56:49 -05:00
Alex Ford
6c35feaa98
ConceptsShared: add a default implementation of BlockMode CryptographicOperation#getBlockMode() for compatibility with external code
2023-02-03 14:39:32 +00:00
Alex Ford
b968b59afc
CryptoAlgorithms: make CryptographicAlgorithm#matchesName hold only if that algorithm is the most specific match
2023-02-03 14:15:32 +00:00
Tamas Vajk
f90c5346bf
C#: Change handled exception in TrapWriter.ArchiveContents
2023-02-03 15:13:23 +01:00
Mathias Vorreiter Pedersen
0a6f914bfc
C++: Make the documentation on 'isSink' less ambiguous.
2023-02-03 14:09:01 +00:00
Mathias Vorreiter Pedersen
0aed890b15
C++: Undo QLDoc change.
2023-02-03 14:02:55 +00:00
erik-krogh
8e05fdb369
make more imports private
2023-02-03 15:00:31 +01:00
erik-krogh
c5350ca6a0
add change-note
2023-02-03 14:47:58 +01:00
erik-krogh
cf094c2f4f
adjust which folders are seen as exported to remove an FP
2023-02-03 14:47:55 +01:00
erik-krogh
848b24cfe4
adjust concept tests after changing subprocess model
2023-02-03 14:47:55 +01:00
erik-krogh
ef44cb86c2
remove FPs related to parameters that are meant to be commands
2023-02-03 14:47:55 +01:00
erik-krogh
e9ebba3350
assume shell=False for subprocess calls, fixes FPs in e.g. youtube-dl
2023-02-03 14:47:55 +01:00
erik-krogh
d228cf0e7b
use more API-nodes to model subprocess.run (and friends)
2023-02-03 14:47:55 +01:00
erik-krogh
bce83bfc4e
add failing test for indirectly setting the shell=true flag for subprocess.run
2023-02-03 14:47:55 +01:00
erik-krogh
0a2c7d062c
add Fabric test, and add tracking of the shell flag in Fabric
2023-02-03 14:47:55 +01:00
erik-krogh
6bbc4f4a48
add more tests
2023-02-03 14:47:55 +01:00
erik-krogh
33c506d7fe
add minimal test for Array join as a sink, and learn that the order is flipped compared to JS. Thanks Copilot!
2023-02-03 14:47:55 +01:00
erik-krogh
5bddfc0d79
add test for f-strings as sink
2023-02-03 14:47:55 +01:00
erik-krogh
47a06d2824
add library inputs as a source, and get minimal test to work
2023-02-03 14:47:55 +01:00
erik-krogh
7fcc548665
add py/shell-command-constructed-from-input, but without a source.
...
It's a very direct port from Ruby, with only minor adjustments to fit the Python APIs
2023-02-03 14:47:55 +01:00
erik-krogh
187cfd7be7
add isShellInterpreted to the SystemCommandExecution concept
2023-02-03 14:47:54 +01:00
Geoffrey White
38eeb9c747
Swift: Model String methods.
2023-02-03 12:26:55 +00:00
Alex Ford
e17b3d975d
JS: pick up CryptographicKeys used in asmCrypto encrypt/decrypt calls
2023-02-03 12:16:25 +00:00
Alex Ford
6b2a92a7ca
JS: update CryptographicKey.expected
2023-02-03 12:12:47 +00:00
Geoffrey White
1077dcd2e3
Swift: Model String initializers.
2023-02-03 11:36:35 +00:00
Philip Ginsbach
b8bd98e476
Merge pull request #12075 from github/ginsbach/RemoveIncorrectStatement
...
remove statement about namespaces from documentation that no longer holds
2023-02-03 11:18:07 +00:00
Geoffrey White
142ca0c9fb
Swift: Model StringProtocol initializers.
2023-02-03 10:53:44 +00:00
Geoffrey White
d888510688
Swift: Fix incorrect taint to String fields.
2023-02-03 10:21:52 +00:00
Geoffrey White
d25de8c764
Swift: Taint fields of StringProtocol.
2023-02-03 10:16:33 +00:00
Philip Ginsbach
e552a6206d
shadowing and visibility of default predicates
2023-02-03 10:11:25 +00:00
Geoffrey White
21abe54d8d
Swift: Greatly extend tests of taint through strings.
2023-02-03 10:11:12 +00:00
Philip Ginsbach
09fdf744d4
introduce module signature member defaults
2023-02-03 10:01:59 +00:00
Geoffrey White
bf6ef43451
Swift: Document library model files consistently.
2023-02-03 09:59:35 +00:00
erik-krogh
3545bb0819
adjust qhelp based on review
2023-02-03 10:50:18 +01:00
Mathias Vorreiter Pedersen
4e7ca1a175
Merge pull request #12082 from github/post-release-prep/codeql-cli-2.12.2
...
Post-release preparation for codeql-cli-2.12.2
2023-02-03 09:40:57 +00:00
Philip Ginsbach
808d3e3a1f
Merge pull request #12084 from github/ginsbach/IncorrectEnvironmentNumbering
...
we actually only distinguish four environments
2023-02-03 09:37:39 +00:00
Alvaro Muñoz
50bd0707ce
remove redundant import
2023-02-03 10:19:35 +01:00
Alvaro Muñoz
3a9d650cb9
add qldocs for member predicates
2023-02-03 10:09:16 +01:00
Philip Ginsbach
56e0b19df8
we actually only distinguish four environments
2023-02-03 09:04:43 +00:00
Alvaro Muñoz
8cb022713e
include review feedback
2023-02-03 10:01:55 +01:00
Arthur Baars
9a4cec7691
Merge pull request #11956 from aibaars/json-log
...
Ruby: structured logging
2023-02-03 09:54:49 +01:00
Alvaro Muñoz
13242df149
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-02-03 09:45:00 +01:00
Alvaro Muñoz
dd31be43e0
Support for Twirp framework
2023-02-03 09:35:22 +01:00
github-actions[bot]
faf21f3edb
Post-release preparation for codeql-cli-2.12.2
2023-02-02 23:01:04 +00:00
erik-krogh
6e712b293a
add tracking of strings to compile-sites for poly-redos, in the style of Ruby
2023-02-02 22:56:20 +01:00
Jami Cogswell
30b1a2edbc
Java: add first argument to copy sink
2023-02-02 16:20:54 -05:00
Jami Cogswell
61a8f5e425
Java: add signature to createTempDirectory sink
2023-02-02 16:19:20 -05:00
erik-krogh
34266cfa4c
simplify the QL-for-QL workflow, which should also fix the cache
2023-02-02 22:17:38 +01:00
Sarita Iyer
fd977cc277
Update CONTRIBUTING.md
2023-02-02 16:13:13 -05:00
Sim4n6
a0150849cb
Updated the expected test file
2023-02-02 21:42:47 +01:00
Sarita Iyer
465a3e0ece
fix typo
2023-02-02 15:36:34 -05:00
Alex Ford
b0b8f8725e
JS: add some CryptographicOperation#getBlockMode() tests
2023-02-02 20:30:30 +00:00
Alex Ford
aa2c532a78
JS: adjust test whitespace
2023-02-02 20:30:30 +00:00
Alex Ford
c25dc978df
JS: add blockMode to CryptographicOperation tests
2023-02-02 20:30:30 +00:00
Alex Ford
1435ef1862
CryptoAlgorithms: make CryptographicAlgorithm#matchesName split on underscores
2023-02-02 20:30:30 +00:00
Alex Ford
983055b8f9
JS: Use shared CryptographicOperation concept and implement BlockMode getBlockMode()
2023-02-02 20:30:30 +00:00
Alex Ford
e5dfbe2c8d
ConceptsShared: Add BlockMode#matchesString(string) predicate
2023-02-02 20:27:52 +00:00
Alex Ford
61095b3c58
ConceptsShared: Add deprecated DataFlow::Node CryptographicOperation#getInput() predicate
2023-02-02 20:27:05 +00:00
Sarita Iyer
9943d0c054
update anchor links
2023-02-02 15:26:53 -05:00
Sim4n6
1a8c9abee2
Incorporate Sink & Source as steps from TarSlipQry
2023-02-02 21:09:40 +01:00
Sarita Iyer
9b17ee9326
add back hidden toc tree
2023-02-02 14:39:49 -05:00
Sarita Iyer
0ab982891e
adding back toc-trees to fix error
2023-02-02 14:31:03 -05:00
Sarita Iyer
2772cf79f4
Update CodeQL CLI articles with migration message
2023-02-02 14:11:02 -05:00
erik-krogh
52959d7c0a
add failing test for not tracking strings to re.compile
2023-02-02 19:10:32 +01:00
Erik Krogh Kristensen
c8cfb6a0cc
Merge pull request #12065 from knewbury01/knewbury01/fix-js-cleartext-logging-doc
...
Update JS CleartextLogging qhelp
2023-02-02 18:23:59 +01:00
Philip Ginsbach
55cd436b06
Merge pull request #12074 from github/ginsbach/DocumentShadowing2
...
shadowing in the QL language specification
2023-02-02 17:13:47 +00:00
Philip Ginsbach
1542353af7
statement no longer holds for namespaces with shadowing
2023-02-02 16:55:06 +00:00
Alvaro Muñoz
2576a09af9
remove unnecessary line
2023-02-02 17:50:50 +01:00
Nora Dimitrijević
a3a01ddc11
Merge pull request #11855 from d10c/swift/extract-captures
2023-02-02 17:50:41 +01:00
Mathias Vorreiter Pedersen
cd660e1067
Merge pull request #12071 from github/release-prep/2.12.2
...
Release preparation for version 2.12.2
2023-02-02 16:49:44 +00:00
Philip Ginsbach
ab184ebd78
shadowing in the QL language specification
2023-02-02 16:19:18 +00:00
Kristen Newbury
21b4931fbb
Merge branch 'main' into knewbury01/fix-js-cleartext-logging-doc
2023-02-02 11:12:57 -05:00
Kristen Newbury
231110ddca
Update javascript/ql/src/Security/CWE-312/CleartextLogging.qhelp
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-02-02 11:12:44 -05:00
Henry Mercer
65863f1fc7
Merge pull request #10826 from github/dependabot/github_actions/actions/setup-dotnet-3.0.2
...
build(deps): bump actions/setup-dotnet from 2 to 3
2023-02-02 15:54:55 +00:00
Philip Ginsbach
1472d4b782
Merge pull request #12062 from github/ginsbach/DocumentShadowing
...
shadowing in the handbook
2023-02-02 15:52:54 +00:00
Anders Schack-Mulligen
67d4ed53b9
Dataflow: Sync.
2023-02-02 16:33:00 +01:00
Anders Schack-Mulligen
8cb233df1a
Dataflow: A proper perf fix for the stage-dependent fanout direction of the Content-to-Ap relation.
2023-02-02 16:31:07 +01:00
Jeroen Ketema
3cf5107b45
Apply suggestions from code review
2023-02-02 15:48:29 +01:00
github-actions[bot]
a4fa984792
Release preparation for version 2.12.2
2023-02-02 14:34:55 +00:00
Michael Nebel
77283be6c0
Merge pull request #12068 from michaelnebel/csharp/dotnetpublishtest
...
C#: Avoid that the dotnet publish test refers to a specific .NET vers…
2023-02-02 15:34:06 +01:00
Michael Nebel
960f776e29
C#: Avoid that the dotnet publish test refers to a specific .NET version.
2023-02-02 14:18:50 +01:00
Philip Ginsbach
4282e1a18e
explicitly mention aliases
2023-02-02 13:04:43 +00:00
Philip Ginsbach
2b719d503d
visible namespaces also include private imports
2023-02-02 13:03:30 +00:00
Michael Nebel
ae10a6beb0
C#: Check that we get AST for struct that doesn't initialize all fields.
2023-02-02 12:50:59 +01:00
Mathias Vorreiter Pedersen
b53963a791
C++: QLDoc.
2023-02-02 11:49:31 +00:00
Michael Nebel
3cd2024a66
Merge pull request #12060 from michaelnebel/csharp11/nameof
...
C# 11: Nameof on attribute declarations.
2023-02-02 12:46:28 +01:00
Nora Dimitrijević
ad5dbe18a4
Swift: db upgrade/downgrade script
2023-02-02 12:00:47 +01:00
Rasmus Wriedt Larsen
db114bb104
Merge branch 'main' into call-graph-code
2023-02-02 11:56:55 +01:00
Nora Dimitrijević
50e5b29eb7
Swift: all Callables can have captures [codegen'd]
2023-02-02 11:56:51 +01:00
Nora Dimitrijević
ce2e7f1d12
Swift: all Callables can have captures [hand-written]
2023-02-02 11:35:50 +01:00
Nora Dimitrijević
d230431006
Swift: extract closure captures (codegen'd part)
2023-02-02 11:35:49 +01:00
Nora Dimitrijević
6895c113cf
Swift: extract closure captures (hand-written part)
2023-02-02 11:30:33 +01:00
Nora Dimitrijević
87f7bc3a63
Swift: introduce closure capture AST test
2023-02-02 11:30:33 +01:00
Mathias Vorreiter Pedersen
968fff29ac
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into flow-out-of-iterators-3
2023-02-02 09:12:02 +00:00
Michael Nebel
470e4b64ea
C#: Delete assembly load code as it always throws a PlatformNotSupported exception.
2023-02-02 10:06:04 +01:00
Tony Torralba
62158c5e49
Merge pull request #12044 from atorralba/atorralba/webview-models
...
Swift: Add new source and flow step related to WkWebView
2023-02-02 09:27:21 +01:00
Michael Nebel
4089845ea4
C#: Test that nameof can used on method parameters and type parameters in attribute declarations.
2023-02-02 09:25:24 +01:00
dependabot[bot]
787fe38d90
build(deps): bump actions/setup-dotnet from 2 to 3.0.2
...
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet ) from 2 to 3.0.2.
- [Release notes](https://github.com/actions/setup-dotnet/releases )
- [Commits](https://github.com/actions/setup-dotnet/compare/v2...v3.0.2 )
---
updated-dependencies:
- dependency-name: actions/setup-dotnet
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-02 08:09:43 +00:00
Michael Nebel
7271d9987e
Merge pull request #11940 from michaelnebel/csharp/dotnet7
...
C#: Update project targets, workflows and other scripts to use .NET 7.
2023-02-02 08:14:55 +01:00
Nora Dimitrijević
e137993acd
Merge pull request #12061 from d10c/cpp/missing-check-scanf-join-order-fix
2023-02-02 07:57:21 +01:00
Kristen Newbury
dc5eb40d5f
Update JS CleartextLogging qhelp
2023-02-01 16:29:13 -05:00
Harry Maclean
d671cc6e43
Merge pull request #12052 from hmac/barrier-guard-fix
2023-02-02 08:16:07 +13:00
Chuan-kai Lin
255f989ede
Merge pull request #12034 from cklin/document-assume-small-delta
...
Document pragma[assume_small_delta]
2023-02-01 10:36:40 -08:00
Alvaro Muñoz
d6f1dfa205
update tests
2023-02-01 17:58:32 +01:00
Philip Ginsbach
c5deb8544b
rework documentation of namespaces to take account of shadowing
2023-02-01 16:56:35 +00:00
Tony Torralba
24527bfc4e
Minor change in WKNavigationDelegateSource to work around a bug
2023-02-01 17:44:08 +01:00
Tony Torralba
644bc56568
Add new source and flow step related to WkWebView
2023-02-01 17:44:06 +01:00
Tony Torralba
407e7cbbde
Merge pull request #12045 from atorralba/atorralba/more-custom-url-schemes
...
Swift: Add more sources for custom URL schemes
2023-02-01 17:40:20 +01:00
Joe Farebrother
97b2e852c9
Merge pull request #11713 from joefarebrother/sensitive-result-receiver
...
Java: Add query for leaking sensitive data through a ResultReceiver
2023-02-01 16:34:17 +00:00
Nora Dimitrijević
1df0be3ca2
C++: Fix join order in cpp/missing-check-scanf
...
The issues were:
* `revFlow`: `revFlow` joins `fwdFlow` on `vn`.
* `Node.getASuccessor()`: `MkNode` self-join on `vn`.
* `hasFlow/5`: `MkNode` self-join on `vn`.
2023-02-01 16:29:43 +01:00
Tony Torralba
834fc51a3a
Update java/ql/src/Security/CWE/CWE-927/SensitiveResultReceiver.ql
2023-02-01 15:26:26 +01:00
Tony Torralba
43b234eeb5
Switch to MaD models for UISceneDelegate methods
2023-02-01 15:15:51 +01:00
Tony Torralba
f7cc5f9627
Add more sources for custom URL schemes
...
Also add the appropriate steps so that these sources are useful
2023-02-01 15:07:37 +01:00
Alvaro Muñoz
4d6b35f891
apply gofmt
2023-02-01 14:51:48 +01:00
Alvaro Muñoz
70a151af02
add change-notes
2023-02-01 14:49:30 +01:00
Geoffrey White
96ee0f68b0
Merge pull request #11935 from geoffw0/protocol-extension
...
Swift: Flow sources through protocol extensions
2023-02-01 13:47:09 +00:00
Alvaro Muñoz
a3188f2e10
address review feedback
2023-02-01 14:43:51 +01:00
Mathias Vorreiter Pedersen
eb31160ae0
C++: Accept test changes.
2023-02-01 13:42:03 +00:00
Alvaro Muñoz
3502ab6523
fix missing QLDocs and refactor ServiceInterface
2023-02-01 14:37:38 +01:00
Mathias Vorreiter Pedersen
702b10ff96
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into global-flow
2023-02-01 13:37:10 +00:00
Mathias Vorreiter Pedersen
0e1dcc8062
C++: Accept test changes. These all appear to be good changes.
2023-02-01 13:25:37 +00:00
Mathias Vorreiter Pedersen
136b5d189c
C++: Small cleanup by making 'GlobalUse' extend 'UseImpl'.
2023-02-01 13:24:40 +00:00
Rasmus Wriedt Larsen
fdb33ff48e
Python: Fix grammar in change-note
...
Co-authored-by: Taus <tausbn@github.com >
2023-02-01 14:01:20 +01:00
Alvaro Muñoz
afa6b1cec5
Initial support for Twirp framework
2023-02-01 13:55:09 +01:00
Joe Farebrother
74dba953ca
Apply suggestions from docs review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-02-01 12:54:19 +00:00
Erik Krogh Kristensen
bc36a75bde
Merge pull request #12057 from erik-krogh/syncPyFlow
...
PY: Sync a dataflow config
2023-02-01 11:58:40 +01:00
erik-krogh
77e014c5a4
sync added dataflow config
2023-02-01 11:46:57 +01:00
Erik Krogh Kristensen
01f6862965
Merge pull request #11833 from erik-krogh/trackPyReg
...
PY: track string-constants to regular expression uses
2023-02-01 11:40:42 +01:00
Arthur Baars
a46061541b
Ruby: address review comment
2023-02-01 09:59:05 +01:00
Arthur Baars
fa81d9da18
Apply suggestions from code review
...
Co-authored-by: Harry Maclean <hmac@github.com >
2023-02-01 09:47:39 +01:00
Tony Torralba
837cdf7782
Merge pull request #12046 from atorralba/atorralba/urlrequest-models
...
Swift: Add taint for URLRequest fields
2023-02-01 09:24:17 +01:00
Geoffrey White
b9d487ac35
Merge branch 'main' into protocol-extension
2023-02-01 08:21:05 +00:00
Jeroen Ketema
ce8a84abb3
Merge pull request #12043 from jketema/subpaths
...
C++: Fix missing subpaths when displaying dataflow paths
2023-02-01 09:17:16 +01:00
Erik Krogh Kristensen
16049d694b
Merge pull request #12055 from github/dependabot/cargo/ql/tracing-0.1.37
...
Bump tracing from 0.1.35 to 0.1.37 in /ql
2023-02-01 09:07:11 +01:00
dependabot[bot]
373148decd
Bump tracing from 0.1.35 to 0.1.37 in /ql
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.35 to 0.1.37.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.35...tracing-0.1.37 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 03:11:28 +00:00
Harry Maclean
da45d3aa7f
Ruby: Fix string comparison barrier guard
...
`strNode` was not properly restricted for some cases.
2023-02-01 14:40:53 +13:00
Harry Maclean
0d68d88741
Merge pull request #11934 from hmac/actioncontroller-filters
2023-02-01 09:10:30 +13:00
Geoffrey White
7f58a2222a
Merge branch 'main' into protocol-extension
2023-01-31 16:06:55 +00:00
Mathias Vorreiter Pedersen
88338bdfcf
C++: Flow out of functions that write to iterators.
2023-01-31 15:11:47 +00:00
Chris Smowton
6b0b73b5f6
Merge pull request #12033 from intrigus-lgtm/patch-8
...
Fix errorneous slash
2023-01-31 14:39:51 +00:00
Mathias Vorreiter Pedersen
41ea71c31c
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-01-31 14:12:23 +00:00
Mathias Vorreiter Pedersen
a2248e6ca6
Merge pull request #12030 from MathiasVP/iterator-public-models
...
C++: Make iterator classes public
2023-01-31 14:11:52 +00:00
Mathias Vorreiter Pedersen
0d38ff8e8c
Merge pull request #11920 from gsingh93/bit-shift-range
...
C++: Improve left shift and right shift range analysis accuracy
2023-01-31 14:01:41 +00:00
Erik Krogh Kristensen
8bc9ce749f
Merge pull request #12038 from github/dependabot/cargo/ql/tracing-subscriber-0.3.16
...
Bump tracing-subscriber from 0.3.15 to 0.3.16 in /ql
2023-01-31 14:35:35 +01:00
Arthur Baars
57012714d6
Ruby: serialize timestamps as ISO8601
2023-01-31 14:32:29 +01:00
dependabot[bot]
56a0b1d2d8
Merge pull request #12024 from github/dependabot/cargo/ruby/clap-3.0.14
2023-01-31 13:30:21 +00:00
dependabot[bot]
597c71011e
Bump tracing-subscriber from 0.3.15 to 0.3.16 in /ql
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.15 to 0.3.16.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.15...tracing-subscriber-0.3.16 )
---
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-01-31 13:09:13 +00:00
Erik Krogh Kristensen
683761098d
Merge pull request #12041 from github/dependabot/cargo/ql/flate2-1.0.25
...
Bump flate2 from 1.0.24 to 1.0.25 in /ql
2023-01-31 14:07:09 +01:00
Mathias Vorreiter Pedersen
fcc4c91739
C++: More responding to comments.
2023-01-31 13:01:00 +00:00
dependabot[bot]
7f22c4c474
Bump clap from 3.0.12 to 3.0.14 in /ruby
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.12 to 3.0.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.12...v3.0.14 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 12:49:34 +00:00
dependabot[bot]
8410e46067
Bump flate2 from 1.0.24 to 1.0.25 in /ql
...
Bumps [flate2](https://github.com/rust-lang/flate2-rs ) from 1.0.24 to 1.0.25.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.24...1.0.25 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 12:48:10 +00:00
Erik Krogh Kristensen
481dab700c
Merge pull request #12037 from github/dependabot/cargo/ql/num_cpus-1.14.0
...
Bump num_cpus from 1.13.1 to 1.14.0 in /ql
2023-01-31 13:45:43 +01:00
Michael Nebel
478474bbed
C#: Add ref field test case.
2023-01-31 13:35:47 +01:00
yoff
7ae389bb28
Merge pull request #12026 from erik-krogh/nodePty
...
JS: add code-injection sink for node-pty
2023-01-31 13:27:32 +01:00
Michael Nebel
ecadb56419
C#: Update CIL consistency test expected output.
2023-01-31 13:21:00 +01:00
Michael Nebel
5657bd0547
C#: Update type annontations test to exclude OS specific stuff.
2023-01-31 13:21:00 +01:00
Michael Nebel
177fcbb4eb
C#: Update attribute test to exclude OS specific declarations.
2023-01-31 13:21:00 +01:00
Michael Nebel
0ed48616a7
C#: Use stubs for CWE-321/HardcodedSymmetricEncryptionKey.
2023-01-31 13:21:00 +01:00
Michael Nebel
9808482c41
C#: Update Minimal stubs from source testcase expected output.
2023-01-31 13:21:00 +01:00
Michael Nebel
3510f465b2
C#: Use stubs for ThreadUnsafeICryptoTransformLambda.
2023-01-31 13:21:00 +01:00
Michael Nebel
f3555b1076
C#: Update options files as some classes has been moved to other dll's.
2023-01-31 13:21:00 +01:00
Michael Nebel
5ccfc4d3f4
C#: Add System.Security.Cryptography as a dependency to the HashWithoutSalt query test.
2023-01-31 13:21:00 +01:00
Michael Nebel
fd74c10b06
C#: Use stubs for ThreadUnsafeICryptoTransform.
2023-01-31 13:21:00 +01:00
Michael Nebel
14888d4382
C#: Use stubs for CWE-327 test cases.
2023-01-31 13:21:00 +01:00
Michael Nebel
89de6cb8a0
C#: Update library tests.
2023-01-31 13:20:59 +01:00
Michael Nebel
33a923a85b
C#: Use IsKind instead of Kind (compiler warning).
2023-01-31 13:20:59 +01:00
Michael Nebel
3a4e5700e8
C#: Update project targets, workflows and other scripts to use .NET 7.
2023-01-31 13:20:59 +01:00
Michael Nebel
86e9bf2f81
Merge pull request #11996 from michaelnebel/csharp/refstructreffield
...
C# 11: Extractor support for `ref` fields in `ref struct`.
2023-01-31 13:08:57 +01:00
dependabot[bot]
423bab54d3
Bump num_cpus from 1.13.1 to 1.14.0 in /ql
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 12:05:11 +00:00
Erik Krogh Kristensen
38bcb2b727
Merge pull request #12039 from github/dependabot/cargo/ql/serde-1.0.152
...
Bump serde from 1.0.140 to 1.0.152 in /ql
2023-01-31 13:03:03 +01:00
dependabot[bot]
198b97ca8d
Bump serde from 1.0.140 to 1.0.152 in /ql
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.140 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.152 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 11:48:44 +00:00
Erik Krogh Kristensen
f2526d1784
Merge pull request #12040 from github/dependabot/cargo/ql/tree-sitter-0.20.9
...
Bump tree-sitter from 0.20.8 to 0.20.9 in /ql
2023-01-31 12:46:43 +01:00
Gulshan Singh
1a109cab4d
Remove unicode characters
2023-01-31 03:38:03 -08:00
dependabot[bot]
807b715320
Bump tree-sitter from 0.20.8 to 0.20.9 in /ql
...
Bumps [tree-sitter](https://github.com/tree-sitter/tree-sitter ) from 0.20.8 to 0.20.9.
- [Release notes](https://github.com/tree-sitter/tree-sitter/releases )
- [Commits](https://github.com/tree-sitter/tree-sitter/commits )
---
updated-dependencies:
- dependency-name: tree-sitter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 11:27:40 +00:00
Erik Krogh Kristensen
34ca12e5d2
Merge pull request #12042 from erik-krogh/qlTools
...
QL: update codeql-action in QL-for-QL
2023-01-31 12:24:37 +01:00
Mathias Vorreiter Pedersen
1a27a069ac
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-01-31 11:15:42 +00:00
erik-krogh
94cec17505
bump codeql-action
2023-01-31 12:09:21 +01:00
erik-krogh
4436ec070e
ensure the test is run when the workflow is updated
2023-01-31 12:09:21 +01:00
Geoffrey White
ee442e4d4b
Merge pull request #11979 from geoffw0/modern1
...
Swift: Modernize injection queries
2023-01-31 10:54:35 +00:00
erik-krogh
0cefa98490
add missing word to the change-note
2023-01-31 11:53:17 +01:00
Mathias Vorreiter Pedersen
daf7d1b7e7
C++: Add more QLDoc.
2023-01-31 10:37:51 +00:00
Mathias Vorreiter Pedersen
7583fe2ad8
C++: Respond to PR reviews.
2023-01-31 10:31:02 +00:00
Tony Torralba
e9a46c926d
Add taint for URLRequest fields
2023-01-31 11:15:45 +01:00
erik-krogh
95c19698c7
add change-note
2023-01-31 11:09:07 +01:00
Jeroen Ketema
24891c3f43
C++: Fix missing subpaths when displaying dataflow paths
2023-01-31 10:57:06 +01:00
erik-krogh
e5e8496084
fix QL-for-QL warnings
2023-01-31 10:55:27 +01:00
Arthur Baars
d944c2bd79
Ruby: address comments
2023-01-31 10:22:12 +01:00
Gulshan Singh
2f38d363ff
Fix typo in dependsOnChild
2023-01-30 19:55:53 -08:00
Gulshan Singh
fb31570af3
Fix bitshift test
2023-01-30 19:55:53 -08:00
Gulshan Singh
1758e25207
Merge lshift/rshift range expressions into a single file and address PR comments
2023-01-30 19:55:53 -08:00
Gulshan Singh
051d36ee6a
Add ConstantLShiftExprRange and ConstantRShiftExprRange classes
2023-01-30 19:55:53 -08:00
Gulshan Singh
5710289460
Add bitshift test
2023-01-30 19:55:53 -08:00
Harry Maclean
c99a096c9b
Ruby: Update test fixtures
2023-01-31 11:27:19 +13:00
Harry Maclean
69ed00cdf1
Ruby: QL4QL fix
2023-01-31 11:06:32 +13:00
Mathias Vorreiter Pedersen
cd596403a0
Merge pull request #12031 from MathiasVP/ir-get-call-predicate
2023-01-30 21:23:02 +00:00
Chuan-kai Lin
396d2de6e7
Document pragma[assume_small_delta]
2023-01-30 11:42:57 -08:00
intrigus-lgtm
f23d517236
Fix errorneous slash
...
The additional slash causes the request to fail.
Compare `gh api /repos/openjdk/jdk/code-scanning/codeql/databases/` (fails) with:
```
gh api /repos/openjdk/jdk/code-scanning/codeql/databases/
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest "
}
gh: Not Found (HTTP 404)
```
While `gh api /repos/openjdk/jdk/code-scanning/codeql/databases` (works).
2023-01-30 20:26:40 +01:00
Mathias Vorreiter Pedersen
a01a4734ed
C++/C#: Sync identical files.
2023-01-30 17:32:53 +00:00
Mathias Vorreiter Pedersen
3a1a9a771c
C++: Add a 'getCall' predicate to 'ArgumentOperand'.
2023-01-30 17:31:52 +00:00
Mathias Vorreiter Pedersen
f90007ae71
C++: Make our iterator models public.
2023-01-30 17:23:52 +00:00
Mathias Vorreiter Pedersen
be359a32c0
Merge pull request #11976 from MathiasVP/fewer-uses-2
...
C++: Don't count every conversion as a use
2023-01-30 15:51:12 +00:00
erik-krogh
31743afa87
add change-note
2023-01-30 16:34:23 +01:00
erik-krogh
e01002368f
add query detecting validators that use badly anchored regular expressions on library/remote input
2023-01-30 16:34:20 +01:00
Jami
7f6efae7dc
Merge pull request #12008 from jcogs33/jcogs33/update-queryproducer-package
...
Java: update package for `QueryProducer` sinks
2023-01-30 10:27:58 -05:00
Alexander Eyers-Taylor
89d835b9ec
Merge pull request #11988 from github/alexet/force-java-11
...
Use Java 11 for some integration tests
2023-01-30 15:19:00 +00:00
Nora Dimitrijević
fb88372c0f
Merge pull request #11862 from d10c/swift/rename-iterabledeclcontext
2023-01-30 16:03:49 +01:00
AlexDenisov
48434f4be3
Merge pull request #12025 from github/alexdenisov/ignore-sandbox-exec
...
Swift: ignore sandbox-exec
2023-01-30 15:59:19 +01:00
erik-krogh
02da718786
add code-injection sink for node-pty
2023-01-30 15:14:25 +01:00
Alex Denisov
b71c5e6c4b
Swift: ignore sandbox-exec
2023-01-30 15:10:30 +01:00
Mathias Vorreiter Pedersen
22202afbf5
Merge pull request #12007 from MathiasVP/fix-is-chi-before-iterator-use
...
C++: Add missing condition to `isChiBeforeIteratorUse`
2023-01-30 14:01:39 +00:00
Erik Krogh Kristensen
862948f1cc
Merge pull request #12014 from erik-krogh/axios
...
JS: add support for axios used as a global variable
2023-01-30 14:55:49 +01:00
Ian Lynagh
25e703e562
Merge pull request #11579 from igfoo/igfoo/only_lockless
...
Kotlin: Remove legacy trap-locking support
2023-01-30 13:44:31 +00:00
Michael Nebel
115a0a4318
C#: Add change note.
2023-01-30 14:28:35 +01:00
Michael Nebel
b25414fe93
C#: Add DB upgrade and downgrade scripts.
2023-01-30 14:28:35 +01:00
Michael Nebel
ff546c1497
C#: Add test cases for ref fields.
2023-01-30 14:28:35 +01:00
Michael Nebel
2be090bb91
C#: Add predicate isRef to the CIL Field class.
2023-01-30 14:28:35 +01:00
Michael Nebel
db047c2c4a
C#: Extract CIL fields using their underlying types for a reference type field and annotate the field as a reference type.
2023-01-30 14:28:35 +01:00
Michael Nebel
812bc20812
C#: Add CIL fields as entities that can carry type annotations.
2023-01-30 14:28:35 +01:00
Michael Nebel
23acd5c255
C#: Small re-factor of the Modifier class.
2023-01-30 14:28:34 +01:00
Michael Nebel
3a4ec90ae9
C#: Extraction of ref modifier for fields.
2023-01-30 14:28:34 +01:00
Erik Krogh Kristensen
e46960e0cf
Merge pull request #12022 from github/dependabot/cargo/ql/regex-1.7.1
...
Bump regex from 1.6.0 to 1.7.1 in /ql
2023-01-30 13:11:54 +01:00
dependabot[bot]
e3afb1640a
Bump regex from 1.6.0 to 1.7.1 in /ql
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.1.
- [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.6.0...1.7.1 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 11:19:30 +00:00
Erik Krogh Kristensen
8198bbf893
Merge pull request #12019 from github/dependabot/cargo/ql/serde_json-1.0.91
...
Bump serde_json from 1.0.82 to 1.0.91 in /ql
2023-01-30 12:16:49 +01:00
Nora Dimitrijević
9346f4d760
Swift: fix failing tests
2023-01-30 11:39:06 +01:00
dependabot[bot]
f430e83fca
Bump serde_json from 1.0.82 to 1.0.91 in /ql
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.82 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.82...v1.0.91 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 10:36:14 +00:00
Erik Krogh Kristensen
f647910e0c
Merge pull request #12018 from erik-krogh/qlDependabot
...
QL: fixup the dependabot config for QL-for-QL
2023-01-30 11:35:05 +01:00
Erik Krogh Kristensen
78683e4e8a
Merge pull request #11879 from erik-krogh/rbRegConcept
...
RB: add a RegexExecution concept, and use it for better regexp tracking
2023-01-30 11:33:09 +01:00
erik-krogh
40a576b775
fixup the dependabot config for QL-for-QL
2023-01-30 11:22:17 +01:00
erik-krogh
f04a9cb523
Merge branch 'main' into rbRegConcept
2023-01-30 11:05:40 +01:00
Erik Krogh Kristensen
3508a4b799
Merge pull request #12016 from erik-krogh/newEntity
...
QL: support the NewEntity module in QL-for-QL
2023-01-30 11:01:11 +01:00
Arthur Baars
907ebb723e
Merge branch 'main' into json-log
2023-01-30 10:49:42 +01:00
erik-krogh
54c4c23b46
support the NewEntity module in QL-for-QL
2023-01-30 10:34:06 +01:00
Mathias Vorreiter Pedersen
7cc7675cdc
C++: Accept query changes. These are just deduplications.
2023-01-30 09:26:14 +00:00
Mathias Vorreiter Pedersen
6a8c570915
Merge pull request #12009 from MathiasVP/fix-fwd-flow-read-join
...
DataFlow: Fix join in `fwdFlowRead`
2023-01-30 09:23:43 +00:00
Mathias Vorreiter Pedersen
1b45c5f96a
C++: Accept test changes.
2023-01-30 09:13:42 +00:00
Mathias Vorreiter Pedersen
9de8d5c501
C++: Reduce the number of uses by excluding conversions.
2023-01-30 09:13:42 +00:00
Mathias Vorreiter Pedersen
7ecc3466cf
C++: Add another column to 'conversionFlow'.
2023-01-30 09:13:42 +00:00
Harry Maclean
f7cdd430a2
Ruby: Small fix
2023-01-30 21:55:19 +13:00
Harry Maclean
7778524e08
Ruby: Refactor
2023-01-30 21:52:59 +13:00
Rasmus Wriedt Larsen
c7e552b343
Python: Fix grammar in qldoc
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-30 09:45:45 +01:00
Rasmus Wriedt Larsen
a1c2f4c138
Python: Small rewrite of **kwargs getParameter logic
2023-01-30 09:42:43 +01:00
Harry Maclean
5e9210fcea
Ruby: use getAnAncestor
2023-01-30 21:21:38 +13:00
Harry Maclean
708e303c01
Ruby: Model except: with a const argument
2023-01-30 21:17:31 +13:00
Harry Maclean
28716866d8
Ruby: getAction -> getAnAction
2023-01-30 18:52:47 +13:00
Harry Maclean
246ad46eb1
Ruby: Account for filter skip ordering
...
A `skip_*_filter :foo` call only has an effect if there was an earlier
call that registered `:foo` as a filter.
2023-01-30 18:50:30 +13:00
Harry Maclean
a164e76a5d
Ruby: Model actioncontroller filter overrides
...
If a filter is registered twice with the same name, the last
registration wins.
2023-01-30 18:05:22 +13:00
Harry Maclean
28c3bd3e2f
Ruby: QL4QL fix
2023-01-30 17:41:36 +13:00
Harry Maclean
fb86ef4aac
Ruby: Model ActionController filters
...
ActionController filters provide a way to register callbacks that run
before, after or around an action (i.e. HTTP request handler). They run
in the same class context as the action, so can get/set instance
variables and generally interact with the action in arbitrary ways.
In order to track flow between filters and actions, we have to model the
callback chain. This commit does that. A later change will add dataflow
steps to actually track flow through the chain.
2023-01-30 17:41:36 +13:00
Sim4n6
7079def7ce
Add an S3 source with Session or download_fileobj
2023-01-30 00:49:23 +01:00
erik-krogh
e3455a9b21
add support for axios used as a global variable
2023-01-29 22:55:20 +01:00
Mathias Vorreiter Pedersen
9573395237
Merge pull request #12005 from MathiasVP/flow-out-of-invalid-functions
...
C++: Flow out of invalid functions
2023-01-29 16:15:40 +00:00
Sim4n6
0707064ab5
Constrain the save/path step
2023-01-28 10:14:24 +01:00
Sim4n6
a4aaf0ec6f
Remove a write step & update the builtin open step
2023-01-28 09:53:54 +01:00
Nora Dimitrijević
d5f11dfe60
Swift: db upgrade/downgrade script
2023-01-28 00:44:49 +01:00
Nora Dimitrijević
1396d07662
Swift: subsume IterableDeclContext into Decl [tests]
2023-01-28 00:44:49 +01:00
Nora Dimitrijević
9a5614e8c5
Swift: subsume IterableDeclContext into Decl [codegen'd]
2023-01-28 00:44:49 +01:00
Nora Dimitrijević
f96c18a6db
Swift: subsume IterableDeclContext into Decl [hand-written]
2023-01-28 00:44:48 +01:00
Sim4n6
0e2f37825d
Organize steps to correspond to the sample code
2023-01-27 23:58:03 +01:00
Sim4n6
ee213123ac
Add builtin open as an additional step
2023-01-27 18:16:11 +01:00
Mathias Vorreiter Pedersen
95b15825f9
DataFlow: Sync identical files.
2023-01-27 16:24:31 +00:00
Mathias Vorreiter Pedersen
a691535e77
C++: Fix join order in 'fwdFlowRead'.
2023-01-27 16:24:08 +00:00
Jami Cogswell
85c228a0cd
Java: remove old sinks
2023-01-27 10:40:17 -05:00
Jami Cogswell
a3fe8c0e93
Java: add change note
2023-01-27 10:35:16 -05:00
Jami Cogswell
9bf43483db
Java: update package for QueryProducer sinks
2023-01-27 10:16:42 -05:00
Sim4n6
0b27b1314a
Update python/ql/src/experimental/Security/UnsafeUnpackQuery.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-27 16:12:08 +01:00
Sim4n6
7a126a2317
Merge branch 'github:main' into UnsafeUnpack
2023-01-27 16:09:41 +01:00
Sim4n6
8ef2aa00e7
Update python/ql/src/experimental/Security/UnsafeUnpackQuery.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-27 16:07:39 +01:00
Rasmus Wriedt Larsen
cef933f813
Python: Add comment explaining SINK3_F(kwargs["c"]) test
...
Co-authored-by: yoff <yoff@github.com >
2023-01-27 15:48:59 +01:00
Geoffrey White
6c0b50c696
Merge pull request #11980 from geoffw0/modern2
...
Swift: Structure modernized queries more consistently
2023-01-27 14:33:43 +00:00
Geoffrey White
794ba428a7
Merge pull request #11942 from geoffw0/rncrypt4
...
Swift: add RNCryptor sinks to swift/static-initialization-vector
2023-01-27 14:33:06 +00:00
Rasmus Wriedt Larsen
c099dbd04c
Python: Expand notes around bound methods self argument passing
2023-01-27 15:27:45 +01:00
Sim4n6
207ed3da9c
Constrain the object & the call
2023-01-27 15:07:20 +01:00
Mathias Vorreiter Pedersen
587b4fee9d
C++: Add missing condition to 'isChiBeforeIteratorUse'.
2023-01-27 14:04:01 +00:00
James Fletcher
812306cb52
Merge pull request #12006 from felickz/patch-2
...
Add link to codeql metadata article for problem.severity
2023-01-27 13:59:06 +00:00
Mathias Vorreiter Pedersen
e48c93a3b5
Merge pull request #12003 from MathiasVP/positive-formulated-sanitizer-nonconst-format
...
C++: Positively phrased sanitizer in `cpp/non-constant-format`
2023-01-27 13:58:04 +00:00
alexet
1b0952c512
Use Java 11 for some integration tests
2023-01-27 13:51:44 +00:00
Chad Bentz
4fee536e6d
table spacing
2023-01-27 08:19:43 -05:00
Sim4n6
18d8bbc9a4
Updated the expected results accordingly
2023-01-27 14:05:25 +01:00
Chad Bentz
3ef4d3118c
Add link to codeql metadata article for problem.severity
2023-01-27 08:01:07 -05:00
Sim4n6
e41042418a
Update the import relative to the dataflow config
2023-01-27 13:46:57 +01:00
Sim4n6
5f0bf1053a
Update the dataflow test query and the expected results
2023-01-27 13:42:57 +01:00
Sim4n6
bca053f855
Move the config query to the parent directory
2023-01-27 13:42:14 +01:00
Mathias Vorreiter Pedersen
2b47e150c6
C++: Accept test changes.
2023-01-27 11:44:17 +00:00
Mathias Vorreiter Pedersen
ec7b406cc9
C++: Generate flow out of parameters whose enclosing function is missing a return statement.
2023-01-27 11:44:04 +00:00
Rasmus Wriedt Larsen
02b3a1b515
Python: At most one **kwargs ParameterNode per callable
...
Similar to the Ruby changes from
https://github.com/github/codeql/pull/11461
I feel the change to `DataFlowFunciton.getParameter` where we use
`not exists(func.getArgByName(_))` is not very great, but I was not allowed
to use `not exists(this.getParameter(any(ParameterPosition _).isKeyword(_)))`
because of negative recursion.
2023-01-27 11:14:42 +01:00
Mathias Vorreiter Pedersen
e8db563e98
C++: Reformulate the sanitizer in 'NonConstantFormat.ql'. It should no longer incorrectly sanitize indirect nodes for which there is no result for 'asIndirectExpr'.
2023-01-27 10:04:48 +00:00
Robert Marsh
6a91e85981
C++: fix UseImpl after merge conflict
2023-01-26 16:01:37 -05:00
Sim4n6
998f1bf215
Some reformatting
2023-01-26 18:54:36 +01:00
Robert Marsh
3648f26cca
Merge remote-tracking branch 'origin/mathiasvp/replace-ast-with-ir-use-usedataflow' into global-flow
...
Resolved trivial conflicts.
2023-01-26 11:58:53 -05:00
Ian Lynagh
75562e7fb5
Kotlin: Remove legacy trap-locking support
2023-01-26 16:58:51 +00:00
Mathias Vorreiter Pedersen
ee62f2a223
C++: Fix global variable exclusion in DTT.
2023-01-26 16:49:58 +00:00
Mathias Vorreiter Pedersen
8c224429b3
C++: Better 'getType' for global variable nodes.
2023-01-26 16:49:49 +00:00
Nora
5993b60980
Update copy
2023-01-26 17:37:15 +01:00
Sim4n6
1a211485a4
Restrain the source and add two steps.
2023-01-26 17:07:59 +01:00
Michael B. Gale
f192191e8c
Merge pull request #11997 from github/smowton/fix/deperrors-conditional
...
Go: Fix DepErrors test
2023-01-26 14:52:27 +00:00
Sim4n6
51b11de44a
Add a Django Upload examples
2023-01-26 15:16:24 +01:00
Mathias Vorreiter Pedersen
bfe9ae22ad
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-01-26 13:03:49 +00:00
Mathias Vorreiter Pedersen
508027e0e5
Merge pull request #11998 from MathiasVP/fix-iterator-test
2023-01-26 12:35:12 +00:00
Sim4n6
54cc4d6498
Opt for any source from RemoteFlowSource.
2023-01-26 12:51:55 +01:00
Mathias Vorreiter Pedersen
13baa5b60b
C++: Add iterator typedefs to properly instantiate 'int_iterator_by_trait' and 'insert_iterator_by_trait'.
2023-01-26 11:43:33 +00:00
Chris Smowton
7921de243a
Fix DepErrors test
...
This was likely harmlessly causing `go get` reruns, since most (all?) real dependency errors cause `go list` to exit with a nonzero return code in any case.
2023-01-26 11:37:41 +00:00
dependabot[bot]
295152cd32
Merge pull request #11992 from github/dependabot/cargo/ruby/serde-1.0.152
2023-01-26 10:17:56 +00:00
dependabot[bot]
bf02340a6a
Merge pull request #11982 from github/dependabot/cargo/ruby/num_cpus-1.14.0
2023-01-26 10:13:09 +00:00
Sim4n6
aaa0040612
Seperate the dataflow config from the query
2023-01-26 08:53:47 +01:00
dependabot[bot]
6e69acdd7e
Bump serde from 1.0.131 to 1.0.152 in /ruby
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.131 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.152 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-26 03:08:58 +00:00
Sim4n6
9464940214
Add expected results for argparse source
2023-01-26 01:00:19 +01:00
Sim4n6
2e4cb63049
Optimize the Argparse filename as a source.
2023-01-26 01:00:01 +01:00
Sim4n6
f867c9008f
Commit the expected results
2023-01-26 00:08:54 +01:00
Sim4n6
9b5b0c60b8
Handle the download of a tarball using wget pkg.
2023-01-26 00:02:20 +01:00
Sim4n6
22af6f5182
Restrict download_file() to boto3 lib
2023-01-25 23:00:00 +01:00
Harry Maclean
07a7a213b3
Merge pull request #11871 from hmac/rack
2023-01-26 08:40:30 +13:00
Sim4n6
2d38993075
Add a missing "and"
2023-01-25 19:46:13 +01:00
Sim4n6
0ed480855a
Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.ql
...
Yes, definitely
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-25 19:44:28 +01:00
Sim4n6
10d6ebf95b
Use of inline tests for dataflow queries
2023-01-25 19:28:05 +01:00
Sim4n6
b5a6f6e165
Merge pull request #1 from github/main
...
Sync with the upstream
2023-01-25 19:13:35 +01:00
Rasmus Wriedt Larsen
1fcfae2464
Merge pull request #11987 from RasmusWL/suite-lists
...
Misc: Add `security-experimental` to `generate-code-scanning-query-list.py`
2023-01-25 17:29:36 +01:00
Geoffrey White
e92a5eb467
Merge pull request #11911 from geoffw0/rncrypt2
...
Swift: Add RNCryptor sinks to swift/hardcoded-key
2023-01-25 15:11:16 +00:00
Rasmus Wriedt Larsen
e8714c9edb
Misc: Add Swift to generate-code-scanning-query-list.py
2023-01-25 15:22:20 +01:00
Rasmus Wriedt Larsen
b220c2f51d
Misc: Add security-experimental to generate-code-scanning-query-list.py
...
Since not all experimental queries is part of this new suite, it's nice
to be able to list them explicitly without having to replicate the logic
from the .qls file.
2023-01-25 15:20:49 +01:00
Geoffrey White
f6fe627f4b
Merge pull request #11914 from geoffw0/rncrypt3
...
Swift: Add RNCryptor sinks to swift/constant-salt
2023-01-25 13:05:33 +00:00
Alex Ford
3dd9392f5e
Merge pull request #11869 from alexrford/rails/render_locals_shared
...
Ruby: Rails - generalize rails flow step for accessing render locals hash in view
2023-01-25 12:07:26 +00:00
Erik Krogh Kristensen
39e9eaf2bc
Merge pull request #11986 from erik-krogh/redosNote2
...
RB: add note in ReDoS qhelp that Ruby 3.2 has fixed ReDoS
2023-01-25 11:56:04 +01:00
Paolo Tranquilli
f4cb920624
Merge pull request #11932 from github/redsun82/swift-docs
...
Swift: add and fix some `schema.py` documentation
2023-01-25 10:52:00 +01:00
Geoffrey White
fe13137b48
Swift: Make default implementations private.
2023-01-25 09:29:03 +00:00
erik-krogh
54b0350cac
add note in ReDoS qhelp that Ruby 3.2 has fixed ReDoS
2023-01-25 10:24:11 +01:00
Rasmus Wriedt Larsen
f262dc68f8
Python: Reword note about debugging getNextClassInMro
2023-01-25 10:08:43 +01:00
dependabot[bot]
531c0559a0
Bump num_cpus from 1.13.0 to 1.14.0 in /ruby
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-25 08:48:08 +00:00
Arthur Baars
358ae7529b
Merge pull request #11973 from github/dependabot/cargo/ruby/serde_json-1.0.91
...
Bump serde_json from 1.0.72 to 1.0.91 in /ruby
2023-01-25 09:45:32 +01:00
Arthur Baars
068b71bc3d
Merge pull request #11972 from github/dependabot/cargo/ruby/regex-1.7.1
...
Bump regex from 1.5.5 to 1.7.1 in /ruby
2023-01-25 09:44:57 +01:00
Arthur Baars
e634ab771f
Merge pull request #11971 from github/dependabot/cargo/ruby/flate2-1.0.25
...
Bump flate2 from 1.0.22 to 1.0.25 in /ruby
2023-01-25 09:44:29 +01:00
Rasmus Wriedt Larsen
63b2bd0871
Python: Fixup test_only_starargs addition
...
validTest.py did not pass, since we use `SINK3_F`.
I initially tried swapping the order
```
args = (arg1, arg2) # $ arg1 arg2 func=starargs_only
more_args = (arg4, arg3)
starargs_only(*args, *more_args)
```
But then asked myself, what is it _actually_ we're testing here? and it
seems to be the way we handle multiple *args arguments in the same call,
so I converted the test to be that instead! (and it matches what we do
in test_stararg_mixed)
2023-01-25 09:37:07 +01:00
Erik Krogh Kristensen
99bad77972
Merge pull request #11906 from erik-krogh/moreStem
...
JS: expand what is parsed as the stem of a pathexpr
2023-01-25 08:44:44 +01:00
erik-krogh
80d05c0425
also recognize protected methods as library-input sources
2023-01-24 20:55:25 +01:00
erik-krogh
a017b7500b
Merge branch 'main' into rbPoly
2023-01-24 20:51:36 +01:00
Geoffrey White
439d9199be
Swift: Add CSV extension points.
2023-01-24 19:28:05 +00:00
Geoffrey White
13d308a4d6
Swift: Autoformat.
2023-01-24 19:15:51 +00:00
Geoffrey White
5375678ca6
Swift: Add consistent CSV extension points.
2023-01-24 18:49:50 +00:00
Geoffrey White
6a210d719b
Swift: Rename QueryExtensions.qll files for consistency.
2023-01-24 17:58:13 +00:00
Paolo Tranquilli
ddef87f6e2
Merge pull request #10956 from github/redsun82/swift-linkage-awareness
...
Swift: disambuigate entities using linkage awareness on modules
2023-01-24 18:49:24 +01:00
Geoffrey White
6a946f6eed
Swift: Modernize.
2023-01-24 17:26:51 +00:00
Paolo Tranquilli
4880ab41a2
Swift: use weakly_canonical instead of canonical
...
`weakly_canonical` will resolve as much as possible in the path, and not
return an error if it can't resolve everything (for example due to a
non existant file). In any case in case of problems with the file we
will see an error when actually using the resolved path.
This tunes down some unhelpful log messages.
2023-01-24 16:34:47 +01:00
Paolo Tranquilli
a74247e5d8
Swift: add filename to an error message
2023-01-24 16:29:10 +01:00
Paolo Tranquilli
6b77e6748a
Swift: use same implementation for createTarget{Link,Object}Domain
2023-01-24 16:27:21 +01:00
Geoffrey White
78eff0dc60
Swift: Split off the Extensions.qll as well.
2023-01-24 15:19:41 +00:00
James Fletcher
176b2cae19
Merge pull request #11882 from github/charisk/rename-vscode-run-query-cmd
...
Rename VS Code Extension Run Query command
2023-01-24 15:17:30 +00:00
Geoffrey White
cbfa7e7252
Swift: Move query logic into .qlls.
2023-01-24 15:04:10 +00:00
Paolo Tranquilli
23344a7183
Merge branch 'main' into redsun82/swift-linkage-awareness
2023-01-24 15:47:44 +01:00
Jeroen Ketema
ae2fa6c1a4
Merge pull request #11975 from MathiasVP/another-dataflow-loop
...
C++: Add another looping dataflow test
2023-01-24 14:21:16 +01:00
Mathias Vorreiter Pedersen
b1dcb01ed7
Merge pull request #11977 from MathiasVP/accept-test-changes
...
C++: Accept test changes on the use-use flow branch
2023-01-24 12:00:04 +00:00
Mathias Vorreiter Pedersen
ec297fb838
C++: Accept more test changes.
2023-01-24 11:59:14 +00:00
Mathias Vorreiter Pedersen
9f9c486268
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-01-24 11:39:04 +00:00
Mathias Vorreiter Pedersen
7fb9db49be
C++: Accept test changes.
2023-01-24 11:11:11 +00:00
Calum Grant
522c9d640d
Merge pull request #11957 from github/yoff-list-support-for-python-3.11
...
Update supported-versions-compilers.rst
2023-01-24 10:15:11 +00:00
Mathias Vorreiter Pedersen
510211a4c7
C++: Add testcase with looping behavior in C/C++ def-use flow.
2023-01-24 09:44:30 +00:00
Michael Nebel
4df615f994
Merge pull request #11922 from michaelnebel/csharp11/strings
...
C# 11: String related functionality.
2023-01-24 10:31:31 +01:00
Michael Nebel
0b04654f33
C#: Update expected test output.
2023-01-24 09:51:47 +01:00
Michael Nebel
4c966f2b8a
C#: Add some more UTF-8 encoded string examples.
2023-01-24 09:49:38 +01:00
Mathias Vorreiter Pedersen
ca5916f3dc
Merge pull request #11946 from MathiasVP/fix-taint-models-2
2023-01-24 08:13:43 +00:00
dependabot[bot]
fd22c7c73e
Bump serde_json from 1.0.72 to 1.0.91 in /ruby
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.72 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.72...v1.0.91 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-24 06:39:13 +00:00
dependabot[bot]
c4bf25f33c
Bump regex from 1.5.5 to 1.7.1 in /ruby
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.5 to 1.7.1.
- [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.5.5...1.7.1 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-24 06:39:09 +00:00
dependabot[bot]
b1f73b59cd
Bump flate2 from 1.0.22 to 1.0.25 in /ruby
...
Bumps [flate2](https://github.com/rust-lang/flate2-rs ) from 1.0.22 to 1.0.25.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.22...1.0.25 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-24 06:39:03 +00:00
Arthur Baars
c512eddb69
Merge pull request #11969 from hmac/simplify-ruby-dependabot-config
...
Ruby: Simplify dependabot config
2023-01-24 07:34:45 +01:00
Harry Maclean
8050639b16
Ruby: Simplify dependabot config
...
Dependabot is able to understand cargo workspaces, so it's not necessary
to enumerate each workspace member. It should be enough to configure it
with the workspace root directory. This will hopefully ensure that the
Cargo.lock file gets updated correctly.
2023-01-24 16:37:10 +13:00
Harry Maclean
e6e4e29bf8
Ruby: newline
2023-01-23 21:53:52 +00:00
Harry Maclean
224db456af
Ruby: Simplify isRackResponse
2023-01-23 21:53:09 +00:00
Harry Maclean
60f9635ada
Ruby: Move import
2023-01-23 21:51:27 +00:00
Harry Maclean
c1207e0938
Ruby: Fix rack response tracking
...
Use type tracking instead of getReturningNode, which seems to be faster
and works correctly for the cases I've tried.
2023-01-23 21:43:04 +00:00
erik-krogh
49f5e89f36
update expected output for experimental query
2023-01-23 22:29:49 +01:00
Erik Krogh Kristensen
fc66c905ff
Merge pull request #11859 from erik-krogh/moreShell
...
JS: slightly broaden the regular expression that recognizes bad string-concats used as shell commands
2023-01-23 22:26:17 +01:00
Mathias Vorreiter Pedersen
ecbcee5bc8
Merge pull request #11945 from MathiasVP/refactor-param-out-nodes-2
2023-01-23 21:21:13 +00:00
Henry Mercer
21e63a8a86
Merge pull request #11967 from github/codeql-ci/atm/release-0.4.6
...
JS: Bump version numbers of ML-powered packs after 0.4.6 release
2023-01-23 20:43:18 +00:00
Henry Mercer
241951f53e
Merge branch 'main' into codeql-ci/atm/release-0.4.6
2023-01-23 18:24:36 +00:00
github-actions[bot]
be481d975c
JS: Bump version of ML-powered library and query packs to 0.4.7
2023-01-23 18:22:18 +00:00
github-actions[bot]
40a67d61d2
JS: Bump patch version of ML-powered library and query packs
2023-01-23 18:15:56 +00:00
Geoffrey White
25bcaa3a54
Merge pull request #11966 from geoffw0/usenumerics
...
Swift: Use numeric types in CleartextLogging.qll.
2023-01-23 18:06:17 +00:00
Sid Shankar
e32823c3e0
Merge pull request #11964 from github/sidshank/update-supported-language-versions-Jan-2023
...
Update supported language versions in documentation
2023-01-23 12:12:43 -05:00
Geoffrey White
19527016a5
Swift: Use numeric types in CleartextLogging.qll.
2023-01-23 16:52:03 +00:00
Geoffrey White
5ddff790b6
Swift: Autoformat.
2023-01-23 16:46:58 +00:00
Rasmus Wriedt Larsen
0879c8f8e1
Python: Expand comments on C3 MRO
2023-01-23 17:40:24 +01:00
Rasmus Wriedt Larsen
80324735bb
Python: Fixup annotation for CWE-022-PathInjection/pathlib_use.py
2023-01-23 17:40:24 +01:00
Mathias Vorreiter Pedersen
79b77b01fd
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-01-23 15:49:36 +00:00
Sid Shankar
f77d156e9a
Update supported version of Java
2023-01-23 15:41:35 +00:00
Sid Shankar
444df6fccb
Update supported version of Go
2023-01-23 15:41:02 +00:00
Erik Krogh Kristensen
240248b9cf
Merge pull request #11453 from erik-krogh/unsafeHtmlConstruction
...
RB: add unsafe-html-construction query
2023-01-23 16:40:25 +01:00
erik-krogh
11894144aa
remove regular expression that did nothing
2023-01-23 16:38:09 +01:00
Jeroen Ketema
0a0d6d0841
Merge pull request #11963 from MathiasVP/testcase-with-loop
...
C++: Add testcase with looping behavior
2023-01-23 16:33:36 +01:00
Erik Krogh Kristensen
5be97f3761
Merge pull request #11909 from erik-krogh/concatCode
...
Rb: recognize string concatenations as sinks for unsafe-code-construction
2023-01-23 16:22:46 +01:00
Mathias Vorreiter Pedersen
a217017859
C++: Add testcase with looping behavior in C/C++ use-use flow.
2023-01-23 14:29:39 +00:00
erik-krogh
ae00518ddf
remove the isAdditionalTaintStep predicate from UnsafeHtmlConstructionQuery, as it was not needed
2023-01-23 15:27:19 +01:00
erik-krogh
7c6ee5f293
Merge branch 'main' into unsafeHtmlConstruction
2023-01-23 15:01:01 +01:00
Erik Krogh Kristensen
32c4cf5769
Apply suggestions from code review
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-01-23 14:58:04 +01:00
erik-krogh
800077dabe
changes based on feedback
2023-01-23 14:54:36 +01:00
Erik Krogh Kristensen
a10b45e0db
Merge pull request #11927 from mvogelgesang/express-rate-limit
...
JS: Updated express-rate-limit example to match implementation examples f…
2023-01-23 14:37:50 +01:00
Jeroen Ketema
05ecd2e015
Merge pull request #11958 from jketema/argv-if-tests
...
C++: Add some additional uncontrolled format string tests
2023-01-23 14:05:07 +01:00
erik-krogh
3cece50f78
add encodeURIComponent as a sanitizer for request-forgery
2023-01-23 13:53:53 +01:00
erik-krogh
be8ef1b324
add failing test
2023-01-23 13:52:36 +01:00
Erik Krogh Kristensen
45aaeb897a
Merge pull request #11955 from erik-krogh/docFrameworks
...
JS: add Fastify and restify to the list of supported frameworks
2023-01-23 13:14:15 +01:00
Philip Ginsbach
78a2dfa7c4
Merge pull request #11939 from github/ginsbach/DocumentNewNamespaces
...
document new namespaces
2023-01-23 12:12:49 +00:00
Chris Smowton
fea97a22c6
Merge pull request #11827 from smowton/smowton/admin/test-gradle-script-parsing
...
Java: Add integration tests for Android projects
2023-01-23 11:39:24 +00:00
Philip Ginsbach
8a3972049b
fix grammar
2023-01-23 11:15:22 +00:00
Mathias Vorreiter Pedersen
9dbea539ed
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into refactor-param-out-nodes-2
2023-01-23 10:51:46 +00:00
Jeroen Ketema
cfc0dabad9
C++: Add some additional uncontrolled format string tests
...
These duplicate the `i9` and `i91` tests slightly earlier in the same file, but
use an explicit `if` instead of the ternary operator.
2023-01-23 11:50:45 +01:00
Mathias Vorreiter Pedersen
470abfd0aa
C++: Conflate iterator value and indirection for taint-flow to fix AST dataflow.
2023-01-23 10:40:25 +00:00
yoff
fe0290fb39
Update supported-versions-compilers.rst
...
List 3.11 as supported for Python
2023-01-23 11:33:32 +01:00
Rasmus Wriedt Larsen
753192bb4d
Merge branch 'main' into call-graph-code
2023-01-23 11:25:02 +01:00
Mathias Vorreiter Pedersen
962b651c44
C++: Fix models.
2023-01-23 10:10:02 +00:00
Alex Ford
3b10a2de11
Merge branch 'main' into rails/render_locals_shared
2023-01-23 10:00:22 +00:00
Alex Ford
55550e7980
Merge pull request #11941 from alexrford/summary-component-tostring-syntheticglobal
...
Add missing toString case for synthetic globals
2023-01-23 10:00:00 +00:00
Jeroen Ketema
3f9deb66ce
Merge pull request #11936 from jketema/pretty-path
...
C++: In use-use dataflow use the AST representation of IR Instructions and Operands as their strings
2023-01-23 10:30:17 +01:00
Erik Krogh Kristensen
1ee9957838
Merge pull request #9807 from erik-krogh/endFilter
...
JS: recognize "-->" as a bad tag filter
2023-01-23 10:06:50 +01:00
Arthur Baars
99148244a4
Merge pull request #11856 from aibaars/update-grammars
...
Update grammars
2023-01-23 09:46:50 +01:00
erik-krogh
dc1bfa3a04
add Fastify and restify to the list of supported frameworks
2023-01-23 09:36:49 +01:00
Michael Nebel
69a42d8b1f
Merge pull request #11931 from michaelnebel/csharp/refactor
...
Remove the Csv postfix of some predicate names.
2023-01-23 09:09:48 +01:00
Michael Nebel
440fe80c14
C#: Update stats.
2023-01-23 09:06:34 +01:00
Harry Maclean
21ce9b448a
Ruby: Attempt to fix performance of AppCandidate
...
`DataFlow::MethodNode.getAReturningNode` is expensive to compute.
Instead we look for rack responses which flow to the `SynthReturnNode`.
Each method has only one of these (vs many "returning" nodes) so it is
a lot faster.
I'm not sure yet whether the results are the same.
2023-01-23 15:25:52 +13:00
Chris Smowton
a2e7b83411
Add additional note to Android tests
2023-01-21 11:57:54 +00:00
Chris Smowton
81e59e9005
Force Gradle tests to run sequentially
...
Otherwise starting multiple Gradle daemons in parallel can fail
2023-01-21 11:57:53 +00:00
Chris Smowton
4197d7bd20
Android tests: use Java 11 under Actions
...
Some runners still default to Java 8 (e.g. windows-2022 and macos-12), so we need to manually pull Java 11 in in such cases.
2023-01-21 11:57:53 +00:00
Chris Smowton
b6df415fe8
Add Android and Kotlin build script tests
...
This adds a single plain Gradle project that uses a modern Kotlin build script (i.e. settings.gradle.kts and no build.gradle.kts), plus basic Android samples exercising the possible permutations of: (old vs. new-style build script, Groovy vs. Kotlin build script, wrapper present vs. absent)
Old vs. new style tests our recognition of different cues that this is likely a Droid project and requires `gradle assemble` not `gradle testClasses` (the example given at https://developer.android.com/studio/build/#top-level changed style as of plugin version ~7.3.0).
Groovy vs. Kotlin build script language checks that the regexes recognising Android dependencies and versions work for both build script kinds.
Wrapper present vs. absent exercises the autobuilder logic that guesses an appropriate Gradle version and sets it up in the event the Gradle wrapper isn't provided.
2023-01-21 11:57:53 +00:00
Mathias Vorreiter Pedersen
da6bbbbc5e
C++: Accept test changes.
2023-01-21 01:43:23 +00:00
Mathias Vorreiter Pedersen
ae998583be
C++: Refactor parameter out nodes to not depend on 'ReturnIndirectionInstruction's.
2023-01-21 01:43:23 +00:00
Mathias Vorreiter Pedersen
e664662df9
Merge pull request #11944 from github/post-release-prep/codeql-cli-2.12.1
...
Post-release preparation for codeql-cli-2.12.1
2023-01-20 21:52:55 +00:00
github-actions[bot]
b62cb6ba84
Post-release preparation for codeql-cli-2.12.1
2023-01-20 19:49:56 +00:00
Arthur Baars
2b9bc3c7e3
Ruby: write errors to json log
2023-01-20 20:11:55 +01:00
Sarita Iyer
f5406570f7
Merge pull request #11817 from github/saritai/docs-contributing-info
...
Add CONTRIBUTING.MD file for contributing to docs
2023-01-20 12:41:20 -05:00
Rasmus Wriedt Larsen
25a68c4d71
Python: Include @yoff's suggestion on synthetic *args handling
2023-01-20 16:49:33 +01:00
Rasmus Wriedt Larsen
41ebb4fb55
Python: Add p2 in QLDoc example code for synthetic **kwargs
2023-01-20 16:40:39 +01:00
Rasmus Wriedt Larsen
d9fbe58ad5
Python: Expand starargs_only test
2023-01-20 16:34:59 +01:00
Geoffrey White
f05be77a0b
Swift: Recognize more array sources.
2023-01-20 15:25:00 +00:00
Geoffrey White
7648e8f6a3
Swift: Recognize more sources.
2023-01-20 15:08:12 +00:00
Jean Helie
9e6f9c2705
Merge pull request #11709 from github/jhelie/add-shell-command-injection
...
ATM: add boosted version for `ShellCommandInjectionFromEnvironment` query
2023-01-20 16:03:30 +01:00
Geoffrey White
581c478872
Swift: Model RNCryptor.
2023-01-20 14:50:23 +00:00
Geoffrey White
bb59d055ff
Swift: Add tests for RNCryptor library.
2023-01-20 14:50:21 +00:00
Mathias Vorreiter Pedersen
3059ce3070
Merge pull request #11938 from github/release-prep/2.12.1
...
Release preparation for version 2.12.1
2023-01-20 14:30:42 +00:00
Rasmus Wriedt Larsen
0df3dd68d6
Python: Remove (now) redundant cast
2023-01-20 15:13:02 +01:00
Rasmus Wriedt Larsen
1bd969c219
Merge branch 'main' into call-graph-code
2023-01-20 15:11:49 +01:00
Alex Ford
8ae993185c
Ruby: fix missing docs
2023-01-20 13:40:19 +00:00
Alex Ford
c986ea1070
Ruby: scope local_assigns synthetic globals to both render call and template file
2023-01-20 13:40:19 +00:00
Alex Ford
14c896215c
Ruby: factor out some RenderCall methods into a helper module
2023-01-20 13:40:19 +00:00
Alex Ford
03070c9fd0
Ruby: restrict AccessLocalsKeySummary to method calls against self
2023-01-20 13:40:19 +00:00
Alex Ford
f6516db105
Ruby: correct preservesValue in AccessLocalsKeySummary
2023-01-20 13:40:19 +00:00
Alex Ford
ab72301a4c
Ruby: add a change note for rails render locals dataflow
2023-01-20 13:40:19 +00:00
Alex Ford
8fec4b804f
Ruby: StoredXSS test whitespace change
2023-01-20 13:40:19 +00:00
Alex Ford
fd8dd5e103
Ruby: update StoredXSS test output
2023-01-20 13:40:19 +00:00
Alex Ford
8845157d08
Ruby: slightly limit AccessLocalsKeySummary summarized callables
2023-01-20 13:40:19 +00:00
Alex Ford
b5cc1087fe
Ruby: add LocalAssignsHashSyntheticGlobal#getARenderCall predicate
2023-01-20 13:40:19 +00:00
Alex Ford
022171923c
Ruby: fix some ql for ql alerts
2023-01-20 13:40:19 +00:00
Alex Ford
bea110b598
Ruby: remove blank line in test file
2023-01-20 13:40:19 +00:00
Alex Ford
b78ae1608e
Ruby: remove a fixed TODO
2023-01-20 13:40:19 +00:00
Alex Ford
e5fbc92856
Ruby: generalize rails flow step for accessing render locals hash in view
2023-01-20 13:40:19 +00:00
Alex Ford
e4df1f5a6f
Ruby: add missing toString case for synthetic globals
2023-01-20 13:31:43 +00:00
Jeroen Ketema
cddaa0c8fa
Apply suggestions from code review
2023-01-20 14:10:27 +01:00
Michael Nebel
4d321d6833
C#: Add upgrade and downgrade scripts.
2023-01-20 13:39:41 +01:00
Michael Nebel
6c7c0854d1
C#: Add change note.
2023-01-20 13:39:41 +01:00
Michael Nebel
5a1e96d671
C#: Update string literal test query and expected output.
2023-01-20 13:39:41 +01:00
Michael Nebel
5c5d330704
C#: Add UTF-8 encoded string test case.
2023-01-20 13:39:41 +01:00
Michael Nebel
20398f1299
C#: Add PrintAst testcase for C# 11 test code.
2023-01-20 13:39:41 +01:00
Michael Nebel
c52dbcbb52
C#: Update all PrintAst test expected output.
2023-01-20 13:39:41 +01:00
Michael Nebel
c87668a91d
C#: Library support for string UTF8/UTF16 encodings.
2023-01-20 13:39:41 +01:00
Michael Nebel
e8eedb7b4d
C#: Extractor support for UTF-8 encoded strings.
2023-01-20 13:39:41 +01:00
Michael Nebel
72fa3bd905
C#: Add test cases for raw string literals.
2023-01-20 13:39:41 +01:00
Michael Nebel
3b93cd45ea
C#: Extract the ValueText instead of Text for interpolated string literals as this contains the value after eg. indentation processing.
2023-01-20 13:39:41 +01:00
Michael Nebel
ad20e81d05
C#: Add test for interpolated strings, where newlines are used in the provided expression.
2023-01-20 13:39:41 +01:00
Philip Ginsbach
3998c9a89a
document the existence of a global QlBuiltins module
2023-01-20 12:16:24 +00:00
Philip Ginsbach
127b1ac114
update handbook and reference with signature namespaces
2023-01-20 12:16:22 +00:00
github-actions[bot]
005b3e4a47
Release preparation for version 2.12.1
2023-01-20 12:03:19 +00:00
Geoffrey White
976b0401be
Merge pull request #11876 from geoffw0/coredata
...
Swift: Improve Core Data sinks for swift/cleartext-storage-database
2023-01-20 11:02:03 +00:00
Jeroen Ketema
f628152be1
C++: In dataflow use the AST representation of IR Instructions and Operands
2023-01-20 10:39:50 +01:00
Harry Maclean
16baea22c0
Ruby: doc fix
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-01-20 22:06:29 +13:00
Paolo Tranquilli
1c086aae7c
Swift: add internal imports to ParentChild.qll
2023-01-20 09:59:36 +01:00
Ian Lynagh
05c80b3f3c
Merge pull request #11894 from igfoo/igfoo/make-private
...
Kotlin: Make a couple of functions private
2023-01-19 20:59:32 +00:00
Sarita Iyer
3a8479614b
fix link
2023-01-19 15:13:34 -05:00
Paolo Tranquilli
e840b8f707
Swift: add and fix some schema.py documentation
2023-01-19 18:07:47 +01:00
Ian Lynagh
c2d5281e73
Merge pull request #11930 from igfoo/igfoo/fetch-codeql
...
CI: fetch-codeql: Set $CODEQL_FETCHED_CODEQL_PATH in the enivironment
2023-01-19 15:33:08 +00:00
Sarita Iyer
a83a98226c
Update README.rst
2023-01-19 09:45:43 -05:00
Sarita Iyer
27a5051282
Update README.md
2023-01-19 09:45:01 -05:00
Sarita Iyer
894a494186
Apply suggestions from code review
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-01-19 09:39:55 -05:00
Paolo Tranquilli
c2c14cdddb
Merge pull request #11929 from github/redsun82/swift-expand-ref-in-auto-docs
...
Swift: expand `ref` in autogenerated docs
2023-01-19 15:24:05 +01:00
Michael B. Gale
14cc27e49b
Merge pull request #11910 from owen-mc/go/log-injection-sanitizer-newreplacer-replace
...
Add missing string replacement sanitizers to log-injection and string-break
2023-01-19 14:23:03 +00:00
Michael Nebel
dc223cb82e
Sync files and make corresponding changes for other languages.
2023-01-19 15:14:06 +01:00
Chris Smowton
9a5e1f5e28
Make import private
2023-01-19 14:10:17 +00:00
Michael Nebel
9cd1dc70e5
C#: Remove the Csv postfix of some predicates.
2023-01-19 15:02:52 +01:00
Owen Mansel-Chan
13d1c88a11
Make new data flow copy for StringOps.StringsNewReplacer
2023-01-19 13:05:31 +00:00
Arthur Baars
d5e60dfb22
Ruby: pass diagnostics::LogWriter to extractor
2023-01-19 13:53:56 +01:00
Geoffrey White
62125fa767
Swift: Explanatory comments.
2023-01-19 11:55:16 +00:00
Ian Lynagh
3a5bec5778
CI: fetch-codeql: Set $CODEQL_FETCHED_CODEQL_PATH in the enivironment
2023-01-19 11:37:05 +00:00
Geoffrey White
2875d8645c
Swift: Cover additional edge case.
2023-01-19 11:34:07 +00:00
Geoffrey White
4c47de58c1
Swift: Add a few more test cases.
2023-01-19 11:27:44 +00:00
Geoffrey White
5f8875ff89
Swift: give variables more helpful names.
2023-01-19 10:31:23 +00:00
Geoffrey White
b033114f64
Swift: sources in extension protocols.
2023-01-19 10:04:04 +00:00
Paolo Tranquilli
57ec5db1a9
Merge branch 'main' into redsun82/swift-linkage-awareness
2023-01-19 10:49:33 +01:00
Paolo Tranquilli
490bd051cd
Swift: expand ref in autogenerated docs
2023-01-19 09:27:44 +00:00
Michael Nebel
e6aebd9df0
Merge pull request #11814 from michaelnebel/csharp/genericattributes
...
C# 11: Generic attributes
2023-01-19 07:35:17 +01:00
Erik Krogh Kristensen
ee9b01b5e6
Apply suggestions from code review
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-01-18 22:14:46 +01:00
Mark Vogelgesang
a3ff0725a3
Removed change-note as it was not necessary
2023-01-18 16:08:29 -05:00
Mark Vogelgesang
e50a81cbb7
Merge branch 'main' into express-rate-limit
2023-01-18 14:44:29 -05:00
Mark Vogelgesang
c9119848d9
Updated express-rate-limit example to match implementation examples found on packages README
2023-01-18 14:42:40 -05:00
Mathias Vorreiter Pedersen
14468b64fb
Merge pull request #11924 from atorralba/atorralba/optbinding-getters
...
Swift: Support more CFG node types in optional binding flow
2023-01-18 16:37:11 +00:00
Owen Mansel-Chan
3fda9f6e65
Add change note
2023-01-18 15:42:42 +00:00
Arthur Baars
e85e61b6d7
Ruby: add diagnostics module
2023-01-18 16:28:16 +01:00
Owen Mansel-Chan
30f0dd8c03
Add string replacement sanitizer to log injection
2023-01-18 15:24:39 +00:00
Owen Mansel-Chan
015ef4c3ef
Add use of strings.Replacer to replace sanitizer
2023-01-18 15:20:14 +00:00
Owen Mansel-Chan
2b1a7898d9
Move ReplaceAll sanitizer to shared code
2023-01-18 15:12:52 +00:00
AlexDenisov
5173f10e68
Merge pull request #11925 from github/alexdenisov/swift-drop-dead-code
...
Swift: drop dead code
2023-01-18 16:10:25 +01:00
Alex Denisov
35620c4c86
Swift: drop dead code
2023-01-18 15:35:40 +01:00
Mathias Vorreiter Pedersen
e26e83b8df
Merge pull request #11728 from github/rdmarsh2/parameterize-range-analysis
...
C++: Parameterize the semantic range analysis
2023-01-18 14:22:35 +00:00
Geoffrey White
5d6f2436e4
Merge branch 'main' into coredata
2023-01-18 13:39:02 +00:00
Tony Torralba
90517e254a
Accept test expectation changes
2023-01-18 13:25:04 +01:00
Mathias Vorreiter Pedersen
48439bc252
Merge pull request #11905 from geoffw0/rncrypt
...
Swift: Add RNCryptor sinks to swift/constant-password
2023-01-18 11:43:23 +00:00
Tony Torralba
d75a5212b2
Support more CFG node types in optional binding flow
2023-01-18 12:42:44 +01:00
Tony Torralba
4a89a30abd
Add failing test
2023-01-18 12:41:59 +01:00
Rasmus Wriedt Larsen
4df946b161
Python: call-graph: Don't design for special method calls yet
...
The `call` arguments were not `CallNode`s before, to allow for easier
support of special method calls, such as `a + b` going to `__add__`.
However, this is not implemented yet, so for now we can keep things
simple.
Co-authored-by: Taus <tausbn@github.com >
2023-01-18 12:30:53 +01:00
Mathias Vorreiter Pedersen
c8bcfb77b2
Merge pull request #11836 from geoffw0/optbinding
...
Swift: Data flow through optional binding
2023-01-18 11:25:27 +00:00
Geoffrey White
71c1ca53a9
Merge branch 'main' into rncrypt
2023-01-18 11:09:09 +00:00
erik-krogh
e4d4873d0d
remove the dataflow copy for regexp tracking now that type-tracking is used
2023-01-18 11:04:51 +01:00
Michael Nebel
4c94adb5ec
C#: Add change note.
2023-01-18 10:50:04 +01:00
Michael Nebel
3846349ba0
C#: Add testcase for CIL generic attribute extraction.
2023-01-18 10:49:44 +01:00
Michael Nebel
821d294be8
C#: Add library support for CIL generic attributes.
2023-01-18 10:49:44 +01:00
Michael Nebel
5ff89a2ccf
C#: Update expected test output for printing of constructed generic CIL types.
2023-01-18 10:49:44 +01:00
Michael Nebel
8b231c51f9
C#: Improve printing of constructed generic CIL types.
2023-01-18 10:49:44 +01:00
Michael Nebel
b680795d15
C#: The generic attribute type is a constructed class.
2023-01-18 10:49:44 +01:00
Michael Nebel
62e7c22783
C#: Add generic attribute test and expected results.
2023-01-18 10:48:30 +01:00
Michael Nebel
211af1943c
C#: Library support for generic attributes.
2023-01-18 10:48:30 +01:00
Michael Nebel
3a4623b437
Merge pull request #11907 from michaelnebel/csharp/cil/attributes
...
C#: CIL attributes
2023-01-18 10:46:34 +01:00
Rasmus Wriedt Larsen
e0ccb9306a
Merge pull request #11908 from RasmusWL/dataflow-consistency-more-excludes
...
DataFlow: Add `uniqueParameterNodePositionExclude`
2023-01-18 10:44:51 +01:00
AlexDenisov
8910ba4f32
Merge pull request #11919 from github/redsun82/swift-obsolete-conf
...
Swift: remove obsolete configuration fields
2023-01-18 10:34:24 +01:00
erik-krogh
1477974bf1
the RegexExecution concept does not need to have getTerm()
2023-01-18 10:10:36 +01:00
erik-krogh
1a3c9c8305
improve performance of regular-expression type-tracking by adding an exploratory initial analysis
2023-01-18 10:10:36 +01:00
erik-krogh
b8f6feb68b
delete old test
2023-01-18 10:10:36 +01:00
erik-krogh
45316b6381
rename RegExpConfiguration to RegExpTracking
2023-01-18 10:10:36 +01:00
erik-krogh
25e65e0d9f
rewrite the regexp tracking DataFlow::Configuration to TypeTracking
2023-01-18 10:10:36 +01:00
erik-krogh
d0b627b018
move the implementation detail of how regular-expressions are tracked into RegExpConfiguration.qll"
2023-01-18 10:10:05 +01:00
Paolo Tranquilli
f383fd1dc1
Swift: introduce module disambuigation via linkage awareness
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
d7feb001be
Swift: prepare extractSwiftInvocation
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
a3b4c32f07
Swift: stamp all named declarations with an id-ref to the containing module
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
f7a046ccd2
Swift: add trap linkage awareness infrastructure
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
5fdb09380c
Swift: move TargetTrapDomain to TargetDomains in infra
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
7f389b9f9a
Swift: introduce TrapType
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
353536b826
Swift: collect original output module paths
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
84b285a4c6
Swift: collect source files
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
33c4a8233c
Swift: collect encountered modules
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
c7f13f1036
Swift: collect TRAP files related to an extractor run
...
In order to do this a mutable `SwiftExtractorState` is introduced.
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
c31c515205
Swift: move TargetFile as managed inside TrapDomain
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
20eaa34485
Swift: failing tests for linkage awareness
2023-01-18 10:07:46 +01:00
Tony Torralba
c8e894b854
Merge pull request #11917 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2023-01-18 10:02:22 +01:00
erik-krogh
f516ccb4e2
limit the fieldFlowBranchLimit for the regexp tracker to improve performance
2023-01-18 09:31:04 +01:00
erik-krogh
2fceee4e35
track regular expressions that gets compiled with Regexp.compile
2023-01-18 09:31:04 +01:00
erik-krogh
acf28ebd98
add a RegexExecution, and use it to track regular expressions to their uses in a nice way in rb/polynomial-redos
2023-01-18 09:31:04 +01:00
erik-krogh
6e33dd5df6
add failing test
2023-01-18 09:31:04 +01:00
Erik Krogh Kristensen
1a64393c4c
Merge pull request #11893 from erik-krogh/csharpIndexFiles
...
C#: add --working-dir=. to pre-finalize
2023-01-18 09:05:29 +01:00
Paolo Tranquilli
2c4c2dfeb3
Swift: remove obsolete configuration fields
2023-01-18 08:55:59 +01:00
Michael Nebel
8e3e6505ad
C#: Add change note.
2023-01-18 07:56:24 +01:00
github-actions[bot]
571942fb21
Add changed framework coverage reports
2023-01-18 00:17:19 +00:00
Jeroen Ketema
6cd52237c3
Merge pull request #11913 from jketema/test-fixes
...
C++: Some minor test fixes
2023-01-17 21:52:57 +01:00
erik-krogh
4b74dec18f
expand what is parsed as the stem of a pathexpr
2023-01-17 21:28:21 +01:00
yoff
5a82012d03
Merge pull request #11854 from yoff/python/fix-tarslip-improv-bug
...
Python: fix bug in `py/tarslip-extended`
2023-01-17 20:44:06 +01:00
Geoffrey White
a568d0af7f
Swift: Remove unused variable.
2023-01-17 18:10:02 +00:00
Geoffrey White
b3d30bfc4f
Swift: Add NumberLiteral sources as well.
2023-01-17 18:04:26 +00:00
Jeroen Ketema
ee19c3d80f
C++: Rename identically named classes in syntax-zoo
...
Conceptually the test that comprises the whole of `syntax-zoo` forms one
single binary. To this binary ODR applies. There were two class definitions
`Foo` in `syntax-zoo`, violating ODR. Rename those classes to have different
names.
2023-01-17 19:02:40 +01:00
Jeroen Ketema
06767c6760
C++: Split bad_asts.cpp IR test into two files
...
The statements from `errorExpr` - which does not parse correctly - affected the
tuples that were being generated for the other code in `bad_asts.cpp` due to
the way the front-end handles parse errors. This did not affect the test
results, but was also not the intention of the test. Split off `errorExpr` into
a separate file.
2023-01-17 18:57:29 +01:00
Geoffrey White
d1cfdb97ee
Swift: Model RNCryptor.
2023-01-17 17:55:52 +00:00
Sarita Iyer
c8298356dc
Rename CONTRIBUTING.MD to CONTRIBUTING.md
2023-01-17 12:32:36 -05:00
Geoffrey White
a92e1c7ea0
Swift: Add tests for RNCryptor library.
2023-01-17 17:31:49 +00:00
Mathias Vorreiter Pedersen
39d44adbc5
Merge pull request #11896 from jketema/spurious-default-taint
...
C++: Fix spurious results in default taint tracking
2023-01-17 17:10:15 +00:00
Geoffrey White
5e5c4e9a8c
Swift: Accept QL-for-QL recommendation.
2023-01-17 16:25:34 +00:00
Geoffrey White
9911dd53e1
Merge branch 'main' into coredata
2023-01-17 16:22:53 +00:00
Geoffrey White
ea06ad1933
Merge pull request #11529 from geoffw0/format
...
Swift: Uncontrolled format string query
2023-01-17 16:16:10 +00:00
Geoffrey White
3c55cdd5be
Swift: Catch the last two test results as well.
2023-01-17 16:04:58 +00:00
Geoffrey White
d42848bb7e
Swift: Upgrade the query from dataflow to taint tracking, so as to support more flows.
2023-01-17 16:04:58 +00:00
Geoffrey White
28a707a956
Swift: Model RNCryptor.
2023-01-17 16:04:58 +00:00
Geoffrey White
a8ef9cc987
Swift: Add tests for RNCryptor library.
2023-01-17 16:04:57 +00:00
Edward Minnix III
4c018759c8
Merge pull request #11283 from egregius313/egregius313/webview-setAllowContentAccess
...
Java: Android WebView Content Access Query
2023-01-17 11:02:47 -05:00
Michael Nebel
62533501fe
C#: Update CIL attributes test case and the expected output.
2023-01-17 17:00:01 +01:00
Geoffrey White
54b3262d9c
Merge pull request #11891 from geoffw0/authbypass
...
C++: Fix issue with cpp/user-controlled-bypass
2023-01-17 15:43:08 +00:00
Jami
babdee36aa
Merge pull request #11779 from jcogs33/jcogs33/model-more-top-jdk-apis
...
Java: model top JDK APIs
2023-01-17 10:20:32 -05:00
Geoffrey White
d628cc5ab8
Update cpp/ql/src/Security/CWE/CWE-290/AuthenticationBypass.ql
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-01-17 14:37:19 +00:00
erik-krogh
8251ad5e99
add unsafe-html-construction query
2023-01-17 15:35:17 +01:00
erik-krogh
8715790fe7
add explicit this
2023-01-17 15:17:48 +01:00
Geoffrey White
037b49b454
Update swift/ql/test/query-tests/Security/CWE-259/rncryptor.swift
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-01-17 14:16:52 +00:00
Paolo Tranquilli
6b43ff45a4
Merge pull request #11904 from github/redsun82/swift-extension-protocols
...
Swift: extract `ExtensionDecl` protocols
2023-01-17 15:16:20 +01:00
Paolo Tranquilli
d9bd41b8b1
Merge pull request #11571 from github/redsun82/swift-open-redirection
...
Swift: generalize open redirection on both platforms and rework output rewriting
2023-01-17 15:15:56 +01:00
Jami Cogswell
10f0975812
Java: remove models for System.[get|set]Property
2023-01-17 08:51:48 -05:00
erik-krogh
a562568522
add string concat as a sink for command-construction
2023-01-17 14:48:09 +01:00
erik-krogh
9d9de18bc9
add a generalized AddExprRoot into Operation.qll
2023-01-17 14:48:08 +01:00
erik-krogh
8fc3b268e8
add string concat as a sink for code-construction
2023-01-17 14:48:06 +01:00
Paolo Tranquilli
9e5db7c6ec
Merge branch 'main' into redsun82/swift-extension-protocols
2023-01-17 14:39:09 +01:00
Rasmus Wriedt Larsen
b83fc3b6eb
Python: Update QLDoc for clsArgumentTracker
2023-01-17 14:38:56 +01:00
Michael Nebel
5f57a097ab
C#: CIL method attribute extraction.
2023-01-17 14:17:35 +01:00
Rasmus Wriedt Larsen
24892801ec
Python: clsTracker => clsArgumentTracker
...
Co-authored-by: Taus <tausbn@github.com >
2023-01-17 14:16:56 +01:00
Rasmus Wriedt Larsen
1c8cc6a32a
Python: Add QLDoc for TFunction
2023-01-17 14:14:05 +01:00
Michael Nebel
951f6362aa
Merge pull request #11825 from michaelnebel/csharp/genericmathsupport
...
C# 11: Support for static virtual and static abstract interface members.
2023-01-17 14:14:02 +01:00
Rasmus Wriedt Larsen
a0b1c2ea79
DataFlow: Add uniqueParameterNodePositionExclude
2023-01-17 14:05:22 +01:00
Rasmus Wriedt Larsen
2b0a5fd5d1
DataFlow: Add uniqueParameterNodeAtPositionExclude
2023-01-17 14:05:17 +01:00
Rasmus Wriedt Larsen
dad6221b61
Python: Accept dataflow-consistency.expected changes for now
...
As highlighted in the configuration file, there are some things to catch
up on, and we also need to apply the same fix as Ruby for **kwargs
handling.
2023-01-17 13:58:40 +01:00
Rasmus Wriedt Larsen
749e81367d
Python: Allow multiple **kwargs parameters outside our test code
2023-01-17 13:58:40 +01:00
Rasmus Wriedt Larsen
b6272b383d
Python: Allow non-unique parameter positions for normal parameters
2023-01-17 13:58:40 +01:00
Rasmus Wriedt Larsen
a6fd5b6e59
DataFlow: Add uniqueParameterNodePositionExclude
2023-01-17 13:58:37 +01:00
Rasmus Wriedt Larsen
7a423622f8
DataFlow: Add uniqueParameterNodeAtPositionExclude
2023-01-17 13:57:31 +01:00
Rasmus Wriedt Larsen
e3fcfd0a66
Python: Use configuration for dataflow consistency checks in dataflow/exceptions
2023-01-17 13:55:22 +01:00
Erik Krogh Kristensen
2e4f4c64fe
Merge pull request #11903 from erik-krogh/revertClap
...
QL: Revert "update clap to 3.0 in QL-for-QL"
2023-01-17 13:29:04 +01:00
Paolo Tranquilli
0a792f2f61
Swift: add upgrade and downgrade scripts for ExtensionDecl new protocols property
2023-01-17 13:07:02 +01:00
Paolo Tranquilli
0d32f00020
Swift: update ExtensionDecl test results
2023-01-17 12:58:02 +01:00
Paolo Tranquilli
d6e0ef9ff9
Swift: extract ExtensionDecl protocols
2023-01-17 12:56:09 +01:00
Paolo Tranquilli
f6e26211f9
Swift: add protocols to ExtensionDecl schema
2023-01-17 12:54:50 +01:00
Geoffrey White
74a37475db
Swift: Model RNCryptor.
2023-01-17 11:54:12 +00:00
Mathias Vorreiter Pedersen
44ebc77ada
Update cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/RangeAnalysisSpecific.qll
2023-01-17 11:52:43 +00:00
Paolo Tranquilli
8906e101cb
Swift: add ExtensionDecl QL test
2023-01-17 12:49:53 +01:00
erik-krogh
5a4fe71529
Revert "update clap to 3.0 in QL-for-QL"
...
This reverts commit d072ed969e .
2023-01-17 12:38:30 +01:00
Erik Krogh Kristensen
50b9f5bba0
Merge pull request #11892 from erik-krogh/clap
...
QL: update clap to 3.0 in QL-for-QL
2023-01-17 12:33:18 +01:00
Jean Helie
fec7ea6964
ATM: add missing query help files
2023-01-17 12:20:17 +01:00
Jean Helie
b08fa43fdf
update tests
2023-01-17 12:20:17 +01:00
Jean Helie
f07984bab2
update test data
2023-01-17 12:20:17 +01:00
Jean Helie
13aaa22df5
add bosted version of ShellCommandInjectionFromEnvironment
2023-01-17 12:20:17 +01:00
Mathias Vorreiter Pedersen
77a9cea737
Merge pull request #11901 from github/redsun82/swift-ql-internal
...
Swift: introduce `@ql.internal` pragma for classes
2023-01-17 10:46:56 +00:00
Rasmus Wriedt Larsen
f8d7a367ad
Python: Rewrite test for __add__ special method
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-17 11:45:57 +01:00
Paolo Tranquilli
67bd8cba32
Merge pull request #11900 from github/alexdenisov/swift-ignore-lsregister
...
Swift: do not trace lsregister
2023-01-17 11:26:22 +01:00
Rasmus Wriedt Larsen
ae1d4decc3
Python: ExternalAPIs.qll: Swap order of classes
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-17 11:01:47 +01:00
Rasmus Wriedt Larsen
b6f76d784c
Python: Remove accidentally committed files
2023-01-17 10:59:11 +01:00
Rasmus Wriedt Larsen
479f019eb0
Python: Minor rewrite removing unnecessary exists
...
Co-authored-by: Taus <tausbn@github.com >
2023-01-17 10:59:11 +01:00
Rasmus Wriedt Larsen
608b16c98a
Python: Minor adjustment in QLDoc
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-17 10:56:53 +01:00
Chris Smowton
29425982a5
Merge pull request #11899 from ataillefer/patch-1
...
Fix partial path traversal Java example
2023-01-17 09:39:36 +00:00
Rasmus Wriedt Larsen
700e40b11b
Python: Fix ql4ql
2023-01-17 10:35:20 +01:00
Rasmus Wriedt Larsen
4f3876f184
Python: Accept rewrite for _join( predicates
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-01-17 10:32:31 +01:00
Rasmus Wriedt Larsen
7c242b1409
Python: Minor QLDoc fix
...
Co-authored-by: Taus <tausbn@github.com >
2023-01-17 10:32:15 +01:00
Paolo Tranquilli
6106edd5e2
Swift: add INTERNAL doc marker to ql.internal classes
2023-01-17 10:30:59 +01:00
Paolo Tranquilli
b22da25e05
Swift: remove ql.internal classes from global import
2023-01-17 10:18:03 +01:00
Paolo Tranquilli
48825442c3
Swift: add ql.internal pragma in schema definitions
2023-01-17 10:10:35 +01:00
Paolo Tranquilli
cdc99b5240
Swift: simplify pragma definition
2023-01-17 10:10:02 +01:00
Geoffrey White
449ebb8a12
Swift: Add tests for RNCryptor library.
2023-01-17 09:03:07 +00:00
Paolo Tranquilli
e3502e2e5f
Merge branch 'main' into redsun82/swift-open-redirection
2023-01-17 09:43:00 +01:00
Alex Denisov
63b4e5ef5c
Swift: do not trace lsregister
2023-01-17 09:26:31 +01:00
Erik Krogh Kristensen
51bd1ef1e1
Merge pull request #11884 from erik-krogh/qlWin
...
QL/Ryby: fix qltest on Windows
2023-01-16 21:57:01 +01:00
Antoine Taillefer
660e6d7085
Fix partial path traversal Java example
...
The Java recommendation example for the "Partial path traversal vulnerability from remote" query doesn't seem right to me. Indeed, the following statement doesn't compile, since `dir.getCanonicalPath()` returns a String:
```
dir.getCanonicalPath().toPath()
```
Maybe the author wanted to state `dir.getCanonicalFile().toPath()`, which would compile, but is useless compared to `dir.getCanonicalPath()`.
Moreover, `parent.getCanonicalFile().toPath()` or `parent.getCanonicalPath()` will **not** be slash-terminated, contrary to what the description says.
From what I can see (and test), the correct fix is to concatenate `File.separator` to the parent canonical path.
2023-01-16 21:14:29 +01:00
Rasmus Wriedt Larsen
690a09d9b6
Python: new-call-graph: pragma[noinline] => pragma[nomagic]
...
As suggested by @tausbn. Obviously, this needs to be performance tested.
2023-01-16 20:45:44 +01:00
Rasmus Wriedt Larsen
a3b7273844
Python: Fix duplicated meta query id
2023-01-16 20:33:28 +01:00
Rasmus Wriedt Larsen
3fcb8f3f4b
Python: Accept suggestions from code-review
2023-01-16 20:33:28 +01:00
Jeroen Ketema
a892ae8764
C++: Fix spurious results in default taint tracking
2023-01-16 19:10:10 +01:00
erik-krogh
dcc1c3d487
add --working-dir=. to pre-finalize for c#
2023-01-16 18:09:00 +01:00
Ian Lynagh
17de5c120a
Kotlin: Make a couple of functions private
2023-01-16 15:29:14 +00:00
Tony Torralba
bd5619147d
Merge pull request #11590 from atorralba/atorralba/swift/sensitive-info-logs
...
Swift: Add Cleartext Logging query
2023-01-16 16:22:20 +01:00
erik-krogh
713599963b
add --working-dir to Ruby qltest.cmd to fix Windows
2023-01-16 15:37:35 +01:00
erik-krogh
9e153cfb0d
change the Ruby-build test such that Windows fails
2023-01-16 15:37:35 +01:00
erik-krogh
587adea809
QL: add --working-dir to qltest.cmd to fix qltest
2023-01-16 15:37:14 +01:00
erik-krogh
2c1ecb507d
fix windows
2023-01-16 15:36:57 +01:00
erik-krogh
1de65131fe
add compilation cache to QL-for-QL tests
2023-01-16 15:36:57 +01:00
erik-krogh
0685732e3f
delete ql/ specific format step now that we have an all-languages format check
2023-01-16 15:36:57 +01:00
erik-krogh
1d62751e15
test QL-for-QL on mac/win
2023-01-16 15:36:55 +01:00
Tony Torralba
0017461e2d
Update swift/ql/src/queries/Security/CWE-312/CleartextLogging.ql
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-01-16 15:35:58 +01:00
Tony Torralba
cca6a13fbb
Update java/ql/src/Security/CWE/CWE-927/SensitiveResultReceiver.qhelp
2023-01-16 14:21:03 +01:00
Rasmus Wriedt Larsen
a1513cc1d3
Python: Minor QLDoc fix
2023-01-16 14:07:11 +01:00
Rasmus Wriedt Larsen
dfbb744a7a
Python: Add comment on *args argument handling
2023-01-16 14:04:25 +01:00
Rasmus Wriedt Larsen
e5e5d84361
Python: Add change-note
2023-01-16 13:44:24 +01:00
Michael Nebel
8981d4c06b
C#: Add change note.
2023-01-16 13:43:26 +01:00
Rasmus Wriedt Larsen
61151d4aa7
Merge branch 'main' into call-graph-code
2023-01-16 13:39:15 +01:00
Michael Nebel
2f602a629f
C#: Add upgrade and downgrade scripts.
2023-01-16 13:27:37 +01:00
Erik Krogh Kristensen
8ccc384043
Merge pull request #11858 from erik-krogh/moreSpawn
...
JS: track shell:true more in js/shell-command-constructed-from-input
2023-01-16 13:24:50 +01:00
Erik Krogh Kristensen
59a8b21851
Merge pull request #10862 from erik-krogh/unsafeCodeConstruction
...
Rb: Add an `unsafe-code-construction` query
2023-01-16 13:22:58 +01:00
Michael Nebel
3552a41552
C#: Add test case for static abstract and static virtual interface members.
2023-01-16 13:07:50 +01:00
Michael Nebel
dc50b6bad3
C#: Support for operators in implements relations.
2023-01-16 13:07:50 +01:00
Michael Nebel
8c2931cbb8
C#: Operators are now allowed to be declared virtual.
2023-01-16 13:07:50 +01:00
erik-krogh
d072ed969e
update clap to 3.0 in QL-for-QL
2023-01-16 12:34:56 +01:00
Paolo Tranquilli
874fe2b8f9
Swift: introduce an in-memory file hash cache
...
File hashing is now done internally in `SwiftFileInterception` (and
exported as a `getHashOfRealFile` function for future use in linkage
awareness), and using a per-process in-memory cache. The persistent
caching of paths is removed, so the solution is now robust against input
file changes during the build.
For the same reason, the hash to artifact mapping have the symlinks
reversed now. The artifacts themselves are stored using the hash as
filenames, and the original paths of the artifacts are reacreated in the
scratch dir with symlinks mostly for debugging purposes (to understand
what artifact each hash corresponds to, and to follow what was built by
the extractor).
2023-01-16 12:05:36 +01:00
Tony Torralba
fdb3b65bce
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-01-16 11:57:37 +01:00
Tony Torralba
7f880a24df
Merge pull request #11886 from jelaiw/jelaiw-patch-1
...
Fix small typo in good/bad code sample.
2023-01-16 09:43:23 +01:00
Paolo Tranquilli
738412260f
Merge branch 'main' into redsun82/swift-open-redirection
2023-01-16 09:09:10 +01:00
jelaiw
cf7189bb28
Fix small typo in good/bad code sample.
2023-01-13 19:16:11 -06:00
Geoffrey White
1a416884d4
C++: Do something similar with the other three cases.
2023-01-14 00:09:01 +00:00
Geoffrey White
316117f5c9
C++: Reduce number of regexps.
2023-01-13 18:50:41 +00:00
Geoffrey White
2f09f0e2c1
C++: Turn the huge list into a predicate.
2023-01-13 18:47:18 +00:00
Geoffrey White
13ae15b867
C++: Add tests for more edge cases.
2023-01-13 18:38:29 +00:00
Jami Cogswell
fb6725ddaa
Java: add WithoutElement comment for clear methods
2023-01-13 13:20:45 -05:00
Mathias Vorreiter Pedersen
2dbacbc302
Merge pull request #11841 from MathiasVP/swift-add-integral-types
...
Swift: Add integral type classes
2023-01-13 17:30:57 +00:00
Robert Marsh
601b43ac0a
Merge branch 'main' into rdmarsh2/parameterize-range-analysis
...
Conflicting change to boundedPhiInp copied to RangeAnalysisStage.qll
2023-01-13 12:06:21 -05:00
Geoffrey White
c9a0067705
Swift: Remove flow in cases with multiple variables.
2023-01-13 16:37:23 +00:00
Mathias Vorreiter Pedersen
c5038ed281
Merge pull request #11883 from MathiasVP/fold-definitions
...
C++: Fix bad join in `definitionOf`
2023-01-13 16:28:26 +00:00
Mathias Vorreiter Pedersen
6e6f2115c0
Merge pull request #11857 from MathiasVP/speedup-missing-check-scanf
...
C++: Speedup `cpp/missing-check-scanf`
2023-01-13 16:11:16 +00:00
Geoffrey White
2c35af51cd
Swift: Move logic into Ssa::WriteDefinition.assigns.
2023-01-13 15:19:33 +00:00
Geoffrey White
8a77906296
Swift: Use Ssa::Definition rather than ConcreteVarDecl.
2023-01-13 15:01:20 +00:00
Mathias Vorreiter Pedersen
2aace0df2c
Merge pull request #11743 from MathiasVP/fix-pointer-to-const-nodes
...
C++: `PostUpdateNode`s for const-pointer arguments
2023-01-13 14:03:21 +00:00
Mathias Vorreiter Pedersen
cdd9567062
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-01-13 13:54:07 +00:00
Michael Nebel
2d46272295
Merge pull request #11881 from michaelnebel/java/modeldiffignore
...
Java: Ignore missing html artifacts in the Model Diff workflow.
2023-01-13 14:11:19 +01:00
Michael Nebel
b36be009d4
Merge pull request #11834 from michaelnebel/csharp/operators
...
C# 11: Extractor and library support for Unsigned right shift.
2023-01-13 13:21:02 +01:00
erik-krogh
71af8ab022
simplifications inspired by review
2023-01-13 13:18:52 +01:00
Mathias Vorreiter Pedersen
2283eacc0b
C++: Fix bad join in 'definitionOf'.
2023-01-13 11:42:15 +00:00
Mathias Vorreiter Pedersen
59072f9e81
C++: Improve QLDoc.
2023-01-13 11:01:23 +00:00
Mathias Vorreiter Pedersen
dd8bead21a
C++: Fix spurious backticks.
2023-01-13 10:57:44 +00:00
Mathias Vorreiter Pedersen
cf9998b932
Merge pull request #5 from geoffw0/integraltypes
...
Swift: Work on integral type classes
2023-01-13 10:01:23 +00:00
Arthur Baars
5865b51a94
Ruby: build extractor using cross
2023-01-13 10:25:27 +01:00
Arthur Baars
dc6f5f60d1
Ruby: update stats
2023-01-13 10:22:42 +01:00
Arthur Baars
28c9b52dce
Ruby: add change note
2023-01-13 10:22:42 +01:00
Arthur Baars
46063c7d04
Ruby: update expected output
2023-01-13 10:22:41 +01:00
Arthur Baars
c4ec674057
Ruby: support anonymous (hash)splat parameters/arguments
2023-01-13 10:22:41 +01:00
Arthur Baars
4d3e2bb814
Ruby: upgrade/downgrade scripts
2023-01-13 10:22:41 +01:00
Arthur Baars
290167e1a3
Ruby: re-generated dbscheme/library
2023-01-13 10:22:41 +01:00
Arthur Baars
3a887d1c92
Ruby: update tree-sitter-{ruby, embedded-template}
2023-01-13 10:22:41 +01:00
Charis Kyriakou
792d4a83f9
Rename VS Code Extension Run Query command
2023-01-13 08:46:35 +00:00
Michael Nebel
600412db48
Java: Ignore missing html artifacts.
2023-01-13 08:58:53 +01:00
Michael Nebel
3b15f2359b
Merge pull request #11861 from michaelnebel/java/testmodeldiff
...
Java: Update the Model Difference workflow to use the `gh api`.
2023-01-13 08:20:18 +01:00
Jami Cogswell
a43f3cf95f
Java: remove Supplier.get model
2023-01-12 17:09:13 -05:00
Jami Cogswell
f040ff2d8d
Java: undo change to Function.apply test case
2023-01-12 17:01:58 -05:00
Robert Marsh
337a747bde
C++: cleanup some unneeded code
2023-01-12 16:38:58 -05:00
Robert Marsh
b2b45237c6
C++: use rounding to prevent float wobble in range analysis
2023-01-12 16:38:57 -05:00
Robert Marsh
31b61b1aa6
C++: fix a join order in range analysis
2023-01-12 16:38:57 -05:00
Robert Marsh
938176c9da
C++: update test QL for modulus and sign analysis
...
These now instantiate their respective parameterized modules. No
results change.
2023-01-12 16:38:56 -05:00
Robert Marsh
7586762b10
C++: fix ambiguous import warnings
2023-01-12 16:38:56 -05:00
Robert Marsh
488368ecde
C++: private import for module params
2023-01-12 16:38:55 -05:00
Robert Marsh
23281410e3
C++: Make bounds import private to preserve API
2023-01-12 16:38:54 -05:00
Robert Marsh
6db728190e
C++: autoformat
2023-01-12 16:38:36 -05:00
Robert Marsh
02f1957919
C++: make SemBound a RangeAnalysis parameter
2023-01-12 16:38:11 -05:00
Robert Marsh
71b93d125e
C++: Make RangeAnalysis.qll expose the old API
2023-01-12 16:38:11 -05:00
Robert Marsh
fb1ef07e9f
C++: more parameterized modules in range analysis
...
This makes the modulus analysis and sign analysis into parameterized
modules which are instantiated in the main range analysis module, and
makes RangeAnalysisSpecific and RangeUtils into parameters to the main
range analysis.
Some classes also need to be moved and made into `instanceof` extensions
because they'd otherwise be extending across parameterized module
boundaries.
2023-01-12 16:38:10 -05:00
Robert Marsh
c062d5e206
C++: move language specific predicates to LangParam
2023-01-12 16:38:10 -05:00
Robert Marsh
c10733f926
C++: fix float binding issue in range analysis
2023-01-12 16:38:09 -05:00
Robert Marsh
b8c43d7a71
C++: convert RangeAnalysis to float
2023-01-12 16:38:09 -05:00
Robert Marsh
eebada46b1
C++: rename to RagneAnalysisStage.qll
2023-01-12 16:38:08 -05:00
Robert Marsh
edbe95837f
Convert RangeAnalysis to trivial parameterized mod
2023-01-12 16:38:08 -05:00
Jami Cogswell
c3a1d088ac
Java: update change note
2023-01-12 16:32:52 -05:00
Jami Cogswell
a39b2aaaac
Java: remove endsWith test case
2023-01-12 16:24:57 -05:00
Jami Cogswell
ffb267937a
Java: add endsWith additionalTaintStep to ConditionalBypassFlowConfig
2023-01-12 16:24:05 -05:00
Sarita Iyer
4acd1ababe
Update docs/codeql/CONTRIBUTING.MD
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-01-12 15:57:43 -05:00
Arthur Baars
af8cb65b2e
Merge pull request #11877 from aibaars/ql-ql-cross
...
QL/Ruby: include OS version in cache keys for Rust binaries
2023-01-12 20:02:25 +01:00
Michael Nebel
fd80974210
Java: Download databases using the gh api instead of lgtm.
2023-01-12 19:30:12 +01:00
Michael Nebel
c1c0ff4308
C#: Update database stats.
2023-01-12 19:06:29 +01:00
Michael Nebel
1384aa669b
C#: Add change note.
2023-01-12 19:06:29 +01:00
Michael Nebel
5e89119b3d
C#: Add upgrade- and downgrade scripts for unsigned right shift operators.
2023-01-12 19:06:29 +01:00
Michael Nebel
529be7ef18
C++: Sync files.
2023-01-12 19:06:29 +01:00
Michael Nebel
5c466f3319
Java: Sync files and update other relavant files related to the new naming of shift.
2023-01-12 19:06:29 +01:00
Michael Nebel
49a87e152a
C#: Add unsigned right shift operator test case.
2023-01-12 19:06:28 +01:00
Michael Nebel
30738103f0
C#: Add unsigned right shift operator class.
2023-01-12 19:06:28 +01:00
Michael Nebel
148dc6de5a
C#: Rename shift operator classes.
2023-01-12 19:06:28 +01:00
Michael Nebel
f48eda829f
C#: Rename some of the TBinarySignOperation constructors.
2023-01-12 19:06:28 +01:00
Michael Nebel
d92b226041
C#: Add test example for unsigned right shift assignment in intermediate representation.
2023-01-12 19:06:28 +01:00
Michael Nebel
5bb8f8ed5c
C#: Support for unsigned shift right in the experimental intermediate representation.
2023-01-12 19:06:28 +01:00
Michael Nebel
f74c7c28ae
C#: Auto format test file and update expected test output.
2023-01-12 19:06:28 +01:00
Michael Nebel
0f032c5be9
C#: Sign analysis testcase for unsigned right shift.
2023-01-12 19:06:28 +01:00
Michael Nebel
2568318460
C#: Sign analysis support for unsigned right shift.
2023-01-12 19:06:28 +01:00
Michael Nebel
d06a877709
C#: Introduce test cases and expected result for unsigned right shift.
2023-01-12 19:06:28 +01:00
Michael Nebel
9eb7933778
C#: Implement library support for unsigned right shift.
2023-01-12 19:06:28 +01:00
Michael Nebel
99b7bc3b73
C#: Implement extractor support for unsigned right shift.
2023-01-12 19:06:28 +01:00
Michael Nebel
14c92e6eb3
C#: Add expressions kind including dummy stats for unsigned right shift and unsigned right shift assigment.
2023-01-12 19:06:28 +01:00
Michael Nebel
902b0a60d0
C#: Fixup ShiftExpr rename.
2023-01-12 19:06:28 +01:00
Michael Nebel
36980bbf42
C#: Rename shift expression classes.
2023-01-12 19:06:27 +01:00
Michael Nebel
a9f1c95513
C#: Rename shift assignment expression classes.
2023-01-12 19:06:27 +01:00
Chris Smowton
8aa2c23ba8
Merge pull request #11700 from JLLeitschuh/doc/JLL/improve-java-unsafe-deserialization-documentation
...
[Java] Document fixes for deserialization vulnerabilities by framework
2023-01-12 18:04:13 +00:00
Chris Smowton
09d8a50494
Spelling
2023-01-12 17:46:00 +00:00
Michael Nebel
aefb43324b
Merge pull request #11738 from michaelnebel/go/maddataextensions
...
Go: Models as Data using extensions.
2023-01-12 18:42:35 +01:00
Erik Krogh Kristensen
8f9ad1f5ba
Merge pull request #11872 from erik-krogh/jsAst
...
JS: Fixup some problems in PrintAST
2023-01-12 16:56:56 +01:00
Geoffrey White
7f31c9c7e5
Swift: Add a test.
2023-01-12 15:19:57 +00:00
Jami Cogswell
e0444449c8
Java: remove Function.apply model
2023-01-12 09:58:53 -05:00
Arthur Baars
e29e077a03
Ruby/QL4QL: include OS version in cache keys
2023-01-12 15:47:10 +01:00
erik-krogh
7ae27bcc34
fix errors in JS printAst
2023-01-12 15:37:52 +01:00
Henry Mercer
15ead6d0e6
Merge pull request #11864 from github/codeql-ci/atm/release-0.4.5
...
JS: Bump version numbers of ML-powered packs after 0.4.5 release
2023-01-12 13:51:24 +00:00
Jami
c725c447ac
Merge branch 'main' into jcogs33/update-paramsString
2023-01-12 08:24:57 -05:00
Henry Mercer
70f1015fba
Merge branch 'main' into codeql-ci/atm/release-0.4.5
2023-01-12 12:32:25 +00:00
Ian Lynagh
9ebe59d353
Merge pull request #11637 from igfoo/igfoo/kotlin-1.8
...
Kotlin: Add 1.8 support
2023-01-12 12:15:00 +00:00
Geoffrey White
3d1b2fdbda
Swift: Rename NumericOrCharType.qll -> Numer> NumericType.qll.
2023-01-12 11:46:51 +00:00
Joe Farebrother
e12febfd96
Add change note
2023-01-12 11:44:39 +00:00
Joe Farebrother
b565f997a0
Improve qhelp
2023-01-12 11:44:39 +00:00
Joe Farebrother
639c42c9e9
Fix qhelp errors and ql-for-ql errors
2023-01-12 11:44:39 +00:00
Joe Farebrother
f52db7f9a3
Add qhelp
2023-01-12 11:44:39 +00:00
Joe Farebrother
a88759283a
Fix typo in qldoc
2023-01-12 11:44:39 +00:00
Joe Farebrother
7e7b5b4488
Improve test case
2023-01-12 11:44:39 +00:00
Joe Farebrother
8449dabefe
Add qldoc
2023-01-12 11:44:39 +00:00
Joe Farebrother
de565f9ccc
Add test and fix a bug
2023-01-12 11:44:39 +00:00
Joe Farebrother
b96edb9c64
Add Sensitive Result Receiver query
2023-01-12 11:44:39 +00:00
Geoffrey White
418d593a97
Swift: Replace NumericOrCharType with a more basic NumericType, and rename classes for consistency with other static languages.
2023-01-12 11:43:20 +00:00
Geoffrey White
d0eb167d47
Swift: Merge FloatingPointType.qll into NumericOrCharType.qll, because it is a numeric type and other stuff like CharacterType is there.
2023-01-12 11:42:36 +00:00
Geoffrey White
4e5483744f
Swift: Add a test case we're discussing.
2023-01-12 10:52:03 +00:00
Michael Nebel
48d0eccbf6
Go: Cleanup and renaming.
2023-01-12 11:13:34 +01:00
Michael Nebel
3749a1bd4d
Go: Migrate unit tests to use data extensions for Models as Data.
2023-01-12 11:13:33 +01:00
Michael Nebel
218f553fef
Go: Convert remaining CSV production models to use data extensions.
2023-01-12 11:13:33 +01:00
Michael Nebel
ebb3485a73
Go: Use the extensible predicates for model definitions.
2023-01-12 11:13:33 +01:00
Michael Nebel
5fd687d3df
Go: Add MaD related extensible predicates.
2023-01-12 11:13:33 +01:00
Michael Nebel
0f993a0d26
Go: Prepare library for adding extensions.
2023-01-12 11:13:28 +01:00
Mathias Vorreiter Pedersen
1ae52b6c7e
C++: Speedup 'MissingCheckScanf'.
2023-01-12 10:13:02 +00:00
Paolo Tranquilli
4f5f0aad45
Merge branch 'main' into redsun82/swift-open-redirection
2023-01-12 10:54:04 +01:00
Michael Nebel
18a815ca8b
Merge pull request #11721 from michaelnebel/csharpjava/refactorprovenance
...
C#/Java: Re-factor provenance related predicates.
2023-01-12 10:50:31 +01:00
yoff
006eaf3e2a
Merge pull request #11088 from yoff/python/inline-query-tests
...
Python: Inline query tests
2023-01-12 10:32:26 +01:00
Geoffrey White
994ea704da
Swift: Clean up the QL a little.
2023-01-12 09:31:48 +00:00
Jami Cogswell
fd593fd4f0
Java: undo changes to tests that were affected by numeric-flow summary models
2023-01-11 22:34:19 -05:00
Harry Maclean
33a1469a56
Ruby: Add change note
2023-01-12 16:29:00 +13:00
Jami Cogswell
ce74c9d959
Java: Date models as neutral
2023-01-11 22:15:41 -05:00
Jami Cogswell
6bb865ad05
Java: make numeric flow models neutral
2023-01-11 18:04:43 -05:00
Henning Makholm
1d4b2fd0bb
Merge pull request #11870 from github/hmakholm/pr/mergeback-2.12.0
...
Merge codeql-cli-2.12.0 back to main
2023-01-11 23:51:56 +01:00
Harry Maclean
8219465389
Ruby: fix missing doc
2023-01-12 11:35:35 +13:00
Harry Maclean
0626d693f5
Ruby: Recognise rack applications
...
This is a basic first step in modelling rack apps. We recognise classes
that look like rack applications and then treat the argument to `call`
in the same way that we treat `request.env` in ActionController classes.
This finds a TP in CVE-2021-43840.
2023-01-12 11:28:31 +13:00
Pierre
4e1f772f23
Merge pull request #11702 from github/turbo/experimental/combined
...
Introduce the security-experimental CodeQL suite and experimental tag
2023-01-11 20:37:42 +01:00
Geoffrey White
6a0b56bf40
Swift: Fix for extensions.
2023-01-11 18:32:07 +00:00
Geoffrey White
2622de9747
Swift: Improve Core Data coverage.
2023-01-11 18:26:34 +00:00
Geoffrey White
82f9903bf0
Swift: Additional test cases for swift/cleartext-storage-database on Core Data.
2023-01-11 18:22:32 +00:00
Jami Cogswell
0c7ffb0554
Java: update System.getProperty model
2023-01-11 12:04:22 -05:00
Pierre
c3116b3f0f
Merge branch 'main' into turbo/experimental/combined
2023-01-11 18:02:55 +01:00
Mathias Vorreiter Pedersen
cc0371648b
C++: Accept test changes.
2023-01-11 16:25:21 +00:00
Mathias Vorreiter Pedersen
a83879fa42
C++: Make sure that arguments of const pointer-type (as opposed to arguments of pointer to const-type) has an outgoing argument node.
2023-01-11 16:24:22 +00:00
Jami Cogswell
2a99af0e6d
Java: remove summary model for String.endsWith
2023-01-11 10:58:46 -05:00
Jami Cogswell
99ee6c95a1
Java: remove models for Consumer.accept and Collectors.toMap
2023-01-11 10:44:38 -05:00
Mathias Vorreiter Pedersen
cd24405a22
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into global-flow
2023-01-11 15:42:34 +00:00
Jami Cogswell
ac064ac2a7
Java: remove model for Collectors.joining
2023-01-11 10:30:49 -05:00
Michael Nebel
7e4f7a0c17
C#: Address review comments and sync files.
2023-01-11 16:29:24 +01:00
Michael Nebel
67cbe38255
Sync files.
2023-01-11 16:20:55 +01:00
Michael Nebel
8112058a0a
Java: Adapt TopJdpApi library to the re-factor.
2023-01-11 16:20:55 +01:00
Michael Nebel
372ecf402f
Go: Delete unused summaryModel predicate.
2023-01-11 16:20:55 +01:00
Michael Nebel
80a4197604
Swift: Re-factor provenance related predicates for summarized callable.
2023-01-11 16:20:55 +01:00
Michael Nebel
c01361a1fd
Ruby: Re-factor provenance related predicates for summarized callable.
2023-01-11 16:20:55 +01:00
Michael Nebel
59a9e255c7
Python: Re-factor provenance related predicates for summarized callable.
2023-01-11 16:20:55 +01:00
Michael Nebel
6622eda04c
Go: Re-factor provenance related predicates for summarized callable.
2023-01-11 16:20:55 +01:00
Michael Nebel
6a047d6916
Java: Re-factor provenance related predicates for summarized callable.
2023-01-11 16:20:55 +01:00
Michael Nebel
ea173f9516
Sync files.
2023-01-11 16:20:55 +01:00
Michael Nebel
7422029e49
C#: Re-factor provenance related predicates for summarized callable.
2023-01-11 16:20:48 +01:00
Michael Nebel
4b47b08ed2
Merge pull request #11760 from michaelnebel/movemodelgenerator
...
C#/Java: Move the modelgenerator.
2023-01-11 16:02:36 +01:00
Tony Torralba
c6d9e1ec81
Merge pull request #11742 from atorralba/atorralba/swift/more-path-injection-sinks
...
Swift: Add more path injection sinks
2023-01-11 15:15:42 +01:00
Tony Torralba
c115a9fee4
Add more path injection sinks
2023-01-11 14:28:24 +01:00
Tony Torralba
5d54482c71
Merge pull request #11770 from atorralba/atorralba/ql/omittable-exists
...
QL: Add OmittableExists query
2023-01-11 14:27:40 +01:00
Michael Nebel
11ca3f49f6
C#/Java: Adjust imports after moving files.
2023-01-11 13:13:33 +01:00
Michael Nebel
787b4743ee
C#/Java: Rename the directories containing the model generator and tests.
2023-01-11 13:13:33 +01:00
Michael Nebel
178fd0e9e1
C#/Java: Remove all dashes in mode-generator.
2023-01-11 13:13:33 +01:00
erik-krogh
6914e9a17a
Merge branch 'main' into atorralba/ql/omittable-exists
2023-01-11 13:09:38 +01:00
Erik Krogh Kristensen
466f24663e
Merge pull request #11867 from erik-krogh/qlFix
...
QL: move queries folder instead of .cache folder now that we got .qlx
2023-01-11 13:03:47 +01:00
Erik Krogh Kristensen
3fa6a7cbff
cache -> queries
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-01-11 12:29:15 +01:00
Tony Torralba
a4f813183e
Merge pull request #11785 from atorralba/atorralba/swift/grdb-sinks
...
Swift: Add sinks for the GRDB library
2023-01-11 11:49:37 +01:00
erik-krogh
74a58f64aa
move queries folder instead of .cache folder now that we got .qlx
2023-01-11 11:13:42 +01:00
erik-krogh
ed2dd87bda
update the codeql-action version used in QL-for-QL
2023-01-11 11:13:06 +01:00
Tony Torralba
ecf568629b
Add ExprAggregate as a negative edge in getConjunctionParentRec
2023-01-11 09:41:16 +01:00
Jami Cogswell
181a711f04
Java: switch Collectors.joining model from neutral to summary
2023-01-10 21:06:03 -05:00
github-actions[bot]
76e121e359
JS: Bump version of ML-powered library and query packs to 0.4.6
2023-01-10 21:11:23 +00:00
github-actions[bot]
dc88bdccc7
JS: Bump patch version of ML-powered library and query packs
2023-01-10 21:04:31 +00:00
Jami Cogswell
faae811be7
Java: try simplification of paramsString and paramsStringPart
2023-01-10 13:35:52 -05:00
Jami Cogswell
65aa064838
Java: update paramsString qldoc
2023-01-10 13:33:47 -05:00
Edward Minnix III
ce06df3152
Merge pull request #11628 from egregius313/egregius313/android-webview-addjavascriptinterface-dataflow
...
Java: Add parameters of methods annotated @JavascriptInterface as remote flow sources
2023-01-10 12:41:52 -05:00
Mathias Vorreiter Pedersen
8b01dfe696
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2023-01-10 17:30:29 +00:00
erik-krogh
38ca68febb
recognize "-->" as a bad tag filter
2023-01-10 18:09:56 +01:00
Florin Coada
4c1c12dd70
suggestions in list format
2023-01-10 11:18:56 -05:00
Jonathan Leitschuh
1d7881e03f
Apply suggestions from code review
...
Co-authored-by: Chris Smowton <smowton@github.com >
2023-01-10 11:18:56 -05:00
Tony Torralba
b7364f5428
Update UnsafeDeserialization.qhelp
...
Move the table under <recommendation>, minor fixes.
2023-01-10 11:18:56 -05:00
Jonathan Leitschuh
3fa11c21c3
[Java] Document fixes for deserialization vulnerabilities by framework
...
Related https://github.com/github/codeql/issues/11603
2023-01-10 11:18:56 -05:00
Paolo Tranquilli
0ad585cfe6
Merge pull request #11860 from github/redsun82/swift-clang-14
...
Swift: make compilation with newer STL possible
2023-01-10 17:17:56 +01:00
Erik Krogh Kristensen
54c780bdf9
Merge pull request #11853 from erik-krogh/assignMore
...
JS: add local flow when recognizing Object.assign calls for library-inputs
2023-01-10 17:04:29 +01:00
Tony Torralba
ae8c75ac97
Generalize ConjunctionParent
2023-01-10 16:08:42 +01:00
Tony Torralba
72a11e737d
Merge pull request #11775 from atorralba/atorralba/all/omittable-exists
...
All: Remove omittable exists variables
2023-01-10 16:07:06 +01:00
Ian Lynagh
3367da82c4
Kotlin: Accept test changes
...
We get better locations with Kotlin 1.8.0.
2023-01-10 14:41:30 +00:00
Ian Lynagh
b7eb521fa0
Kotlin: Fix custom_plugin test for Kotlin 1.8.0
2023-01-10 14:41:30 +00:00
Ian Lynagh
c71ea80029
Kotlin: Accept test changes
...
We now get better locations, with Kotlin 1.8.0.
2023-01-10 14:41:30 +00:00
Ian Lynagh
20b35e5d02
Kotlin: 1.8.0 changes
2023-01-10 14:41:30 +00:00
Ian Lynagh
c4119761cc
Kotlin: Another 1.8 build fix
2023-01-10 14:41:30 +00:00
Ian Lynagh
89b3363761
Kotlin: Bump CI version to 1.8.0-Beta
2023-01-10 14:41:30 +00:00
Ian Lynagh
b51c3aae85
Kotlin: Logs test: Allow for -Beta versions etc when parsing the logs
2023-01-10 14:41:29 +00:00
Ian Lynagh
6fbda1a9f0
Kotlin: Accept test changes with 1.8
2023-01-10 14:41:29 +00:00
Ian Lynagh
f7d8d16ed3
Kotlin: Fix build for 1.8.0-Beta
...
The build no longer works for Kotlin < 1.8: We get
error: class 'org.jetbrains.kotlin.ir.IrElement' was compiled
with an incompatible version of Kotlin. The binary version
of its metadata is 1.8.0, expected version is 1.6.0.
2023-01-10 14:41:29 +00:00
erik-krogh
62b69bbd3e
autoformat
2023-01-10 15:38:13 +01:00
Erik Krogh Kristensen
6623e5fbf3
Merge pull request #11852 from erik-krogh/jsInfiniteChar
...
JS: recognize an infinite repetition of a char-class like regex as a char-class like regex
2023-01-10 15:32:22 +01:00
Erik Krogh Kristensen
ce8836fb65
Update javascript/ql/lib/semmle/javascript/PackageExports.qll
...
Co-authored-by: Esben Sparre Andreasen <esbena@github.com >
2023-01-10 15:30:44 +01:00
erik-krogh
43696f5e27
add explicit this
2023-01-10 15:27:37 +01:00
erik-krogh
23a847b1cf
track shell:true more in js/shell-command-constructed-from-input
2023-01-10 15:27:37 +01:00
Erik Krogh Kristensen
9f8d10de11
Merge pull request #11851 from erik-krogh/jsFixMissingThis
...
JS: fix bad join-order in js/missing-this-qualifier
2023-01-10 15:23:25 +01:00
Paolo Tranquilli
2fb5621527
Swift: replace $(CC) with clang
...
On macOS `$(CC)` points to a wrapper that requires `DEVELOPER_DIR` to be
set in the environment. Using `clang` is slightly less generic, but
that's our default any way. Even if we do set a different clang version
somewhere, the selected version of GCC would not change, and the test
is targeting that.
2023-01-10 14:58:21 +01:00
Paolo Tranquilli
943763a026
Swift: add -Wno-pragma-once-outside-header to check
2023-01-10 14:30:35 +01:00
Paolo Tranquilli
28d79eeb77
Swift: make compilation with different STL versions possible
...
Previous to this patch the code contained a workaround for the standard
defect
https://cplusplus.github.io/LWG/issue3657
where `std::filesystem::path` did not have a `std::hash` implementation.
This patch allows compiling against versions of the STL that contain the
fix to the above issue. This is done by running the compiler against
code defining `std::hash<std::filesystem::path>`: if compilation
succeeds, it means the fix is not there and we need to use the
workaround, contained in `PathHash.h.workaround`. Otherwise, the fix is
there and we use `PathHash.h.fixed` instead, which only includes the
standard headers included by `PathHash.h.workaround`, so that one is a
drop-in replacement of the other.
2023-01-10 14:14:33 +01:00
Jeroen Ketema
1a4048d238
Merge pull request #11830 from jketema/frontend-update
...
C++: Changes for frontend update
2023-01-10 14:01:46 +01:00
erik-krogh
5c388c554c
fix that the TypeTracker was unrestricted for the base-case of nonFirstLocationType
2023-01-10 13:39:50 +01:00
erik-krogh
e02b67af63
add failing test
2023-01-10 13:39:50 +01:00
Tony Torralba
50cd40ed20
Swift: Remove omittable exists variables
2023-01-10 13:39:50 +01:00
Tony Torralba
7ef8099a8b
Shared: Remove omittable exists variables
2023-01-10 13:39:50 +01:00
Tony Torralba
c9d1cd97fb
Ruby: Remove omittable exists variables
2023-01-10 13:39:49 +01:00
Tony Torralba
f6c3f77602
QL: Remove omittable exists variables
2023-01-10 13:37:58 +01:00
Tony Torralba
d87c8c75d6
Python: Remove omittable exists variables
2023-01-10 13:37:35 +01:00
Tony Torralba
3b6dae41cd
JavaScript: Remove omittable exists variables
2023-01-10 13:37:21 +01:00
Tony Torralba
32471d326e
Java: Remove omittable exists variables
2023-01-10 13:37:19 +01:00
Tony Torralba
7a92970d89
Go: Remove omittable exists variables
2023-01-10 13:36:48 +01:00
Tony Torralba
2ca0df0369
C#: Remove omittable exists variables
2023-01-10 13:36:25 +01:00
Tony Torralba
3fcc99e5cb
C++: Remove omittable exists variables
2023-01-10 13:36:01 +01:00
Erik Krogh Kristensen
f2658a0936
apply suggestions from doc review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2023-01-10 12:56:22 +01:00
erik-krogh
79e161e046
slightly broaden the regular expression that recognizes bad string-concats used as shell commands
2023-01-10 12:49:37 +01:00
Tony Torralba
da90ae0e8f
Update java/ql/lib/semmle/code/java/dataflow/FlowSources.qll
2023-01-10 11:18:53 +01:00
Jeroen Ketema
8d46642de3
C++: Update dbscheme stats file
2023-01-10 10:41:43 +01:00
Jeroen Ketema
2fc6484162
C++: Add dbscheme upgrade and downgrade scripts
2023-01-10 10:41:43 +01:00
Jeroen Ketema
1bab950023
C++: Introduce (_Complex) _Float16 type which is needed after frontend update
2023-01-10 10:41:43 +01:00
Jeroen Ketema
282ca1094e
C++: Accept test changes after improving size of _Float128 in frontend
2023-01-10 10:41:43 +01:00
Jeroen Ketema
e215c4c94c
C++: Accept test changes after frontend update
...
The location of a reference dereference has changed slightly.
2023-01-10 10:41:43 +01:00
Michael Nebel
16cd148961
Merge pull request #11711 from michaelnebel/externalflowcleanup
...
C#/Java: Delete deprecated ModelCsv classes and related predicates.
2023-01-10 10:22:50 +01:00
Michael Nebel
1729319ebe
Merge pull request #11804 from michaelnebel/csharp/alignqueryids
...
C#: Align query IDs.
2023-01-10 10:14:07 +01:00
Michael Nebel
18a0abdb4c
Merge pull request #11740 from michaelnebel/csharp/updatestats
...
C#: Update stats based on projects.
2023-01-10 10:09:53 +01:00
Ed Minnix
293a203756
Move JavascriptInterfaceMethod to WebView.qll
2023-01-09 15:10:23 -05:00
Rasmus Lerchedahl Petersen
2edbfbf8bc
python: update test expectations
...
...now the bug is fixed
2023-01-09 20:35:20 +01:00
Mathias Vorreiter Pedersen
7f5344e025
Update swift/ql/lib/codeql/swift/elements/type/NumericOrCharType.qll
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2023-01-09 17:08:27 +00:00
Tony Torralba
8e0a018673
Consider Int8 and UInt8 as OsLogNonRedactedTypes
2023-01-09 18:05:18 +01:00
Tony Torralba
49a41c98ee
Test that hashed passwords are 'safe' to log
...
This doesn't seem completely right, but the heuristic approach we have regarding sensitive expressions has to draw the line somewhere.
2023-01-09 18:01:07 +01:00
Tony Torralba
160d89fb4e
Add qhelp examples
2023-01-09 18:01:07 +01:00
Tony Torralba
33029b0ed8
Fix sanitizer QLDoc
2023-01-09 18:01:07 +01:00
Tony Torralba
7e0869965c
Uncomment tests
2023-01-09 18:01:07 +01:00
Tony Torralba
c1f19dd145
Add stub so that tests work on Linux
2023-01-09 18:01:07 +01:00
Tony Torralba
b203a9eb6e
Add a sanitizer for OSLogPrivacy options
...
Add test cases to verify how the sanitizer behaves depending on the argument type and the privacy option being used.
2023-01-09 18:01:07 +01:00
Tony Torralba
aad56097ac
Add Cleartext Loggin query for Swift.
...
With some caveats: see TODO comments and failing tests.
2023-01-09 18:01:07 +01:00
Rasmus Lerchedahl Petersen
c142495a8b
python: simplify code
2023-01-09 17:51:45 +01:00
Rasmus Lerchedahl Petersen
5fe62e293a
python: fix bug, add clarifying comment
2023-01-09 17:45:50 +01:00
erik-krogh
9f100ef2c6
add local flow when recognizing Object.assign calls for library-inputs
2023-01-09 17:44:11 +01:00
Tony Torralba
eb78661c1f
Add missing SQL injection tests for the GRDB SQL class
2023-01-09 17:36:54 +01:00
erik-krogh
90f9e3f825
recognize an infinite repetition of a char-class like regex as a char-class like regex
2023-01-09 17:25:08 +01:00
Sarita Iyer
be06469a19
Merge pull request #11835 from github/saritai/pr/qlx
...
Docs: CodeQL pack compatibility
2023-01-09 10:15:08 -05:00
Ed Minnix
909b1d70d9
Rename files to say "Allow" instead of "Permit"
2023-01-09 10:11:03 -05:00
Ed Minnix
c723df3ca7
Fix alert message in expected file
2023-01-09 10:08:19 -05:00
erik-krogh
785c21f462
fix bad join-order in js/missing-this-qualifier
2023-01-09 16:06:26 +01:00
Ed Minnix
f626d4794a
Change wording from "permit" to "allow" in id and name
2023-01-09 10:03:12 -05:00
Ed Minnix
972b4629c8
Fix typo in change note
2023-01-09 10:01:38 -05:00
Ed Minnix
64668883a4
Add good example to documentation
2023-01-09 09:59:38 -05:00
Ed Minnix
2ec73c50f9
Mention WebView in alert message
2023-01-09 09:55:09 -05:00
Arthur Baars
664fdc3b2a
Merge pull request #11815 from aibaars/too-many-fields
...
Ruby: use record_parse_error_for_node to report extractor error
2023-01-09 15:40:19 +01:00
Mathias Vorreiter Pedersen
0f93e5c907
Merge pull request #11781 from MathiasVP/as-expr-for-arrays
...
C++: Map more expressions to `OperandNode`s
2023-01-09 14:38:22 +00:00
Erik Krogh Kristensen
5157d4df7b
Merge pull request #11581 from erik-krogh/stdin
...
Rb: add stdin as source for unsafe-deserialization
2023-01-09 13:57:47 +01:00
Chris Smowton
e9bbb5d7fa
Merge pull request #11730 from smowton/smowton/admin/improve-sql-unescaped-docs
...
Java: improve naming and description of SqlUnescaped.ql
2023-01-09 12:50:27 +00:00
yoff
c01ce955ba
Merge pull request #11778 from yoff/shared/inline-tests
...
Shared: Inline test expectations
2023-01-09 13:21:18 +01:00
Chris Smowton
2e26fb1171
Merge pull request #11819 from smowton/smowton/admin/port-java-autobuilder-tests
...
Add Java autobuilder integration tests
2023-01-09 12:17:39 +00:00
Chris Smowton
efe23c1da7
Note that alerts should not be re-raised
2023-01-09 10:56:13 +00:00
Chris Smowton
994a46289f
Add change note
2023-01-09 10:56:13 +00:00
Chris Smowton
ef27f9fe96
Replace one more mention of escaping
2023-01-09 10:56:13 +00:00
Chris Smowton
45c732a6f9
Java: improve naming and description of SqlUnescaped.ql
...
Since the main thing it's objecting to is concatenation not lack of escaping (in particular it doesn't look for escaping sanitizers), rename and re-describe it accordingly.
2023-01-09 10:56:13 +00:00
Mathias Vorreiter Pedersen
381301e552
Update swift/ql/lib/swift.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-01-09 10:32:52 +00:00
Geoffrey White
9333e80def
Swift: Add getVaList stub to the test.
2023-01-09 10:29:37 +00:00
Taus
06ea249997
Merge pull request #11820 from yoff/python/fix-downgrades
...
Python: fix downgrade script
2023-01-09 11:24:41 +01:00
Mathias Vorreiter Pedersen
6bb09ef289
Swift: Add integral type classes.
2023-01-09 09:43:09 +00:00
Mathias Vorreiter Pedersen
9be9636816
Merge pull request #11670 from atorralba/atorralba/swift/predicate-injection
...
Swift: Add predicate injection query
2023-01-09 08:54:13 +00:00
erik-krogh
d67e756f42
make the import of Gem private
2023-01-09 09:13:01 +01:00
Harry Maclean
5b117084db
Merge pull request #11534 from hmac/array-inclusion-barrier-guard-constant
...
Ruby: Make array inclusion barrier more sensitive
2023-01-09 20:57:09 +13:00
Paolo Tranquilli
82d9edfabf
Merge branch 'main' into redsun82/swift-open-redirection
2023-01-09 08:44:02 +01:00
Sarita Iyer
f15291a9de
Change the order of sections
2023-01-06 15:00:43 -05:00
Sarita Iyer
d079c7a5ef
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-01-06 14:57:24 -05:00
Jami Cogswell
a3c7b2c3a2
Java: move java.lang.Math.min to the correct file
2023-01-06 14:35:09 -05:00
Geoffrey White
bb50a99b36
Swift: Additional test cases.
2023-01-06 18:48:46 +00:00
Geoffrey White
b5dd815249
Swift: Flow through optional binding.
2023-01-06 18:34:22 +00:00
Geoffrey White
c598d9b882
Swift: Generalize an SSA case for variables declared in Patterns.
2023-01-06 18:34:22 +00:00
Geoffrey White
8a9a69fa00
Swift: Add more dataflow tests for of optionals, patterns, enums.
2023-01-06 18:34:22 +00:00
Jeroen Ketema
a743fbcc95
Merge pull request #11799 from jketema/case-uncomment
...
C++: Uncomment cases in dbscheme
2023-01-06 19:26:53 +01:00
Sarita Iyer
d7bf2d9375
docs for codeql pack compatibility
2023-01-06 12:07:24 -05:00
Geoffrey White
04f87a26a9
Swift: Test layout change.
2023-01-06 16:52:54 +00:00
Sarita Iyer
a9867a266e
fixed link
2023-01-06 11:50:07 -05:00
Sarita Iyer
d68cfc7d4f
codeql pack compatibility docs
2023-01-06 11:17:02 -05:00
erik-krogh
538adb47a3
update expected output for DuplicateCharacterInSet
2023-01-06 15:41:57 +01:00
Chris Smowton
831255e9c0
Merge pull request #11832 from github/mbg/fix/go-version-warnings
...
Go: Handle output from `go version` more gracefully
2023-01-06 14:05:39 +00:00
Jeroen Ketema
c1bc097355
C++: Add upgrade/downgrade scripts for dbscheme update
2023-01-06 14:26:24 +01:00
Jeroen Ketema
cdb34bb1f9
C++: Update database stats file
2023-01-06 14:26:23 +01:00
Jeroen Ketema
b9b0c8091f
C++: Uncomment cases in dbscheme
...
Note that the builtin types `__int{8,16,32,64}` are not uncommented,
as these are never and could have never been generated by the
extractor.
2023-01-06 14:26:23 +01:00
Geoffrey White
f3914ffe25
Merge pull request #11823 from geoffw0/heuristicalloc
...
C++: Use HeuristicAllocationExpr in more queries
2023-01-06 13:13:14 +00:00
Jami
f5e5f6dfd1
Merge pull request #11821 from jcogs33/jcogs33/fix-mad-typos
...
Java: fix typos in MaD row `name` columns for `MappingSqlQuery` and `MappingSqlQueryWithParameters`
2023-01-06 07:59:30 -05:00
Rasmus Lerchedahl Petersen
03bd6cb414
python: Allow optional result=OK
...
Also add a further test case
2023-01-06 13:33:12 +01:00
erik-krogh
10308f5875
track string-constants to regular expression uses
2023-01-06 13:17:31 +01:00
Nick Rolfe
4c5f149afd
Merge pull request #11831 from github/post-release-prep/codeql-cli-2.12.0
...
Post-release preparation for codeql-cli-2.12.0
2023-01-06 12:15:17 +00:00
Michael B. Gale
1ef1d63c11
Add test for parseGoVersion
2023-01-06 11:20:51 +00:00
Michael B. Gale
9af9b32722
Find the last line of output from go version
2023-01-06 11:20:39 +00:00
Geoffrey White
bb451f3911
C++: Fix result duplication.
2023-01-06 11:05:47 +00:00
github-actions[bot]
cdb8f67601
Post-release preparation for codeql-cli-2.12.0
2023-01-06 10:36:34 +00:00
Rasmus Lerchedahl Petersen
8d9e94a00f
swift: fix typo
2023-01-06 11:22:49 +01:00
erik-krogh
0a1769657d
add change-note
2023-01-06 09:09:09 +01:00
erik-krogh
19d2b49562
drive-by: make Base64.decode64(..) into a flowsummary that is shared with all queries
2023-01-06 09:04:37 +01:00
erik-krogh
1a27441cfb
drive-by: delete code-execution sinks from unsafe-deserialization, we risked duplicate alerts
2023-01-06 09:04:36 +01:00
erik-krogh
0e6028a7f3
add stdin as source for unsafe-deserialization
2023-01-06 09:04:36 +01:00
Rasmus Lerchedahl Petersen
d42bb119fe
python: align annotations with Ruby
...
use `result=BAD` for expected alert
and `result=OK` on sinks where alerts are not wanted.
2023-01-05 21:41:28 +01:00
Rasmus Lerchedahl Petersen
ad95225272
python: improve code
...
according to alert and reviewer's suggestion
2023-01-05 20:42:29 +01:00
erik-krogh
f98ff65b11
use eval() instead of send() in test
2023-01-05 20:04:04 +01:00
Erik Krogh Kristensen
d9176541c6
Apply suggestions from code review
...
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com >
2023-01-05 20:02:54 +01:00
Nick Rolfe
5317fb5b53
Merge pull request #11828 from github/release-prep/2.12.0
...
Release preparation for version 2.12.0
2023-01-05 18:58:30 +00:00
Nick Rolfe
a3cc93b80b
correct spelling and capitalization of TCP/UDP
2023-01-05 17:43:25 +00:00
Jeroen Ketema
de37f3b7d5
Properly indent code block in change log
2023-01-05 18:38:33 +01:00
Jeroen Ketema
ed87c3a90a
Update go/ql/lib/CHANGELOG.md
2023-01-05 18:03:19 +01:00
Jeroen Ketema
af2c321380
Update python/ql/src/change-notes/released/0.6.0.md
2023-01-05 18:01:28 +01:00
Jeroen Ketema
3e634c92c1
Update python/ql/src/CHANGELOG.md
2023-01-05 18:01:21 +01:00
Jeroen Ketema
170242f79c
Apply suggestions from code review
2023-01-05 17:57:19 +01:00
Nick Rolfe
44213f0144
Merge pull request #11826 from github/nickrolfe/check-change-note
...
CI: fail if a changenote filename doesn't have the right format
2023-01-05 16:55:30 +00:00
Nick Rolfe
6e07076151
tweak wording in 2.12 release notes
2023-01-05 16:46:44 +00:00
github-actions[bot]
b6a8193785
Release preparation for version 2.12.0
2023-01-05 16:32:14 +00:00
Nick Rolfe
4e6baf83c8
Update .github/workflows/check-change-note.yml
...
Co-authored-by: Taus <tausbn@github.com >
2023-01-05 16:26:43 +00:00
Nick Rolfe
0beca9d96c
CI: fail if a changenote filename doesn't have the right format
2023-01-05 16:01:07 +00:00
Jeroen Ketema
f370cd840c
Merge pull request #11818 from jketema/downgrade-fix
...
C++: Fix the expression kind in two of the downgrade scripts
2023-01-05 16:33:16 +01:00
Nick Rolfe
f58ec799dd
Merge pull request #11822 from github/nickrolfe/codeql-cli-2.12.0-changenote-fix
...
Go: fix date format in changenote
2023-01-05 15:16:51 +00:00
Geoffrey White
b3e82498fa
C++: Change note.
2023-01-05 15:06:40 +00:00
Nick Rolfe
b7846da65d
Go: fix date format in changenote
2023-01-05 15:05:39 +00:00
Jami Cogswell
f03f687d61
Java: add change note
2023-01-05 09:08:04 -05:00
Rasmus Lerchedahl Petersen
bb26c31f84
Python: fix downgrade script
...
When new kinds are inserted, new indices exists that do not
correspond to any old indices.
These were previously mapped, now they are not.
2023-01-05 14:56:52 +01:00
Jami Cogswell
0640bd9d8b
Java: fix typos in the MaD row name columns for MappingSqlQuery and MappingSqlQueryWithParameters
2023-01-05 08:32:22 -05:00
Rasmus Lerchedahl Petersen
8afb541718
cpp/swift: fix qldoc
2023-01-05 14:30:13 +01:00
yoff
a74062cd51
Update go/ql/test/TestUtilities/InlineExpectationsTest.qll
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-01-05 14:12:16 +01:00
Geoffrey White
3b31da8a62
C++: Update the experimental query as well.
2023-01-05 12:48:17 +00:00
Geoffrey White
46baf9d5e5
C++: Add test cases for an experimental query as well.
2023-01-05 12:48:16 +00:00
Geoffrey White
c160e0b2a4
C++: Add a warning on HeuristicAllocationExpr.getSizeBytes() and similar methods.
2023-01-05 12:47:52 +00:00
Geoffrey White
823c767aac
C++: Undo changes to SizeCheck.ql, SizeCheck2.ql.
2023-01-05 12:34:12 +00:00
Chris Smowton
52297c0b23
Add Java autobuilder integration tests
2023-01-05 12:19:25 +00:00
Jonas Jensen
c8f35ea1ea
Merge pull request #11810 from kaspersv/kaspersv/inline-late-pragma
...
Add inline_late pragma to QL language spec
2023-01-05 13:15:12 +01:00
Geoffrey White
2023abdc60
C++: Update the queries.
2023-01-05 11:33:58 +00:00
Geoffrey White
a9aa67177b
C++: Add test cases for HeuristicAllocationExpr in queries.
2023-01-05 11:30:21 +00:00
Geoffrey White
10ca2dac19
C++: Remove unnecessary 'semmle' directory.
2023-01-05 11:30:15 +00:00
Jeroen Ketema
14283f01ac
C++: Fix the expression kind in two of the downgrade scripts
...
A 0 value for the expression kind is not valid, as 0 does not occur in the
relevant case split. This should have been the value of `@errorexpr`, which
is 1.
2023-01-05 11:04:31 +01:00
Rasmus Lerchedahl Petersen
c3b3c05cf3
Revert "Merge pull request #37 from erik-krogh/shared/inline-tests"
...
This reverts commit 65fe9abcfe , reversing
changes made to 08e9d3391f .
2023-01-05 09:19:43 +01:00
Sarita Iyer
745d30252c
Update CONTRIBUTING.MD
2023-01-04 16:49:27 -05:00
Sarita Iyer
a62a8d9960
Update CONTRIBUTING.MD
2023-01-04 16:47:34 -05:00
Sarita Iyer
d859e1e9a3
add contributing info
2023-01-04 16:43:17 -05:00
Rasmus Lerchedahl Petersen
2e46919e10
java: nicer code as suggested by review
2023-01-04 19:50:29 +01:00
Geoffrey White
e45750a8ca
Merge branch 'main' into format
2023-01-04 18:00:59 +00:00
Robert Marsh
4aa62757a9
Merge pull request #11803 from jketema/gvn-deprecation
...
C++: Mark a number of private predicates in the GVN library as deprecated
2023-01-04 12:33:23 -05:00
Arthur Baars
799e0c1bcc
Ruby: use record_parse_error_for_node to report extractor error
2023-01-04 17:35:47 +01:00
Aditya Sharad
ed73875fac
Merge pull request #11747 from adityasharad/tutorial/library-pack
...
Tutorial: Move QL detective tutorial library into shared `codeql/tutorial` library pack
2023-01-04 08:24:53 -08:00
yoff
65fe9abcfe
Merge pull request #37 from erik-krogh/shared/inline-tests
...
inline Location into the shared implementation of InlineExpectationsTest
2023-01-04 17:08:23 +01:00
Jeroen Ketema
134fbb2128
Merge pull request #11805 from geoffw0/references
...
Swift: Add a reference for swift/hardcoded-key.
2023-01-04 16:39:24 +01:00
James Fletcher
60a5512ca2
Merge pull request #11813 from github/rc/3.8
...
Merge docs updates from rc/3.8 into main
2023-01-04 14:19:53 +00:00
James Fletcher
9ef0056c55
Merge pull request #11812 from github/codeql-cli-2.11.6
...
Merge docs updates from codeql-cli-2.11.6 into rc/3.8
2023-01-04 13:39:55 +00:00
James Fletcher
24552fb948
Merge branch 'rc/3.8' into codeql-cli-2.11.6
2023-01-04 12:06:27 +00:00
James Fletcher
a205818ba6
Merge pull request #11811 from jf205/codeql-cli-2.11.5-docs-mergeback
...
Merge docs updates from codeql-cli-2.11.5 -> codeql-cli-2.11.6
2023-01-04 11:57:51 +00:00
Geoffrey White
7ad8771b53
Merge remote-tracking branch 'upstream/main' into references
2023-01-04 10:55:24 +00:00
Henry Mercer
b96160f0f3
Merge pull request #11783 from github/henrymercer/specify-baseline-languages
...
Specify language names in extractor packs
2023-01-04 10:42:18 +00:00
james
2dc7da07bd
Merge remote-tracking branch 'upstream/codeql-cli-2.11.6' into codeql-cli-2.11.5-docs-mergeback
2023-01-04 10:40:41 +00:00
Chris Smowton
353573bf31
Merge pull request #11701 from owen-mc/go/count-fields-correctly
...
Go: Count fields correctly
2023-01-04 10:38:36 +00:00
Kasper Svendsen
9ad572fa29
Add inline_late pragma to QL language spec
2023-01-04 11:28:08 +01:00
James Fletcher
413b4c6eb0
Merge pull request #11554 from github/siaramist/codeql-template
...
Update intro tutorial to include Codespaces CodeQL template
2023-01-04 09:56:36 +00:00
Erik Krogh Kristensen
cedc9c0bff
Merge pull request #11582 from erik-krogh/heuristics
...
JS: Add experimental variants of common security queries with more sources
2023-01-04 10:46:19 +01:00
Harry Maclean
4d228bcddf
Ruby: Recognise more string-valued variables
...
This increases the sensitivity of our barrier guards.
2023-01-04 11:45:10 +13:00
Harry Maclean
9944252c43
Ruby: Add test for barrier guards
...
This demonstrates that we are missing a guard when a case branch
compares against a string-valued variable rather than a string literal.
2023-01-04 11:45:10 +13:00
Harry Maclean
698a679c78
Ruby: add test
2023-01-04 11:45:10 +13:00
Harry Maclean
0fbb6bf608
Ruby: Make array inclusion barrier more sensitive
2023-01-04 11:45:09 +13:00
Jami Cogswell
abe501c1af
Java: add change note
2023-01-03 17:15:50 -05:00
Aditya Sharad
9988c19a42
Merge branch 'main' into tutorial/library-pack
2023-01-03 14:08:37 -08:00
Jami Cogswell
5d92792e40
Java: update test case affected by Function.apply model
2023-01-03 16:14:08 -05:00
Jami Cogswell
feaae16f7c
Java: adjust comments
2023-01-03 16:08:14 -05:00
Ed Minnix
0be8648a9d
Add changenote
2023-01-03 15:55:53 -05:00
Ed Minnix
28f555c2b2
Add simple test case for @JavascriptInterface parameter flow
2023-01-03 15:31:40 -05:00
Ed Minnix
ab7ca1d642
Java: Add parameters of @JavascriptInterface methods as a remote flow sources
2023-01-03 15:31:40 -05:00
Ed Minnix
f9b8200009
Add stub for android.webkit.JavascriptInterface annoation
2023-01-03 15:31:40 -05:00
Edward Minnix III
69fd5e93bc
Merge pull request #28 from egregius313/egregisu313/webview-setAllowContentAccess-single-query
...
Merge `setAllowContentAccess` queries into singular query
2023-01-03 15:27:09 -05:00
Ed Minnix
81df89f93e
Use proper @id in changenote
2023-01-03 15:19:26 -05:00
Ed Minnix
28ad9d00fb
Merge both setAllowContentAccess queries into one query
...
Previously, the query to detect whether or not access to `content://`
links was done using two queries.
Now they can be merged into one query
2023-01-03 15:17:07 -05:00
Jami Cogswell
29221ae426
Java: add summary model for System.getProperty, adjust comments
2023-01-03 15:11:21 -05:00
Jami Cogswell
21a018e5c5
Java: add summary model and test for File.getName
2023-01-03 13:12:24 -05:00
Geoffrey White
e5a74cb29c
Swift: Add a reference for swift/hardcoded-key.
2023-01-03 17:27:31 +00:00
Chris Smowton
c5138674a4
Merge pull request #11800 from github/smowton/admin/delete-install-deps
...
Remove Go's install-deps.sh script
2023-01-03 17:16:15 +00:00
Geoffrey White
fc646a6d48
Swift: Update .expected following a toString change in main.
2023-01-03 16:25:14 +00:00
Geoffrey White
e05bb7fcee
Merge branch 'main' into format
2023-01-03 15:14:55 +00:00
Michael Nebel
17cd182d72
C#: Update stats based on projects.
2023-01-03 15:44:47 +01:00
Calum Grant
b3a3957dc9
Merge pull request #11741 from github/calumgrant/remove-lgtm
...
Remove references to LGTM in code
2023-01-03 14:23:38 +00:00
Michael Nebel
9d608a78a3
C#: Add change note on renamed query ids.
2023-01-03 15:18:22 +01:00
Michael Nebel
bfe5a0c438
C#: Rename query id's to be prefixed with cs instead of csharp.
2023-01-03 15:13:54 +01:00
Jeroen Ketema
5f4326f2bf
C++: Mark a number of private predicates in the GVN library as deprecated
...
This silences a number of warnings related to GVN deprecation.
2023-01-03 12:47:36 +01:00
Chris Smowton
781e96e2a0
Remove Go's install-deps.sh script
2023-01-03 10:45:06 +00:00
Calum Grant
ad55706527
Merge branch 'main' into calumgrant/remove-lgtm
2023-01-03 10:27:30 +00:00
Jeroen Ketema
dcd0be04c4
Merge pull request #11794 from sigfaulterror/main
...
Update annotations-in-java.rst
2023-01-02 17:13:14 +01:00
erik-krogh
3811eae679
simplify the qhelp for unsafe-code-construction
...
The `send()` example is not flagged by any current query, so it was weird talking about it as "vulnerable".
2023-01-02 13:33:56 +01:00
Arthur Baars
1092326699
Merge pull request #11796 from erik-krogh/fixBinding
...
Ruby: Fix compile error in test
2023-01-02 13:26:20 +01:00
sigfaulterror
1dd545ed99
Update annotations-in-java.rst
...
A typo in the SuppressWarnings's annotation value, it should be `deprecation` and not `deprecated`.
2023-01-02 13:24:17 +01:00
Erik Krogh Kristensen
79a2b6d0b0
use any() instead of this = this
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2023-01-02 10:49:54 +01:00
erik-krogh
99dc0a8356
fix binding
2023-01-02 10:30:28 +01:00
erik-krogh
3815a5a096
fix qhelp syntax
2023-01-02 10:19:05 +01:00
Ed Minnix
35de551f6b
Formatting
2022-12-31 17:19:49 -05:00
Ed Minnix
515fa21aad
Change notes
2022-12-31 17:18:37 -05:00
Ed Minnix
df1a4d2ed1
Documentation fix: Add state1 and state2 to documentation
2022-12-31 15:25:37 -05:00
Ed Minnix
68392aa8d8
Fix test expectations
2022-12-31 15:25:25 -05:00
Ed Minnix
02f70f3536
Add @security-severity tag
2022-12-31 15:00:28 -05:00
Edward Minnix III
1d345c6101
Refactoring and simplification
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-12-31 15:00:28 -05:00
Ed Minnix
9ef319f659
Java: setAllowContentAccess query tests
2022-12-31 15:00:28 -05:00
Ed Minnix
5265cb4b03
Merge two dataflow configurations into one taint tracking
2022-12-31 15:00:28 -05:00
Ed Minnix
973f649e76
Break dataflow into two steps in order to capture flow from WebView to settings call
2022-12-31 15:00:28 -05:00
Ed Minnix
0e15dd9fa9
Query metadata
2022-12-31 15:00:28 -05:00
Edward Minnix III
778749184b
Change id to use android/ instead of prepending android-
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-12-31 15:00:28 -05:00
Ed Minnix
da25c586e6
Dataflow query for detecting paths that disable content access
...
Since the default value is `true`, we need to determine whether or not
the `setAllowContentAccess` method is ever called using dataflow.
2022-12-31 15:00:28 -05:00
Ed Minnix
8a763015e6
Reduce precision rating to medium
...
This query won't always be a security problem, so it should have a lower
precision rating than `high`.
2022-12-31 15:00:28 -05:00
Ed Minnix
7cc53126f3
Java: WebView setAllowContentAccess query test cases
2022-12-31 15:00:28 -05:00
Ed Minnix
a023726c03
Java: add Android stubs to options file for CWE-200 tests
2022-12-31 15:00:28 -05:00
Ed Minnix
e4e13d38b7
Java: query for Android WebView setAllowContentAccess
2022-12-31 15:00:28 -05:00
Ed Minnix
e259ef5d1d
Java: Add class for android.webkit.WebSettings.setAllowContentAccess
2022-12-31 15:00:28 -05:00
Calum Grant
2d0f8798a4
Py: Reformat test
2022-12-28 11:05:48 +00:00
Harry Maclean
a6571a05ab
Ruby: Include send example in qhelp
2022-12-28 11:34:55 +13:00
Harry Maclean
d3812f5906
Ruby: Add another code injection example to qhelp
2022-12-28 11:20:56 +13:00
Harry Maclean
b70ca77afc
Merge pull request #10899 from hmac/flow-summary-docs
...
Ruby: Document flow summary syntax
2022-12-28 10:47:38 +13:00
Erik Krogh Kristensen
9c255b6c16
Merge pull request #11786 from erik-krogh/fix-nomagic-termination
...
QL: fix catastrophic join-order in `ql/cand-missing-nomagic`
2022-12-24 10:54:51 +01:00
erik-krogh
9e63390c78
fix that ql/cand-missing-nomagic had a catastrophic join-order
2022-12-23 21:20:30 +01:00
Tony Torralba
07d99bd643
Add path injection sinks
2022-12-23 17:16:06 +01:00
Tony Torralba
4215a89bc8
Add cleartext storage database sinks
2022-12-23 17:15:59 +01:00
Tony Torralba
ac39aeb6b6
Add SQLi sinks
2022-12-23 17:03:31 +01:00
Erik Krogh Kristensen
393a8c2bd8
Merge pull request #11630 from erik-krogh/useInstanceOf
...
QL4QL: enable medium precision queries, and make the "suggest instanceof" query louder
2022-12-23 14:22:23 +01:00
Henry Mercer
6be790929d
Specify language names in extractor packs
2022-12-23 13:15:04 +00:00
Jami Cogswell
939279af38
Java: add comments
2022-12-22 16:25:12 -05:00
Jami Cogswell
673d37cc3d
Java: update Math.min test case
2022-12-22 14:36:06 -05:00
Jami Cogswell
a81c54b58c
Java: updates to order alphabetically
2022-12-22 13:22:12 -05:00
Jami Cogswell
e6331dc2e6
Java: update test case affected by Long.parseLong summary model
2022-12-22 12:57:37 -05:00
Jami Cogswell
997219a280
Java: update test case affected by Class.isAssignableFrom neutral model
2022-12-22 12:54:02 -05:00
Jami Cogswell
6007827dd3
Java: update test cases
2022-12-22 12:29:57 -05:00
Mathias Vorreiter Pedersen
83d751b287
Merge pull request #11768 from MathiasVP/fix-implicit-reads-in-cleartext-sqlite-database
...
C++: Fix implicit reads on `cpp/cleartext-storage-database`
2022-12-22 13:47:10 +00:00
Mathias Vorreiter Pedersen
e86e3ec3ec
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-22 11:29:43 +00:00
Mathias Vorreiter Pedersen
98c30b8545
Merge pull request #11761 from MathiasVP/ir-for-microsoft-try-except-finally
...
C++: Generate IR for `__try __finally` and `__try __except`
2022-12-22 11:23:01 +00:00
Erik Krogh Kristensen
7201071084
Merge pull request #11777 from erik-krogh/use-new-cache
...
CI: use the new actions/cache@v3 instead of my own fork
2022-12-22 12:15:14 +01:00
Erik Krogh Kristensen
c4883925bb
Merge pull request #11519 from erik-krogh/equiv
...
QL: Mock the `QlBuiltins` module in QL-for-QL
2022-12-22 12:14:57 +01:00
Mathias Vorreiter Pedersen
e453c7a36e
C++: Accept test changes.
2022-12-22 10:57:54 +00:00
Mathias Vorreiter Pedersen
05cd2518a4
C++: Map more expressions to operand nodes.
2022-12-22 10:57:11 +00:00
Mathias Vorreiter Pedersen
b330b628e3
Merge pull request #11595 from d10c/swift/extract-mainactor
...
Swift: MethodRefExpr -> MethodLookupExpr
2022-12-22 10:22:33 +00:00
Tony Torralba
36ca97e4f6
Add exclusions to reduce FP
...
Predicate parameters that have a database type are excluded.
Also, uses of the exists variable in an agreggation or another quantifier are excluded.
2022-12-22 11:15:07 +01:00
erik-krogh
b3dd50bc36
inline Location into the shared implementation of InlineExpectationsTest
2022-12-22 11:09:43 +01:00
Mathias Vorreiter Pedersen
a974cb1861
C++: Add another test with an _actual_ throw.
2022-12-22 10:01:41 +00:00
Mathias Vorreiter Pedersen
5fa968138c
C++: Add another test case with a throw.
2022-12-22 09:38:57 +00:00
Rasmus Lerchedahl Petersen
08e9d3391f
swift: use shared inline tests
...
- add util shared pack to swift
- remove from identical-files
2022-12-22 10:20:07 +01:00
Rasmus Lerchedahl Petersen
b0d7998342
go: use shared inline tests
...
- remove from identical-files
2022-12-22 10:20:07 +01:00
Rasmus Lerchedahl Petersen
f28eb6bf31
ql4ql: use shared inline tests
...
- add util shared pack to ql
- remove from identical-files
2022-12-22 10:20:07 +01:00
Rasmus Lerchedahl Petersen
0d6c643d77
ruby: use shared inline tests
...
- remove from identical-files
2022-12-22 10:20:07 +01:00
Rasmus Lerchedahl Petersen
4667068017
java: use shared inline tests
...
- remove from identical-files
2022-12-22 10:20:06 +01:00
Rasmus Lerchedahl Petersen
a9b232bff4
csharp: use shared inline tests
...
- remove from identical-files
2022-12-22 10:20:06 +01:00
Rasmus Lerchedahl Petersen
d97e185994
cpp: use shared inline tests
...
- remove from identical-files
2022-12-22 10:20:06 +01:00
Rasmus Lerchedahl Petersen
e8d3802ee5
Python: use shared inline tests
...
- remove from identical-files
2022-12-22 10:20:05 +01:00
Rasmus Lerchedahl Petersen
b767dcfd18
shared: Add shared inline expectation test library
2022-12-22 10:20:05 +01:00
Jami Cogswell
de5965525f
Java: add initial test cases for summary models
2022-12-21 16:19:37 -05:00
erik-krogh
38bd4d9b12
update expected output to have more copies of "T"
2022-12-21 21:45:59 +01:00
erik-krogh
dbdc7275fc
have unique parents, also for mock AST nodes
2022-12-21 21:38:52 +01:00
erik-krogh
5728e3ee8f
Merge branch 'main' into equiv
2022-12-21 21:28:32 +01:00
erik-krogh
b4dddc07f1
use the new actions/cache@v3 instead of my own fork
2022-12-21 21:10:55 +01:00
Jami Cogswell
c251da799f
Java: update TopJdkApis test
2022-12-21 13:19:09 -05:00
Jami Cogswell
16de30e07e
Java: add java.util.stream models
2022-12-21 13:05:23 -05:00
Jami Cogswell
1db829e55c
Java: add java.util models
2022-12-21 13:03:57 -05:00
Jami Cogswell
573de92441
Java: add java.util.function models
2022-12-21 12:59:58 -05:00
Jami Cogswell
a8c55ee4b7
Java: add java.util.concurrent models
2022-12-21 12:59:00 -05:00
Jami Cogswell
db0d24fdd1
Java: add java.util.concurrent.atomic models
2022-12-21 12:57:22 -05:00
Jami Cogswell
cfe075ef54
Java: add java.time models
2022-12-21 12:54:35 -05:00
Jami Cogswell
8e20aeb314
Java: add java.text models
2022-12-21 12:51:44 -05:00
Jami Cogswell
b9ce588076
Java: add java.sql models
2022-12-21 12:49:29 -05:00
Jami Cogswell
1544f49f91
Java: add java.math models
2022-12-21 12:47:32 -05:00
Jami Cogswell
ed534b06d5
Java: add java.lang models
2022-12-21 12:45:12 -05:00
Jami Cogswell
99ddd484be
Java: add java.io models
2022-12-21 12:34:26 -05:00
Edward Minnix III
b77923f6e6
Merge pull request #11767 from atorralba/atorralba/java/fix-pinning-tests
...
Java: Small simplification in Missing Certificate Pinning tests
2022-12-21 11:21:47 -05:00
Edward Minnix III
597523e65a
Merge pull request #11766 from atorralba/atorralba/java/fix-android-query-id
...
Java: Fix new Android queries' IDs
2022-12-21 11:21:12 -05:00
Tony Torralba
7d0018c897
Update ql/ql/src/queries/style/OmittableExists.ql
2022-12-21 17:16:34 +01:00
Tony Torralba
ac0c42c5c6
Apply suggestions from code review
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-12-21 16:16:58 +01:00
Mathias Vorreiter Pedersen
bbf0ec81ab
C++: Fix implicit this.
2022-12-21 14:41:51 +00:00
Mathias Vorreiter Pedersen
ff6e8a285d
C++: Model semantics of '__except' condition in IR.
2022-12-21 14:08:26 +00:00
Mathias Vorreiter Pedersen
e6a03a6152
C++: Fix exception handling for '__try __except'.
2022-12-21 14:08:26 +00:00
Arthur Baars
ebfc6eba95
Merge pull request #11773 from aibaars/alert-suppression-swift
...
Swift: add AlertSuppression.ql
2022-12-21 14:32:10 +01:00
Arthur Baars
7111d950c1
Swift: add AlertSuppression.ql
2022-12-21 13:15:26 +01:00
Arthur Baars
dceb142551
Merge pull request #11771 from aibaars/alert-suppression-fix-test
...
AlertSuppression: fix python test cases
2022-12-21 13:14:59 +01:00
Henry Mercer
ea6a01a9ea
Merge pull request #11765 from github/dependabot/github_actions/actions/stale-7
...
Bump actions/stale from 6 to 7
2022-12-21 11:43:46 +00:00
Tony Torralba
227e099854
Apply code review suggestions
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-12-21 12:40:29 +01:00
Tony Torralba
aa1d49cb95
Add OmittableExists QL-for-QL query
2022-12-21 12:26:58 +01:00
Arthur Baars
2f16d8d86a
AlertSuppression: fix python test cases
2022-12-21 11:26:16 +01:00
Arthur Baars
98c5b81456
Merge pull request #11723 from aibaars/alert-suppression
...
CodeQL alert suppression
2022-12-21 10:59:57 +01:00
Mathias Vorreiter Pedersen
273af3cbf1
C++: Fix 'allowImplicitRead' override in 'cpp/cleartext-storage-database'.
2022-12-21 09:43:00 +00:00
Arthur Baars
035ad65e43
AlertSuppression: move library into util folder
2022-12-21 10:39:57 +01:00
yoff
4480262bd1
Merge pull request #11244 from github/python/support-grouped-exceptions
...
Python: support grouped exceptions
2022-12-21 10:10:37 +01:00
Tony Torralba
ab73d13d8b
Small simplification
2022-12-21 09:58:13 +01:00
Tony Torralba
345c383acc
Fix new Android queries' IDs
2022-12-21 09:36:57 +01:00
Tony Torralba
690dd47990
Merge pull request #11764 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-12-21 09:30:29 +01:00
Nora Dimitrijević
aaadf198ab
Swift: fix 'ql/redundant-import'
2022-12-20 23:32:38 -05:00
Nora Dimitrijević
fbb14797b1
Merge branch 'main' into swift/extract-mainactor
2022-12-20 23:20:37 -05:00
Nora Dimitrijević
101f42ab3d
Revert "Swift: silence QL-for-QL "Redundant override" FP"
...
This reverts commit 56a72d7c37 .
2022-12-20 23:17:45 -05:00
Nora Dimitrijević
f3ebb6e03b
Swift: MethodLookupExpr.getMethodRef() [codegen'd]
...
This refactors SelfApplyExpr.getFunction() as MethodLookupExpr().getMethodRef().
This is simpler, because we are not hiding DeclRefExprs or reinventing hidden AST resolution.
2022-12-20 23:09:02 -05:00
Nora Dimitrijević
4900e4030a
Swift: MethodLookupExpr.getMethodRef() [hand-written]
...
This refactors SelfApplyExpr.getFunction() as MethodLookupExpr().getMethodRef().
This is simpler, because we are not hiding DeclRefExprs or reinventing hidden AST resolution.
2022-12-20 23:08:32 -05:00
dependabot[bot]
a5bb13f2b6
Bump actions/stale from 6 to 7
...
Bumps [actions/stale](https://github.com/actions/stale ) from 6 to 7.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-21 03:12:32 +00:00
github-actions[bot]
eb98bb2842
Add changed framework coverage reports
2022-12-21 00:15:01 +00:00
Owen Mansel-Chan
3eb419eb1a
Give context for code examples
2022-12-20 22:20:13 +00:00
Aditya Sharad
d2ee8c08c0
Ruby: Add shared tutorial pack to testing bundle
2022-12-20 10:56:05 -08:00
Mathias Vorreiter Pedersen
f0ba33ae74
C++: Accept test changes.
2022-12-20 18:19:18 +00:00
Erik Krogh Kristensen
a1639c438f
Merge pull request #11762 from erik-krogh/fixParent
...
QL: fix `getAnnotation()` for new-type branches with parameters
2022-12-20 18:18:39 +01:00
erik-krogh
ab9855e196
fix getAnnotation() for new-type branches with parameters
2022-12-20 15:55:54 +01:00
Paolo Tranquilli
454af0d721
Swift: fix locking of output swiftmodule trap
2022-12-20 15:34:18 +01:00
Paolo Tranquilli
a1161c6efe
Swift: remove header patch which is not needed any more
2022-12-20 15:28:52 +01:00
Paolo Tranquilli
725861626c
Merge branch 'main' into redsun82/swift-open-redirection
2022-12-20 15:28:30 +01:00
Jami
c9258effb6
Merge pull request #11572 from jcogs33/jcogs33/model-top-jdk-apis
...
Java: model top 100 JDK APIs
2022-12-20 09:13:53 -05:00
Mathias Vorreiter Pedersen
07ab119b8c
C++: Add explicit qualifiers.
2022-12-20 13:38:50 +00:00
Mathias Vorreiter Pedersen
d2964a7d4a
C++: Also handle '__finally' blocks.
2022-12-20 13:28:33 +00:00
Mathias Vorreiter Pedersen
3c8efa88e0
C++: Handle Microsoft '__try __except' in the existing 'TryStmt' IR logic.
2022-12-20 13:28:28 +00:00
Mathias Vorreiter Pedersen
cd6e421cf5
C++: Add a test with '__try __except' and '__try __finally' in the 'ir' test directory.
2022-12-20 13:28:22 +00:00
Tony Torralba
30aa9b230c
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-12-20 14:14:05 +01:00
erik-krogh
57f429ec5d
change this = this to any()
2022-12-20 13:56:25 +01:00
Erik Krogh Kristensen
0cc3232c10
fix typo
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-12-20 13:56:25 +01:00
erik-krogh
0a828f7b31
fix the left()/right() predicates such that they return an Either
2022-12-20 13:56:25 +01:00
erik-krogh
b1001d1a10
make TypeWithToString private inside the shared pack
2022-12-20 13:56:25 +01:00
erik-krogh
0e426090f2
update expected output
2022-12-20 13:56:23 +01:00
Jami
dc0bad3dc5
update change note
...
Co-authored-by: yo-h <55373593+yo-h@users.noreply.github.com >
2022-12-20 07:55:58 -05:00
erik-krogh
605bfd6e93
move the "I don't care about parent relation on mocks" hack into the predicate, so the tests dont fail
2022-12-20 13:55:49 +01:00
erik-krogh
54072d29f1
add explicit this
2022-12-20 13:55:49 +01:00
erik-krogh
49277f553f
model the last parts of the EquivalenceRelation module
2022-12-20 13:55:49 +01:00
erik-krogh
a11e618cfc
mock parameters
2022-12-20 13:55:49 +01:00
erik-krogh
4feb48ce5f
classless predicate, used to model the edgeSig predicate
2022-12-20 13:55:49 +01:00
erik-krogh
4dc52379ad
add a mock TypeExpr, and use it
2022-12-20 13:55:49 +01:00
erik-krogh
5db2f0aba0
mock classes, and add a Mock T class to QlBuiltins
2022-12-20 13:55:49 +01:00
erik-krogh
b7e0d1f8b3
don't include mock Ast nodes in PrintAst.ql
2022-12-20 13:55:49 +01:00
erik-krogh
51d5e881de
add an Ast mocking library, and use it to create mocks of the QlBuiltins and EquivalenceRelation modules
2022-12-20 13:55:48 +01:00
erik-krogh
0ca38faa4d
add test of buildins
2022-12-20 13:54:38 +01:00
erik-krogh
236e6db996
fix typos
2022-12-20 13:54:02 +01:00
erik-krogh
50a91b5017
shared: add a shared Either type
2022-12-20 13:54:02 +01:00
Erik Krogh Kristensen
073e9bc52f
Merge pull request #11173 from erik-krogh/notDead
...
QL: improve the dead-code query
2022-12-20 13:36:58 +01:00
Erik Krogh Kristensen
b1e6a86a4b
Merge pull request #11757 from erik-krogh/treesitter-qldoc
...
QL/RB: make top TreeSitter.qll comment into a qldoc
2022-12-20 13:36:31 +01:00
Rasmus Lerchedahl Petersen
f5e33ac00a
Merge remote-tracking branch 'origin/main' into python/support-grouped-exceptions
2022-12-20 13:31:50 +01:00
Erik Krogh Kristensen
b5b0a64081
Merge pull request #11751 from jacola/main
...
Fix javascript syntax
2022-12-20 13:02:23 +01:00
Rasmus Lerchedahl Petersen
ad6ed2f629
python: update expectations
...
extra tests
2022-12-20 13:01:27 +01:00
Erik Krogh Kristensen
6be223ad6d
Merge pull request #11756 from aibaars/fix-ql-module-parameter
...
QL: fix visibility of module parameters
2022-12-20 12:59:07 +01:00
erik-krogh
2ff23a6fc0
make top TreeSitter.qll comment into a qldoc
2022-12-20 11:39:06 +01:00
Jeroen Ketema
0addae81cd
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-20 11:34:41 +01:00
Arthur Baars
c8255770bc
QL: fix visibility of module parameters
2022-12-20 11:22:20 +01:00
Tony Torralba
149cae9603
Merge pull request #10971 from joefarebrother/android-certificate-pinning
...
Java: Add Android missing certificate pinning query (CWE-295)
2022-12-20 11:03:16 +01:00
Arthur Baars
bad5c65144
Add test
2022-12-20 10:37:57 +01:00
Mathias Vorreiter Pedersen
cbe330eb7b
Merge pull request #11693 from jketema/argv-param-flowsource
...
C++: Define the `argv` flow source in terms the input parameter
2022-12-20 09:30:19 +00:00
Tony Torralba
3e7a819fe7
Simplification
2022-12-20 09:42:25 +01:00
Jeroen Ketema
edc768b43b
Merge pull request #11707 from smowton/smowton/fix/java-empty-multiline-comment
...
Java: handle printing an empty comment (/**/); add relevant tests
2022-12-20 08:07:42 +01:00
Jacques
b99c500435
Fix associated test
2022-12-20 12:51:13 +09:00
Jacques
97b8126385
Fix javascript
2022-12-20 12:45:59 +09:00
Sid Shankar
52cafdf25f
Merge pull request #11745 from github/sidshank/remove-lgtm-for-go
2022-12-19 21:49:02 -05:00
Aditya Sharad
bcd711a708
Tutorial: Add separate QLDoc for Person class
...
By moving the existing doc comment to the top level,
that comment is shown when a user hovers over the module name
in `import tutorial`.
2022-12-19 15:54:12 -08:00
Aditya Sharad
ed29b3e4d6
Shared packs: Depend on codeql/tutorial from all language libraries
...
This allows `import tutorial` from queries targeting
any language, just like before, while removing the
duplicate copies of `tutorial.qll`.
2022-12-19 15:52:11 -08:00
Aditya Sharad
d772998bc7
Shared packs: Create codeql/tutorial library pack
...
This contains the QL detective tutorial library
in `tutorial.qll`, so that it can be shared by
all language libraries and referenced on its own.
2022-12-19 15:52:11 -08:00
Nora Dimitrijević
1c64bf4bbc
Swift: remove superfluous newline
2022-12-19 18:00:20 -05:00
Nora Dimitrijević
55c6e565f7
Swift: PrintAst.qll nodes() ordering fix not needed
...
No-double-parents should be sufficient for a stable top-level ordering.
2022-12-19 17:52:20 -05:00
Nora Dimitrijević
8b0da01e0d
Swift: allow self./super. sinks in StaticInitializationVector
...
Assumption: the extra path is not an issue in practice as the body of
the cryptographic library's init methods are not normally extracted,
only the stubs in this test are.
2022-12-19 17:39:44 -05:00
Nora Dimitrijević
3da54ebc61
Swift: give a clearer name to {Self,Super}RefExpr.getMethodDecl
2022-12-19 17:33:13 -05:00
Nora Dimitrijević
56a72d7c37
Swift: silence QL-for-QL "Redundant override" FP
2022-12-19 16:45:31 -05:00
Sid Shankar
ae3e25786f
Remove LGTM references from README.md + cleanup
2022-12-19 20:51:01 +00:00
Sid Shankar
35000e5d7e
Remove LGTM reference from CONTRIBUTING.md
2022-12-19 20:12:23 +00:00
Jami Cogswell
19deb59d07
Java: sort neutral models alphabetically
2022-12-19 14:22:17 -05:00
Calum Grant
cfd79e2006
Py: Put in commented-out test and update expected
2022-12-19 17:29:48 +00:00
Calum Grant
e982e144a4
JS: Update qltest output
2022-12-19 17:22:51 +00:00
Tony Torralba
a47ef17a0d
Update java/ql/src/Security/CWE/CWE-295/AndroidMissingCertificatePinning1.java
...
Co-authored-by: Edward Minnix III <egregius313@github.com >
2022-12-19 18:11:54 +01:00
Chris Smowton
ebc0b0c4d6
Merge pull request #11665 from smowton/smowton/admin/revert-kotlin-default-method-type-erasure
...
Kotlin: Revert type erasure within $default functions
2022-12-19 16:33:20 +00:00
Edward Minnix III
39a7c7bb12
Merge pull request #11282 from egregius313/egregiu313/webview-addjavascriptinterface
...
Java: Query for detecting addJavascriptInterface method calls
2022-12-19 11:28:45 -05:00
Tony Torralba
624c9ff834
Update java/ql/src/Security/CWE/CWE-295/AndroidMissingCertificatePinning1.java
2022-12-19 17:26:41 +01:00
Arthur Baars
a8be5d7274
AlertSuppression: add change notes
2022-12-19 17:02:52 +01:00
Arthur Baars
0f313231bc
AlertSuppression: add more tests
2022-12-19 16:43:11 +01:00
Jeroen Ketema
0c710479ec
C++: Update experimental test changes
2022-12-19 16:35:24 +01:00
Tony Torralba
0c6ace350f
Update java/ql/src/Security/CWE/CWE-295/AndroidMissingCertificatePinning.ql
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2022-12-19 16:24:39 +01:00
Calum Grant
0894059d33
Ruby: Remove reference to LGTM
2022-12-19 15:15:43 +00:00
Calum Grant
a1d229e445
Python: Remove references to LGTM
2022-12-19 15:15:32 +00:00
Calum Grant
4a37c01c5f
JavaScript: Remove references to LGTM
2022-12-19 15:15:17 +00:00
Arthur Baars
c9739b21cb
AlertSuppression: add support for //codeql comments
2022-12-19 16:10:28 +01:00
Arthur Baars
c176606be5
AlertSuppression: allow //lgtm comments to scope over the next line
2022-12-19 16:10:26 +01:00
Arthur Baars
016c7a8ca7
Merge pull request #11719 from aibaars/alert-suppression-shared
...
Shared AlertSuppression library
2022-12-19 16:04:44 +01:00
Henning Makholm
ca1c46331a
Merge pull request #11731 from github/hmakholm/pr/no-option
...
remove com.semmle.util.data.Option from from extractor code interface II
2022-12-19 15:36:51 +01:00
Erik Krogh Kristensen
f136651384
Merge pull request #11575 from erik-krogh/kernelLoad
...
Rb: add Kernel methods as sinks to path-injection
2022-12-19 15:09:21 +01:00
Jami Cogswell
a8ee633acd
Java: apply review suggestions
2022-12-19 09:09:01 -05:00
James Fletcher
55a04e7ff8
Merge pull request #11736 from github/jf205-patch-1
...
Update query-classification-and-display.md
2022-12-19 14:00:21 +00:00
Jami Cogswell
f37f0a09aa
Java: update change note
2022-12-19 08:41:56 -05:00
Jami Cogswell
42ddd66360
Java: add hasApiName predicate
2022-12-19 08:38:12 -05:00
erik-krogh
66be8cda06
remove more of the implementation into ConditionalBypassQuery.qll
2022-12-19 14:37:19 +01:00
Arthur Baars
8be882f815
Update javascript/ql/src/AlertSuppression.ql
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-12-19 14:35:16 +01:00
erik-krogh
d0af30b40a
cleanup the implementation of toString() for `SuperCall
2022-12-19 14:28:01 +01:00
James Fletcher
23047d8246
Delete query-classification-and-display.md
2022-12-19 13:24:52 +00:00
James Fletcher
af5de55d1f
Merge pull request #11737 from github/jf205-patch-2
...
Update supported-queries.md
2022-12-19 13:22:10 +00:00
Arthur Baars
682bf6d3a7
Apply suggestions from code review
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-12-19 14:16:05 +01:00
Chris Smowton
2ca56e0c1e
Java: handle printing an empty comment (/**/); add relevant tests
2022-12-19 14:12:09 +01:00
James Fletcher
75b63bbb0e
Update supported-queries.md
...
Removes mentions of LGTM.
2022-12-19 13:11:31 +00:00
Jeroen Ketema
949b61c635
Merge pull request #11729 from MathiasVP/fix-cleartext-sqlite-database
...
C++: Prepare `cpp/cleartext-storage-database` for use-use flow
2022-12-19 14:01:34 +01:00
James Fletcher
af60851233
Update query-classification-and-display.md
...
Removes the section about queries run on LGTM.com.
2022-12-19 12:52:32 +00:00
Jeroen Ketema
edd29f4b0e
C++: Add change note
2022-12-19 13:50:50 +01:00
yoff
5f0cde5be7
Merge branch 'main' into python/support-grouped-exceptions
2022-12-19 13:38:25 +01:00
yoff
d4eb2b964c
Merge pull request #11699 from erik-krogh/shareHost
...
Dynamic: Share more regexp code
2022-12-19 13:29:53 +01:00
Jeroen Ketema
ed33b905a6
C++: Simplify cpp/path-injection now argv sources are parameters
2022-12-19 12:54:16 +01:00
Jeroen Ketema
7549915773
C++: Accept test changes
2022-12-19 12:52:35 +01:00
Arthur Baars
06736e3e91
Add .gitattributes for Windows test files
2022-12-19 12:39:01 +01:00
Arthur Baars
f68e18cd9c
Python: move AlertSuppression.ql
2022-12-19 12:39:01 +01:00
Arthur Baars
acb5d6e163
Python: use shared AlertSuppression.qll
2022-12-19 12:26:12 +01:00
Arthur Baars
621a108846
Ruby: use shared AlertSuppression.qll
2022-12-19 12:26:06 +01:00
Arthur Baars
453045e276
C#: use shared AlertSuppression.qll
2022-12-19 12:25:50 +01:00
Arthur Baars
ad80822a52
C/C++: use shared AlertSuppression.qll
2022-12-19 12:25:46 +01:00
Arthur Baars
b0e8085765
Go: use shared AlertSuppression.qll
2022-12-19 12:25:21 +01:00
Arthur Baars
23f595bea1
JavaScript: use shared AlertSuppression.qll
2022-12-19 12:25:17 +01:00
Jeroen Ketema
a73bd050f7
C++: Define the argv flow source in terms the input parameter
2022-12-19 12:13:39 +01:00
Jeroen Ketema
2705aebbbc
C++: Restrict CWE-119 semmle tests to have a single main function
2022-12-19 12:13:37 +01:00
Tony Torralba
484a16ce1b
Update java/ql/src/Security/CWE/CWE-295/AndroidMissingCertificatePinning.ql
2022-12-19 12:10:32 +01:00
Arthur Baars
bc646d407e
Java: use shared AlertSuppression.qll
2022-12-19 12:07:28 +01:00
Arthur Baars
072a180093
Util: add AlertSuppression.qll
2022-12-19 12:06:36 +01:00
erik-krogh
442749bb7f
JS: add heuristic variants of queries that use RemoteFlowSource
2022-12-19 12:01:22 +01:00
Tony Torralba
a880fecc8b
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2022-12-19 11:56:36 +01:00
Jeroen Ketema
88a1eead03
Merge pull request #11724 from MathiasVP/clear-text-transmission-dont-track-indirection
...
C++: Use `asExpr` in `cpp/cleartext-transmission`
2022-12-19 11:31:06 +01:00
erik-krogh
2f84b21c7f
QL: add getQueryName to QueryDoc
2022-12-19 11:29:20 +01:00
erik-krogh
6c8b1cf4be
changes based on Python review
2022-12-19 11:20:31 +01:00
Jean Helie
31f7702a04
Merge pull request #11726 from github/jhelie/fix-endpoint-large-scale-script
...
ATM: fix script updating endpoint large scale test data
2022-12-19 10:55:30 +01:00
Michael Nebel
0661627248
Merge pull request #11733 from michaelnebel/csharp/updatestats
...
C#: Add dummy type sizes for the list pattern expressions kinds.
2022-12-19 10:51:06 +01:00
erik-krogh
db49cfb723
Merge branch 'main' into kernelLoad
2022-12-19 09:46:25 +01:00
Erik Krogh Kristensen
08240e2d65
Merge pull request #11661 from erik-krogh/even-faster-atm-ci
...
ATM: speedup the "ATM - Check query suite" CI job
2022-12-19 09:14:07 +01:00
Michael Nebel
b9f668b320
C#: Add dummy type sizes for the list pattern expressions kinds.
2022-12-19 09:10:35 +01:00
Jami Cogswell
f933fc75cd
Java: update another test affected by Integer.parseInt, and one affected by String.length
2022-12-18 21:46:43 -05:00
Jami Cogswell
f3fc68352e
Java: update tests affected by Integer.parseInt model
2022-12-18 19:43:32 -05:00
erik-krogh
35e8d6afd4
move getACommonTld into a utility module without parameters
2022-12-18 17:23:45 +01:00
erik-krogh
ba7321ac5c
add qldoc to RegExpCharEscape
2022-12-18 17:23:45 +01:00
erik-krogh
26c5480ee6
share {js,rb}/regex/missing-regexp-anchor
2022-12-18 17:23:41 +01:00
turbo
d1d4163b79
Exclude cpp/wrong-use-of-the-umask
2022-12-18 15:55:04 +01:00
turbo
b7c33734b1
Merge remote-tracking branch 'origin/turbo/experimental/combined' into turbo/experimental/combined
2022-12-18 15:44:53 +01:00
turbo
1e5426fca2
Create security-experimental suite helper and all language suite implementations
2022-12-18 15:44:08 +01:00
ihsinme
a2836dc72a
Update test.cpp
2022-12-18 00:38:32 +03:00
ihsinme
945cdef18d
Update DivideByZeroUsingReturnValue.expected
2022-12-18 00:35:28 +03:00
ihsinme
c790b0fed6
Update DivideByZeroUsingReturnValue.ql
2022-12-18 00:34:14 +03:00
erik-krogh
355499ea52
move getACommonTld to the shared pack
2022-12-17 17:26:18 +01:00
erik-krogh
f67d0bc8c0
put the shared HostnameRegexp code in the shared regex pack
2022-12-17 17:26:18 +01:00
Jami Cogswell
1d916a2baa
Java: clean up
2022-12-16 16:16:56 -05:00
Jami Cogswell
0c22d68a65
Java: update extensible predicate names
2022-12-16 15:40:14 -05:00
Jami
ff652f7dee
Merge branch 'main' into jcogs33/model-top-jdk-apis
2022-12-16 15:32:50 -05:00
Jami Cogswell
9762423fbc
Java: add more test cases
2022-12-16 15:26:54 -05:00
Robert Marsh
df7a4ac093
Merge pull request #11722 from MathiasVP/make-buffer.qll-unique-again
...
C++: Use `unique` in `getBufferSize`
2022-12-16 15:00:18 -05:00
Henning Makholm
3e85e9f7d9
remove com.semmle.util.data.Option from from extractor code interface II
...
com.semmle.util.data.Option is going away. Switch the single
cross-repo call that mentions it to use the new Option-less overload
that was introduced in semmle-code PR 44626.
2022-12-16 19:03:20 +01:00
Henry Mercer
30451ee950
Merge pull request #11681 from github/henrymercer/mergeback-3.8
...
Merge `rc/3.8` back to `main`
2022-12-16 17:43:12 +00:00
Mathias Vorreiter Pedersen
1d80e94bb4
C++: Prepare 'CleartextSqliteDatabase.ql' for use-use flow.
2022-12-16 17:10:10 +00:00
Mathias Vorreiter Pedersen
c09ed10d33
Merge pull request #11727 from MathiasVP/fix-crement-and-assign-op-dataflow-mappings
...
C++: Fix `DataFlow <-> Expr` mappings for `CrementOperation` and `AssignOperation`
2022-12-16 17:05:13 +00:00
Mathias Vorreiter Pedersen
33649ed7d3
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-16 17:02:06 +00:00
Jami Cogswell
83630842b6
Java: add change note
2022-12-16 11:49:52 -05:00
Mathias Vorreiter Pedersen
a7aa1a7d8b
C++: Accept more test changes
2022-12-16 16:04:35 +00:00
Robert Marsh
eddc2f3038
Merge pull request #11694 from MathiasVP/iterator-use-use-flow-using-ir-ssa
...
C++: Iterator flow for IR-based use-use flow (second attempt)
2022-12-16 10:51:19 -05:00
Tom Hvitved
e629568eda
Merge pull request #11720 from hvitved/ruby/call-sensitive-initialize-bug-fix
...
Ruby: Fix bug in call-sensitivity logic for `initialize` calls
2022-12-16 16:36:31 +01:00
Jami Cogswell
c0628035fa
Java: reduce code duplication
2022-12-16 10:28:34 -05:00
Owen Mansel-Chan
003edeab80
Merge pull request #11706 from owen-mc/fix/go-callback-type-stubs-2
...
Go: Use any() to stub getCallbackParameter/ReturnType and getSyntheticGlobalType
2022-12-16 14:43:35 +00:00
Jean Helie
938a7e828c
update tests
2022-12-16 15:31:43 +01:00
Jeroen Ketema
32800bca96
Merge pull request #11680 from jketema/predefined-typedef-for-float
...
C++: Update tests after frontend changes
2022-12-16 15:21:58 +01:00
Mathias Vorreiter Pedersen
45f69be94c
C++: Accept test changes
2022-12-16 14:14:58 +00:00
Mathias Vorreiter Pedersen
df526552a6
C++: Fix mapping between dataflow nodes and '{Crement, Assign}Operations'.
2022-12-16 14:14:48 +00:00
Michael Nebel
e9d27540c8
Merge pull request #11686 from michaelnebel/csharp/refactorforeach
...
C#: Re-factor and use `ForEach`.
2022-12-16 14:59:58 +01:00
Jami Cogswell
640b450c47
Java: add message column to qltest
2022-12-16 08:51:18 -05:00
Tom Hvitved
5fba5e4895
Merge pull request #11718 from hvitved/ruby/self-allocate
...
Ruby: Recognize custom `self.new` methods that return `self.allocate`
2022-12-16 14:46:08 +01:00
Jami Cogswell
bf6148c477
Java: fix bot alert, remove metadata from qltest
2022-12-16 08:44:23 -05:00
Mathias Vorreiter Pedersen
2de2887ebb
C++: Accept test changes
2022-12-16 13:27:08 +00:00
Mathias Vorreiter Pedersen
4ace171447
C++: Don't track indirection expressions in 'cpp/cleartext-transmission'. Instead, just track the direct expression.
2022-12-16 13:26:53 +00:00
Jean Helie
cd0220b248
update autogenerated data for endpoint_large_scale
2022-12-16 14:03:01 +01:00
Jean Helie
904a4bd48b
fix script updating endpoint_large_scale test data
2022-12-16 14:03:00 +01:00
Mathias Vorreiter Pedersen
81de93da2d
C++: Accept test changes
2022-12-16 12:58:53 +00:00
Mathias Vorreiter Pedersen
c06f7259cf
C++: Make the 'getBufferSize' a lot more like the pre-use-use flow implementation.
2022-12-16 12:58:45 +00:00
Rasmus Lerchedahl Petersen
96ae148118
python: also override `getAHandler
...
(to get new result type)
2022-12-16 13:40:10 +01:00
Rasmus Lerchedahl Petersen
d216460032
python: unnecessary abstract class
...
It is enough to make the predicates abstract,
so the whole -`Impl`-construction was unnecessary.
2022-12-16 12:43:41 +01:00
Geoffrey White
640f894b00
Merge branch 'main' into format
2022-12-16 11:42:03 +00:00
Rasmus Lerchedahl Petersen
5094897668
python: unify change notes with fixes
2022-12-16 12:37:25 +01:00
Tom Hvitved
bfc257147c
Ruby: Fix bug in call-sensitivity logic for initialize calls
2022-12-16 11:17:15 +01:00
Michael Nebel
b2856c1f5a
Merge pull request #11705 from michaelnebel/dataextensiontests
...
C#/Java: Migrate tests to use implicitly loaded extensions.
2022-12-16 10:50:07 +01:00
Tony Torralba
46ea067449
Add bidirectional import in ExternalFlow.qll
2022-12-16 09:59:48 +01:00
Tom Hvitved
e45edcc159
Merge pull request #11674 from hvitved/dataflow/param-context
...
Data flow: Track callable in flow-through pruning
2022-12-16 09:25:15 +01:00
Tom Hvitved
accf4ca364
Ruby: Recognize custom self.new methods that return self.allocate
2022-12-16 09:23:36 +01:00
Tom Hvitved
b64083d08e
Ruby: Add more call graph tests
2022-12-16 09:21:00 +01:00
Michael Nebel
390b8afb8a
C#: Re-factor to use ForEach.
2022-12-16 08:24:09 +01:00
Michael Nebel
0230b8b56f
C#: Minor cleanup in the Pattern files.
2022-12-16 08:24:09 +01:00
yoff
4ddb503f61
Update python/ql/lib/change-notes/2022-11-14-grouped-exceptions-breaking.md
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswl@github.com >
2022-12-16 08:21:29 +01:00
Michael Nebel
89fcc17182
Merge pull request #11594 from michaelnebel/csharp/listpattern
...
C#: Support List and Slice patterns.
2022-12-16 08:21:07 +01:00
Jami Cogswell
fdcaa93200
Java: update test case
2022-12-15 23:47:17 -05:00
Jami Cogswell
f01ee9e4c2
Java: remove PR-merging comment
2022-12-15 22:56:15 -05:00
Jami Cogswell
08546549bf
Java: update exception models and add test
2022-12-15 22:53:14 -05:00
Jami
fd63348549
Merge pull request #11585 from jcogs33/jcogs33/mad-metrics-query
...
Java: add MaD metrics query
2022-12-15 19:26:51 -05:00
Sim4n6
4376870a51
An uploded file is considered a source
2022-12-15 23:39:02 +01:00
Nora Dimitrijević
938f724602
Swift: fix db upgrade/downgrade script after pull
2022-12-15 16:37:52 -05:00
Jami Cogswell
96a0950048
Java: update test case
2022-12-15 15:49:53 -05:00
Jami Cogswell
c33bc63aed
Java: remove extraneous parentheses
2022-12-15 15:26:04 -05:00
Jami Cogswell
cfeedb5cb4
Java: add float cast
2022-12-15 15:23:28 -05:00
Jami Cogswell
b68a9a51e2
Java: add coverage, generatedCoverage, and manualCoverage metrics
2022-12-15 15:20:08 -05:00
Jami Cogswell
9d10b719d6
Java: add match metric
2022-12-15 15:10:35 -05:00
Jami Cogswell
1c5d4f8048
Java: rename generatedCoverage and manualCoverage
2022-12-15 15:03:00 -05:00
Michael Nebel
c34bde962c
Java: Update integration tests to use implicit ext.yml data extensions.
2022-12-15 19:01:29 +01:00
Mathias Vorreiter Pedersen
801f4bc8a3
Merge pull request #11715 from geoffw0/jsevalcleanup
2022-12-15 17:35:49 +00:00
Mathias Vorreiter Pedersen
0f04e841a0
Merge pull request #11708 from geoffw0/perf
...
Swift: Fix RemoteFlowSource performance issue.
2022-12-15 16:56:35 +00:00
Nora Dimitrijević
ea6c69dd34
Swift: fix test with different linux/macos results
...
`methodlookup.swift` has one more call to `Builtin.zeroInitializer()`
in macOS than it does in Linux.
2022-12-15 11:48:43 -05:00
Mathias Vorreiter Pedersen
7d5e215a93
Merge pull request #11600 from geoffw0/offsetrangecheck
...
C++: Fix cpp/offset-use-before-range-check performance.
2022-12-15 16:44:49 +00:00
Nora Dimitrijević
40fb6f98c9
Merge branch 'main' into swift/extract-mainactor
2022-12-15 11:29:12 -05:00
Nora Dimitrijević
893ec33da0
Swift: update .expected for integration tests
2022-12-15 11:28:02 -05:00
Geoffrey White
9481673c07
Swift: Remove temp workaround.
2022-12-15 16:08:51 +00:00
Nora Dimitrijević
60727b1e5e
Swift: Fix Builtin(Types) test extraction failure
2022-12-15 10:47:10 -05:00
Geoffrey White
cca0722a2b
Merge pull request #11710 from geoffw0/qldocalloc
...
C++: Clarify Allocation.qll and Deallocation.qll
2022-12-15 15:36:48 +00:00
Geoffrey White
1f7d96a74a
Merge branch 'main' into format
2022-12-15 15:17:54 +00:00
Tom Hvitved
f8571dd0b6
Data flow: Work around functionality-induced misoptimization
2022-12-15 15:29:14 +01:00
Tom Hvitved
6eda042229
Data flow: Sync files
2022-12-15 15:29:13 +01:00
Tom Hvitved
adc738cb15
Data flow: Simplify reverse flow-through pruning
2022-12-15 15:29:12 +01:00
Tom Hvitved
d34901ac8c
Data flow: Track return position instead of return kind
...
Reverts bdb205a318 .
2022-12-15 15:29:12 +01:00
Tom Hvitved
1820bb4b0b
Data flow: Simplify forwards flow-through pruning
2022-12-15 15:29:11 +01:00
Tom Hvitved
cb84b557cf
Data flow: Track parameter instead of parameter position
...
Reverts 70d2a0df8a .
2022-12-15 15:29:11 +01:00
Michael Nebel
2034b00772
C#: Remove deprecated ModelCsv classes.
2022-12-15 15:22:52 +01:00
Michael Nebel
0f038ee93a
Java: Remove deprecated ModelCsv classes.
2022-12-15 15:22:44 +01:00
Michael Nebel
f8b1fb465b
C#: Downgrade script should convert list- and slice pattern to unknown expression kind.
2022-12-15 14:50:22 +01:00
Michael Nebel
352ae7919b
C#: Add change note.
2022-12-15 14:50:22 +01:00
Michael Nebel
b4407eefb2
C#: Add downgrade script.
2022-12-15 14:50:22 +01:00
Michael Nebel
2c9e8bcb2d
C#: Add upgrade script.
2022-12-15 14:50:22 +01:00
Michael Nebel
88c8eceb4d
C#: Add list pattern test and expected results.
2022-12-15 14:50:21 +01:00
Michael Nebel
e6b4055a5f
C#: Add list pattern sample file.
2022-12-15 14:50:21 +01:00
Michael Nebel
98e125fa98
C#: Add library support for list- and slice patterns.
2022-12-15 14:50:21 +01:00
Michael Nebel
cfd3c1fcbe
C#: Add extractor support for list- and slice patterns.
2022-12-15 14:50:21 +01:00
Michael Nebel
00354a2f08
C#: Add list- and slice pattern expression kinds and re-generate ExprKind.cs.
2022-12-15 14:50:21 +01:00
Michael Nebel
31c60e545e
Java: Update the flow test generator to create ext.yml files.
2022-12-15 14:46:20 +01:00
Paolo Tranquilli
7f505d8715
Swift: do not filter frontend actions
2022-12-15 14:39:43 +01:00
Mathias Vorreiter Pedersen
a36afc6bff
C++: Accept more test changes.
2022-12-15 13:29:05 +00:00
Mathias Vorreiter Pedersen
99286fbdb1
Merge pull request #11704 from jketema/scanf-free
...
C++: Exclude deallocation functions as `scanf` result accesses
2022-12-15 13:17:43 +00:00
Michael Nebel
6dc798f970
Java: Migrate tests to use implicit ext.yml data extensions.
2022-12-15 14:13:07 +01:00
Geoffrey White
e7ea0d7ee9
C++: Attempt to clarify the way Allocation.qll and Deallocation.qll should be used.
2022-12-15 13:05:56 +00:00
Rasmus Lerchedahl Petersen
3a8fd910b1
python: do not change autogenerated file
2022-12-15 14:02:52 +01:00
Tom Hvitved
d7e44a5426
Merge pull request #10714 from hvitved/ruby/initialize
...
Ruby: Model flow through `initialize` constructors
2022-12-15 13:42:59 +01:00
Geoffrey White
8e61c78ce6
Swift: Fix RemoteFlowSource performance issue.
2022-12-15 12:36:32 +00:00
Paolo Tranquilli
208388e04d
Swift: hard code libc.dylib path on macOS
...
Also, handle the corner case where loading libc fails.
2022-12-15 13:30:23 +01:00
Owen Mansel-Chan
76a3fa856f
Use any() to stub getSyntheticGlobalType
...
This is used in all other languages not currently using dataflow type
pruning.
2022-12-15 12:24:23 +00:00
Owen Mansel-Chan
1a1b6a1b93
Use any() to stub getCallbackParameter/ReturnType
...
This is used in all other languages not currently using dataflow type
pruning.
2022-12-15 12:24:23 +00:00
Michael Nebel
100f64c09a
C#: Migrate tests to use the implicitly loaded .ext.yml data extensions.
2022-12-15 13:11:09 +01:00
Owen Mansel-Chan
0af530061d
Merge pull request #11697 from owen-mc/go/make-dataflowtype-singleton
...
Make DataFlowType a singleton
2022-12-15 12:07:57 +00:00
Rasmus Lerchedahl Petersen
a97bbdd0bc
python: rework hierarchy to avoid breaking API
2022-12-15 13:01:04 +01:00
Jeroen Ketema
ef61d14e9c
C++: Add change note
2022-12-15 12:57:13 +01:00
Mathias Vorreiter Pedersen
73b93be313
C++: Prevent non-termination in 'getTypeImpl' when a iterator defines itself as 'value_type'.
2022-12-15 11:55:25 +00:00
Mathias Vorreiter Pedersen
526b913f7d
C++: Fix join orders.
2022-12-15 11:55:25 +00:00
Mathias Vorreiter Pedersen
cb47bdd9fd
C++: Accept test changes.
2022-12-15 11:55:25 +00:00
Mathias Vorreiter Pedersen
f94ca0e087
C++: Add implicit defs and uses for iterators' underlying containers.
2022-12-15 11:55:21 +00:00
Mathias Vorreiter Pedersen
78b7e12b87
C++: Make 'DefImpl' and 'useImpl' abstract.
2022-12-15 11:54:32 +00:00
Mathias Vorreiter Pedersen
5d417d7a69
C++: Implement an 'Indirection' subtype for iterators.
2022-12-15 11:54:32 +00:00
Mathias Vorreiter Pedersen
ef110e77ff
C++: Remove an unnecessary predicate from the 'Indirection' class.
2022-12-15 11:54:32 +00:00
Rasmus Lerchedahl Petersen
997e3599f0
python: make tests valid and more fleshed out
2022-12-15 12:54:16 +01:00
Rasmus Lerchedahl Petersen
8e8d36f35e
python: this also works in 3.11
2022-12-15 12:54:14 +01:00
Rasmus Lerchedahl Petersen
3ace1ee69f
Python: remove obsolete coments
2022-12-15 12:54:13 +01:00
Jeroen Ketema
0b4c4fd580
C++: Simplify deallocation check
2022-12-15 12:46:32 +01:00
Tony Torralba
6837af97bc
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2022-12-15 12:35:54 +01:00
Tony Torralba
11c03fb8c9
Add 'good' test cases
2022-12-15 12:35:47 +01:00
Owen Mansel-Chan
039d582060
Fix date in unrelated change note
2022-12-15 11:04:48 +00:00
Owen Mansel-Chan
06038d575e
Improve comments about Fields
2022-12-15 11:04:48 +00:00
Owen Mansel-Chan
e01e40c532
Fix FuncTypeExpr.getNumParameter
...
It actually counts the number of parameter declarations. We correct it
to do what it says and introduce `FuncTypeExpr.getNumParameterDecls`,
which we then use in `FuncTypeExpr.getUniquelyNumberedChild`.
2022-12-15 11:04:48 +00:00
Alex Ford
1b49bfe605
Merge pull request #11497 from alexrford/ruby/rails_globalid
...
Ruby: model `rails/globalid` component
2022-12-15 10:35:15 +00:00
Erik Krogh Kristensen
1500fa5f67
Merge pull request #10663 from pwntester/restify_improvements
...
Javascript: Improve Restify support and add new Spife support
2022-12-15 11:08:22 +01:00
Michael Nebel
a67e02df21
Merge pull request #11691 from michaelnebel/renameextensibles
...
C#/Java: Rename externalflow extensible predicates
2022-12-15 11:05:22 +01:00
Tom Hvitved
b3feb4f295
Update ruby/ql/lib/codeql/ruby/typetracking/TypeTrackerSpecific.qll
...
Co-authored-by: Asger F <asgerf@github.com >
2022-12-15 10:46:06 +01:00
Paolo Tranquilli
3084eda28a
Swift: add swiftmodule hash map testing to frontend_invocations
2022-12-15 10:33:47 +01:00
Paolo Tranquilli
e42ae09e1c
Swift: fix interaction between bash wrapper and open redirection on macOS
2022-12-15 09:50:31 +01:00
Michael Nebel
12c1ebd81c
C#/Java: Add change note.
2022-12-15 09:41:14 +01:00
Jeroen Ketema
4fb43d56b3
C++: Exclude deallocation functions as scanf result accesses
2022-12-15 09:39:16 +01:00
Jami Cogswell
56acfdf672
Java: update test case
2022-12-15 00:57:08 -05:00
Jami Cogswell
510cd4a163
Java: change negative to neutral
2022-12-15 00:46:03 -05:00
Jami Cogswell
f1ddbbb96f
Java: update remaining models
2022-12-15 00:33:35 -05:00
Jami Cogswell
46b8fbc4c9
Java: update remaining models, resolve merge conflict
2022-12-15 00:33:06 -05:00
Jami Cogswell
15069250eb
Java: add draft of test case
2022-12-15 00:24:41 -05:00
Jami Cogswell
134577e52b
Java: some updates to models
2022-12-15 00:24:41 -05:00
Jami Cogswell
4c590d1190
Java: move most negative models to package.model.yml files
2022-12-15 00:24:41 -05:00
Jami Cogswell
b7016feb44
Java: initial updates based on review comments
2022-12-15 00:24:41 -05:00
Jami Cogswell
b3dbf00ae6
Java: update comment
2022-12-15 00:24:41 -05:00
Jami Cogswell
9d3abc72bf
Java: add draft of top 100 jdk models
2022-12-15 00:24:40 -05:00
Nora Dimitrijević
7ea0eada11
Swift: add missing Builtin symbols
2022-12-14 20:03:41 -05:00
turbo
5fd5ebc26e
Create security-experimental suite helper and all language suite implementations
2022-12-14 23:35:32 +01:00
Nora Dimitrijević
2d288906a4
Swift: fix db downgrade script
2022-12-14 17:27:11 -05:00
Ed Minnix
72484b9483
Change wording of addJavascriptInterface query description
2022-12-14 16:19:03 -05:00
Nora Dimitrijević
e16b23afc1
Swift: db upgrade/downgrade script
2022-12-14 15:56:05 -05:00
Jami
359e49044f
Merge branch 'main' into jcogs33/mad-metrics-query
2022-12-14 15:33:29 -05:00
Nora Dimitrijević
8a3ef31a2c
Swift: silence QL-for-QL redundant import warning
2022-12-14 15:22:39 -05:00
Nora Dimitrijević
5faa44389e
Swift: Basic acceptance of UnsafeJsEval test
...
TODO: Fix remaining problem in a separate PR:
- path found to one async `@MainActor` evaluateJavaScript
call, but not others. Investigate why.
- Remove duplicate paths and those with unnecessary [summary] nodes.
2022-12-14 15:02:15 -05:00
Nora Dimitrijević
95d4c304da
Swift: Fix .expected tests
...
Only UnsafeJsEval remains.
2022-12-14 15:02:15 -05:00
Erik Krogh Kristensen
55558120d9
add explicit this
2022-12-14 20:59:28 +01:00
Nora Dimitrijević
6269e6b24d
Swift: move getName to Callable (generated)
...
Now that getStaticTarget returns a Callable.
2022-12-14 14:30:33 -05:00
Nora Dimitrijević
535daf39b7
Swift: move getName to Callable (hand-written)
...
Now that getStaticTarget returns a Callable.
2022-12-14 14:29:13 -05:00
Nora Dimitrijević
89cd082f0a
Swift: {Method,Initializer}CallExpr + SelfRefExpr
...
Adds a bit of symmetry in the API.
Also, fix a couple of tests that were using the old types.
2022-12-14 14:28:01 -05:00
Nora Dimitrijević
5f03099000
Swift: clarify DotSyntaxBaseIgnoredExpr
...
- Add docstring with implementation note.
- Avoid `concat` aggregate in toString().
Still, this class should really be cleaned up in the following ways:
- Rename to a sane name at the schema level
- Have subtypes that change the return type of getSubExpr to reflect
the structure of the desugared closure. E.g. one for methods,
one for fields.
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
16a119248d
Swift: remove toString() = "call to call to ..."
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
91f35a5d53
Swift: isStaticOrClassMethod + isInstanceMethod
...
Still, we should really be extracting these attributes.
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
6a0b020573
Swift: move methodlookup test to library-tests
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
15d5674d12
Swift: update .expected files based on last commit
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
a620658a66
Swift: fix PrintAst order, double parents, orphan decl refs
...
The main problem is that a lot of the old DotSyntaxApplyExpr->MethodRefExpr
synth-constructor hacks were not fully generalized to SelfApplyExpr
and OtherConstructorDeclRefExpr.
Also:
- Gave a index-in-parent-based ordering to PrintAst nodes(), to stabilize it more.
- Use a slightly more general SelfApplyExpr->Decl conversion
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
b5bb814112
Swift: fix toString of some invisible DeclRefExprs
2022-12-14 14:28:00 -05:00
Nora Dimitrijević
f6d5e8db5f
Swift: update test .expected files
2022-12-14 14:27:59 -05:00
Nora Dimitrijević
799b4c932f
Swift: DotSyntaxBaseIgnored calls now have static target
...
This relies on getStaticTarget() returning a Callable... Not sure how I feel about that, since often we want to say
```
exists(Call c |
c.getStaticTarget().hasName("...")
)
```
and Callable has a sparse interface. Maybe some AbstractFunctionDecl
methods can be moved to Callable.
2022-12-14 14:24:36 -05:00
Nora Dimitrijević
89bfad0420
Swift: fix MethodLookupExpr.getMethod()
...
By adding a couple missing cases.
2022-12-14 14:24:36 -05:00
Nora Dimitrijević
c1e746a980
Swift: add InitializerLookupExpr < MethodLookupExpr
2022-12-14 14:24:36 -05:00
Nora Dimitrijević
2af8ec86e6
Swift: init/deinit stringifies with qualifier
2022-12-14 14:24:36 -05:00
Nora Dimitrijević
14b84c6e06
Swift: add MethodDecl.isStatic/0
2022-12-14 14:24:36 -05:00
Nora Dimitrijević
668d79a62d
Swift: one more rename
2022-12-14 14:24:36 -05:00
Nora Dimitrijević
2b060b1433
Swift: initial schema change (generated part)
2022-12-14 14:24:35 -05:00
Nora Dimitrijević
0c55561b8e
Swift: initial schema change (hand-written part)
2022-12-14 14:22:53 -05:00
Nora Dimitrijević
1ede851cf5
Swift: initial getStaticTarget test
2022-12-14 14:22:53 -05:00
Nora Dimitrijević
99719d0ee1
Swift: initial PrintAst test for Method Lookups
2022-12-14 14:22:53 -05:00
Paolo Tranquilli
793de3196b
Revert "Swift: accept test changes"
...
This reverts commit 26ae8f177b .
2022-12-14 18:34:12 +01:00
Paolo Tranquilli
14fd89d482
Swift: generalize output redirection code
2022-12-14 18:26:48 +01:00
Paolo Tranquilli
45c0c7fe6c
Merge branch 'main' into redsun82/swift-open-redirection
2022-12-14 18:26:16 +01:00
Jami
33955ee4ab
Merge pull request #11623 from jcogs33/jcogs33/exclude-funcexpr-from-dataflowtargetapi
...
Java/C#: exclude `FunctionalExpr`s from `DataFlowTargetApi`
2022-12-14 12:22:50 -05:00
Owen Mansel-Chan
8703da9db6
Merge pull request #11698 from owen-mc/go/fix-test-to-do-what-it-says
...
Fix test to use `hasQualifiedName/2`
2022-12-14 17:11:58 +00:00
Jeroen Ketema
31b4dda7bd
Merge pull request #11687 from jketema/tainted-path-use-use
...
C++: Make `cpp/path-injection` work with use-use dataflow
2022-12-14 18:06:05 +01:00
Alvaro Muñoz
f46a8faf00
port RouteSetup API-based implementation to DataFlow one
2022-12-14 17:37:32 +01:00
turbo
b35a1d4206
Adjust docs referring to experimental queries to include details on new tagging system
2022-12-14 17:16:38 +01:00
turbo
4ec401a3f6
Tag all security queries in supported languages' experimental directories with an experimental tag
2022-12-14 17:15:50 +01:00
Tom Hvitved
c04b90bc6b
Add change note
2022-12-14 16:30:18 +01:00
Mathias Vorreiter Pedersen
22b04af0fa
Merge pull request #11658 from MathiasVP/uncertain-writes
...
C++: Flow through uncertain writes
2022-12-14 15:26:28 +00:00
Alex Ford
2af5925f38
Ruby: improve coverage of GlobalID::Identification modelling
2022-12-14 15:21:19 +00:00
Owen Mansel-Chan
6ef677b606
Fix test to use hasQualifiedName/2
2022-12-14 15:20:02 +00:00
Owen Mansel-Chan
d18179c243
Add QLDoc for toString on DataFlowType
2022-12-14 14:56:54 +00:00
Jeroen Ketema
bb256514c0
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-14 15:52:20 +01:00
Asger F
a92acf5218
Merge pull request #11689 from asgerf/js/missing-csrf-qhelp
...
JS: Update MissingCsrfMiddleware after 'csurf' deprecation
2022-12-14 15:50:32 +01:00
Alvaro Muñoz
818c2da1aa
fix Spife tests (without heuristics)
2022-12-14 15:42:27 +01:00
Alvaro Muñoz
4cf7299d79
restore Spife.qll to working status
2022-12-14 15:41:53 +01:00
Owen Mansel-Chan
50414cc748
Make DataFlowType a singleton
2022-12-14 14:40:15 +00:00
Alvaro Muñoz
14faff4477
fix restify tests
2022-12-14 15:38:35 +01:00
Owen Mansel-Chan
38369a72dc
Merge pull request #11696 from github/smowton-patch-1
...
go: fix bug in zip-slip example fix
2022-12-14 14:31:58 +00:00
Michael Nebel
fe3c8613cd
Java: Fix name of extensible in java integration test.
2022-12-14 15:25:47 +01:00
Jeroen Ketema
3b78860d8d
Merge pull request #11692 from jketema/itemization
...
C++: Fix itemization in QLDoc
2022-12-14 15:19:12 +01:00
Chris Smowton
5799287a2b
go: fix bug in zip-slip example fix
2022-12-14 13:51:32 +00:00
erik-krogh
42880f54a6
change ql/to-string-in-logic to a warning query
2022-12-14 14:48:55 +01:00
erik-krogh
1cd1b14e78
remove some more benign results in ql/suggest-instanceof-extension
2022-12-14 14:48:01 +01:00
erik-krogh
35f9f7c71b
remove some benign results from ql/suggest-instanceof-extension
2022-12-14 14:47:58 +01:00
Jami
b248b44983
Merge pull request #11668 from jcogs33/jcogs33/update-isjdkinternal
...
Java: update `isJdkInternal`
2022-12-14 08:33:18 -05:00
erik-krogh
618f48b60b
lower the precision of ql/class-predicate-doesnt-use-this to low
2022-12-14 14:31:22 +01:00
erik-krogh
f34f7cc41a
exclude test folders from ql/path-problem-query
2022-12-14 14:31:22 +01:00
erik-krogh
3feee23933
fix performance in ql/override-parameter-name and lower the precision to low (it has 1407 results)
2022-12-14 14:31:22 +01:00
erik-krogh
39973df869
include medium precision queries in QL-for-QL
2022-12-14 14:31:22 +01:00
erik-krogh
f6c8e9af1f
don't require a member to call a range method before suggesting to use instanceof
2022-12-14 14:31:22 +01:00
Erik Krogh Kristensen
7615668f92
Merge pull request #11662 from erik-krogh/c-useInstanceOf
...
Swift/C++: Use instanceof in more places
2022-12-14 14:30:21 +01:00
Jami
f61b817751
Merge pull request #11631 from jcogs33/jcogs33/update-externalapi-charpredicate
...
Java/C#: add `isUninteresting` to `ExternalApi` characteristic predicate
2022-12-14 08:25:02 -05:00
Owen Mansel-Chan
0b849a319b
Merge pull request #11587 from owen-mc/go/remove-error-expr-from-dbscheme
...
Go: Remove @errorexpr from the dbscheme (use @badexpr)
2022-12-14 13:15:04 +00:00
Anders Schack-Mulligen
598b4c38b7
Merge pull request #11619 from aschackmull/java/typetrack-lambda
...
Java: Switch DispatchFlow to typetracking.
2022-12-14 14:08:29 +01:00
Michael Nebel
bc02adb400
Java: Make the corresponding rename in all the data extensions.
2022-12-14 13:48:31 +01:00
Jeroen Ketema
c18cfa7a7a
C++: Fix itemization in QLDoc
2022-12-14 13:46:07 +01:00
Michael Nebel
b45d079a01
Java: Move and rename externalflow related extensible predicates.
2022-12-14 13:43:34 +01:00
Michael Nebel
9fc1b3ac82
C#: Rename predicates in tests.
2022-12-14 13:43:34 +01:00
Michael Nebel
b5e7ba6135
C#: Rename extensible predicate in data extension definitions.
2022-12-14 13:43:34 +01:00
Michael Nebel
596c2c0345
C#/Java: Rename the modelgenerator and converter predicate names.
2022-12-14 13:43:34 +01:00
Michael Nebel
6d7401de7d
C#: Rename the extensible predicates related to external flow.
2022-12-14 13:43:34 +01:00
Jeroen Ketema
4075f693bd
C++: Make cpp/path-injection work with use-use dataflow
2022-12-14 13:38:55 +01:00
Mathias Vorreiter Pedersen
973aad5c17
Merge pull request #11677 from jketema/argv-flow-source
...
C++: Recognize indirect `argv` accesses as flow sources for use-use dataflow
2022-12-14 12:36:18 +00:00
Alvaro Muñoz
e1f05e960d
Merge branch 'restify_improvements' of https://github.com/pwntester/codeql into restify_improvements
2022-12-14 13:11:13 +01:00
Alvaro Muñoz
a71fc930a6
add tests
2022-12-14 13:11:02 +01:00
Tom Hvitved
5d9c64ba6f
Ruby: Model flow through initialize constructors
2022-12-14 12:57:39 +01:00
Tom Hvitved
9a7628c988
Ruby: Add data flow tests for constructors
2022-12-14 12:57:39 +01:00
Tom Hvitved
25b2d11368
Merge pull request #11635 from hvitved/dataflow/approx-content
...
Data flow: Introduce `ApproxContent` in a new pruning stage between stages 2 and 3
2022-12-14 12:56:50 +01:00
Asger F
b63c658e3b
JS: recognize tiny-csrf
2022-12-14 12:30:15 +01:00
Asger F
162419138d
JS: Replace csurf -> lusca.csrf from example and qhelp
2022-12-14 12:30:15 +01:00
Owen Mansel-Chan
3c6f466e78
Include downgrade scripts in extractor pack
2022-12-14 10:46:20 +00:00
Owen Mansel-Chan
14e6f9fee2
Remove @errorexpr from the dbscheme (use @badexpr)
2022-12-14 10:46:19 +00:00
Henry Mercer
6023a1225c
Merge pull request #11673 from github/codeql-ci/atm/release-0.4.4
...
JS: Bump version numbers of ML-powered packs after 0.4.4 release
2022-12-14 10:27:00 +00:00
Alvaro Muñoz
701676eea1
Update javascript/ql/lib/semmle/javascript/frameworks/Spife.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-12-14 10:18:47 +01:00
Tamás Vajk
a6d227d52e
Merge pull request #11599 from igfoo/igfoo/diags
...
Java/Kotlin: Update the diagnostic severity documentation
2022-12-14 10:13:30 +01:00
Michael Nebel
54701f539e
Merge pull request #11683 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-12-14 09:41:23 +01:00
Paolo Tranquilli
de2e92d5e1
Swift: remove / delimiters from regex extracted patterns
2022-12-14 09:18:36 +01:00
Paolo Tranquilli
fb5b6eab19
Swift: extract RegexLiteralExpr
2022-12-14 09:12:07 +01:00
Paolo Tranquilli
a80e9206c8
Merge pull request #11639 from github/alexdenisov/switch-to-bootstrapped-swift
...
Swift: switch to bootstrapped Swift compiler
2022-12-14 09:04:19 +01:00
github-actions[bot]
d905bed92f
Add changed framework coverage reports
2022-12-14 00:17:01 +00:00
Jami Cogswell
c956589945
Java: remove dot before percent
2022-12-13 17:46:20 -05:00
Jami Cogswell
dee251e5d6
Java: update isJdkInternal
2022-12-13 17:46:20 -05:00
Jami
11bd35661c
Merge branch 'main' into jcogs33/exclude-funcexpr-from-dataflowtargetapi
2022-12-13 17:10:39 -05:00
Edward Minnix III
40c759e61a
Add @name property
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-12-13 16:14:28 -05:00
Erik Krogh Kristensen
8a89849476
Merge pull request #11660 from erik-krogh/dynamic-useInstanceOf
...
Py/JS/RB: Use instanceof in more places
2022-12-13 21:50:13 +01:00
Tamás Vajk
8e500ec0f3
Merge pull request #11675 from tamasvajk/kotlin-error-expr-consistency
...
Kotlin: Report CFG dead end consistency issues on `ErrorExpr`
2022-12-13 20:22:47 +01:00
Henry Mercer
a3933fbf4f
Bump minor versions of packs we regularly release
2022-12-13 18:59:24 +00:00
Jeroen Ketema
19fb73ce24
C++: Update tests after frontend changes
2022-12-13 19:52:59 +01:00
Henry Mercer
7167f078be
Merge branch 'main' into henrymercer/mergeback-3.8
2022-12-13 18:40:53 +00:00
erik-krogh
d95a4a7baf
add a second example of how to use module_eval without constructing a code-string
2022-12-13 19:33:45 +01:00
Jami Cogswell
be7b4151af
Java: update getNumApis and remove package binding from query body
2022-12-13 12:54:43 -05:00
erik-krogh
ccf520a5cd
Merge branch 'main' into unsafeCodeConstruction
2022-12-13 18:31:49 +01:00
Siara
141bc41881
Update docs/codeql/writing-codeql-queries/introduction-to-ql.rst
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2022-12-13 09:22:16 -08:00
Siara
44f91ad723
Update docs/codeql/reusables/codespaces-template-note.rst
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2022-12-13 09:22:07 -08:00
Edward Minnix III
a2c886d367
Grammar and wording changes from docs review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-12-13 11:57:46 -05:00
Edward Minnix III
a85de2b5f4
Merge pull request #10865 from egregius313/egregius313/android-activity-alias
...
Java: Add library support for activity-alias elements in AndroidManifest.qll
2022-12-13 11:52:01 -05:00
Jami Cogswell
a33436a39b
Java: update hasProvenance
2022-12-13 11:26:23 -05:00
Jami Cogswell
3da2fb933b
Java: remove parentheses
2022-12-13 11:08:00 -05:00
Jami Cogswell
028fc29639
Java: group test methods
2022-12-13 11:02:21 -05:00
Jami Cogswell
a889cc4f65
Java/C#: remove isTestLibrary
2022-12-13 10:34:04 -05:00
Jeroen Ketema
628f92a9fb
C++: Fix QL-for-QL warnings
2022-12-13 16:24:55 +01:00
Jeroen Ketema
3be0b3e6c7
C++: Recognize indirect argv accesses as flow sources for use-use dataflow
...
This fixes the test regression on `cpp/command-line-injection`.
2022-12-13 16:18:17 +01:00
Jami
9b0163ce22
Merge pull request #11624 from jcogs33/jcogs33/exclude-paramless-constructors-from-dataflowtargetapi
...
Java/C#: exclude parameterless constructors from `DataFlowTargetApi`
2022-12-13 10:05:57 -05:00
Jami Cogswell
91c1ec3be6
C#: exclude AnonymousFunctionExpr from DataFlowTargetApi
2022-12-13 09:54:05 -05:00
Jami Cogswell
1c06378a53
Java: exclude FunctionalExprs from DataFlowTargetApi
2022-12-13 09:54:05 -05:00
Tamas Vajk
5cc2868857
Kotlin: Report CFG dead end consistency issues on ErrorExpr
2022-12-13 15:51:33 +01:00
Anders Schack-Mulligen
a29e529690
Shared: Add missing qldoc.
2022-12-13 15:49:30 +01:00
Asger F
bfe9ee3ead
Merge pull request #11672 from asgerf/js/extensions
...
JS: Add data extension sinks
2022-12-13 15:34:11 +01:00
ALJI Mohamed
54109b8ea7
Add source wget.download
2022-12-13 15:34:01 +01:00
Henry Mercer
423374a7b8
Merge branch 'main' into codeql-ci/atm/release-0.4.4
2022-12-13 14:26:21 +00:00
github-actions[bot]
745823ca60
JS: Bump version of ML-powered library and query packs to 0.4.5
2022-12-13 13:32:52 +00:00
github-actions[bot]
ea13925a92
JS: Bump patch version of ML-powered library and query packs
2022-12-13 13:28:09 +00:00
Alex Denisov
ee94849528
Swift: switch to bootstrapped Swift compiler
2022-12-13 13:59:13 +01:00
Mathias Vorreiter Pedersen
69155cb691
Merge pull request #11664 from jketema/alloca-in-loop-fix
...
C++: Fix `cpp/alloca-in-loop` regressions with use-use dataflow
2022-12-13 11:59:38 +00:00
Tony Torralba
85b3092b16
Add security-severity and fix alert message
2022-12-13 12:01:01 +01:00
Asger F
6b15839221
JS: Add tests for the examples used in the docs
2022-12-13 11:33:12 +01:00
Asger F
ba1364a4cb
JS: Add sinks mentioned in doc
...
Note that 'sql-injection' was already added
2022-12-13 11:33:12 +01:00
Alvaro Muñoz
270a4355df
format Restify.qll
2022-12-13 11:22:24 +01:00
Alvaro Muñoz
4ba3190d29
Replace API::Node with DataFlow::Node for Spife's RouteSetup
2022-12-13 11:10:04 +01:00
Jeroen Ketema
b10ed976cc
Update cpp/ql/src/Likely Bugs/Memory Management/AllocaInLoop.ql
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-12-13 10:57:34 +01:00
Felicity Chapman
cbbce9b98a
Update docs/codeql/writing-codeql-queries/introduction-to-ql.rst
2022-12-13 09:56:50 +00:00
Michael Nebel
b8ef961498
Merge pull request #9415 from JarLob/sockets
...
Add TCP and UDP socket client taint sources
2022-12-13 10:39:33 +01:00
Felicity Chapman
6aaaf4267b
Update docs/codeql/writing-codeql-queries/introduction-to-ql.rst
2022-12-13 09:37:49 +00:00
Chris Smowton
406a12e797
Remove unused function DeclarationStack.findFirst
2022-12-13 09:34:36 +00:00
Tony Torralba
d72d096c86
Add predicate injection query
2022-12-13 10:27:29 +01:00
Tom Hvitved
39fea378b8
Python: Update expected test output
2022-12-13 09:53:01 +01:00
Tom Hvitved
cfcb3a60ba
C++: Update expected test output
2022-12-13 09:53:01 +01:00
Tom Hvitved
da6a42980f
Swift: Implement ContentApprox
2022-12-13 09:53:01 +01:00
Tom Hvitved
24b1da4d02
Python: Implement ContentApprox
2022-12-13 09:53:01 +01:00
Tom Hvitved
2a28953e41
Java: Implement ContentApprox
2022-12-13 09:53:01 +01:00
Tom Hvitved
4d2436dd82
Go: Implement ContentApprox
2022-12-13 09:53:01 +01:00
Tom Hvitved
64eb0cc941
C#: Implement ContentApprox
2022-12-13 09:53:01 +01:00
Tom Hvitved
bc58cbec8c
C++: Implement ContentApprox
2022-12-13 09:53:01 +01:00
Tom Hvitved
0c2eee2a72
Data flow: Sync files
2022-12-13 09:52:55 +01:00
Tom Hvitved
410ef4d713
Data flow: Rename stages
2022-12-13 09:52:46 +01:00
Tom Hvitved
d11cb2ee0f
Data flow: Introduce ApproxContent in a new pruning stage between existing stages 2 and 3
2022-12-13 09:52:45 +01:00
AlexDenisov
73196fd732
Merge pull request #11669 from github/redsun82/swift-wrapper
...
Swift: wrap extractor with shell script
2022-12-13 09:46:42 +01:00
Paolo Tranquilli
0dc717fd9c
Swift: remove no more needed library path setting in qltest.sh
2022-12-13 09:13:43 +01:00
Paolo Tranquilli
03d7adb303
Swift: wrap extractor with shell script
...
This is in preparation for the extractor to use shared libraries
packaged alongside it.
We could probably also move the `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER` logic
in it, where it would be simpler and more robust.
2022-12-13 09:07:37 +01:00
yoff
557a5b469f
Merge pull request #11555 from pwntester/new_python_cmdi_sinks
...
Added two new CMDi sinks for python's stdlib
2022-12-13 09:00:34 +01:00
SiaraMist
0518eda7ab
Remove import tutorial
2022-12-12 17:46:03 -08:00
SiaraMist
dee66354cc
Link to template reusable
2022-12-12 17:36:43 -08:00
Siara
094a9f4aa7
Edit reusable
2022-12-12 17:32:02 -08:00
Jami
93d8a03e73
Merge branch 'main' into jcogs33/mad-metrics-query
2022-12-12 20:31:53 -05:00
Siara
028ab325f4
Update docs/codeql/reusables/codespaces-template-note.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-12-12 17:28:39 -08:00
Jami Cogswell
08b5cf1415
Java/C#: fix formatting issue
2022-12-12 20:24:00 -05:00
Siara
4aa92dfd88
Updates from review comments
2022-12-12 17:13:57 -08:00
Jami Cogswell
a77acd6745
Java: add change note
2022-12-12 17:28:12 -05:00
Jami Cogswell
f0124dae1a
Java: replace exists with instanceof
2022-12-12 16:40:19 -05:00
erik-krogh
92a7e787a8
C: do the minimal change to ValueNumberBound instead
2022-12-12 22:17:50 +01:00
Jami
84b69deb55
Merge branch 'main' into jcogs33/update-externalapi-charpredicate
2022-12-12 16:01:22 -05:00
Siara
169a465214
Update docs/codeql/writing-codeql-queries/introduction-to-ql.rst
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2022-12-12 12:54:01 -08:00
Harry Maclean
0340549744
Ruby: Slight rewording
2022-12-13 09:45:31 +13:00
erik-krogh
e0045d2736
filter out string literals from the taint-sink meta query
2022-12-12 21:44:24 +01:00
Jami Cogswell
3526406db0
Java: add tests
2022-12-12 15:10:55 -05:00
ALJI Mohamed
2f68b54b27
A simple download_file() call from maybe boto3
2022-12-12 19:46:34 +01:00
Chris Smowton
dd86f7a696
Kotlin: Revert type erasure within $default functions
...
This imprecise implementation turned out to cause linkage errors, e.g. when type variables in the signatures of member methods were inappropriately erased. For the time being we accept that $default methods despite having erased signatures in keeping with their JVM representation can contain expressions whose types make reference to their
surrounding function or class' type variables, even though they should be out of scope since $default methods are static and don't have type parameters, and need to cope with the inconsistency in QL.
2022-12-12 18:33:22 +00:00
Jami Cogswell
22f8d97f31
C#: add test case
2022-12-12 13:28:01 -05:00
Jami Cogswell
446ac75c87
Java: update unit test
2022-12-12 13:28:01 -05:00
Jami Cogswell
39154b1455
C#: add isParameterless predicate to Constructor class
2022-12-12 13:28:00 -05:00
Jami Cogswell
5113041623
Java: add isParameterless predicate to Constructor class
2022-12-12 13:28:00 -05:00
Jami Cogswell
a8a8b03d2f
C#: exclude parameterless constructors from DataFlowTargetApi
2022-12-12 13:28:00 -05:00
Jami Cogswell
16d8e8e931
Java: exclude parameterless constructors from DataFlowTargetApi
2022-12-12 13:28:00 -05:00
Jeroen Ketema
18dea55071
C++: Fix cpp/alloca-in-loop regressions with use-use dataflow
2022-12-12 19:15:50 +01:00
Erik Krogh Kristensen
636d5e341c
Merge pull request #11652 from erik-krogh/static-useInstanceOf
...
Java/C#/GO: Use instanceof in more places
2022-12-12 17:52:04 +01:00
Jami Cogswell
e42d9e4930
Java: switch floats to ints
2022-12-12 11:39:17 -05:00
Jami Cogswell
623068c4b9
Java: add hasProvenance predicate, remove isManuallyGenerated and isBothAutoAndManuallyGenerated
2022-12-12 11:23:46 -05:00
Edward Minnix III
0ebfee8b11
Merge pull request #11241 from egregius313/egregius313/webview-file-access
...
Java: Query to detect Android Webview file access
2022-12-12 11:12:26 -05:00
erik-krogh
698e05f85a
Swift/C++: Use instanceof in more places
2022-12-12 16:58:13 +01:00
erik-krogh
a1564de126
more ram
2022-12-12 16:35:01 +01:00
erik-krogh
f554e1fef1
more threads
2022-12-12 16:33:07 +01:00
erik-krogh
7526c35c60
speedup the "ATM - Check query suite" CI job
2022-12-12 16:25:25 +01:00
erik-krogh
b3a9c1ca06
Py/JS/RB: Use instanceof in more places
2022-12-12 16:06:57 +01:00
Erik Krogh Kristensen
4ff823c36b
Merge pull request #11366 from p-/p--ruby-kernel-open-addition
...
Ruby: Add additional sinks to the `rb/kernel-open` query
2022-12-12 15:56:01 +01:00
erik-krogh
873d3553cd
Merge branch 'main' into static-useInstanceOf
2022-12-12 15:36:54 +01:00
Mathias Vorreiter Pedersen
a161dddbbf
C++: Accept test changes. These happen because these remote flow sources specify that the remote source is both 'isReturnValue' and 'isReturnValueDeref'.
2022-12-12 13:39:09 +00:00
Tom Hvitved
912aa461c7
Merge pull request #11654 from hvitved/ruby/stage-collapse
...
Ruby: Ensure `Node::{toString,getLocation}` are computed in data flow stage
2022-12-12 13:57:47 +01:00
Michael Nebel
0fdf9a42f2
C#: Cleanup and make the last StreamReader model explicit on its input.
2022-12-12 13:21:26 +01:00
JarLob
1d303e0470
C#: Add remote type source kind in model validation.
2022-12-12 12:56:14 +01:00
Jaroslav Lobačevski
340fd8ae4e
C#: Add change note.
2022-12-12 12:56:14 +01:00
Jaroslav Lobačevski
204a1d3d06
C#: Add source TCP/UDP source models and StreamReader summary models.
2022-12-12 12:56:14 +01:00
Mathias Vorreiter Pedersen
8722fb2cf5
C++: Accept test changes.
2022-12-12 10:54:40 +00:00
Mathias Vorreiter Pedersen
ad522651ec
C++: Flow through uncertain writes.
2022-12-12 10:54:26 +00:00
Mathias Vorreiter Pedersen
2999243e34
C++: Add failing IR dataflow testcase.
2022-12-12 10:42:59 +00:00
Jeroen Ketema
b2091e8632
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-12 11:40:36 +01:00
Chris Smowton
2bdc9e80de
Merge pull request #11625 from smowton/smowton/admin/autoformat-docs-ql-files
...
Autoformat docs ql files
2022-12-12 10:37:35 +00:00
Jeroen Ketema
cb1dacfef1
C++: Fix QL-for-QL warnings
2022-12-12 11:23:29 +01:00
Mathias Vorreiter Pedersen
b2fcf87e6a
Merge pull request #11638 from jketema/rewrite-tainted-path-v2
...
C++: Use `FlowSource` in `cpp/path-injection`
2022-12-12 10:08:15 +00:00
Chris Smowton
77004f3e15
Merge pull request #11258 from smowton/smowton/feature/kotlin-annotation-extraction
...
Kotlin: extract annotations
2022-12-12 09:52:49 +00:00
Alvaro Muñoz
469d7f52dc
Use fluent API instead of hasPropertyWrite
2022-12-12 10:46:50 +01:00
Alvaro Muñoz
1410d2838e
Update javascript/ql/lib/semmle/javascript/frameworks/Spife.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-12-12 09:54:02 +01:00
Paolo Tranquilli
250ac686a2
Merge branch 'main' into redsun82/swift-open-redirection
2022-12-12 08:46:23 +01:00
Michael Nebel
e0f1b38439
Merge pull request #11580 from michaelnebel/renamenegativemodels
...
C#/Java: Rename Negative Summary Model to Neutral Model
2022-12-12 07:59:06 +01:00
Harry Maclean
6c8896d83f
Merge pull request #11337 from hmac/actionmailbox
...
Ruby: Model ActionMailbox
2022-12-12 10:29:23 +13:00
Tom Hvitved
58549087e0
Ruby: Ensure Node::{toString,getLocation} are computed in data flow stage
2022-12-11 20:37:24 +01:00
Tom Hvitved
367aa35d8c
Ruby: Avoid SummarizedCallable::propagatesFlowExt being recursive
2022-12-11 20:37:23 +01:00
Chris Smowton
2b10e4ba04
Merge pull request #11653 from github/post-release-prep/codeql-cli-2.11.6
...
Post-release preparation for codeql-cli-2.11.6
2022-12-11 19:24:26 +00:00
github-actions[bot]
343b7b1c8b
Post-release preparation for codeql-cli-2.11.6
2022-12-11 18:15:04 +00:00
erik-krogh
8262fbbfb5
Java/C#/GO: Use instanceof in more places
2022-12-11 18:32:19 +01:00
Chris Smowton
5ae770f339
Merge pull request #11648 from github/release-prep/2.11.6
...
Release preparation for version 2.11.6
2022-12-11 07:25:21 +00:00
ALJI Mohamed
b19452467d
read by chunks as additional step
2022-12-10 21:59:14 +01:00
Jeroen Ketema
beb66d027e
C++: Use FlowSource in cpp/path-injection
2022-12-10 20:27:56 +01:00
Jeroen Ketema
d5acd310ce
Merge pull request #11644 from jketema/lower-case-flow-source-description
...
C++: Make all flow source descriptions start with a lower case letter
2022-12-10 20:23:14 +01:00
Mathias Vorreiter Pedersen
9e7b73ab4a
Merge pull request #11645 from MathiasVP/more-caching
2022-12-10 18:04:48 +00:00
Mathias Vorreiter Pedersen
bea67abd64
Merge pull request #11643 from jketema/generalize-argv
2022-12-10 16:03:20 +00:00
github-actions[bot]
0b2fb4f70a
Release preparation for version 2.11.6
2022-12-10 15:49:35 +00:00
Chris Smowton
af08fe8659
Add change note re: Kotlin version limit
2022-12-10 15:32:22 +00:00
Mathias Vorreiter Pedersen
9f9ffef697
C++: Make the Node IPA type private.
2022-12-10 14:51:21 +00:00
ALJI Mohamed
eff132512c
Copying the response data to the archive
2022-12-10 08:15:42 +01:00
Jami Cogswell
270e38d753
Java: add comments and switch getDeclaringType to getCompilationUnit
2022-12-09 19:46:10 -05:00
SiaraMist
401a46d655
Update phrasing and link
2022-12-09 16:45:33 -08:00
Siara
9f75a768ea
Update codespaces-template-note.rst
2022-12-09 15:59:27 -08:00
SiaraMist
ae4bc3eb09
Merge branch 'siaramist/codeql-template' of https://github.com/github/codeql into siaramist/codeql-template
2022-12-09 15:45:05 -08:00
SiaraMist
75fc9d0c6a
Update reusable name
2022-12-09 15:43:30 -08:00
Jami Cogswell
6854845b75
Java: refactor isManuallyGenerated and isBothAutoAndManuallyGenerated
2022-12-09 18:37:50 -05:00
Siara
d1aacb7260
Add new line to end of reusable
2022-12-09 15:34:31 -08:00
Mathias Vorreiter Pedersen
de70cbfee9
C++: Change caching for dataflow.
2022-12-09 23:30:47 +00:00
SiaraMist
b4f7239f54
Updates from review
2022-12-09 15:27:04 -08:00
Jeroen Ketema
ce92ba640a
C++: Accept test changes
2022-12-09 23:38:03 +01:00
Jeroen Ketema
9dc2614012
C++: Make all flow source descriptions start with a lower case letter
...
In every context where we use the description a lower case letter makes more
sense.
2022-12-09 23:18:58 +01:00
Jeroen Ketema
1e1974c9fb
C++: Add change note
2022-12-09 23:17:36 +01:00
Jeroen Ketema
331fab5ac0
C++: Generalize the ArgvSource flow source
...
This matches `isUserInput` and handles cases where `argv` has a different name,
which is allowed.
2022-12-09 23:12:31 +01:00
Jami Cogswell
123fe5edfe
C#: add isParameterless predicate to Constructor class
2022-12-09 15:55:32 -05:00
Jami Cogswell
cde93a39cd
Java: add isParameterless predicate to Constructor class
2022-12-09 15:51:40 -05:00
Chris Smowton
5282c86158
Apply review feedback
2022-12-09 18:07:14 +00:00
Mathias Vorreiter Pedersen
2ad61df9df
Merge pull request #11640 from MathiasVP/local-expr-step-should-step
...
C++: Prevent an `Expr` from stepping to itself in IR dataflow
2022-12-09 17:31:19 +00:00
Edward Minnix III
4278997a2c
Reword WebView file access query description
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-12-09 11:36:09 -05:00
Edward Minnix III
8c8e71dd82
Grammar, concision, and style edits
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-12-09 11:35:02 -05:00
Joe Farebrother
12dc11aa18
Add qldoc
2022-12-09 15:07:49 +00:00
ALJI Mohamed
545aab0e07
tarball path provided using CLI argument (source)
2022-12-09 15:54:43 +01:00
Mathias Vorreiter Pedersen
52bf39bcf9
C++: Use a 'fastTC' instead of '*' to improve performance.
2022-12-09 14:21:09 +00:00
Mathias Vorreiter Pedersen
a3285653ae
C++: Prevent an expression to stepping to itself.
2022-12-09 14:20:27 +00:00
Michael Nebel
4835d14865
Java/C#: Delete the deprecated NeutralModelCsv class.
2022-12-09 15:11:49 +01:00
Ian Lynagh
1bf82cecfa
Merge pull request #11602 from igfoo/igfoo/diaglimits
...
Kotlin: Improve diagnostic limit message
2022-12-09 14:05:47 +00:00
Michael Nebel
67732cbfa0
Java: Remove unneeded import for RegenerateModels.py.
2022-12-09 15:04:43 +01:00
Michael Nebel
1a226a15bf
C#/Java: Cleanup up printing of generated models.
2022-12-09 15:04:43 +01:00
Michael Nebel
1d103f57a0
C#/Java: Rename CaptureNegativeSummaryModels test to CaptureNeutralModels.
2022-12-09 15:04:43 +01:00
Michael Nebel
2cb88037a4
C#/Java: Rename Negative Summary Model to Neutral Model in conversion and generator tooling.
2022-12-09 15:04:43 +01:00
Michael Nebel
ac2d55880c
Go: Rename Negative Summary Model to Neutral Model.
2022-12-09 15:04:43 +01:00
Michael Nebel
d13307e417
Swift: Rename Negative Summary Model to Neutral Model.
2022-12-09 15:04:43 +01:00
Michael Nebel
a14df1ca61
Ruby: Rename Negative Summary Model to Neutral Model.
2022-12-09 15:04:43 +01:00
Michael Nebel
f4f7d83349
Python: Rename Negative Summary Model to Neutral Model.
2022-12-09 15:04:43 +01:00
Michael Nebel
3af00a8f3f
Java: Rename Negative Summary Model to Neutral Model.
2022-12-09 15:04:43 +01:00
Michael Nebel
079d48c42a
Sync files.
2022-12-09 15:04:42 +01:00
Michael Nebel
ad90e58120
C#: Rename Negative Summary Model to Neutral Model.
2022-12-09 15:04:42 +01:00
Joe Farebrother
8de5efb28f
Add SetDefaultConnectionFactoryMethod class
2022-12-09 13:41:18 +00:00
Joe Farebrother
0dea5daffe
Change import for consistency, fix some typos
2022-12-09 13:41:18 +00:00
Joe Farebrother
2be68b2f1d
Apply suggestions from code review
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-12-09 13:41:18 +00:00
Joe Farebrother
a14ebb7c03
Fixes
2022-12-09 13:41:18 +00:00
Joe Farebrother
fae4043008
Add change note
2022-12-09 13:41:18 +00:00
Joe Farebrother
603c1c1693
Add the domain used to the alert message
2022-12-09 13:41:18 +00:00
Joe Farebrother
ceb253e6d1
Add qhelp
2022-12-09 13:41:18 +00:00
Joe Farebrother
749ecab6b1
Add security severity
2022-12-09 13:41:18 +00:00
Joe Farebrother
0d6a376a36
Add test cases for TrustManager case
2022-12-09 13:41:18 +00:00
Joe Farebrother
c8aca06190
Implement pinning through a TrustManager
...
+ Fix that the query was accidentally placed in experimental
2022-12-09 13:41:18 +00:00
Joe Farebrother
4afecf575e
Generate more stubs for okhttp and fix tests.
...
Some generated stubs needed to be manually corrected.
2022-12-09 13:41:17 +00:00
Joe Farebrother
bb402c497b
Fix typo in dir name
2022-12-09 13:41:17 +00:00
Joe Farebrother
53c4ada883
Add okhttp tests
2022-12-09 13:41:17 +00:00
Joe Farebrother
c32dc1e674
Implement okhttp support
2022-12-09 13:41:17 +00:00
Joe Farebrother
da7032d3d6
Add qldoc
2022-12-09 13:41:17 +00:00
Joe Farebrother
ea3db5d429
Add test cases
2022-12-09 13:41:17 +00:00
Joe Farebrother
c3da3a9aef
Add a bit of additional context to the alert message; fix issue with finding the config file
2022-12-09 13:41:17 +00:00
Joe Farebrother
17348fbd32
Add android certificate pinning query
2022-12-09 13:41:17 +00:00
Chris Smowton
b8ed3b7dbf
Accept annotation test changes
...
These are notnull annotations that no longer get inappropriately attached to constructors
2022-12-09 12:57:20 +00:00
Tamás Vajk
357e460cf2
Merge pull request #11588 from tamasvajk/kotlin-extension-defaults
...
Kotlin: Fix extraction of `$default` extension functions
2022-12-09 13:56:47 +01:00
Mathias Vorreiter Pedersen
7d1f10bc78
Merge pull request #11627 from jketema/getaddrinfo
...
C++: Model `getaddrinfo` as flow source
2022-12-09 12:38:43 +00:00
Chris Smowton
40e902eca9
Look through generic annotation types extracted from Kotlin
2022-12-09 11:52:28 +00:00
Paolo Tranquilli
a93e361aca
Merge branch 'main' into redsun82/swift-open-redirection
2022-12-09 12:19:38 +01:00
Chris Smowton
65dc0dc326
Add dummy extensible predicate definition to integration test
2022-12-09 11:17:37 +00:00
Mathias Vorreiter Pedersen
b9c9f65f0f
Merge pull request #11633 from MathiasVP/accept-consistency-failures
...
C++: Accept dataflow consistency changes
2022-12-09 11:03:03 +00:00
Chris Smowton
a161d79cd8
Remove no-longer-needed expected diagnostics
2022-12-09 10:33:06 +00:00
Chris Smowton
93ea433c49
Add missing imports
2022-12-09 10:33:06 +00:00
Chris Smowton
251513c1d3
Format ql
2022-12-09 10:33:06 +00:00
Chris Smowton
78234c52fd
Ensure constructors don't get nullability annotations
2022-12-09 10:33:06 +00:00
Chris Smowton
f5dc5155f9
Don't introduce @NotNull on Kotlin methods that already have that annotation
...
This usually can't happen, but delegates pointing at Java appear to be synthesised with this normally-hidden annotation
2022-12-09 10:33:05 +00:00
Chris Smowton
c8e2ae8563
Accept integration test changes
...
These introduce newly-extracted annotations, and note that enum constants no longer get type-access expressions in some circumstances
2022-12-09 10:33:05 +00:00
Chris Smowton
7a7c08b185
Tolerate generic annotations
...
This causes them to render properly in PrintAst output due to `getAnnotationElement` working as expected, and will hide the fact that they are represented by raw types in bytecode.
2022-12-09 10:33:05 +00:00
Chris Smowton
f6888c727f
PrintAst: Assign indices to annotation children that don't have source locations
...
This avoids them all tying at rank 1 as before.
2022-12-09 10:33:05 +00:00
Chris Smowton
01a5345660
Reimplement Deprecated annotation conversion suitable for older Kotlin versions
2022-12-09 10:33:05 +00:00
Chris Smowton
8ca05d8fef
Exclude annotations from consistency check due to intentionally missing children
2022-12-09 10:33:05 +00:00
Chris Smowton
70ebb41d67
Restore nullability annotations
...
This is imperfect since arguments to those annotations will be missing, but at least the common case of a plain `@NotNull` or `@Nullable` will be right, and the `@NotNull`s introduced by the Kotlin compiler will be present as expected.
2022-12-09 10:33:05 +00:00
Chris Smowton
8bbb34a498
Convert kotlin.Deprecated back into a no-arg java.lang.Deprecated if applicable
...
This at least maintains consistency with the Java extractor, although we lose its arguments if any were supplied Java-side.
2022-12-09 10:33:05 +00:00
Chris Smowton
658c7a20cf
Don't extract error expressions when a default value is missing
...
This is a shortcoming of the Kotlin extractor, but at least this way we don't introduce an inconsistency if the annotation is later seen from .kt source or by the Java extractor
2022-12-09 10:33:05 +00:00
Chris Smowton
5b2834c833
Restrict type access extraction to classes extracted from source
...
Type accesses have anonymous IDs, so we mimic the Java extractor and extract them only when seeing a class in a .kt source file.
2022-12-09 10:33:05 +00:00
Chris Smowton
0a788bcbc1
Don't extract return value type accesses for external annotations
...
This would cause inconsistencies when both the source and external view of the class are in scope, since the type access has a fresh id.
2022-12-09 10:33:05 +00:00
Chris Smowton
225913c49e
Replace needless map call
2022-12-09 10:33:04 +00:00
Chris Smowton
80ef3a5290
Move meta-annotation support code out into its own class
2022-12-09 10:33:04 +00:00
Chris Smowton
c4ded5b4a7
Remove unused function
2022-12-09 10:33:04 +00:00
Chris Smowton
3dc9c2e57b
Remove unnecessary unchecked cast
2022-12-09 10:33:04 +00:00
Chris Smowton
f9fc08bd40
Replace uses of the !! operator in borrowed code
2022-12-09 10:33:04 +00:00
Chris Smowton
81353f8654
Make annotation extraction compatible with all supported Kotlin versions
2022-12-09 10:33:04 +00:00
Chris Smowton
757fa60a46
Remove unused import
2022-12-09 10:33:04 +00:00
Chris Smowton
f9b878fe98
Add test for .kt defined, Java used repeatable annotation
2022-12-09 10:33:04 +00:00
Chris Smowton
5c019940db
Fix missing !! removal
2022-12-09 10:33:04 +00:00
Chris Smowton
ca27f9516a
Replace uses of !! operator
2022-12-09 10:33:04 +00:00
Chris Smowton
73df3166eb
Test varargs annotation
2022-12-09 10:33:04 +00:00
Chris Smowton
6d5f962c56
Accept test changes (implicit annotations, restoration of annotation type accesses)
2022-12-09 10:33:03 +00:00
Chris Smowton
d96bca071d
Add test for repeatable annotations
2022-12-09 10:33:03 +00:00
Chris Smowton
eaa9595ea2
Restore type-accesses to annotation methods; accept test changes.
2022-12-09 10:33:03 +00:00
Chris Smowton
9e0eb56d77
Extract repeatable annotation container types, including synthetic containers
2022-12-09 10:33:03 +00:00
Chris Smowton
0146d8229a
Accept more test changes due to string quoting and the Java extractor ignoring the Metadata annotation
2022-12-09 10:33:03 +00:00
Chris Smowton
0446145a67
Accept test changes
...
These are due to changing string literal representation, omitting empty annotations blocks, and changes to how annotation classes are represented in the database.
2022-12-09 10:33:03 +00:00
Chris Smowton
d530817afc
Accept annotation_classes test changes
2022-12-09 10:33:03 +00:00
Chris Smowton
df90fc1a80
Disable type parameter annotation extraction pending a database change
2022-12-09 10:33:03 +00:00
Chris Smowton
9b3c07c32b
Add annotation class meta-annotations per classes' expected JVM lowering
2022-12-09 10:33:03 +00:00
Chris Smowton
f7d2644d74
Re-enable extracting most annotations
2022-12-09 10:33:03 +00:00
Chris Smowton
26540111ce
Factor out common code for referencing an external type
2022-12-09 10:33:03 +00:00
Chris Smowton
8781366fbe
Only extract function annotations for unbound types
...
Note however this includes extracting annotations for external types, unlike the situation for function bodies.
2022-12-09 10:33:01 +00:00
Chris Smowton
06133e74a5
Handle generic annotations
2022-12-09 10:31:34 +00:00
Chris Smowton
14a47f628c
Fixup: remove unneeded test file
2022-12-09 10:31:34 +00:00
Chris Smowton
d7213d2d82
Only convert KClass -> Class in annotation context
2022-12-09 10:31:34 +00:00
Chris Smowton
2fd8e61fe2
Add test of Java/Kotlin annotation naming consistency
2022-12-09 10:31:34 +00:00
Chris Smowton
24434ed0ff
Make annotation labelling consistent between Java and Kotlin
...
This gives all annotations and expressions derived from them globally-significant and stable names, enabling the Kotlin and Java extractors to see the same annotation without introducing database conflicts.
2022-12-09 10:31:34 +00:00
Tamas Vajk
df595c05f2
WIP: revert some annotation extraction to get proper tree in printast
2022-12-09 10:31:34 +00:00
Tamas Vajk
fed770fcd1
Move kotlin annotations to negative child index
2022-12-09 10:31:33 +00:00
Tamas Vajk
96a407c9c5
WIP: extract annotations for all declarations
2022-12-09 10:31:33 +00:00
Tamas Vajk
3e1d4a7400
Add more annotation tests, add KClass to Class substitution
2022-12-09 10:31:33 +00:00
Tamas Vajk
f465dd5362
Add more annotation tests
2022-12-09 10:31:33 +00:00
Tamas Vajk
a0cd9fea34
Fix more not from source expressions in tests
2022-12-09 10:31:33 +00:00
Tamas Vajk
b73bfd6133
Compilation fixup
2022-12-09 10:31:33 +00:00
Tamas Vajk
1898f94472
Filter expressions to source files in tests
2022-12-09 10:31:33 +00:00
Tamas Vajk
b5ae43a887
Remove empty annotations node from PrintAST
2022-12-09 10:31:33 +00:00
Tamas Vajk
3b09cb2224
WIP: Extract annotation values (tests are missing)
2022-12-09 10:31:33 +00:00
Tamas Vajk
7b075c2190
WIP: extract annotations on classes, with constant values
2022-12-09 10:31:33 +00:00
Tamas Vajk
9fa840106f
Extract annotation declarations
2022-12-09 10:31:33 +00:00
Tony Torralba
3b9b9b339e
Merge pull request #11632 from atorralba/atorralba/swift/nsdata_rename
...
Swift: Rename NSData.qll to NsData.qll
2022-12-09 10:46:42 +01:00
Tamas Vajk
6bcfdfca88
Adjust getExtensionReceiverParameterIndex predicate name and change note
2022-12-09 10:29:52 +01:00
Tamas Vajk
e410e2744b
Add change note
2022-12-09 10:29:52 +01:00
Tamas Vajk
ce5509a080
Kotlin: Adjust MaD argument shifting for $default method
2022-12-09 10:29:52 +01:00
Tamas Vajk
243c311b3d
Accept unit test changes
2022-12-09 10:29:52 +01:00
Tamas Vajk
81c35c8b27
Adjust PathSanitizer to use fixed $default extension method functionality
2022-12-09 10:29:52 +01:00
Tamas Vajk
f646938d91
Revert "Kotlin: Adjust ExtensionReceiverAccess.toString to not return hard coded this value"
...
This reverts commit 9649a8f64aa47d860d3ce2d005a939df75ee0e41.
2022-12-09 10:29:52 +01:00
Tamas Vajk
ac5219fc7a
Kotlin: Adjust ExtensionReceiverAccess.toString to not return hard coded this value
2022-12-09 10:29:52 +01:00
Tamas Vajk
d93dce0fa9
Kotlin: Fix extension and dispatch parameter order in $default functions
2022-12-09 10:29:51 +01:00
Tamas Vajk
6457e059f5
Kotlin: Fix extraction of $default extension functions
2022-12-09 10:26:44 +01:00
Tamas Vajk
43f23801f5
Kotlin: Add test for extension $default functions
2022-12-09 10:26:44 +01:00
Tom Hvitved
606d2f42f5
Merge pull request #11620 from github/dependabot/nuget/csharp/autobuilder/Semmle.Autobuild.CSharp/Newtonsoft.Json-13.0.2
...
Bump Newtonsoft.Json from 13.0.1 to 13.0.2 in /csharp/autobuilder/Semmle.Autobuild.CSharp
2022-12-09 10:26:01 +01:00
Mathias Vorreiter Pedersen
1169c1b898
C++: Accept test changes caused by the new consitency check.
2022-12-09 09:20:29 +00:00
Asger F
387a673c10
Merge pull request #11567 from asgerf/js/data-extensions2
...
JS: Move MaD models to data extensions
2022-12-09 10:09:24 +01:00
Paolo Tranquilli
7162692656
Swift: exit directly on actions not requiring extraction
2022-12-09 10:00:01 +01:00
Paolo Tranquilli
4a41bb4061
Merge branch 'main' into redsun82/swift-open-redirection
2022-12-09 09:59:21 +01:00
Peter Stöckli
d2c8e70be1
Adjust expected file for TaintStep (due to changes to File.join)
2022-12-09 09:57:19 +01:00
Peter Stöckli
03fff2709b
Add suggestions to fix FileJoinSanitizer
2022-12-09 09:42:44 +01:00
Tony Torralba
6822399dbb
Swift: Rename NSData.qll to NsData.qll
2022-12-09 09:18:55 +01:00
Chris Smowton
cddb5c5e2d
Merge pull request #11616 from smowton/smowton/fix/callable-modality-abstraction
...
Kotlin: extract callable modality
2022-12-09 08:07:57 +00:00
AlexDenisov
2db77a7c08
Merge pull request #11607 from github/redsun82/swift-integration-test-timeout
...
Swift: add timeout to integration tests on macOS
2022-12-09 08:38:51 +01:00
AlexDenisov
6f631b4daf
Merge pull request #11622 from github/redsun82/swift-fix-parent-paths
...
Swift: fix extraction of sources from `..`
2022-12-09 08:37:46 +01:00
Peter Stöckli
0d8c82009c
Merge branch 'main' into p--ruby-kernel-open-addition
2022-12-09 07:54:56 +01:00
Jami Cogswell
0b2f2a3f88
Java: remove predicates from NegativeSummarizedCallable
2022-12-08 23:46:55 -05:00
Jami Cogswell
2c3adb769b
Java: remove MadModeledCallable class and update predicate names
2022-12-08 23:32:07 -05:00
Jami Cogswell
974c000b65
Java: add bindingset for package
2022-12-08 23:17:53 -05:00
Jami Cogswell
a32ed21480
Java: clean up comments and predicates
2022-12-08 23:09:09 -05:00
Jami Cogswell
ca00e0ab9e
Java: adjust none and all calculations
2022-12-08 22:14:28 -05:00
Jami Cogswell
6248efd394
Java: adjust column names and metric formulas
2022-12-08 21:13:52 -05:00
Jami Cogswell
9e0027cf5b
Java: remove negative models
2022-12-08 20:58:37 -05:00
Jami Cogswell
d558f93972
Java: update DataFlowTargetApi for funcexpr and paramless constructor exclusions
2022-12-08 20:51:40 -05:00
Jami Cogswell
083b8d1de6
C#: make predicate private
2022-12-08 20:17:28 -05:00
Siara
c1efb7f3f4
Update introduction-to-ql.rst
2022-12-08 16:12:59 -08:00
Siara
986c15cd08
Update introduction-to-ql.rst
2022-12-08 15:58:07 -08:00
Chris Smowton
1d209d1bcd
Accept modifiers test changes
2022-12-08 22:52:40 +00:00
Siara
dded684ad6
Update docs/codeql/writing-codeql-queries/introduction-to-ql.rst
2022-12-08 14:43:14 -08:00
Siara
7b6aa09646
Update introduction-to-ql.rst
2022-12-08 14:42:38 -08:00
Jeroen Ketema
2095f11b8c
C++: Add change note
2022-12-08 23:35:32 +01:00
Jami Cogswell
dc51226a56
C#: update qldocs
2022-12-08 17:24:50 -05:00
Jami Cogswell
a1908be165
C#: remove previous uses of isUninteresting
2022-12-08 17:12:26 -05:00
Siara
b89dd3d8ac
Merge branch 'codeql-cli-2.11.5' into siaramist/codeql-template
2022-12-08 14:07:58 -08:00
Siara
2ac736cd74
Update introduction-to-ql.rst
2022-12-08 14:07:39 -08:00
Jami Cogswell
ff85e2f9f2
C#: update ExternalApi characteristic predicate to include not isUninteresting
2022-12-08 17:07:24 -05:00
Jami Cogswell
f48cc9f40e
Java: remove previous uses of isUninteresting
2022-12-08 16:56:43 -05:00
Jeroen Ketema
aabbafd2bf
C++: Fix QL-for-QL warning
2022-12-08 19:33:11 +01:00
Jeroen Ketema
ec0ce56269
C++: Model getaddrinfo as flow source
2022-12-08 19:20:11 +01:00
Jeroen Ketema
89cd4790d5
Merge pull request #11610 from jketema/scanf
...
C++: Model `scanf` and `fscanf` as flow sources
2022-12-08 19:14:39 +01:00
Chris Smowton
4ea795baf4
Autoformat docs ql files
2022-12-08 17:36:59 +00:00
Chris Smowton
f4f4de392f
Outdent river answer files
2022-12-08 17:36:59 +00:00
Jami Cogswell
29046e7960
Java: update ExternalApi characteristic predicate to include not isUninteresting
2022-12-08 12:31:46 -05:00
Geoffrey White
f373b7fe7c
Merge pull request #11596 from geoffw0/cleartextbufferwrite
...
C++: Performance fix for cpp/cleartext-storage-buffer
2022-12-08 17:18:10 +00:00
Geoffrey White
52881385bf
Merge pull request #11597 from geoffw0/stats2
...
Swift: Add taint reach to SummaryStats.ql.
2022-12-08 17:11:56 +00:00
Paolo Tranquilli
7645d4d928
Swift: remove ModuleDecl from PrintAst test
2022-12-08 17:31:48 +01:00
Chris Smowton
f50a4ddf5f
Merge pull request #11617 from github/smowton/admin/docs-river-example-codeql-style
...
Docs: Make river-crossing example comply with the CodeQL style guide
2022-12-08 16:17:54 +00:00
Paolo Tranquilli
26ae8f177b
Swift: accept test changes
...
Downgrading the emit object action to a type check one has some
unexpected side effects, that seem however acceptable:
* experimental false static assertions do not make compilation fail in
type check mode
* the implicit module loading of `SwiftOnoneSupport` is not happening.
That module contains some "pre-specializations", it does not seem
really relevant for analysis
2022-12-08 17:13:00 +01:00
Paolo Tranquilli
935e264f24
Swift: add empty directory marker
2022-12-08 17:04:56 +01:00
Robert Marsh
f235b991db
Merge pull request #11374 from MathiasVP/indirect-outnodes-are-post-update-nodes
...
C++: Field flow through reference-returning functions
2022-12-08 10:46:19 -05:00
Henry Mercer
d196704a2d
Merge pull request #11574 from github/henrymercer/check-query-ids
...
Add a PR check to ensure query IDs are unique
2022-12-08 15:31:26 +00:00
Tom Hvitved
2ab05a81d1
Merge pull request #11621 from hvitved/ruby/library-callable-get-param
...
Ruby: Add `SummarizedCallable::getParameter`
2022-12-08 16:20:44 +01:00
Jeroen Ketema
8f9a73ee09
C++: Address review comments
2022-12-08 16:14:12 +01:00
Paolo Tranquilli
d03b82c8c5
Merge branch 'main' into redsun82/swift-fix-parent-paths
2022-12-08 16:11:54 +01:00
Paolo Tranquilli
d35c5e90ee
Swift: remove fishhook
2022-12-08 16:10:44 +01:00
Paolo Tranquilli
bf1b32f210
Swift: rework file redirection
...
The hash map mechanism that was already in use for reading swiftmodule
files on macOS is now in use also on Linux. The output replacing
mechanism has been also reworked so that:
* frontend module emission modes have the remapping done directly in
the internal frontend options instead of painstakingly modifying input
flags (this requires a patch on the swift headers though)
* object emission mode is silenced to be just a type checking pass,
thus producing no output files
* all other passes but some debugging and version related ones become
noops
The open file read redirection uses a global weak pointer instance to
maximize robustness in the face of possibly multi-threaded calls to open
happening while `main` is exiting. Possibly overkill, but better safe
than sorry.
2022-12-08 16:10:44 +01:00
Paolo Tranquilli
944adfe727
Swift: allow modifying frontend outputs
2022-12-08 16:10:25 +01:00
Paolo Tranquilli
219ed64b74
Swift: reorganize bazel third party dependencies
2022-12-08 16:10:25 +01:00
dependabot[bot]
8600d2d12d
Bump Newtonsoft.Json in /csharp/autobuilder/Semmle.Autobuild.CSharp
...
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json ) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases )
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/13.0.1...13.0.2 )
---
updated-dependencies:
- dependency-name: Newtonsoft.Json
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-08 15:01:05 +00:00
Tom Hvitved
cbf722dad0
Ruby: Add SummarizedCallable::getParameter
2022-12-08 15:59:41 +01:00
Paolo Tranquilli
1ba8b6d35a
Swift: fix extraction of sources from ..
2022-12-08 15:57:57 +01:00
Chris Smowton
d0a2c1c9b6
Accept test changes
2022-12-08 14:44:43 +00:00
erik-krogh
1a6e16f292
Merge branch 'main' into kernelLoad
2022-12-08 15:41:48 +01:00
Chris Smowton
a79126268c
Override modality when needed
...
In particular when generating an implementation based on an abstract prototype, the result is final, and an interface forwarder is open / Java's default modality.
2022-12-08 14:39:57 +00:00
Asger F
6fa2fe6c86
Merge pull request #11608 from asgerf/docs/sphinx-python2
...
Docs: Update README to mention Python 2 requirement
2022-12-08 15:36:17 +01:00
erik-krogh
f09e10f61f
delete redundant cast
2022-12-08 15:34:26 +01:00
Mathias Vorreiter Pedersen
7c6918de98
Merge pull request #11543 from MathiasVP/refactor-isdef-isuse
...
C++: Refactor `isDef` and `isUse` in preparation for iterator flow
2022-12-08 14:31:36 +00:00
Jeroen Ketema
33fa76f911
C++: Add change note
2022-12-08 15:22:42 +01:00
Jeroen Ketema
b216c79992
C++: Accept test changes
2022-12-08 15:22:41 +01:00
Jeroen Ketema
f35b7f8fe8
C++: Model scanf and fscanf as flow sources
2022-12-08 15:22:41 +01:00
Anders Schack-Mulligen
d157e13318
Java: Switch DispatchFlow to typetracking.
2022-12-08 14:58:44 +01:00
Anders Schack-Mulligen
ae1373c2d6
Shared: Bugfix typetracking source-sink hasFlow.
2022-12-08 14:58:05 +01:00
Chris Smowton
85ee4e6ca1
Merge pull request #11578 from retanoj/MybatisSqli
...
Java: Add MyBatis Sql Injection no @Param case
2022-12-08 13:53:44 +00:00
Chris Smowton
37b2b0a128
Use set literal instead of disjunction
2022-12-08 13:49:53 +00:00
Mathias Vorreiter Pedersen
f814ce7f10
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into refactor-isdef-isuse
2022-12-08 13:25:20 +00:00
Mathias Vorreiter Pedersen
0a1097d735
C++: Accept test changes to 'sources-and-sinks.cpp'.
2022-12-08 13:17:35 +00:00
Mathias Vorreiter Pedersen
4fd6ac5657
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-08 13:10:18 +00:00
Geoffrey White
24ce1c27bc
Swift: Autoformat.
2022-12-08 13:09:37 +00:00
Henry Mercer
3036b15af2
Merge branch 'main' into henrymercer/check-query-ids
2022-12-08 13:05:46 +00:00
Henry Mercer
280bb6864f
Merge pull request #11604 from github/codeql-ci/atm/release-0.4.3
...
JS: Bump version numbers of ML-powered packs after 0.4.3 release
2022-12-08 13:04:16 +00:00
Henry Mercer
5674251839
Python: Disable TarSlipImprov qhelp
2022-12-08 13:03:31 +00:00
Geoffrey White
e288b07099
Update swift/ql/src/queries/Summary/SummaryStats.ql
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-12-08 13:02:58 +00:00
Mathias Vorreiter Pedersen
6897b20722
Merge pull request #11601 from MathiasVP/keep-std-string-iterator
2022-12-08 12:59:33 +00:00
Michael Nebel
670ae6c84c
Merge pull request #11593 from michaelnebel/csharp/patternmatchspan
...
C#: Pattern match Span<char> and ReadOnlySpan<char> against a constant string.
2022-12-08 13:53:00 +01:00
Michael Nebel
5883957a67
Merge pull request #11589 from michaelnebel/csharp/numericintptr
...
C#: nint/System.IntPtr and nuint/System.UIntPtr are indistinguishable…
2022-12-08 13:52:44 +01:00
Chris Smowton
8789dfb655
Make river-crossing example comply with the CodeQL style guide
2022-12-08 12:33:42 +00:00
Mathias Vorreiter Pedersen
36d0903733
C++: Simplify 'getSourceVariable'.
2022-12-08 12:29:15 +00:00
Chris Smowton
81110b19e7
Merge pull request #11612 from smowton/smowton/admin/merge-rc38-into-main
...
Merge rc/3.8 into main
2022-12-08 12:25:59 +00:00
Chris Smowton
045e3a2cf3
Kotlin: extract callable modality
2022-12-08 12:22:50 +00:00
Geoffrey White
07ea006cee
Swift: Add support for CSV modelled sinks as well.
2022-12-08 11:36:55 +00:00
Geoffrey White
dba344451f
Swift: Add UncontrolledFormatStringExtensions.qll.
2022-12-08 11:32:50 +00:00
Chris Smowton
0d2474bd55
Autoformat
2022-12-08 11:30:53 +00:00
ALJI Mohamed
9336f4f1a2
Considering the use of contextlib.closing() method
2022-12-08 12:26:59 +01:00
Chris Smowton
49bc524fd0
Merge remote-tracking branch 'origin/rc/3.8' into smowton/admin/merge-rc38-into-main
2022-12-08 11:12:30 +00:00
Rasmus Wriedt Larsen
d684dbdf5c
Merge pull request #10656 from porcupineyhairs/PyPamImprove
...
Python: Improve the PAM authentication bypass query
2022-12-08 11:59:10 +01:00
Rasmus Wriedt Larsen
a826c4f48b
Merge branch 'main' into call-graph-code
2022-12-08 11:39:30 +01:00
Jeroen Ketema
a6bc9fd10f
Merge pull request #11591 from jketema/getenv
...
C++: Model `secure_getenv` and `_wgetenv` as local flow sources
2022-12-08 10:44:28 +01:00
Asger F
f2b99c5fff
Docs: Update README to mention Python 2 requirement
2022-12-08 09:50:01 +01:00
Jeroen Ketema
fc49ede33d
C++: Add change note
2022-12-08 09:44:23 +01:00
Jeroen Ketema
a2dac3a41e
C++: Move remote flow sink test and also handle local and remote sinks
2022-12-08 09:36:19 +01:00
Mathias Vorreiter Pedersen
ba3d50a462
Merge pull request #11566 from MathiasVP/skip-lvalue-types
2022-12-08 07:53:20 +00:00
Paolo Tranquilli
0058bf4443
Swift: add timeout to inetgration tests on macOS
2022-12-08 08:44:29 +01:00
Jami Cogswell
e9e5f92603
Java: update notModeled for negative numbers
2022-12-07 21:46:52 -05:00
retanoj
0edfc6e01e
greedy matching
2022-12-08 09:23:24 +08:00
Mathias Vorreiter Pedersen
9f85175ee1
C++: Fix blowup in 'stripPointer'.
2022-12-07 22:35:37 +00:00
Mathias Vorreiter Pedersen
5ae3228928
C++: Fix TODO.
2022-12-07 22:34:10 +00:00
Mathias Vorreiter Pedersen
68f0997d87
C++: Generalize loads and stores.
2022-12-07 22:34:10 +00:00
Mathias Vorreiter Pedersen
589f7bdbcc
C++: Introduce BaseSourceVariableInstruction.
2022-12-07 22:34:03 +00:00
Jami Cogswell
aa7e6d7811
Java: add negative numbers
2022-12-07 17:17:35 -05:00
Aditya Sharad
c7725ec37c
Merge pull request #11605 from github/smowton/admin/merge-2.11.5-into-rc38
...
Merge codeql-cli-2.11.5 into rc/3.8
2022-12-07 14:09:05 -08:00
Henry Mercer
78f15755d7
Merge branch 'main' into codeql-ci/atm/release-0.4.3
2022-12-07 20:49:26 +00:00
Chris Smowton
32494859cd
Merge remote-tracking branch 'origin/codeql-cli-2.11.5' into smowton/admin/merge-2.11.5-into-rc38
2022-12-07 20:06:08 +00:00
github-actions[bot]
d577eeeea8
JS: Bump version of ML-powered library and query packs to 0.4.4
2022-12-07 20:05:30 +00:00
github-actions[bot]
9702ea02fb
JS: Bump patch version of ML-powered library and query packs
2022-12-07 20:01:33 +00:00
Ian Lynagh
6267da44ae
Kotlin: Improve diagnostic limit message
...
The message saying that the limit was exceeded is now given at the same
severity as the original message.
2022-12-07 18:33:35 +00:00
Mathias Vorreiter Pedersen
54c12cd715
C++: Reintroduce 'StdBasicStringIterator'.
2022-12-07 18:21:52 +00:00
Geoffrey White
1d4631e231
C++: Better solution.
2022-12-07 18:00:38 +00:00
Tom Hvitved
35938067fe
Merge pull request #11517 from aibaars/phi-reads-in-data-flow-graph
...
Ruby: Include SSA "phi reads" in DataFlow::Node
2022-12-07 18:58:44 +01:00
Mathias Vorreiter Pedersen
05d89b29e2
Merge branch 'main' into skip-lvalue-types
2022-12-07 17:50:23 +00:00
Geoffrey White
627162b343
C++: Fix cpp/offset-use-before-range-check performance.
2022-12-07 17:32:36 +00:00
Ian Lynagh
e6c3bcec63
Java/Kotlin: Update the diagnostic severity documentation
2022-12-07 17:14:51 +00:00
Geoffrey White
a8b8b54f8d
Update cpp/ql/src/Security/CWE/CWE-311/CleartextBufferWrite.ql
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-12-07 16:44:33 +00:00
Geoffrey White
80cd994e36
Swift: Add taint reach to SummaryStats.ql.
2022-12-07 16:17:24 +00:00
Alvaro Muñoz
38b2f537d4
Use ReplyCall.super syntax instead of this.(ReplyCall)
2022-12-07 16:39:07 +01:00
Geoffrey White
4b8575bfc3
C++: Simplify the query slightly.
2022-12-07 15:35:45 +00:00
Arthur Baars
898a4006b0
Merge pull request #10747 from aibaars/ruby-more-flow
...
Ruby: also treat included/prepended modules as subclasses
2022-12-07 15:49:00 +01:00
Geoffrey White
b3d838d678
C++: Define the sources more clearly and consistently (fixes performance issue).
2022-12-07 14:45:39 +00:00
Chris Smowton
9f9a51685b
Merge pull request #11510 from smowton/smowton/fix/kotlin-populate-source-class-files
...
Kotlin: stub trap .class files when extracting a class from Kotlin source
2022-12-07 14:33:42 +00:00
Edward Minnix III
170c9af9e8
Merge pull request #11238 from egregius313/egregius313/webview-setjavascriptenabled
...
Java: Query for detecting enabling Javascript in Android WebSettings
2022-12-07 09:31:58 -05:00
Arthur Baars
d862972d5e
Ruby: Add use-use stress test
2022-12-07 15:28:51 +01:00
Arthur Baars
d5f4340cf5
Ruby: address comment
2022-12-07 15:28:50 +01:00
Arthur Baars
f11f2cb1a0
Ruby: Update tests
2022-12-07 15:28:50 +01:00
Arthur Baars
2131b0f116
Ruby: Include SSA "phi reads" in DataFlow::Node
2022-12-07 15:28:48 +01:00
Michael Nebel
468b05ccda
C#: Expressions of type Span<char> and ReadOnlySpan<char> can be matched against constant strings.
2022-12-07 14:31:51 +01:00
Mathias Vorreiter Pedersen
135c820a32
Merge pull request #11592 from github/redsun82/swift-fix-get-number-of
...
Swift: fix generated `getNumberOf`
2022-12-07 13:24:09 +00:00
retanoj
9cfeaeb18e
Merge branch 'main' into MybatisSqli
2022-12-07 21:19:08 +08:00
erik-krogh
9ef4f12261
add change-note
2022-12-07 14:12:43 +01:00
erik-krogh
8ab31bbe1c
have getMethodName return the method being called for super-calls
2022-12-07 14:09:36 +01:00
Jami
5e694b5983
Merge pull request #11192 from jcogs33/jcogs33/share-key-sizes
...
Share encryption key sizes between Java and Python
2022-12-07 08:08:24 -05:00
Paolo Tranquilli
ef348453fe
Swift: accept new, correct test result on TypeTuple::getNumberOfTypes
2022-12-07 13:46:51 +01:00
Paolo Tranquilli
194c99c513
Swift: fix getNumberOf predicate
2022-12-07 13:46:51 +01:00
Paolo Tranquilli
23626f2c69
Swift: add TupleType test
2022-12-07 13:46:51 +01:00
Paolo Tranquilli
9b89ded908
Swift: accept test changes
2022-12-07 13:46:51 +01:00
Paolo Tranquilli
d39f37540e
Swift: add has and getNumberOf properties to generated tests
2022-12-07 13:46:51 +01:00
Michael Nebel
2d9975d73f
C#: nint/System.IntPtr and nuint/System.UIntPtr are indistinguishable by the extractor.
2022-12-07 13:45:23 +01:00
Jeroen Ketema
01d8ad98f6
C++: Model secure_getenv and _wgetenv as local flow sources
2022-12-07 13:37:12 +01:00
erik-krogh
ee8e0188a6
remove redundant call, the charpred ensures it always holds
2022-12-07 13:23:18 +01:00
erik-krogh
360a99f026
delete getKernelMethod and don't special-case the methodName on super-calls in the Kernel model
2022-12-07 13:14:48 +01:00
Chris Smowton
c526020fd4
Note TODO re: re-enabling suspend function Java interop testing
2022-12-07 11:51:48 +00:00
Chris Smowton
ecbb96ffc1
Remove no-longer-needed diagnostic expectations
2022-12-07 11:50:41 +00:00
Jeroen Ketema
2c08b95430
Merge pull request #11434 from jketema/deprecate-default-taint-tracking
...
C++: Deprecate `DefaultTaintTracking` and `TaintTrackingImpl`
2022-12-07 12:41:04 +01:00
Tony Torralba
cabce5fb36
Merge pull request #11549 from mbaluda/mbaluda/insecure-cookie
...
Java: Support interprocedural setting of cookie security
2022-12-07 12:14:46 +01:00
Tony Torralba
321a2f5a73
Merge pull request #11550 from atorralba/atorralba/kotlin/adapt-path-sanitizer
...
Kotlin: Adapt PathSanitizer
2022-12-07 12:08:00 +01:00
Anders Schack-Mulligen
f17f19c821
Java: Switch to qualified imports.
2022-12-07 11:41:32 +01:00
Asger F
fcdb2fa03f
JS: Remove MaD models from .qll files
2022-12-07 11:35:13 +01:00
Asger F
d8e566a50e
Add data-extension files
2022-12-07 11:35:13 +01:00
Asger F
5af1b367c7
Support data extensions
2022-12-07 11:35:05 +01:00
Owen Mansel-Chan
2ed8d5d798
Merge pull request #11288 from pwntester/new_sudo_like_argument
...
Golang: add `rsync` as a program capable of arbitrary shell command execution
2022-12-07 10:20:49 +00:00
Tony Torralba
6dcc0cc188
Further simplification
2022-12-07 10:50:23 +01:00
Alvaro Muñoz
af015d3d30
restoring previous casts to avoid super type ambiguity
2022-12-07 10:39:58 +01:00
Tony Torralba
ccd465d669
Update java/ql/lib/semmle/code/java/security/PathSanitizer.qll
2022-12-07 10:38:33 +01:00
Alvaro Muñoz
407df37a74
Add feedback from Code review
2022-12-07 10:36:44 +01:00
Tony Torralba
2f622ad72c
Refactor by introducing helper predicates
2022-12-07 10:31:54 +01:00
Alvaro Muñoz
3e92b4c596
Apply suggestions from code review
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-12-07 10:29:29 +01:00
erik-krogh
52c0afa03f
change getMethodName to getKernelMethod in other files
2022-12-07 10:27:35 +01:00
Tony Torralba
85b2642a5e
Extraction discrepancy fixed in kotlinc 1.7.21
2022-12-07 09:57:31 +01:00
Tom Hvitved
51f11f19cc
Merge pull request #11576 from ethanwilloner/main
...
csharp: URI should be Uri in Owin.qll library.
2022-12-07 09:34:51 +01:00
Alvaro Muñoz
49eedde58a
Merge branch 'main' into new_sudo_like_argument
2022-12-07 09:31:17 +01:00
Asger F
afe7872838
Merge pull request #11565 from asgerf/js/rephined-variable-in-access-path
...
JS: handle rephined variable in access path
2022-12-07 09:26:38 +01:00
Michael Nebel
c1c0432c00
Merge pull request #11144 from michaelnebel/csharp/qualifiedname
...
C#: Deprecate hasQualifiedName/1 and prepare for deprecating getQualifiedName/0.
2022-12-07 09:16:38 +01:00
Ed Minnix
b6a59f0885
Java: Add support and tests for implicitly exported activity aliases
2022-12-06 23:11:48 -05:00
Ed Minnix
1472335c2e
Abbreviated change note in changelog entry for activity-alias
2022-12-06 23:11:48 -05:00
Ed Minnix
2255b0d96a
Modify getAndroidComponentXmlElement to handle activity-alias
...
Since aliases have both the `name` and `targetActivity` attributes, we
should check all identifying attributes in order to add
`<activity-alias>` elements as dataflow sources.
2022-12-06 23:11:48 -05:00
Ed Minnix
4620db0fe9
Activity alias: formatting changes suggested by Actions
2022-12-06 23:11:48 -05:00
Ed Minnix
ec6c421f91
Added change notes for AndroidManifest.qll
2022-12-06 23:11:48 -05:00
Ed Minnix
f4dbd41036
Test files for Activity Alias
2022-12-06 23:11:48 -05:00
Ed Minnix
4df926e148
Add method for finding aliases to AndroidActivityXmlElement
2022-12-06 23:11:48 -05:00
Ed Minnix
b4f08f8b91
Add support for Android Manifest <activity-alias> element
2022-12-06 23:11:48 -05:00
Ed Minnix
4c270fca91
Add generalized identifier resolution for AndroidManifest
...
Since more than one attribute can hold an identifier, refactor
identifier resolution into a separate method.
2022-12-06 23:11:47 -05:00
Ed Minnix
cf3e5a0abe
Add class for XML Attributes meant to hold an identifier in AndroidManifest
...
Some Android component attributes hold an identifier (e.g.
`android:name` and `android:targetActivity` for `<activity-alias>`).
2022-12-06 23:11:47 -05:00
Jami Cogswell
b82f9b1911
Java: add draft of generated vs manual MaD metrics query
2022-12-06 22:15:19 -05:00
Tiferet Gazit
1a9dd48a88
Merge pull request #11551 from github/tiferet/endpoint-characteristics-test
...
ATM: Test for contradictory endpoint characteristics
2022-12-06 18:36:41 -08:00
retanoj
8ee418405b
consider blankspace / comma /dot field
2022-12-07 10:06:39 +08:00
tiferet
cf29cde2e8
Apply suggestions from code review
2022-12-06 18:05:04 -08:00
Chris Smowton
522a549d61
Improve debug logging when the external decl extractor handles an IrFile
2022-12-06 20:39:14 +00:00
Chris Smowton
d2e7797485
Rename to writeStubTrapFile
2022-12-06 20:39:03 +00:00
Ed Minnix
1c81f8d8d5
Apply suggestion from docs review
2022-12-06 15:32:54 -05:00
Chris Smowton
00f323c8bd
Fix: extract directly exposed fields with static modifier
2022-12-06 20:32:10 +00:00
Chris Smowton
5d43c431c0
Merge pull request #11504 from owen-mc/fix-small-error
...
Fix `mayHaveSideEffects` for `ReturnStmt`
2022-12-06 20:15:07 +00:00
Chris Smowton
c68ac460c9
Accept test changes: again this is a raw class extracted just for its signature.
2022-12-06 18:38:33 +00:00
Chris Smowton
d37a10e4f1
Accept test changes: methods no longer appearing to be final
...
This is actually a bug, which we should follow up on subsequently.
2022-12-06 18:38:31 +00:00
Chris Smowton
59eb81b50a
Accept test changes: a raw class getting extracted solely for use in a signature
...
We could revert this by allowing useType to avoid triggering class-instance extraction when used just for its signature result
2022-12-06 18:35:04 +00:00
Chris Smowton
f5579d59f8
Accept test changes: classes no longer getting multiple locations
2022-12-06 18:35:04 +00:00
Chris Smowton
9f722a7e12
Disable java_and_kotlin inconsistency test; accept changes
...
This was testing that a signature inconsistency occurs, but this now manifests as a db inconsistency which can't be used as a test expectation because specific tuple numbers are liable to change with the environment.
2022-12-06 18:35:04 +00:00
Chris Smowton
f2fded6486
Accept jvmstatic-annotation changes
...
These occur because the Companion field is odd, being extracted from source but not having an associated FieldDeclaration, leading to PrintAst enumerating the node differently depending on whether it has a source-file location or not but in either case choosing not to show it.
2022-12-06 18:35:04 +00:00
Chris Smowton
5e023bf619
Remove no-longer-applicable diagnostic matches
...
These resulted from the Java compiler exploring NotNull and other Kotlin-emitted annotations, which it no longer does because it finds a .class trap file already present and truncates its class-graph walk
2022-12-06 18:35:04 +00:00
Chris Smowton
82f3c2f6d5
Mark the Companion field as static
2022-12-06 18:35:04 +00:00
Chris Smowton
d9dc8e38f9
Fix binary names for classes declared from source
...
Only top-level non-class declarations need the IrFile's expected class name inserting
2022-12-06 18:35:04 +00:00
Chris Smowton
910a1f872d
Adjust opt-in required to use string-manipulation functions in Kotlin <= 1.5
2022-12-06 18:35:04 +00:00
Chris Smowton
540a2a623e
Don't create stub trap files for anonymous or local classes, or unexpected kinds of top-level declaration
2022-12-06 18:35:04 +00:00
Chris Smowton
08e3431107
Also stub class files relating to file classes and top-level declarations
2022-12-06 18:35:04 +00:00
Chris Smowton
748637c2d8
Tidy and use version 0 for classes extracted from source
2022-12-06 18:35:03 +00:00
Chris Smowton
e34d72aee9
Kotlin: stub trap .class files when extracting a class from Kotlin source
2022-12-06 18:35:03 +00:00
Ethan Willoner
64f58061b7
Rename 2022-12-05-owin-uri-fix.md. to 2022-12-05-owin-uri-fix.md
2022-12-06 09:13:28 -08:00
Ethan Willoner
574d6d6119
Fix comment.
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2022-12-06 09:10:22 -08:00
Jeroen Ketema
b5147bbfb0
C++: Deprecate DefaultTaintTracking and TaintTrackingImpl
2022-12-06 17:45:16 +01:00
Owen Mansel-Chan
4789431d6e
Add change note
2022-12-06 16:25:50 +00:00
Owen Mansel-Chan
d588ee375b
Fix mayHaveSideEffects for ReturnStmt
...
The previous code only worked when the return statement
only has one returned expression.
2022-12-06 15:07:45 +00:00
Mathias Vorreiter Pedersen
2c500142c7
Merge pull request #11435 from jketema/rewrite-tainted-path
...
C++: Rewrite `cpp/path-injection` to not use `DefaultTaintTracking`
2022-12-06 14:54:57 +00:00
ALJI Mohamed
2801b8495a
A fix of the tag name
2022-12-06 14:50:47 +01:00
retanoj
b0c86d8e51
change string match to regex match
2022-12-06 21:50:09 +08:00
ALJI Mohamed
4896e62117
Use of more generic terms
2022-12-06 14:44:52 +01:00
Sim4n6
58570b4d2c
Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.ql
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2022-12-06 14:40:48 +01:00
Sim4n6
9a60202de6
Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.qhelp
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2022-12-06 14:40:35 +01:00
Sim4n6
c22c0b5029
Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.qhelp
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2022-12-06 14:39:16 +01:00
Mathias Vorreiter Pedersen
e71fbb1def
Merge pull request #11541 from MathiasVP/add-node0
...
C++: Introduce a pre-SSA `DataFlow::Node` class
2022-12-06 13:28:39 +00:00
Michael Nebel
8e4190d84a
Merge pull request #11516 from michaelnebel/java/externalflowcleanup
...
Java: Cleanup imports of `ExternalFlow`
2022-12-06 14:26:39 +01:00
erik-krogh
8f0c0f3c17
add support for super calls to Kernel
2022-12-06 14:25:51 +01:00
erik-krogh
0e9cd1e4b5
factor out methodName to a field in KernelMethodCall
2022-12-06 14:23:46 +01:00
erik-krogh
e24f041661
drive-by: use instanceof KernelMethodCall such that override getAnArgument cannot be mistaken for a method in CallNode
2022-12-06 14:21:48 +01:00
erik-krogh
5849b2c98a
drive-by: simplify the imports in PathInjection.ql
2022-12-06 14:09:39 +01:00
erik-krogh
66946ebf6a
add Kernel methods as sinks to path-injection
2022-12-06 14:09:15 +01:00
Anders Schack-Mulligen
b579e2e7ed
Merge pull request #11493 from aschackmull/java/scc-equivrel
...
Java: Replace ad-hoc SCC reduction with union-find.
2022-12-06 14:02:46 +01:00
ALJI Mohamed
a5849eb9b0
Improved the additional taint step using InstanceSource
2022-12-06 14:00:08 +01:00
Michael Nebel
27efb0d843
C#: Rename -> for .
2022-12-06 13:53:50 +01:00
Erik Krogh Kristensen
be168901d6
Merge pull request #11085 from dbartol/dbartol/ql-for-ql-latest
...
Use latest released bundle for QL-for-QL
2022-12-06 12:43:53 +01:00
retanoj
2bbd37f9ab
change code snippet to or condition
2022-12-06 19:27:29 +08:00
Michael Nebel
29ccac8e93
C#: Address review comments.
2022-12-06 12:05:48 +01:00
Mathias Vorreiter Pedersen
3eea3b2f45
Merge pull request #11446 from atorralba/atorralba/swift/path-injection
...
Swift: Add path injection query
2022-12-06 11:03:26 +00:00
Michael Nebel
6b35098fb7
C#: Replace more uses of getQualifiedName/0.
2022-12-06 11:59:13 +01:00
Michael Nebel
0a3295ef3f
C#: Address review comments.
2022-12-06 11:59:13 +01:00
Michael Nebel
ae4f4d6df4
C#: Add change note about deprecation of hasQualifiedName/1.
2022-12-06 11:59:13 +01:00
Michael Nebel
f7a1a4a9b7
C#: Add some missing this qualifiers.
2022-12-06 11:59:13 +01:00
Michael Nebel
38e906f854
C#: Use hasQualifiedName instead of getQualifiedName.
2022-12-06 11:59:13 +01:00
Michael Nebel
c24302bec2
C#: Replace all uses of the deprecated hasQualifiedName/1 predicate.
2022-12-06 11:59:12 +01:00
Michael Nebel
315a3a5ed3
C#: Add hasQualifiedName/3 including overrides where relevant and re-write some of the existing hasQualifiedName/2 predicates.
2022-12-06 11:59:12 +01:00
Michael Nebel
38565407c5
C#: Add small module with relevant printing predicates.
2022-12-06 11:59:12 +01:00
Michael Nebel
86c021ef7e
C#: Deprecate hasQualifiedName/1.
2022-12-06 11:59:12 +01:00
retanoj
de652e1e27
expected
2022-12-06 18:09:48 +08:00
Chris Smowton
3b5b121aeb
Merge pull request #11553 from smowton/smowton/fix/kotlin-synthetic-noarg-constructor
...
Kotlin: Extract a no-arg constuctor whenever a Kotlin class has default values for all parameters
2022-12-06 10:07:31 +00:00
retanoj
fb8559f03a
tiny fix function name
2022-12-06 18:03:00 +08:00
Anders Schack-Mulligen
f0ac59be25
Merge pull request #11521 from aschackmull/shared/typetracking
...
Shared: Add a qlpack with a parameterized module defining type-trackers.
2022-12-06 10:56:44 +01:00
Anders Schack-Mulligen
1b77f50fd7
Shared: Address review comments.
2022-12-06 10:42:16 +01:00
Michael Nebel
4e93429026
Merge pull request #11577 from michaelnebel/java/enablemodeldifferenceworkflow
...
Java: Add Model Difference workflow on model generator changes.
2022-12-06 10:35:52 +01:00
retanoj
82d0551215
Merge branch 'main' into MybatisSqli
2022-12-06 17:19:30 +08:00
retanoj
d2140eb4b1
MyBatisAnnotationSqlInjection no @Param case
2022-12-06 17:07:49 +08:00
Michael Nebel
204766b967
Java: Adjust generated model paths in Model difference workflow.
2022-12-06 09:53:39 +01:00
Tom Hvitved
b5e2e1e469
Merge pull request #11564 from hvitved/dataflow/parameter-position-consistency-checks
...
Data flow: Add consistency checks for parameter positions
2022-12-06 09:33:36 +01:00
Michael Nebel
6fa2193602
Java: Add Model Difference workflow on model generator changes.
2022-12-06 09:26:09 +01:00
Michael Nebel
cd5c0bec33
Merge pull request #11527 from michaelnebel/java/regeneratemodels
...
Java/C#: Delete old model generator scripts and update Java model re-generator script.
2022-12-06 09:24:13 +01:00
Jeroen Ketema
995efef5da
C++: Add explanatory comment to hasFilteredFlowPath
2022-12-06 09:03:21 +01:00
Jeroen Ketema
5637d573c1
C++: Add test case that is no longer detected after latest changes
2022-12-06 08:31:22 +01:00
Tom Hvitved
b171dc9b7b
Merge pull request #11477 from hvitved/ruby/call-ctx-rewrite
...
Ruby: Rework call-context sensitivity logic
2022-12-06 07:39:29 +01:00
ALJI Mohamed
054c06be65
Update UnsafeUnpack.ql
2022-12-06 02:51:07 +01:00
Ethan Willoner
b886157f52
Add change note.
2022-12-06 00:27:17 +00:00
Ethan Willoner
82c0449d56
Fix bug: In OwinRequest URI should be Uri.
2022-12-06 00:01:17 +00:00
Jeroen Ketema
6dbc59d5b5
C++: Simplify isSink based on reviewer comments
2022-12-05 23:23:08 +01:00
Henry Mercer
2627632a41
Java: Fix duplicate IDs
2022-12-05 19:06:03 +00:00
Henry Mercer
5b040a9476
Python: Fix duplicate query IDs
2022-12-05 19:04:10 +00:00
Henry Mercer
6484935d25
Add CI job for check query IDs script
2022-12-05 18:51:48 +00:00
Henry Mercer
9c27cc0abe
Add a script to check for duplicate query IDs
2022-12-05 18:51:48 +00:00
Nick Rolfe
23b02f4f27
Merge pull request #11544 from github/nickrolfe/update-query-docs
...
Docs: rewrite "defining the results of a query"
2022-12-05 17:14:56 +00:00
Nick Rolfe
731419fc80
Remove reference to query console
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-12-05 16:47:15 +00:00
Felicity Chapman
96476cb50d
Merge pull request #11561 from github/felicitymay-lgtm-fixes
...
Remove one more outdated reference
2022-12-05 16:31:19 +00:00
Chris Smowton
5bb1319b0f
Merge pull request #9779 from porcupineyhairs/goSqlInjection
...
Golang : Add SQL sinks for `gorqlite` and `GoFrame` frameworks
2022-12-05 16:30:22 +00:00
ALJI Mohamed
68fd75ca34
UnpackUnsafe query and tests
2022-12-05 17:20:22 +01:00
Chris Smowton
407e4cdd07
Don't create a default constructor for annotations, or classes that explicitly declare a no-arg constructor.
2022-12-05 16:17:51 +00:00
Tom Hvitved
7972db68bc
C++: Update expected test output
2022-12-05 17:07:32 +01:00
Chris Smowton
8897f5bccc
Merge pull request #11552 from smowton/smowton/fix/kotlin-toplevel-internal-names
...
Kotlin: Don't add name mangling to top-level internal functions
2022-12-05 15:36:52 +00:00
Tony Torralba
7dca1b4b06
Merge branch 'main' into atorralba/swift/path-injection
2022-12-05 16:21:22 +01:00
Mathias Vorreiter Pedersen
5b31da44e1
Merge pull request #11424 from geoffw0/alamofire3
...
Swift: Alamofire taint sources
2022-12-05 15:15:58 +00:00
Mathias Vorreiter Pedersen
012beebe3b
Swift: Update .generated.list
2022-12-05 15:02:44 +00:00
Mathias Vorreiter Pedersen
e7ec5a69a3
Swift: Accept more test changes.
2022-12-05 14:53:23 +00:00
Tony Torralba
bf8084080b
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-12-05 15:37:40 +01:00
Anders Schack-Mulligen
ed1fe1447b
Shared: Add more precise types in TypeTracker.
2022-12-05 15:19:20 +01:00
Mathias Vorreiter Pedersen
a07c9ffbc5
Swift: Accept test changes.
2022-12-05 14:19:00 +00:00
Mathias Vorreiter Pedersen
8053b72901
Swift: Skip lvalue types.
2022-12-05 14:15:32 +00:00
Asger F
80777b8c50
JS: handle rephined variables in local access paths
2022-12-05 15:11:50 +01:00
Asger F
025cfe4064
JS: Add reproduction test case
2022-12-05 15:11:43 +01:00
Anders Schack-Mulligen
27755d1551
Shared: Add a qlpack with a parameterized module defining type-trackers.
2022-12-05 14:56:11 +01:00
Anders Schack-Mulligen
9eed12af23
Shared: Initial commit with copy of Ruby TypeTracker.
2022-12-05 14:54:03 +01:00
Erik Krogh Kristensen
6b9cab23d4
Merge pull request #11248 from erik-krogh/js-redosMod
...
JS: use the shared regex pack
2022-12-05 14:48:37 +01:00
Michael Nebel
fca249a62e
Java: Address review comments.
2022-12-05 14:44:52 +01:00
Geoffrey White
64fb98e46f
Swift: Rewrite bits to try and get rid of red highlighting.
2022-12-05 13:41:21 +00:00
Geoffrey White
17244734d0
Swift: Results repaired by merge.
2022-12-05 13:36:14 +00:00
Tom Hvitved
8f701cf1cb
Python: Update expected test output
2022-12-05 14:33:06 +01:00
Geoffrey White
07c790a430
Merge branch 'main' into alamofire3
2022-12-05 13:29:26 +00:00
Michael Nebel
19db8e5d82
Java: Address review comments and also delete comment about type based summaries only being for C#.
2022-12-05 14:07:16 +01:00
Geoffrey White
6cb69c907d
Merge pull request #11514 from geoffw0/generics
...
Swift: Fix for MaD with generics
2022-12-05 13:02:35 +00:00
Tony Torralba
8422df1c43
Add change note
2022-12-05 13:35:54 +01:00
Nick Rolfe
f31a7cf921
Apply suggestions from code review
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2022-12-05 12:32:47 +00:00
Tom Hvitved
52f3a48638
Data flow: Sync files
2022-12-05 12:57:27 +01:00
Tom Hvitved
e66a3c4d83
Data flow: Add consistency checks for parameter positions
2022-12-05 12:57:11 +01:00
Mauro Baluda
7c4b76b08b
Update InsecureCookie.ql
2022-12-05 12:55:53 +01:00
Chris Smowton
7883bff99e
Merge branch 'main' into goSqlInjection
2022-12-05 11:43:14 +00:00
AlexDenisov
ef9b503f69
Merge pull request #11559 from github/redsun82/swift-integration-test-dbs
...
Swift: always upload integration test logs
2022-12-05 12:41:45 +01:00
Tom Hvitved
faca4b5b56
Merge pull request #11461 from hvitved/ruby/unique-hash-splat-param
...
Ruby: At most one hash-splat `ParameterNode` per callable
2022-12-05 11:53:28 +01:00
Tony Torralba
47d61e0b4d
Add test for File.startsWith
2022-12-05 11:52:50 +01:00
Tony Torralba
71a6b09bad
Minor syntax change in tests
2022-12-05 11:52:02 +01:00
Chris Smowton
07e4367151
Merge pull request #11562 from github/smowton/admin/remove-go-work
...
Delete go.work
2022-12-05 10:40:10 +00:00
Michael Nebel
1c135bd207
Java: Temporarily disable the Model Difference workflow for changes to the model generator.
2022-12-05 11:39:44 +01:00
Michael Nebel
17e7f04adf
Java: Update the MaD Model Difference workflow.
2022-12-05 11:39:44 +01:00
Michael Nebel
bf332fa5e7
Java: Update MaD regenerate models worksflow.
2022-12-05 11:39:44 +01:00
Michael Nebel
a9ba964be4
Java: Update the Java model re-generate script.
2022-12-05 11:39:44 +01:00
Michael Nebel
243b94b54a
Java/C#: Delete old model generator scripts and rename the new ones.
2022-12-05 11:39:44 +01:00
Geoffrey White
59e9d0828b
Merge branch 'main' into generics
2022-12-05 10:30:10 +00:00
Mathias Vorreiter Pedersen
c563ed3635
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-12-05 10:27:55 +00:00
Nick Rolfe
d893768726
Docs: rewrite "defining the results of a query"
...
The old guide was based on the code duplication library, which no longer
works, and used screenshots of LGTM, which is deprecated.
2022-12-05 10:18:32 +00:00
Arthur Baars
889eea92c2
Merge branch 'main' into ruby-more-flow
2022-12-05 11:13:46 +01:00
Mauro Baluda
16d7dc0853
Restrict DF configuration
2022-12-05 11:02:19 +01:00
Arthur Baars
83423854d2
Merge pull request #11339 from aibaars/active_support_enumerable
...
Ruby: Active support enumerable
2022-12-05 11:02:19 +01:00
Tom Hvitved
3d59935156
Merge pull request #11560 from hvitved/ci/decrease-ram
...
CI: Change `--ram` value from 52G to 50G in `codeql` tests
2022-12-05 11:02:08 +01:00
Chris Smowton
fea755ecc8
Delete go.work
2022-12-05 10:02:02 +00:00
Tony Torralba
8fb5c37ba8
Add change note
2022-12-05 11:00:57 +01:00
Tony Torralba
995b7327fe
Add missing QLDoc
2022-12-05 11:00:57 +01:00
Tony Torralba
21b51b48eb
Adapt PathSanitizer to Kotlin
2022-12-05 11:00:57 +01:00
Asger F
6bffb11749
Merge pull request #11253 from asgerf/merge-package-type-columns
...
Dynamic: Merge package and type columns
2022-12-05 10:57:21 +01:00
Felicity Chapman
6884db120a
Remove another outdated reference
2022-12-05 09:56:28 +00:00
Felicity Chapman
90c6771dd1
Merge pull request #11502 from github/felicitymay-8441-detective
...
LGTM deprecation: Update QL detective tutorials
2022-12-05 09:40:00 +00:00
Michael Nebel
6e486d4347
Re-arrange imports.
2022-12-05 09:49:38 +01:00
Michael Nebel
5c8ef15d6f
Java: Add bi-directional imports of some abstract class extensions.
2022-12-05 09:49:38 +01:00
Michael Nebel
65f242cabe
Java: Delete import of framework related files in ExternalFlow.
2022-12-05 09:49:38 +01:00
Michael Nebel
4c7cdc6245
Java: Remove unneeded imports of ExternalFlow.qll.
2022-12-05 09:49:38 +01:00
Tom Hvitved
c2d843f96b
CI: Change --ram value from 52G to 50G in codeql tests
2022-12-05 09:35:56 +01:00
Tony Torralba
9d2b04928d
Fix qhelp after suggestions
2022-12-05 09:16:27 +01:00
Tony Torralba
6e7c7c245b
Update swift/ql/src/queries/Security/CWE-022/PathInjection.qhelp
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-12-05 08:47:18 +01:00
Paolo Tranquilli
a0d7043615
Swift: always upload integration test logs
...
This way we can get logs also in case we cancelled the job due to a test
hanging indefinitely (which is happening from time to time to the Xcode
test).
2022-12-05 08:32:36 +01:00
Alvaro Muñoz
7fe4108a0b
add change note
2022-12-03 16:37:14 +01:00
Alvaro Muñoz
fc56843c04
improve predicate QLdoc
2022-12-03 16:34:14 +01:00
Felicity Chapman
dea9adbad4
Merge branch 'codeql-cli-2.11.5' into felicitymay-8441-detective
2022-12-02 23:48:23 +00:00
Felicity Chapman
2b24870a3d
Merge pull request #11468 from github/felicitymay-8441-basic-query-2
...
LGTM deprecation: Update basic queries to use VS Code
2022-12-02 23:47:51 +00:00
Porcupiney Hairs
15c58dee5f
Golang : Add SQL sinks for gorqlite and GoFrame frameworks
2022-12-03 03:34:07 +05:30
Alvaro Muñoz
7e0e56dadc
Added two new CMDi sinks fot python's stdlib
2022-12-02 22:16:40 +01:00
Tiferet Gazit
79d8444b94
Merge pull request #11532 from github/tiferet/endpoint-filter-test
...
ATM: Test for endpoints scored at inference time
2022-12-02 13:13:52 -08:00
SiaraMist
a1b6bfb270
Initial updates for CodeQL template
2022-12-02 13:07:25 -08:00
Chris Smowton
ff4baf096f
Don't add name mangling to top-level internal functions
...
Turns out kotlinc only adds this sort of name mangling to class member functions
2022-12-02 20:16:19 +00:00
Chris Smowton
1c0494ec53
Extract a no-arg constuctor whenever a Kotlin class has default values for all parameters
2022-12-02 20:07:43 +00:00
Ed Minnix
7c4bd509a7
Java: add AssetLoader example to WebView file access documentation
2022-12-02 14:43:52 -05:00
tiferet
93e3c72c6a
Test for contradictory endpoint characteristics
2022-12-02 10:29:39 -08:00
Jami
edfcc0cd6d
Merge pull request #11487 from jcogs33/jcogs33/supportedexternalapis-telemetry-query
...
Java/C#: add SupportedExternalApis telemetry query
2022-12-02 13:27:51 -05:00
Felicity Chapman
5a57844dab
Merge pull request #11503 from github/felicitymay-8441-next-batch
...
LGTM deprecation: a few more references missed in earlier PRs
2022-12-02 18:13:00 +00:00
tiferet
d211decfb4
Fix error in last commit
2022-12-02 09:03:44 -08:00
Mauro Baluda
04f1fe523a
Update Test.java
2022-12-02 18:01:10 +01:00
Tiferet Gazit
c0aae3d68e
Apply suggestions from code review
...
Co-authored-by: Stephan Brandauer <kaeluka@github.com >
2022-12-02 09:00:45 -08:00
Mauro Baluda
f3f8f35069
Update InsecureCookie.ql
...
Support interprocedural setting of cookie security
2022-12-02 17:37:23 +01:00
Paolo Tranquilli
a11756bad1
Merge pull request #11542 from github/alexdenisov/canonical-case
...
Swift: add a test case showing case canonicalization
2022-12-02 17:12:03 +01:00
Chris Smowton
50c85f6e5b
Merge pull request #11545 from github/post-release-prep/codeql-cli-2.11.5
...
Post-release preparation for codeql-cli-2.11.5
2022-12-02 15:27:47 +00:00
Erik Krogh Kristensen
c4cb410970
Merge pull request #11472 from erik-krogh/exit-code
...
JS: make the JS autobuilder consistent with Ruby when no JS code was detected
2022-12-02 16:01:02 +01:00
Erik Krogh Kristensen
1c7cae4620
Merge pull request #11547 from mattrothenberg/main
...
fix: use WHATWG URL for JS examples
2022-12-02 16:00:13 +01:00
tiferet
d17383d98c
Add XssThroughDom
2022-12-02 06:59:32 -08:00
tiferet
2e20abca90
Undo error from previous commit
...
Oops, now I see why that wasn't private
2022-12-02 06:59:31 -08:00
tiferet
294f34bf07
Small improvement
...
Not strictly needed, but better to keep things private when possible
2022-12-02 06:59:31 -08:00
tiferet
a317f2bfe2
Test for endpoints scored at inference time
...
Adds a test to detect changes in the endpoints that get scored at inference time.
2022-12-02 06:59:31 -08:00
Mathias Vorreiter Pedersen
2653458a39
Merge pull request #11537 from MathiasVP/iterator-model-changes
...
C++: Change iterator models
2022-12-02 14:57:21 +00:00
Paolo Tranquilli
f8386e753a
Merge pull request #11522 from github/redsun82/swift-integration-test-dbs
...
Swift: upload test logs as artifacts for integration tests
2022-12-02 15:35:59 +01:00
Edward Minnix III
55090ecb65
Java: Typos and minor fixes
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-12-02 09:17:41 -05:00
Michael Nebel
bb716ddb80
Merge pull request #11499 from michaelnebel/java/kotlinstd
...
Kotlin: Migrate standard library models to data extensions.
2022-12-02 14:44:50 +01:00
Matt Rothenberg
95f994a82b
Update RequestForgeryBad.js
2022-12-02 14:17:37 +01:00
Matt Rothenberg
7d674e7cdc
set base URL
2022-12-02 14:17:17 +01:00
Felicity Chapman
7aca35d52b
Apply suggestions from code review
2022-12-02 13:09:38 +00:00
Matt Rothenberg
c49e9e8503
fix: use let for subdomain assignment
2022-12-02 14:07:39 +01:00
Felicity Chapman
42a438cdcb
Apply suggestions from code review
...
Co-authored-by: Michael B. Gale <mbg@github.com >
2022-12-02 13:06:32 +00:00
Alex Denisov
f5ddbd6abb
Swift: add a test case showing case canonicalization
2022-12-02 14:06:21 +01:00
AlexDenisov
691188bc48
Merge pull request #11523 from github/alexdenisov/preserve-symlinks
...
Swift: resolve symlinks conditionally
2022-12-02 14:05:13 +01:00
Matt Rothenberg
a453405365
Update RequestForgeryBad.js
2022-12-02 14:03:37 +01:00
Matt Rothenberg
2ae0c7e115
Update RequestForgeryGood.js
2022-12-02 14:02:54 +01:00
Owen Mansel-Chan
d3e06ee290
Merge pull request #11431 from owen-mc/go/update-qldoc
...
Make qldoc clearer about behaviour of override
2022-12-02 12:19:16 +00:00
Geoffrey White
cf3345ee8f
Swift: Revert security-severity on CWE-321, for now.
2022-12-02 12:01:43 +00:00
Chris Smowton
fef03a0806
Merge pull request #11540 from github/smowton/fix/path-injection-example-syntax-error
...
Java: fix syntax error in path-injection example fix
2022-12-02 11:47:53 +00:00
Chris Smowton
194b754880
Merge pull request #11525 from github/mbg/add/go.work
...
Add go.work file
2022-12-02 11:47:31 +00:00
github-actions[bot]
5e35785fd0
Post-release preparation for codeql-cli-2.11.5
2022-12-02 11:37:44 +00:00
Mathias Vorreiter Pedersen
43adfe8893
C++: Fix QLDoc.
2022-12-02 11:30:46 +00:00
Michael Nebel
309807796c
Java: Deprecate ModelCsv classes.
2022-12-02 12:20:22 +01:00
Michael Nebel
b80829a3a0
Java/Kotlin: Cleanup files needed for inline models.
2022-12-02 12:20:22 +01:00
Michael Nebel
f5069ffc1f
Kotlin: Remove the inlined models.
2022-12-02 12:20:22 +01:00
Michael Nebel
42411fd455
Java/Kotlin: Allow dashes in callable names (the Kotlin standard library contains methods with dashes).
2022-12-02 12:20:22 +01:00
Michael Nebel
d9e4aafe3a
Kotlin: Add Kotlin standard library models as Data extensions.
2022-12-02 12:20:22 +01:00
Michael Nebel
5194108233
Java/C#: Improve the newlines in the generated model files.
2022-12-02 12:20:17 +01:00
Paolo Tranquilli
cd700dfe11
Swift: upload integration test logs also on failure
2022-12-02 12:20:14 +01:00
Michael Nebel
b2dd29ff05
Java/C#: Update conversion script to also produce negative models.
2022-12-02 12:18:50 +01:00
Michael Nebel
fb670325d8
Java/C#: Add query for aiding the conversion of existing negative models.
2022-12-02 12:18:50 +01:00
Michael Nebel
95e65347ca
Merge pull request #11455 from michaelnebel/java/flowtestcaseextensions
...
Java: Update the flow test case generator to produce data extensions.
2022-12-02 12:15:16 +01:00
Paolo Tranquilli
24be481574
Merge pull request #11429 from github/redsun82/swift-type-mapping
...
Swift: make mapping from swift types to tags explicit
2022-12-02 12:12:12 +01:00
Asger F
ef72e222b0
Merge pull request #11513 from asgerf/js/api-graph-async-result-node
...
JS: Remove MkAsyncFunctionResult
2022-12-02 11:29:03 +01:00
Geoffrey White
85a0a42da9
Swift: try again to satisfy ql-for-ql.
2022-12-02 10:15:11 +00:00
Mathias Vorreiter Pedersen
cef7224739
C++: Make QL-for-QL happy.
2022-12-02 10:12:25 +00:00
Mathias Vorreiter Pedersen
a245977075
C++: Change iterator models.
2022-12-02 10:11:20 +00:00
Chris Smowton
6e98c67869
Java: fix syntax error in path-injection example fix
2022-12-02 10:04:53 +00:00
Mathias Vorreiter Pedersen
145dea0e9b
C++: Introduce a node class that exists before computing SSA.
2022-12-02 10:04:52 +00:00
Felicity Chapman
26908ea281
Update docs/codeql/codeql-language-guides/using-flow-labels-for-precise-data-flow-analysis.rst
...
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com >
2022-12-02 09:36:10 +00:00
Asger F
d2bbb61885
Ruby: update syntax for more models
2022-12-02 10:29:30 +01:00
AlexDenisov
7bf0e7ccc9
Merge pull request #11520 from github/redsun82/swift-xcode-integration-test
...
Swift: add xcode integration test
2022-12-02 10:29:16 +01:00
Jean Helie
3f203eabec
Merge pull request #11486 from github/tiferet/boost-xss-through-dom
...
ATM: Boost XssThroughDOM
2022-12-02 10:26:53 +01:00
Chris Smowton
fae5a9a033
Merge pull request #11268 from grddev/accelerate-go-list-option
...
Enable accelerated go-extractor opt-in using 'go list -deps'
2022-12-02 09:17:23 +00:00
Alex Denisov
7a3beac494
Swift: resolve symlinks conditionally
2022-12-02 10:07:10 +01:00
Stephan Brandauer
e6c5975ed9
Merge pull request #11484 from erik-krogh/js-ml-cache
...
ATM: use the query compilation cache in the ATM qltest
2022-12-02 10:03:18 +01:00
Alex Denisov
e7a48b4c98
Swift: add a test case for symlinks
2022-12-02 10:02:45 +01:00
Asger F
2d578c1a73
Merge branch 'main' into merge-package-type-columns
2022-12-02 10:00:44 +01:00
Michael Nebel
73b171eb2b
Update java/ql/src/utils/flowtestcasegenerator/GenerateFlowTestCase.qll
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-12-02 09:47:28 +01:00
Michael Nebel
01307e1255
Update java/ql/src/utils/flowtestcasegenerator/FlowTestCase.qll
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-12-02 09:47:14 +01:00
Michael Nebel
c145678323
Java: Address review comments.
2022-12-02 09:46:39 +01:00
Paolo Tranquilli
1b6a50147a
Merge branch 'main' into redsun82/swift-type-mapping
...
Conflict resolved on addition of `AbiSafeConversionExpr`
2022-12-02 09:02:47 +01:00
Chris Smowton
1e01049966
Revert testing with experimental go list usage
2022-12-01 22:03:32 +00:00
Chris Smowton
60e326b160
Merge pull request #11530 from github/release-prep/2.11.5
...
Release preparation for version 2.11.5
2022-12-01 21:53:38 +00:00
Jami Cogswell
0e3e849ead
add negative summary test for java
2022-12-01 15:49:12 -05:00
Jami Cogswell
aa633412f4
add change notes
2022-12-01 15:25:45 -05:00
Geoffrey White
f7ebd1312e
Swift: Corrections.
2022-12-01 20:13:56 +00:00
Jami Cogswell
b789534b6c
add csharp tests
2022-12-01 15:11:16 -05:00
github-actions[bot]
31ab22e3a0
Release preparation for version 2.11.5
2022-12-01 20:05:14 +00:00
Jean Helie
155c1463ce
Merge branch 'main' into tiferet/boost-xss-through-dom
2022-12-01 20:59:20 +01:00
Rasmus Wriedt Larsen
8af2138ade
Merge pull request #11518 from RasmusWL/fix-call-graph-meta-query
...
Python: Fix `py/meta/points-to-call-graph`
2022-12-01 20:40:24 +01:00
Jami Cogswell
f1ebaf1ae1
add csharp query
2022-12-01 13:56:13 -05:00
Geoffrey White
157a7829ca
Swift: correct the example.
2022-12-01 18:35:10 +00:00
Geoffrey White
ad05cc3cb1
Swift: Separate out a FormatString library as well.
2022-12-01 18:09:46 +00:00
Geoffrey White
43596869e7
Swift: Move query logic to a .qll.
2022-12-01 18:09:45 +00:00
Geoffrey White
87fa159384
Swift: Add security-severity, and correct one for another query that apparently wasn't right.
2022-12-01 18:09:39 +00:00
Geoffrey White
58e9a0436e
Swift: Add metadata.
2022-12-01 18:09:33 +00:00
Jean Helie
352d1a7e8c
ATM: update tests
2022-12-01 19:01:30 +01:00
Jean Helie
98923cee94
ATM: update missing .qll
2022-12-01 18:47:36 +01:00
Felicity Chapman
6869ad48e4
Apply suggestions from code review
...
Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com >
2022-12-01 17:40:24 +00:00
Jean Helie
ae0d82efd8
ATM: update predicate name
2022-12-01 18:22:33 +01:00
Michael B. Gale
65021e6ed9
Add go.work file
2022-12-01 17:16:33 +00:00
Jean Helie
880548bafc
Merge branch 'main' into tiferet/boost-xss-through-dom
2022-12-01 18:13:27 +01:00
Tony Torralba
6bb54f07bf
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-12-01 18:08:47 +01:00
Jami
f54480b7c8
change matches to equality
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2022-12-01 11:56:44 -05:00
Rasmus Wriedt Larsen
315ceb57e9
Python: Add change-note
2022-12-01 11:56:44 -05:00
Jami Cogswell
548ff47f03
fix typo in QLDoc
2022-12-01 11:56:44 -05:00
Jami Cogswell
f7ae4e894f
apply rasmus' approach
2022-12-01 11:56:44 -05:00
Jami Cogswell
1f4bd00993
split rsa/dsa/dh
2022-12-01 11:56:44 -05:00
Jami Cogswell
25f0a13e15
update python test cases
2022-12-01 11:56:44 -05:00
Jami Cogswell
c4dac31895
fix typo in import statement
2022-12-01 11:56:44 -05:00
Jami Cogswell
4d99cd1b7a
update EC key size in help file
2022-12-01 11:56:44 -05:00
Jami Cogswell
0fa05d47e3
add shared key sizes
2022-12-01 11:56:44 -05:00
Jean Helie
50a3c0d725
ATM: update expected ML test values
2022-12-01 17:53:09 +01:00
Jean Helie
f388703a3d
ATM: update further files following the addition of XssThroughDom query
2022-12-01 17:45:07 +01:00
Paolo Tranquilli
2976daa8eb
Merge pull request #11524 from github/redsun82/swift-remove-dangling-ql-file
...
Swift: remove obsolete file
2022-12-01 17:32:59 +01:00
Geoffrey White
2b61f26a64
Swift: Add doc.
2022-12-01 16:32:34 +00:00
Geoffrey White
32c4728f83
Swift: Add tests.
2022-12-01 16:32:33 +00:00
Geoffrey White
a2210959b5
Swift: Uncontrolled format string query (initial version).
2022-12-01 16:32:33 +00:00
Paolo Tranquilli
c374a5301e
Swift: upload test DBs as artifacts for integration tests
2022-12-01 17:30:25 +01:00
Paolo Tranquilli
cd6d00e760
Swift: add xcode integration test
2022-12-01 17:25:34 +01:00
Geoffrey White
a6b8ef310a
Swift: Rename predicate.
2022-12-01 16:20:28 +00:00
AlexDenisov
35060659ee
Merge pull request #11500 from github/alexdenisov/remove-patches-from-extractor
...
Swift: remove patches from the extractor
2022-12-01 17:17:36 +01:00
Paolo Tranquilli
68504c097c
Swift: remove obsolete file
2022-12-01 17:07:54 +01:00
Gustav Munkby
b4382855fa
Fallback to package dir for discovering go.mod
...
This reverts to the old behavior of reusing the package directory when looking for go.mod. It seems unlikely that this is the right thing to do since we failed to find the module directory, but this behavior should be consistent with what we had before.
2022-12-01 15:43:51 +01:00
erik-krogh
6289ae329b
fix a race-condition
2022-12-01 15:27:41 +01:00
Geoffrey White
c6c4975aa6
Swift: codegen.
2022-12-01 14:23:12 +00:00
Geoffrey White
b7d0d28ef9
Swift: QLDoc.
2022-12-01 14:23:03 +00:00
Geoffrey White
d64fd62194
Swift: resolve TODOs.
2022-12-01 14:18:24 +00:00
Asger F
eb9bee23a0
JS: Remove MkAsyncFunctionResult
2022-12-01 15:15:27 +01:00
Rasmus Wriedt Larsen
d47b3265c4
Python: Fix py/meta/points-to-call-graph
2022-12-01 14:56:10 +01:00
Michael Nebel
cd0d09d806
Java: Refactor to avoid using SummaryModelCsv.
2022-12-01 13:07:31 +01:00
Ian Lynagh
ef8e52a4b0
Merge pull request #11437 from igfoo/igfoo/NonSerializableField
...
Kotlin: Enable java/non-serializable-field for Kotlin
2022-12-01 11:01:15 +00:00
Paolo Tranquilli
4ac9c875f1
Merge pull request #11508 from github/redsun82/swift-frontend-invocations
...
Swift: add `-merge-modules` to `frontend-invocations` test
2022-12-01 11:26:58 +01:00
Rasmus Wriedt Larsen
e7264fb495
Merge pull request #11480 from RasmusWL/sink-meta-query
...
Python: Add taint-sinks meta query
2022-12-01 10:23:33 +01:00
Geoffrey White
8acc09b551
Swift: Make ql-for-ql happy.
2022-12-01 09:07:17 +00:00
Geoffrey White
1ea44374a4
Swift: Autoformat.
2022-12-01 08:47:30 +00:00
Geoffrey White
c71bd4cad9
Swift: Remove unused predicate.
2022-12-01 08:47:29 +00:00
Geoffrey White
0a0cfc34e7
Swift: Do the same for methods.
2022-12-01 08:47:29 +00:00
Geoffrey White
5a4d188255
Swift: Fix for extensions.
2022-12-01 08:47:29 +00:00
Geoffrey White
d71eeb4c95
Swift: First fix for MaD on generics.
2022-12-01 08:47:29 +00:00
Geoffrey White
8f24b0b815
Swift: Add missing comment.
2022-12-01 08:47:28 +00:00
Geoffrey White
b1b3487028
Swift: Add a test for MaD data sources in generics.
2022-12-01 08:47:28 +00:00
Felicity Chapman
38b8cf4fd4
Update docs/codeql/codeql-language-guides/basic-query-for-java-code.rst
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-12-01 08:44:40 +00:00
Jeroen Ketema
3dfe18b565
C++: Introduce the coarse upper bound check from default taint tracking
2022-12-01 09:13:48 +01:00
Tiferet Gazit
7c1bfdbf41
Merge pull request #11511 from github/tiferet/renamings
...
Rename predicates to fit style guide
2022-11-30 18:19:07 -08:00
tiferet
4a6de3e444
Apply suggestion from code review
2022-11-30 17:25:19 -08:00
Harry Maclean
bd129ede42
Merge pull request #11136 from hmac/json-flow-summaries
...
Ruby: JSON flow summaries
2022-12-01 14:19:47 +13:00
tiferet
a0a742eb82
Rename predicates to fit style guide:
...
- `getEndpoints` → `appliesToEndpoint`
- `getImplications` → `hasImplications`
- `getAlerts` → `hasAlert`
2022-11-30 17:01:56 -08:00
Jami Cogswell
94c5d53192
add a couple more tests
2022-11-30 18:51:05 -05:00
Jami Cogswell
22c4d975ad
remove old import
2022-11-30 18:07:45 -05:00
Jami Cogswell
7f45e320d8
add tests
2022-11-30 18:07:45 -05:00
Jami Cogswell
210d8529b6
add query for SupportedExternalApis
2022-11-30 18:07:45 -05:00
Harry Maclean
91421528df
Ruby: Update test
2022-12-01 09:01:03 +13:00
Ed Minnix
04829fc38e
Java: SQLInjection example for addJavaScriptInterface query
2022-11-30 13:32:28 -05:00
Ian Lynagh
cd8c40e063
Kotlin: Enable java/non-serializable-field for Kotlin
...
It now ignores compiler-generated classes
2022-11-30 17:58:43 +00:00
Paolo Tranquilli
4e29ff1d6e
Swift: add -merge-modules to frontend-invocations test
...
Also, moved from Makefile to a bash source.
2022-11-30 17:46:47 +01:00
Ed Minnix
d35321f40e
Java: change WebView addJavascriptInterface query precision to medium
2022-11-30 11:35:14 -05:00
Tony Torralba
6ae10c5171
Merge pull request #11501 from atorralba/atorralba/swift/fix-data-test-expectations
...
Swift: Fix expectations in data.swift
2022-11-30 17:12:32 +01:00
Ed Minnix
e31521bd14
Java: mention the default negative value for setJavaScriptEnabled
2022-11-30 10:56:17 -05:00
Felicity Chapman
86e2333e67
Fix typo and try improving formatting
2022-11-30 15:53:19 +00:00
Edward Minnix III
b189e5b365
Java: fix precision in setJavascriptEnabled query
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-11-30 10:45:31 -05:00
Ed Minnix
5ac1e012ae
Java: Mention AssetLoader in WebView file access query documentation
2022-11-30 10:43:53 -05:00
Ed Minnix
c836c4feb7
Java: Specify default value in WebView file access query
2022-11-30 10:43:05 -05:00
Edward Minnix III
710e012e09
Java: fix precision of Android WebView File access query
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-11-30 10:41:45 -05:00
Felicity Chapman
3e1d49ad80
First draft update tutorials
2022-11-30 15:38:58 +00:00
Tony Torralba
d958a62bf2
Fix expectations in data.swift
2022-11-30 16:19:55 +01:00
Karim Ali
8f456295e0
Merge pull request #11185 from karimhamdanali/swift-string-taint-steps
...
Swift: add `String` taint steps
2022-11-30 17:03:15 +02:00
erik-krogh
cddc9db690
change back to the old order of extracting externs before Xml
2022-11-30 15:46:46 +01:00
Alex Denisov
0bfe502bb0
Swift: remove patches from the extractor
...
Moved elsewhere https://github.com/dsp-testing/codeql-swift-artifacts/pull/3
2022-11-30 15:36:09 +01:00
Karim Ali
f6bc88471a
update the expected output for CWE-079
...
Now that we have support for taint through fields of String, we can now detect certain flows that we previously marked as [NOT DETECTED]. This commit updates the expected output of CWE-079 (and the in-code annotation of the accompanying test case) to reflect that update.
2022-11-30 16:34:24 +02:00
erik-krogh
6620ba8cc8
Merge branch 'main' into exit-code
2022-11-30 15:26:31 +01:00
Paolo Tranquilli
b8c11de89c
Merge pull request #11498 from github/redsun82/swift-codegen
...
Swift: enhance `codegen` UX
2022-11-30 15:17:18 +01:00
Owen Mansel-Chan
45e2a13c37
Merge pull request #11494 from owen-mc/dataflow/some-trivial-fixes
...
Dataflow: some trivial fixes
2022-11-30 13:59:41 +00:00
Anders Schack-Mulligen
1ce28540fb
Merge pull request #11495 from intrigus-lgtm/patch-7
...
Docs: Add missing `language[monotonicAggregates]` annotation
2022-11-30 14:58:44 +01:00
Paolo Tranquilli
b4e3554af7
Merge pull request #11370 from github/alexdenisov/swift-5.7.1
...
Swift: upgrade to Swift 5.7.1
2022-11-30 14:23:12 +01:00
Paolo Tranquilli
bb3aa9e908
Swift: add --force to codegen
2022-11-30 14:19:33 +01:00
Alex Ford
7de5113e67
Ruby: rails/globalid changenote
2022-11-30 13:01:27 +00:00
Alex Ford
e321657f59
Ruby: model rails/globalid
2022-11-30 12:50:26 +00:00
Paolo Tranquilli
d6aad13a98
Swift: make codegen run when no registry is there
2022-11-30 13:47:12 +01:00
Paolo Tranquilli
76db5f22b3
Swift: make codegen resilient to formatting errors
...
More in general, the managed renderer flow does things more sensibly
in case an exception is thrown:
* it will not remove any file
* it will drop already written files from the registry, so that codegen
won't be skipped for those files during the next run
2022-11-30 13:43:29 +01:00
Tom Hvitved
b33f5925bb
Data flow: Sync files
2022-11-30 13:39:25 +01:00
Tom Hvitved
e0bd210797
Ruby: At most one hash-splat ParameterNode per callable
2022-11-30 13:38:55 +01:00
Felicity Chapman
9eafee365f
Some updates missed in earlier PRs
2022-11-30 12:30:28 +00:00
Tony Torralba
e222807693
Remove dubious sinks
2022-11-30 13:25:17 +01:00
intrigus-lgtm
4e7e70f981
Docs: Add missing language[monotonicAggregates] annotation
...
This adds the `language[monotonicAggregates]` annotation so that the example compiles.
2022-11-30 13:12:06 +01:00
Alex Denisov
fe0ae6bf0b
Swift: add 5.7.1 migration scripts
2022-11-30 12:52:26 +01:00
Alex Denisov
ad663533c7
Swift: bump setup Swift action
2022-11-30 12:40:42 +01:00
Alex Denisov
67fb56deb8
Swift: workaround an internal crash coming from Swift 5.7.1
2022-11-30 12:40:42 +01:00
Alex Denisov
f618d53302
Swift: add new implicit conversion
2022-11-30 12:40:34 +01:00
Alex Denisov
90d471b486
Swift: upgrade to Swift 5.7.1
2022-11-30 12:40:27 +01:00
Felicity Chapman
6dee013baa
Merge branch 'rc/3.8' into felicitymay-8441-basic-query-2
2022-11-30 11:39:20 +00:00
Mathias Vorreiter Pedersen
d53d275bba
Merge pull request #11450 from d10c/swift/missing-enum-cases
...
Swift: extract missing cases of `AccessorKind` and `AccessSemantics` enums
2022-11-30 11:18:52 +00:00
Owen Mansel-Chan
75940dc8b1
Remove @codeql-go from code owners for dataflow
2022-11-30 11:16:53 +00:00
Owen Mansel-Chan
635c202ced
Use ArgumentPosition instead of int
...
This matches what all of the other languages do.
2022-11-30 11:16:52 +00:00
Arthur Baars
6103c577b6
Address comments
2022-11-30 12:02:42 +01:00
Owen Mansel-Chan
55c4643b20
Dataflow: Sync.
2022-11-30 11:00:07 +00:00
Arthur Baars
cbf4197575
Ruby: add change note
2022-11-30 11:57:35 +01:00
Arthur Baars
0f2cb440b0
Ruby: add flow summary for Enumerable#sole
2022-11-30 11:57:35 +01:00
Arthur Baars
5517cfa6c0
Ruby: add flow summary for Enumerable#pluck
2022-11-30 11:57:35 +01:00
Arthur Baars
207ba86d51
Ruby: add flow summary for Enumerable#pick
2022-11-30 11:57:29 +01:00
Anders Schack-Mulligen
3d04b267ef
Merge pull request #11492 from aschackmull/shared/util
...
Shared: Add Util qlpack.
2022-11-30 11:56:34 +01:00
Paolo Tranquilli
2f4cf592a7
Merge pull request #11490 from github/redsun82/cache
...
CI: add workaround for nested composite actions issue
2022-11-30 11:55:46 +01:00
Owen Mansel-Chan
ce8a20cfd1
Fix variable name (source should be sink)
2022-11-30 10:51:59 +00:00
Anders Schack-Mulligen
758cb8b412
Shared: Fix trailing and non-ascii whitespace.
2022-11-30 11:14:43 +01:00
Tony Torralba
56f5214782
Remove invalid MaD row
2022-11-30 11:10:30 +01:00
Anders Schack-Mulligen
0963b6f221
Java: Replace ad-hoc scc reduction with union-find.
2022-11-30 11:09:25 +01:00
Owen Mansel-Chan
ab276fc5d8
Merge pull request #11481 from owen-mc/dataflow/sync-go-libraries-2
...
Sync go libraries
2022-11-30 10:02:43 +00:00
Tom Hvitved
bfbe5bdfb8
Ruby: Add data flow test that illustrates spurious flow
2022-11-30 11:01:32 +01:00
Anders Schack-Mulligen
ba56565125
Update shared/util/codeql/util/Option.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-30 10:55:07 +01:00
Paolo Tranquilli
e12e86b520
Restore previous cache key
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-30 10:47:29 +01:00
Paolo Tranquilli
d165c4963d
CI: add workaround for nested composite actions issue
...
Because of https://github.com/actions/runner/issues/2009 the deeply
nested action cache was failing to save the cache in the post run phase.
For the moment we just avoid the nesting with a copy-pasted action
snippet.
2022-11-30 10:47:29 +01:00
Paolo Tranquilli
22eb619235
Merge pull request #11467 from erik-krogh/test-ci
...
CI: fix moving the compilation cache
2022-11-30 10:47:07 +01:00
Anders Schack-Mulligen
71f5c8aa88
Shared: Add Util qlpack.
2022-11-30 10:43:33 +01:00
erik-krogh
045e6ef148
remove unused environment variable
2022-11-30 09:59:20 +01:00
erik-krogh
3d0c9c4642
Merge branch 'main' into test-ci
2022-11-30 09:47:08 +01:00
Tony Torralba
594b7efb84
Merge pull request #11485 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-11-30 09:16:05 +01:00
Paolo Tranquilli
da5730706d
Merge pull request #11483 from github/redsun82/cache
...
Swift: tentative fix for the bazel cache
2022-11-30 08:25:39 +01:00
tiferet
b885249d9d
Add a boosted version of XssThroughDOM
2022-11-29 17:40:20 -08:00
Tiferet Gazit
e2e3667698
Merge pull request #11323 from github/tiferet/simplify-configs
...
ATM: Simplify query configurations
2022-11-29 17:39:11 -08:00
Harry Maclean
dab7970087
Ruby: Model JSON.pretty_generate
2022-11-30 13:18:45 +13:00
Harry Maclean
14a19d23a6
Ruby: Fix typo in documentation
...
This import isn't needed.
2022-11-30 13:18:45 +13:00
Harry Maclean
67257671ea
Ruby: Remove redundant dataflow test
2022-11-30 13:18:44 +13:00
Harry Maclean
d20d1e5e75
Ruby: Add change note
2022-11-30 13:18:44 +13:00
github-actions[bot]
13f4a0e284
Add changed framework coverage reports
2022-11-30 00:18:26 +00:00
Harry Maclean
35a62018e4
Ruby: US spelling
2022-11-30 13:17:46 +13:00
Harry Maclean
1bd2dd0a6e
Ruby: update test fixture
2022-11-30 13:17:46 +13:00
Harry Maclean
eff763d127
Ruby: Model to_json ActiveSupport extension
2022-11-30 13:17:44 +13:00
Harry Maclean
5259d4af63
Ruby: Model various JSON methods
2022-11-30 13:15:18 +13:00
Harry Maclean
0a98559fcb
Ruby: Add flow summaries for ActiveSupport::JSON
2022-11-30 13:15:16 +13:00
porcupineyhairs
346dd864b5
Update python/ql/lib/change-notes/2022-11-17-py-pam-improve.md
...
fix typo
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2022-11-30 05:21:11 +05:30
tiferet
c5184d37e7
Suggestion from code review:
...
Name the query configuration e.g. `NosqlInjectionATMConfig` rather than `Configuration`.
2022-11-29 15:46:05 -08:00
Harry Maclean
e3def7c22f
Ruby: Add change note
2022-11-30 11:50:47 +13:00
Harry Maclean
aed4325ee3
Ruby: Remove unused class
2022-11-30 11:50:35 +13:00
Harry Maclean
b66ea6ed72
Ruby: Simplify ActionMailbox modeling
2022-11-30 11:46:21 +13:00
Harry Maclean
71f2d8f6d8
Ruby: Model ActionMailbox#inbound_mail
2022-11-30 11:46:21 +13:00
Harry Maclean
eac5aa26ee
Ruby: Model remote input for ActionMailbox
2022-11-30 11:46:21 +13:00
Harry Maclean
375403fb9d
Merge pull request #11114 from hmac/case-barrier-guard-3
...
Ruby: Add case string comparison barrier guard
2022-11-30 11:21:07 +13:00
erik-krogh
0eae638a93
combine into one job, and run on an XL runner
2022-11-29 22:34:31 +01:00
erik-krogh
84ce23249f
use the query compilation cache in the ATM qltest
2022-11-29 22:23:23 +01:00
tiferet
6f807e9d43
Doc suggestion from code review
2022-11-29 13:20:47 -08:00
tiferet
75cd7a9ebc
Remove code duplication in query .ql files:
...
Define the query for finding ATM alerts in the base class `AtmConfig`, and call it from each query's .ql file.
2022-11-29 13:20:47 -08:00
tiferet
a710b723d1
Move the definition of isSink to the base class:
...
Holds if `sink` is a known taint sink or an "effective" sink.
2022-11-29 13:20:47 -08:00
tiferet
cd24ec88d6
Move the definition of isSource to the base class:
...
A long as we're not boosting sources, `isSource` is identical to `isKnownSource`.
2022-11-29 13:20:47 -08:00
tiferet
50291c7b7c
AtmConfig inherits from TaintTracking::Configuration.
...
That way the specific configs which inherit from `AtmConfig` also inherit from `TaintTracking::Configuration`.
This removes the need for two separate config classes for each query.
2022-11-29 13:20:47 -08:00
tiferet
05a943c9b5
Delete StandardEndpointFilters.
...
All remaining functionality in `StandardEndpointFilters` is only being used in `EndpointCharacteristics`, so it can be moved there as a small set of helper predicates.
2022-11-29 13:20:47 -08:00
tiferet
5402f047bf
Delete CoreKnowledge.
...
All remaining functionality in `CoreKnowledge` is only being used in `EndpointCharacteristics`, so it can be moved there as a small set of helper predicates.
2022-11-29 13:20:47 -08:00
Tiferet Gazit
2241252202
Merge pull request #11321 from github/tiferet/complexity-reduction
...
ATM: Remove redundant code
2022-11-29 13:17:55 -08:00
tiferet
1d4b2ccab4
Merge branch 'main' into tiferet/complexity-reduction
2022-11-29 12:47:18 -08:00
Tiferet Gazit
f375b0cc1b
Merge pull request #11281 from github/tiferet/endpoint-filters
...
ATM: Implement the current endpoint filters as EndpointCharacteristics
2022-11-29 12:38:12 -08:00
erik-krogh
de5ffd5cfa
bump extractor version
2022-11-29 21:32:43 +01:00
Erik Krogh Kristensen
d0cf709d2e
use proper path construction
...
Co-authored-by: Asger F <asgerf@github.com >
2022-11-29 21:30:50 +01:00
Nora Dimitrijević
91edeacb9f
Swift: update .expected test files
2022-11-29 19:39:48 +01:00
Ian Lynagh
7eaef0cd3d
Merge pull request #11436 from igfoo/igfoo/NamingConventionsRefTypes
...
Kotlin: Enable java/misnamed-type query
2022-11-29 18:39:18 +00:00
Chris Smowton
b471926030
Autoformat
2022-11-29 17:17:39 +00:00
Paolo Tranquilli
47702b9e14
Swift: tentative fix for the bazel cache
2022-11-29 18:16:33 +01:00
Owen Mansel-Chan
083a3bae6e
Correct headings in identical-files.json
2022-11-29 16:15:01 +00:00
Owen Mansel-Chan
5c5ec8f66a
Add go files to identical-files.json
2022-11-29 16:15:01 +00:00
Owen Mansel-Chan
1731d39119
Remove sync-dataflow-libraries from go makefile
2022-11-29 16:15:01 +00:00
Owen Mansel-Chan
818f02826c
Update shared library files for go to f3dca95
2022-11-29 16:15:01 +00:00
Owen Mansel-Chan
d9f8420c86
Update shared library files for go to PR #11183
...
Merge commit: 94bca43
2022-11-29 16:15:00 +00:00
Owen Mansel-Chan
b63d0892ab
Update shared library files for go to PR #10777
...
Merge commit: 9c6875e
2022-11-29 16:15:00 +00:00
Owen Mansel-Chan
309ab772da
Update shared library files for go to PR #10886
...
Merge commit: 99ca28e
2022-11-29 16:15:00 +00:00
Owen Mansel-Chan
804d131d3b
Update shared library files for go to PR #11060
...
Merge commit: 587e673
2022-11-29 16:14:59 +00:00
Owen Mansel-Chan
40eb422524
Update shared library files for go to PR #10814
...
Merge commit: 6ef5fac
2022-11-29 16:14:58 +00:00
Owen Mansel-Chan
3006551eb1
Update shared library files for go to PR #10806
...
Merge commit: d79a7e8
2022-11-29 16:14:58 +00:00
Owen Mansel-Chan
5c7f7328ff
Update shared library files for go to PR #10754
...
Merge commit: d6df69d
2022-11-29 16:14:58 +00:00
Owen Mansel-Chan
c19ab7bc85
Update shared library files for go to PR #10744
...
Merge commit: 60fe370
2022-11-29 16:14:57 +00:00
Owen Mansel-Chan
8957437a4c
Update shared library files for go to PR #10691
...
Merge commit: 0e6735b
2022-11-29 16:14:57 +00:00
Owen Mansel-Chan
d63f161f06
Update shared library files for go to PR #10577
...
Merge commit: df2b586
2022-11-29 16:14:57 +00:00
Owen Mansel-Chan
c9aef4ac9f
Update shared library files for go to PR #10575
...
Merge commit: 9f1bbf2
2022-11-29 16:14:56 +00:00
Owen Mansel-Chan
6ccfb4b4ba
Update shared library files for go to PR #10505
...
Merge commit: 8b424d1
2022-11-29 16:14:56 +00:00
Owen Mansel-Chan
628230f14c
Update shared library files for go to PR #10360
...
Merge commit: 569fad6
2022-11-29 16:14:55 +00:00
Owen Mansel-Chan
569da2da60
Update shared library files for go to PR #10127
...
Merge commit: e265b07
2022-11-29 16:14:55 +00:00
Owen Mansel-Chan
c2b64d4545
Update shared library files for go to PR #9867
...
Merge commit: c514c88
2022-11-29 16:14:54 +00:00
Owen Mansel-Chan
f05da69392
Update shared library files for go to PR #10007
...
Merge commit: a3fb54c
2022-11-29 16:14:54 +00:00
Owen Mansel-Chan
ae408290dd
Update shared library files for go to PR #9823
...
Merge commit: aa36556
2022-11-29 16:14:54 +00:00
Owen Mansel-Chan
20b9c60d58
Remove DataFlowImplConsistency.qll from makefile
2022-11-29 16:14:53 +00:00
Paolo Tranquilli
c779b8f711
Merge pull request #11479 from erik-krogh/swift-ignore-errors
...
Swift: don't crash on non-existing cache
2022-11-29 17:04:11 +01:00
Felicity Chapman
0d7b27d4e4
A few fixes
2022-11-29 15:52:29 +00:00
Felicity Chapman
1142b77f8d
Update articles for other languages
2022-11-29 15:09:15 +00:00
Nora Dimitrijević
c5b4e87f6d
Swift: AccessorDecl tests for new cases
2022-11-29 16:00:00 +01:00
Nora Dimitrijević
e8fe0b0213
Merge pull request #11473 from github/d10c-preparedbupgrade-md
...
Update docs/prepare-db-upgrade.md
2022-11-29 15:27:58 +01:00
Rasmus Wriedt Larsen
607639c100
Python: restrict py/meta/points-to-call-graph to non-ignored files
2022-11-29 15:10:45 +01:00
Rasmus Wriedt Larsen
d7aea228ce
Python: Add taint-sinks meta query
...
Inspired by the one they have in JS:
097d5189e9/javascript/ql/src/meta/alerts/TaintSinks.ql
2022-11-29 15:10:09 +01:00
erik-krogh
e5f1fe86e4
don't crash on non-existing cache in swift
2022-11-29 15:02:08 +01:00
Rasmus Wriedt Larsen
544de5232c
Python: Use ' instead of ` in select text
2022-11-29 14:47:45 +01:00
Tom Hvitved
86e045916d
Ruby: Rework call-context sensitivity logic
2022-11-29 14:47:37 +01:00
Karim Ali
9048d5d79b
fix expected output for LocalTaint
2022-11-29 15:38:44 +02:00
Tom Hvitved
5bcb9b285a
Merge pull request #11142 from JarLob/const
...
C#: Extend `Constant Condition` query with `String.IsNullOrEmpty`.
2022-11-29 14:32:48 +01:00
Paolo Tranquilli
d7313082c9
Merge pull request #11466 from github/redsun82/cache
...
Swift: optimize bazel caching in CI
2022-11-29 14:31:16 +01:00
Karim Ali
9d17fae00c
fix expected output for TaintInline
2022-11-29 15:24:12 +02:00
Karim Ali
c0085cbb1a
fix expected output for Taint.ql
2022-11-29 15:18:39 +02:00
erik-krogh
63a5f8965e
fix tests
2022-11-29 14:08:21 +01:00
Ian Lynagh
3b31b50983
Kotlin: Rename compilerGeneratedKind to compilerGeneratedKindOverride
2022-11-29 13:07:47 +00:00
Arthur Baars
442c4e9a4e
Merge pull request #11474 from github/aibaars-patch-2
...
Ruby: fix upgrade script
2022-11-29 13:45:06 +01:00
Tom Hvitved
b075c55a60
Merge pull request #11449 from hvitved/csharp/autobuild-env-vars-integration-test
...
C#: Add integration test that checks whether env vars are passed through autobuilder
2022-11-29 13:43:15 +01:00
erik-krogh
136b6db2ad
only delete the src/ folder if it was empty
2022-11-29 13:42:27 +01:00
erik-krogh
f3f7a89ef8
make the JS autobuilder consistent with Ruby when no JS code was detected
2022-11-29 13:42:27 +01:00
Felicity Chapman
0def31a2ce
Update Go article
2022-11-29 12:37:10 +00:00
Tony Torralba
bf023b0aed
Use dominance in path injection sanitizer to avoid FNs
2022-11-29 13:33:27 +01:00
Arthur Baars
52cf27653f
Ruby: fix upgrade script
2022-11-29 13:12:14 +01:00
Paolo Tranquilli
a3a68fe83d
Tweak comment in incremental-cache action
2022-11-29 13:09:45 +01:00
Michael Nebel
d2c458c066
Java/C#: Correction of autogenerated comment(s) produced by the model generator.
2022-11-29 13:05:18 +01:00
Arthur Baars
cf7ebe2fa8
Merge pull request #11471 from github/rc/3.8
...
Merge rc/3.8 into main
2022-11-29 12:57:34 +01:00
Michael Nebel
984124b3b5
Java: Improve flow test case generator to emit a data extensions YAML file and qlpack file if needed.
2022-11-29 12:54:54 +01:00
Michael Nebel
48290c95a7
Java: Update the flow test case generator to emit data extension like model data.
2022-11-29 12:54:54 +01:00
Michael Nebel
9507dc15fd
Java: Remove un-needed qlfrag files.
2022-11-29 12:54:54 +01:00
Felicity Chapman
c66569bd43
Generalize cpp changes and apply to csharp
2022-11-29 11:50:26 +00:00
erik-krogh
7dcb813ff3
remove two more claseses of FPs in rb/non-constant-kernel-open
2022-11-29 12:49:23 +01:00
Michael Nebel
bc6f0c1622
Merge pull request #11243 from michaelnebel/java/dataextensions
...
Java: Use data extensions for MaD models.
2022-11-29 12:43:26 +01:00
Nora Dimitrijević
1ee04dc020
Update prepare-db-upgrade.md
...
Clarify the test steps based on my experience, where I got a "database may be too new" error when the `--search-path=<codeql-root>` directory was not specified.
2022-11-29 12:36:51 +01:00
erik-krogh
cd770e0906
Merge branch 'main' into test-ci
2022-11-29 12:17:05 +01:00
erik-krogh
7c1435b7c6
use withFileTypes in move-caches.js some more
2022-11-29 12:16:38 +01:00
Erik Krogh Kristensen
3cb31ef030
use withFileTypes in move-caches.js
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-11-29 12:10:00 +01:00
Geoffrey White
3304e9f422
Merge pull request #11459 from geoffw0/constructor
...
Swift: Constructor and destructor related cleanup
2022-11-29 11:00:22 +00:00
Tony Torralba
52ebf66d21
Add basic path sanitizer
2022-11-29 11:55:04 +01:00
Tony Torralba
1576ee9410
Add additional stub to avoid errors when building on Linux
2022-11-29 11:55:03 +01:00
Tony Torralba
8cc66172c3
Add path injection query
2022-11-29 11:55:03 +01:00
Paolo Tranquilli
52a117aaf5
Swift: optimize bazel caching in CI
...
Previously the cache would become stale. Now the same incremental
cache mechanism in use for the QL cache is adopted (and factored out
in a separate action).
Namely, pushes on main will populate the cache using the commit hash as
key, while PRs will try to use the cache of their merge base, read-only.
To avoid the cache growing out of control, a simple cache eviction is
done on pushes.
2022-11-29 11:43:54 +01:00
Geoffrey White
63c139fdbe
Merge branch 'main' into constructor
2022-11-29 10:40:19 +00:00
AlexDenisov
0f87eb45db
Merge pull request #11470 from github/redsun82/swift-fix-ci
...
Swift: revert `swift-actions/setup-swift`
2022-11-29 11:39:08 +01:00
Nora Dimitrijević
93cce0f4c2
Swift: upgrade script
2022-11-29 11:31:08 +01:00
Nora Dimitrijević
13bbee73d8
Swift: Add .generated.list file from codegen
2022-11-29 11:31:07 +01:00
Nora Dimitrijević
931173350f
Swift: extract missing cases of AccessorKind and AccessSemantics
...
This resolves the warnings that were showing up during extractor-pack
compilation.
2022-11-29 11:31:07 +01:00
Nora Dimitrijević
36e7235493
Swift: fix -Wmissing-braces warning in extractor
...
By initializing va_list the standard way,
i.e. leaving it uninitialized until va_start().
2022-11-29 11:31:07 +01:00
Nora Dimitrijević
c89c449a2c
Swift: silence cmake/vscode intellisense Problem
...
i.e. "TrapLabel not found"
2022-11-29 11:27:33 +01:00
Jeroen Ketema
d3cccca7f1
C++: Filter duplicate (source, sink)-pairs
2022-11-29 11:17:39 +01:00
Paolo Tranquilli
9a25de3ef1
Swift: revert swift-actions/setup-swift
2022-11-29 11:17:08 +01:00
Jeroen Ketema
378206ae7d
C++: Stop taint from flowing to arithmetic types
...
These are not likely to give the user much control over what can be accessed.
2022-11-29 11:15:28 +01:00
Karim Ali
f0d9dabca2
updated expected output for LocalTaint and Tain
2022-11-29 12:13:10 +02:00
Karim Ali
9b3c4e8db2
add test case for unicodeScalars
2022-11-29 12:12:10 +02:00
Karim Ali
7541b01a86
add test case for utf8CString
2022-11-29 12:12:10 +02:00
Karim Ali
58a87396ba
add taint steps for fields of String
...
if a String is tainted, then all its fields (including those declared in extensions) should be tainted as well
2022-11-29 12:12:10 +02:00
Mathias Vorreiter Pedersen
4233c91a7e
Merge pull request #11469 from atorralba/atorralba/swift/fix-local-taint
...
Swift: Fix local taint
2022-11-29 10:00:12 +00:00
Jeroen Ketema
718663415b
C++: Stop flow from going through another source
...
Without this we get confusing results:
```
char *userAndFile = argv[2];
char *fileName = argv[1];
fopen(fileName, "wb+"); // Both argv[1] and argv[2] marked as source without
// this change.
```
While here add some more test cases.
2022-11-29 10:52:57 +01:00
Jeroen Ketema
63334764d7
C++: Rewrite cpp/path-injection to not use DefaultTaintTracking
2022-11-29 10:52:57 +01:00
Jeroen Ketema
2ef13d1df7
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-29 10:43:01 +01:00
erik-krogh
915d680fcc
use a node script instead of bash to move the compilation cache
2022-11-29 10:41:08 +01:00
erik-krogh
67e9841bf3
place the compilation cache in the temp dir
2022-11-29 10:40:54 +01:00
Tony Torralba
0e59257442
Fix local taint steps
...
Local taint should include local flow and simple summaries through library code
2022-11-29 10:36:56 +01:00
Tom Hvitved
f3dca95958
Merge pull request #11087 from hvitved/dataflow/summary-ctx
...
Data flow: Add summary/return context to pruning stages 2-4
2022-11-29 10:36:53 +01:00
Geoffrey White
c3dc9672f7
Merge branch 'main' into constructor
2022-11-29 09:30:03 +00:00
Geoffrey White
e0c8a8ecff
Merge pull request #11458 from geoffw0/simplify
...
Swift: Simplify some QL.
2022-11-29 09:29:12 +00:00
Felicity Chapman
5898615f5a
Merge pull request #11420 from github/felicitymay-8441-query-guides-java
...
LGTM deprecation: updates to CodeQL for Java articles
2022-11-29 09:23:21 +00:00
Peter Stöckli
6b1865d2ca
Merge branch 'main' into p--ruby-kernel-open-addition
2022-11-29 10:19:36 +01:00
Felicity Chapman
1dc6640bc1
Remove superfluous content
...
(cherry picked from commit 5d03892943 )
2022-11-29 09:19:21 +00:00
Felicity Chapman
229c3e6e8f
Update for James' review comments
...
(cherry picked from commit 174fbf672f )
2022-11-29 09:19:21 +00:00
Felicity Chapman
97db2c91f1
First draft update basic query to use VS Code
...
(cherry picked from commit 3e0702f904 )
2022-11-29 09:19:21 +00:00
Peter Stöckli
deb3accd1e
make predicate private
2022-11-29 10:07:13 +01:00
Felicity Chapman
9780990836
Merge pull request #11433 from github/8441-general-changes
...
LGTM deprecation: miscellaneous changes
2022-11-29 09:06:31 +00:00
Felicity Chapman
434c5ea188
Merge pull request #11422 from github/felicitymay-8441-query-guides-python
...
LGTM deprecation: updates to CodeQL for Python articles
2022-11-29 09:04:48 +00:00
Felicity Chapman
114d337210
Merge pull request #11421 from github/felicitymay-8441-query-guides-c
...
LGTM deprecation: updates to CodeQL for C/C++ articles
2022-11-29 09:04:31 +00:00
Felicity Chapman
0624324962
Merge branch 'rc/3.8' into felicitymay-8441-query-guides-java
2022-11-29 09:03:32 +00:00
Peter Stöckli
5b6dd786c3
Add changes for NonConstantKernelOpenQuery
2022-11-29 10:00:57 +01:00
Peter Stöckli
88282ade1a
Add predicate to filter out calls to File in opal
2022-11-29 10:00:57 +01:00
Peter Stöckli
315480824b
Fix KernelOpen qhelp
2022-11-29 10:00:57 +01:00
Peter Stöckli
d8752a0b12
Add additional sinks to the rb/kernel-open query
2022-11-29 10:00:56 +01:00
Erik Krogh Kristensen
0cd50aac40
Merge pull request #11398 from erik-krogh/splat-stuff
...
Rb: add some more flow through splat parameters
2022-11-28 22:31:25 +01:00
Erik Krogh Kristensen
ae40b0aba2
Merge pull request #11419 from github/felicitymay-8441-query-guides-javascript
...
LGTM deprecation: updates to CodeQL for JavaScript articles
2022-11-28 21:57:37 +01:00
tiferet
4580b55673
Oops -- forgot to stage one file in the previous commit :)
2022-11-28 11:34:34 -08:00
tiferet
210644e87d
Delete StandardEndpointFilters.
...
All remaining functionality in `StandardEndpointFilters` is only being used in `EndpointCharacteristics`, so it can be moved there as a small set of helper predicates.
2022-11-28 11:34:34 -08:00
tiferet
15121931b4
Delete CoreKnowledge.
...
All remaining functionality in `CoreKnowledge` is only being used in `EndpointCharacteristics`, so it can be moved there as a small set of helper predicates.
2022-11-28 11:34:34 -08:00
tiferet
1c679378e7
FilteringReason is no longer being used and can be deleted
2022-11-28 11:34:33 -08:00
tiferet
99de397a5f
Remove redundant code
...
`isOtherModeledArgument` and `isArgumentToBuiltinFunction` contained the old logic for selecting negative endpoints for training.
These can now be deleted, and replaced by a single base class that collects all EndpointCharacteristics that are currently used to indicate negative training samples: `OtherModeledArgumentCharacteristic`.
This in turn lets us delete code from `StandardEndpointFilters` that effectively said that endpoints that are high-confidence non-sinks shouldn't be scored at inference time, either.
2022-11-28 11:34:33 -08:00
tiferet
7b0269c999
Fix British spelling that code scanning didn't like.
...
I've been working with Brits for too long :)
2022-11-28 11:28:08 -08:00
Tiferet Gazit
72c46c662c
Merge pull request #11462 from github/tiferet/endpoint-filters-sidebar
...
Endpoint filters added commits
2022-11-28 11:18:53 -08:00
tiferet
963407de4c
Update the documentation
2022-11-28 11:16:06 -08:00
Geoffrey White
cf7cd2b470
Swift: Convert to MaD.
2022-11-28 19:02:56 +00:00
Gustav Munkby
545ad0179b
Merge remote-tracking branch 'origin/main' into accelerate-go-list-option
2022-11-28 19:27:52 +01:00
Geoffrey White
03ae2821c3
Update swift/ql/lib/codeql/swift/frameworks/Alamofire/Alamofire.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-11-28 18:24:28 +00:00
Geoffrey White
349a10c013
Swift: codegen.
2022-11-28 17:41:41 +00:00
Geoffrey White
96e04e7f63
Swift: Use ConstructorDecl in place of name matching.
2022-11-28 17:39:45 +00:00
Geoffrey White
e97aee5d9d
Swift: QLDoc.
2022-11-28 17:39:44 +00:00
Geoffrey White
410609fed4
Swift: Make ConstructorDecl, DestructorDecl into MethodDecls.
2022-11-28 17:20:43 +00:00
Geoffrey White
edb6325117
Swift: Fix comment.
2022-11-28 17:07:34 +00:00
Geoffrey White
aa5c893d5e
Swift: Further simplify.
2022-11-28 17:07:34 +00:00
Geoffrey White
97bd91ed19
Swift: Simplify using ApplyExpr.getArgumentWithLabel.
2022-11-28 16:51:46 +00:00
Paolo Tranquilli
28bf0c9e03
Merge pull request #11365 from github/redsun82/swift-integration-test-pack
...
Swift: fix extractor tests pack
2022-11-28 17:02:54 +01:00
Paolo Tranquilli
ace7146164
Merge pull request #11454 from erik-krogh/swift-test
...
Swift: CI cache fixes
2022-11-28 16:24:22 +01:00
Rasmus Wriedt Larsen
8694119c3c
Python: Update py/pam-auth-bypass change-note wording
2022-11-28 16:16:34 +01:00
Rasmus Wriedt Larsen
4e67ec19d0
Python: Adjust alert text of py/pam-auth-bypass
2022-11-28 16:14:38 +01:00
Rasmus Wriedt Larsen
f8442ccb0e
Python: Adjust PAM Auth bypass test slightly
2022-11-28 16:08:44 +01:00
Rasmus Wriedt Larsen
fef06679e5
Python: Remove options file for PAM Auth Bypass
...
Should not be needed
2022-11-28 16:03:32 +01:00
Rasmus Wriedt Larsen
3d9556e5a3
Python: Use proper Query suffix
2022-11-28 16:03:17 +01:00
Rasmus Wriedt Larsen
c310948521
Python: Remove enclosing module for PAM Auth Bypass.qll
2022-11-28 16:02:38 +01:00
Rasmus Wriedt Larsen
479a9e4156
Python: Update .expected
2022-11-28 16:01:42 +01:00
Felicity Chapman
59b6d657cc
Apply suggestions from code review
...
Co-authored-by: hubwriter <hubwriter@github.com >
2022-11-28 15:45:05 +01:00
Felicity Chapman
7e5a9fbe2e
Update note for review comments
2022-11-28 15:41:39 +01:00
Felicity Chapman
179941daab
First set of updates for JavaScript articles
2022-11-28 15:41:39 +01:00
Felicity Chapman
33ae086861
Apply suggestions from code review
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-11-28 15:38:03 +01:00
Felicity Chapman
d6ae5c898a
Respond to review feedback
2022-11-28 15:38:03 +01:00
Felicity Chapman
a9b6a12317
Updates for Java articles
2022-11-28 15:38:03 +01:00
Felicity Chapman
85961f5dce
Update docs/codeql/codeql-language-guides/functions-in-cpp.rst
2022-11-28 15:36:05 +01:00
Felicity Chapman
8ec06d45e0
Replace LGTM description with VS Code
2022-11-28 15:36:05 +01:00
Felicity Chapman
b22ccc114e
Minor changes to Go and Ruby article
2022-11-28 15:36:05 +01:00
Felicity Chapman
0ac0277639
Minor change to C# article
2022-11-28 15:36:05 +01:00
Felicity Chapman
a407f0a4ac
Update main C/C++ articles
2022-11-28 15:36:04 +01:00
Felicity Chapman
da4c178534
Update main Python articles
2022-11-28 15:34:12 +01:00
Felicity Chapman
c1e6d4c82a
Update .github/ISSUE_TEMPLATE/ql---general.md
2022-11-28 15:26:24 +01:00
Felicity Chapman
c451fa8ad4
Update cpp/ql/src/Likely Bugs/RedundantNullCheckSimple.ql
...
Co-authored-by: Taus <tausbn@github.com >
2022-11-28 15:26:24 +01:00
Felicity Chapman
ea127c3d99
A few more references
2022-11-28 15:26:24 +01:00
Felicity Chapman
b5f849463b
Update QL library references
2022-11-28 15:26:24 +01:00
Felicity Chapman
c06db6b67c
Remove LGTM support info
2022-11-28 15:26:22 +01:00
Felicity Chapman
fb0959bcea
Update QL reference
2022-11-28 15:25:38 +01:00
Felicity Chapman
5f835da838
Update HTML comment in query
2022-11-28 15:25:38 +01:00
Felicity Chapman
36a6ccba8b
Remove reference in template
2022-11-28 15:25:38 +01:00
Felicity Chapman
a76d47681d
Replace references in Qhelp files
2022-11-28 15:25:37 +01:00
Mathias Vorreiter Pedersen
3716d67cc9
Merge pull request #11451 from geoffw0/wkuserscript
...
Swift: models for WKUserScript
2022-11-28 14:24:19 +00:00
Geoffrey White
f291320655
Merge pull request #11447 from geoffw0/localflow2
...
Swift: Update queries to use LocalFlowSource
2022-11-28 14:18:01 +00:00
erik-krogh
d2824413db
skip the only remaining macos job running on main
2022-11-28 14:44:34 +01:00
erik-krogh
751ffbd9c8
use different keys for different caches
2022-11-28 14:44:07 +01:00
Erik Krogh Kristensen
7049532227
Merge pull request #11364 from github/redsun82/swift-ci-cache
...
Swift: cache more aggressively in CI
2022-11-28 14:34:43 +01:00
Asger F
76afc2dcc3
JS: Fix formatting and rephrase comment
2022-11-28 14:00:43 +01:00
erik-krogh
fd7442868f
fix copy-pate error in UnsafeCodeConstructionQuery.qll
2022-11-28 13:45:24 +01:00
Geoffrey White
30468dd419
Swift: Implement field content as well.
2022-11-28 12:27:33 +00:00
Geoffrey White
ffbd201450
Swift: Implement basic model of WKUserScript.
2022-11-28 12:20:29 +00:00
Geoffrey White
116d9667e7
Swift: Remove special case from query.
2022-11-28 12:15:38 +00:00
Ian Lynagh
a32363de79
Kotlin: Avoid giving a single class 2 compiler-generated kinds
2022-11-28 12:14:50 +00:00
Ian Lynagh
7863bc2c99
Kotlin: Accept test output
2022-11-28 12:14:36 +00:00
Tom Hvitved
1e63893411
C#: Add integration test that checks whether env vars are passed through autobuilder
2022-11-28 13:12:24 +01:00
Geoffrey White
3971cbf294
Swift: Extend the taint test with WKUserScript.
2022-11-28 12:11:38 +00:00
Erik Krogh Kristensen
477a32831b
Merge pull request #11448 from github/erik-krogh/lgtm-codeql-js-extractor
...
JS: update `javascript/extractor/README.md` to mention CodeQL instead of LGTM
2022-11-28 13:10:25 +01:00
Arthur Baars
a879fd519a
Merge pull request #11295 from github/aibaars-patch-2
...
"CodeQL False positive" -> "CodeQL false positive"
2022-11-28 13:06:39 +01:00
Arthur Baars
a8effd1961
Ruby: add change note
2022-11-28 13:02:22 +01:00
Michael Nebel
d7e656a32a
Java: Add change note.
2022-11-28 12:30:36 +01:00
Michael Nebel
43a63d6373
Java: Convert all models to data extensions in testcases.
2022-11-28 12:30:36 +01:00
Michael Nebel
74f02cf855
Java: Allow empty package name in model definitions.
2022-11-28 12:30:35 +01:00
Michael Nebel
b96540c937
Java: Convert permissve-dot-regex-query to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
91840c613e
Java: Convert unsafe-url-forward to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
aed5ee4edc
Java: Convert thread-resource-abuse to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
07578f11d4
Java: Convert hardcoded-jwt-key models to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
ab12b6cc2b
Java: Convert android-web-resource-response to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
5c15ad412c
Java: Convert log4j-injection to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
665d40dc4b
Java: Convert file-path-injection to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
b61f515af2
Jave: Make support for query specific models.
2022-11-28 12:30:35 +01:00
Michael Nebel
805430983c
Java: Convert commons-io to data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
d7aafbfe64
Java: Add model generator script that emits data extensions.
2022-11-28 12:30:35 +01:00
Michael Nebel
9c93402b26
Java: Convert integration test to use data extensions instead of inlined models.
2022-11-28 12:30:35 +01:00
Michael Nebel
157a228088
Java: Add query packs with names to enable dependency resolution.
2022-11-28 12:30:35 +01:00
Michael Nebel
2d309bb8f8
Java: Include the library query pack to get the data extensions included.
2022-11-28 12:30:35 +01:00
Michael Nebel
b3a3b676ba
Java: Remove manual models from QL code.
2022-11-28 12:30:34 +01:00
Michael Nebel
f4e1867d28
Java: Define extensible predicates to at least be empty.
2022-11-28 12:30:34 +01:00
Michael Nebel
0abeb831c7
Java: Move summaryModel predicate, which constructs a CSV row to the testcode where it is used.
2022-11-28 12:30:34 +01:00
Michael Nebel
663d091776
Java: Invert dependencies and use the extensible predicates.
2022-11-28 12:30:34 +01:00
Michael Nebel
9cb5ff1cdc
Java: Add data extensions for all manual models.
2022-11-28 12:30:34 +01:00
Michael Nebel
8e25cac653
Java: Add extensible predicates.
2022-11-28 12:30:34 +01:00
Michael Nebel
7b6f202f23
Java: Renaming.
2022-11-28 12:30:34 +01:00
Michael Nebel
63e2206d16
Java: Prepare QL pack for data extensions.
2022-11-28 12:30:34 +01:00
Michael Nebel
fc4b9827b9
Java: Add script for converting extensions.
2022-11-28 12:30:34 +01:00
Michael Nebel
9f7103c4fb
Java: Add queries for extracting sources, sinks and summaries.
2022-11-28 12:30:34 +01:00
Michael Nebel
a8ee878356
Java: Add bi-directional import of FragmentInjection.
2022-11-28 12:30:33 +01:00
Michael Nebel
663112576a
Java: Update commons-io models.
2022-11-28 12:30:33 +01:00
Erik Krogh Kristensen
7a3898168f
Update README.md
2022-11-28 12:12:36 +01:00
Tom Hvitved
cde05e1190
Data flow: Sync files
2022-11-28 12:11:38 +01:00
Tom Hvitved
c65780ee99
Data flow: Inline revFlowInNotToReturn
2022-11-28 12:11:18 +01:00
Tom Hvitved
bdb205a318
Data flow: Track return kind instead of return position in pruning stages 2-4
2022-11-28 12:11:18 +01:00
Tom Hvitved
4346a7f426
Data flow: Inline fwdFlowOutNotFromArg
2022-11-28 12:11:18 +01:00
Tom Hvitved
70d2a0df8a
Data flow: Track parameter position instead of parameter in pruning stages 2-4
2022-11-28 12:11:12 +01:00
Taus
530b795eaa
Merge pull request #11402 from yoff/python/port-super-not-enclosing-class
...
Python: port `py/super-not-enclosing-class`
2022-11-28 11:52:57 +01:00
Nick Rolfe
8a94cabdbf
Merge pull request #11250 from github/nickrolfe/stack-trace-exposure
...
Ruby: add stack-trace exposure query
2022-11-28 10:45:59 +00:00
Asger F
e99571baae
Update javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModelsSpecific.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-28 11:45:08 +01:00
Geoffrey White
dc02fa0386
Swift: Make ql-for-ql happy.
2022-11-28 10:17:11 +00:00
Geoffrey White
b3d2e759a6
Swift: Update swift/sql-injection to include local flow sources.
2022-11-28 10:11:44 +00:00
Geoffrey White
a5a459fe0a
Swift: Update swift/unsafe-js-eval to include local flow sources.
2022-11-28 10:11:44 +00:00
Michael Nebel
7456f3750d
Merge pull request #11432 from michaelnebel/java/flowtestgeneratortools
...
Java: Flow test case generator
2022-11-28 10:41:42 +01:00
erik-krogh
0c2ff98dc2
add flow from the first splat argument to the first splat parameter
2022-11-28 09:54:05 +01:00
erik-krogh
d5725255fe
add failing test for splat parameter flow
2022-11-28 09:53:03 +01:00
Michael Nebel
24e830f91d
Java: Fix some minor bugs in the CSV printing of summaries for flow test generation.
2022-11-28 09:07:40 +01:00
Michael Nebel
abe4d99e12
Java: Make some rudimentary tooling for testing the flow test case generator script.
2022-11-28 09:07:40 +01:00
Chris Smowton
5a0cce2a18
Merge pull request #11430 from erik-krogh/go-go
...
GO: get the Go CI to go fast!
2022-11-26 11:47:04 +00:00
erik-krogh
2b0ecec0c8
only run other-os on non-ql changes
2022-11-26 10:43:33 +01:00
erik-krogh
dcfa0b38c1
use a non-xl mac runner because the XL runners keep queing
2022-11-26 10:43:33 +01:00
erik-krogh
2b996f11cc
use query compilation cache
2022-11-26 10:43:33 +01:00
erik-krogh
1e732ad4d7
use XL workers, and update the windows runner
2022-11-26 10:43:33 +01:00
erik-krogh
d7763f236f
use more threads for codeql test
2022-11-26 10:43:33 +01:00
erik-krogh
b6034b4935
delete language specific format check
2022-11-26 10:43:30 +01:00
Chris Smowton
fb1f22144d
Merge pull request #11352 from smowton/smowton/admin/kotlin-tests-1.7.20
...
Kotlin: bump default CI version to 1.7.20
2022-11-25 21:05:10 +00:00
Chris Smowton
0879f02db6
Adapt custom_plugin test to Kotlin 1.7.20
2022-11-25 17:54:53 +00:00
Ian Lynagh
a423f5f695
Kotlin: Enable java/misnamed-type query
...
We used to get alerts for the class around a local function, a lambda,
or a function reference, which we give name "". Now those are marked as
compiler-generated, and the query ignores compiler-generated types.
2022-11-25 17:11:40 +00:00
Paolo Tranquilli
edddaaa838
Swift: make mapping from swift types to tags explicit
...
This should decouple schema names from swift names, allowing to
rename schema names regardless of internal swift compiler names.
2022-11-25 13:10:33 +01:00
Jeroen Ketema
53b86fd53b
Merge pull request #11428 from jketema/default-taint-tests
...
C++: Add more tests that exercise the default taint barrier implementation
2022-11-25 12:13:18 +01:00
Chris Smowton
180c3cee44
Accept integration test changes caused by variable location changes
2022-11-25 10:54:50 +00:00
Chris Smowton
32847c125a
Accept more test changes due to variable locations changing
...
There is also one non-location change: kotlin.Byte (and likely other primitives) now have real equals and toString overrides, which matches their native source and documentation; before they appeared to have fake overrides.
2022-11-25 10:47:48 +00:00
Alex Ford
8362caa9d9
Merge pull request #11417 from alexrford/ruby/activesupport-json_escape
...
Ruby: model ActiveSupport `json_escape` flow
2022-11-25 10:46:34 +00:00
Chris Smowton
8ec681e61c
Kotlin: bump default CI version to 1.7.20
...
A bunch of test expectations change because 7f531d8426 means that we now see (a) local variable declarations with source locations covering only their identifier, not the whole statement, and (b) more SYNTHETIC_OFFSET values for the parts of a destructuring assignment
or initialiser, which show up as file.kt:0:0:0:0 in DbLocation form.
2022-11-25 10:19:26 +00:00
erik-krogh
f75b853ae4
add change-note
2022-11-25 11:08:14 +01:00
Owen Mansel-Chan
ebdea243b2
Make qldoc clearer about behaviour of override
2022-11-25 09:46:07 +00:00
erik-krogh
53f24a5281
fix QL-for-QL warning
2022-11-25 10:32:06 +01:00
erik-krogh
0817238177
drive-by: same change in unsafe-shell-command-construction
2022-11-25 10:32:06 +01:00
erik-krogh
378cc1aed2
add support for string-like-literals
2022-11-25 10:32:06 +01:00
erik-krogh
80c92dc3e6
add support for array pushes
2022-11-25 10:32:05 +01:00
erik-krogh
3461404bbb
add basic support for arrays
2022-11-25 10:31:35 +01:00
erik-krogh
0f2a48f461
fix QL-for-QL warnings
2022-11-25 10:26:24 +01:00
erik-krogh
2033dd2dcc
remove parameters named "code" as source
2022-11-25 10:25:31 +01:00
erik-krogh
e7c6571f52
remove the "send(..)" and similar from unsafe-code-construction
2022-11-25 10:25:31 +01:00
erik-krogh
f1668801d3
add a rb/unsafe-code-construction query
...
rebase
2022-11-25 10:25:30 +01:00
Jeroen Ketema
4607f5990e
C++: Add more tests that exercise the default taint barrier implementation
2022-11-25 10:19:45 +01:00
Paolo Tranquilli
8df7d465cb
Swift: cache more aggressively in CI
...
* the QL compilation cache action is used for ql and integration tests
* all caches (Bazel and QL) are populated on push
2022-11-25 08:52:46 +01:00
Rasmus Lerchedahl Petersen
77d98b217e
Python: add import
2022-11-25 08:52:35 +01:00
yoff
d804acdef7
Apply suggestions from code review
...
Co-authored-by: Taus <tausbn@github.com >
2022-11-25 08:50:37 +01:00
Paolo Tranquilli
9b4b29cab7
Merge branch 'main' into redsun82/swift-integration-test-pack
2022-11-25 08:49:36 +01:00
Harry Maclean
f49507e59a
Ruby: Add note about WithElement usage
2022-11-25 16:55:37 +13:00
Harry Maclean
df398fb9a0
Ruby: Add more flow summary tests
2022-11-25 16:55:37 +13:00
Harry Maclean
fe13ac188f
Ruby: US spelling
2022-11-25 16:55:37 +13:00
Harry Maclean
0b065001a8
Ruby: Add tests for flow summary behaviour
...
These test cases are a companion to the flow summary docs, and ensure
that the documentated behaviour matches reality.
2022-11-25 16:55:37 +13:00
Harry Maclean
c0501c189e
Ruby: Document ?/any behaviour in output paths
2022-11-25 16:55:37 +13:00
Harry Maclean
5b07c3a746
Ruby: Elaborate WithoutElement docs
2022-11-25 16:55:37 +13:00
Harry Maclean
5e3a817064
Ruby: With[out]Element only valid in input
2022-11-25 16:55:37 +13:00
Harry Maclean
0c2dd1a5a6
Ruby: Flesh out hash-splat docs
2022-11-25 16:55:37 +13:00
Harry Maclean
43f2713925
Ruby: Update test fixture
2022-11-25 16:55:37 +13:00
Harry Maclean
78f604aef1
Ruby: Document Field access path token
2022-11-25 16:55:37 +13:00
Harry Maclean
6f852aad0b
Ruby: Document flow summary syntax
2022-11-25 16:55:36 +13:00
Harry Maclean
0a4a8516eb
Ruby: simplify Hash#transform_keys! flow summary
2022-11-25 16:55:36 +13:00
Geoffrey White
208a728d39
Swift: Fixes.
2022-11-25 00:28:53 +00:00
Geoffrey White
37cdef7ab1
Swift: add basic Alamofire taint source model.
2022-11-25 00:14:23 +00:00
Geoffrey White
afb5dc7da3
Swift: Add test for Alamofire sources.
2022-11-25 00:08:51 +00:00
Harry Maclean
2822c94aa7
Ruby: Minor refactor of barrier guard code
2022-11-25 09:12:51 +13:00
Harry Maclean
6897fb46cb
Ruby: Clean up WhenClause CFG
2022-11-25 09:12:51 +13:00
Alexander Eyers-Taylor
3c7f7511be
Merge pull request #11418 from alexet/alexet/mockito-class-rename
...
Java: Add new Mockito runner class location.
2022-11-24 17:49:31 +00:00
alexet
e24e3bf13f
Java: Add new Mockito runner class location.
2022-11-24 16:43:57 +00:00
erik-krogh
5f6cb1684b
move the code-injection tests into a subfolder
2022-11-24 17:23:25 +01:00
Henry Mercer
df3dc6fadc
Merge pull request #11414 from github/codeql-ci/atm/release-0.4.2
...
JS: Bump version numbers of ML-powered packs after 0.4.2 release
2022-11-24 16:07:28 +00:00
Alex Ford
e6446e501c
Ruby: fix docs failure
2022-11-24 15:37:03 +00:00
Alex Ford
893c8763bb
Ruby: model ActiveSupport json_escape flow
2022-11-24 15:33:08 +00:00
Edoardo Pirovano
9071acea01
Merge pull request #11416 from github/edoardo/mergeback-3.8
...
Merge `rc/3.8` into `main`
2022-11-24 15:05:28 +00:00
Erik Krogh Kristensen
03737543d4
Merge pull request #11403 from erik-krogh/additional
...
ReDoS: add missing additional keywords
2022-11-24 15:53:51 +01:00
Edoardo Pirovano
8eeba92a47
Merge pull request #11415 from github/edoardo/mergeback-2.11.4
...
Merge `codeql-cli-2.11.4` into `rc/3.8`
2022-11-24 14:42:36 +00:00
Henry Mercer
56e5f01ce0
Merge branch 'main' into codeql-ci/atm/release-0.4.2
2022-11-24 14:41:49 +00:00
Jeroen Ketema
4c94ff7deb
Merge pull request #11413 from jketema/default-taint-upper-bound-check-fix
...
C++: Fix upper bound detection in default taint flow
2022-11-24 15:36:59 +01:00
github-actions[bot]
78d49e44b1
JS: Bump version of ML-powered library and query packs to 0.4.3
2022-11-24 14:22:14 +00:00
github-actions[bot]
8d96bfe973
JS: Bump patch version of ML-powered library and query packs
2022-11-24 14:18:13 +00:00
Nick Rolfe
50b10be2db
Ruby: StackTraceExposure: add test for a specific rescue type
2022-11-24 14:08:34 +00:00
Nick Rolfe
1c407a28cd
Apply suggestions from code review
...
Co-authored-by: Harry Maclean <hmac@github.com >
2022-11-24 14:02:32 +00:00
Jeroen Ketema
223eeb6921
C++: Fix upper bound detection in default taint flow
2022-11-24 14:38:36 +01:00
Tony Torralba
adf905d838
Merge pull request #11368 from ka1n4t/main
...
Java: Add binding between annotation and sink-param in MyBatis SQL Injection query
2022-11-24 14:34:57 +01:00
Tony Torralba
1d57663343
Merge pull request #11345 from atorralba/atorralba/swift/data-models
...
Swift: Add taint models for the Data class
2022-11-24 14:23:41 +01:00
Geoffrey White
32442a33de
Merge pull request #11270 from geoffw0/optionals2
...
Swift: Dataflow through ?? and ? :
2022-11-24 13:20:54 +00:00
Ian Lynagh
184c903ec7
Merge pull request #11401 from igfoo/igfoo/unused
...
Kotlin: Remove an unused argument
2022-11-24 12:47:50 +00:00
Ian Lynagh
501ea31c25
Merge pull request #11404 from igfoo/igfoo/build_refactor
...
Kotlin build system: Refactor jar-finder
2022-11-24 12:47:34 +00:00
Anders Schack-Mulligen
f2897f5bfc
Merge pull request #11392 from aschackmull/java/adjust-mad-dispatch-priority
...
Java: Adjust the prioritisation between MaD and source dispatch.
2022-11-24 13:10:48 +01:00
Tony Torralba
e4e5291511
Fix more test expectations after rebase
2022-11-24 13:03:12 +01:00
Erik Krogh Kristensen
6464135800
Merge pull request #11409 from erik-krogh/cache-more
...
Ruby: cache the compiled extractor in the build tests
2022-11-24 12:42:33 +01:00
Tony Torralba
fc7c66dab2
Remove now unnecessary additional taint step in UnsafeJsEval
2022-11-24 12:35:52 +01:00
Tony Torralba
e67b72d954
Update test expectations
2022-11-24 12:35:51 +01:00
Tony Torralba
25354d2dd8
Apply code review suggestions
2022-11-24 12:35:51 +01:00
Tony Torralba
6a8b9fde78
Add data flowsources test
2022-11-24 12:35:51 +01:00
Tony Torralba
d6b14a1395
Update test expectations
2022-11-24 12:35:50 +01:00
Tony Torralba
2284127650
Add MaD rows for the Data class
2022-11-24 12:35:50 +01:00
Tony Torralba
4bbc1dc734
Update test expectations
2022-11-24 12:34:48 +01:00
Tony Torralba
cac6e946ab
Merge pull request #11411 from atorralba/atorralba/swift/fix-nsdata-test
...
Swift: Fix expectation in NSData tests
2022-11-24 12:34:28 +01:00
Ben Ahmady
7f5df4fc0e
Merge pull request #11384 from github/subatoi/codeql-cli-2.11.4
...
Adds Kotlin (beta) content
2022-11-24 11:33:46 +00:00
Geoffrey White
c6835cd270
Swift: Update .generated.list.
2022-11-24 11:16:56 +00:00
Tony Torralba
4f8ef13cd8
Fix expectation in NSData tests
2022-11-24 12:13:46 +01:00
Tony Torralba
04450c5173
Merge pull request #11378 from atorralba/atorralba/swift/nsdata-models
...
Swift: Add models for NSData and NSMutableData
2022-11-24 11:19:14 +01:00
Tony Torralba
17218fa663
Formatting
2022-11-24 11:14:16 +01:00
Ben Ahmady
42259ef8d1
Update docs/codeql/reusables/kotlin-java-differences.rst
2022-11-24 10:10:42 +00:00
Tony Torralba
443d0f50c1
Apply suggestions from code review
2022-11-24 11:10:07 +01:00
erik-krogh
c9a600d496
Ruby: cache the compiled extractor, because that's way smaller than the cargo cache
2022-11-24 10:55:38 +01:00
Tony Torralba
2ac06b8db9
Turns out lambda flow is already supported
2022-11-24 10:52:27 +01:00
Nora Dimitrijević
8f065e9483
Merge pull request #11001 from d10c/swift/js-injection
2022-11-24 10:52:05 +01:00
Tom Hvitved
4e4ee32dbc
Data flow: Join on one more column in flowThroughIntoCall
2022-11-24 10:48:29 +01:00
Michael Nebel
cb4a7e22f0
Merge pull request #11395 from michaelnebel/csharp/externalflowcleanup
...
C#: ExternalFlow.qll cleanup.
2022-11-24 10:28:58 +01:00
Rasmus Wriedt Larsen
d151e21f15
Python: Move ControlFlowNode.toString() to AST cached stage
...
This means points-to is no longer evaluated for sql injection 🎉
Thanks @asgerf 💪
2022-11-24 10:14:39 +01:00
Mathias Vorreiter Pedersen
d9fab8afd9
Merge pull request #11405 from jketema/611-use-use-fix
...
C++: Fix CWE-611 XXE query to work with use-use dataflow - take 2
2022-11-24 09:10:28 +00:00
Harry Maclean
57f689401e
Ruby: SplatExprCfgNode extends UnaryOperationCfgNode
2022-11-24 17:33:57 +13:00
Jeroen Ketema
6fa5fdfeb2
C++: Fix CWE-611 XXE query to work with use-use dataflow - take 2
...
This commit ensures stack allocated parsers are also handled.
2022-11-23 23:59:04 +01:00
Ian Lynagh
2d92cee26a
Kotlin build system: Refactor jar-finder
...
We were globbing with a * in the filename, but that is not necessary.
2022-11-23 21:43:32 +00:00
Erik Krogh Kristensen
1eec067474
Merge pull request #11294 from erik-krogh/fileDoc
...
QL: improve the "this block-comment should have been a QLDoc"-query
2022-11-23 22:23:36 +01:00
Erik Krogh Kristensen
3d4f64f168
Merge pull request #11397 from erik-krogh/call-instanceof
...
Rb: use `instanceof` instead of `extends` on `DataFlow::CallNode` in some case
2022-11-23 22:20:17 +01:00
Erik Krogh Kristensen
efdfc361be
Merge pull request #11396 from erik-krogh/jsTypo
...
JS: fix two typos
2022-11-23 22:18:43 +01:00
erik-krogh
95f35196e4
add missing additional keywords
2022-11-23 20:45:51 +01:00
Ian Lynagh
5b8b9044a5
Kotlin: Remove an unused argument
2022-11-23 18:47:53 +00:00
tiferet
03b8e649f1
Filter endpoints by confidence
...
Select endpoints to score at inference time base purely on their confidence level, and not on whether they fit the historical definition of endpoint filters.
2022-11-23 10:46:27 -08:00
Tom Hvitved
3fbe089f65
Merge pull request #11387 from hvitved/csharp/autobuild-options-split
...
C#: Split `AutobuildOptions` into C#/C++ specific classes
2022-11-23 19:30:48 +01:00
Geoffrey White
2b52a44024
Merge pull request #11210 from geoffw0/alamofire2
...
Swift: Add Alamofire model to swift/cleartext-transmission
2022-11-23 18:23:44 +00:00
Henry Mercer
146d2460b7
Merge pull request #11390 from github/henrymercer/atm/add-pack-descriptions
...
ATM: Add descriptions to ML-powered packs
2022-11-23 18:04:59 +00:00
Mathias Vorreiter Pedersen
ac2174db13
Merge pull request #11400 from jketema/611-use-use-fix
...
C++: Fix CWE-611 XXE query to work with use-use dataflow
2022-11-23 17:08:52 +00:00
Ben Ahmady
357c823b92
Changes after feedback
2022-11-23 16:59:52 +00:00
Andrew Eisenberg
b9694eb09a
Merge pull request #11388 from hvitved/codeql-workspace-yml-fix
...
Fix typo in `codeql-workspace.yml`
2022-11-23 08:42:54 -08:00
Ian Lynagh
d03817ce2d
Merge pull request #11399 from igfoo/igfoo/kotlin-basic
...
Java/Kotlin: Make the basic query in docs work for both languages
2022-11-23 16:01:04 +00:00
Michael Nebel
2684b3f396
C#: Make bi-directional import of Servicestack remote flow source definitions.
2022-11-23 16:59:40 +01:00
Ian Lynagh
277b5b483d
Java/Kotlin docs: Tweak text
2022-11-23 15:51:40 +00:00
Michael Nebel
582cfb9330
C#: Remove the frameworks module in ExternalFlow as MaD models are no longer inlined in the code.
2022-11-23 16:20:36 +01:00
Ian Lynagh
950c4c811c
Java/Kotlin: Make the basic query in docs work for both languages
2022-11-23 15:18:29 +00:00
Ian Lynagh
9ee36215bd
Java: Fix basic query in docs
2022-11-23 15:14:46 +00:00
Jeroen Ketema
30bdd25228
C++: Fix CWE-611 XXE query to work with use-use dataflow
2022-11-23 16:14:28 +01:00
Ben Ahmady
ee0811df26
Update docs/codeql/codeql-language-guides/codeql-for-java.rst
2022-11-23 15:13:40 +00:00
Ben Ahmady
f9215ec5ca
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 15:10:24 +00:00
Ben Ahmady
72999c7af1
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 15:10:14 +00:00
Ben Ahmady
3c3442d8f0
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 15:09:58 +00:00
Geoffrey White
ef837f72e4
Swift: Test .expected changes resulting from merge.
2022-11-23 14:57:08 +00:00
Ian Lynagh
8042edb6a9
Merge pull request #11393 from igfoo/igfoo/typo
...
Java: Fix typo: ceritificate
2022-11-23 14:26:14 +00:00
erik-krogh
33216f3867
cleanup imports
2022-11-23 15:22:19 +01:00
Michael Nebel
311614c5e6
C#: Remove imports of ExternalFlow.qll.
2022-11-23 15:03:03 +01:00
Asger F
abf0c0f296
Python: update more comments referring to the package column
2022-11-23 15:02:08 +01:00
erik-krogh
19b5f64a11
use instanceof instead of extends on DataFlow::CallNode in some case
2022-11-23 14:58:17 +01:00
Asger F
5a51d718c6
Update some comments referring to the package column
2022-11-23 14:44:03 +01:00
erik-krogh
2eb6b1adb3
JS: fix two typos
2022-11-23 14:38:12 +01:00
Rasmus Lerchedahl Petersen
91198524cd
Python: port py/super-not-enclosing-class
2022-11-23 14:37:45 +01:00
AlexDenisov
ac7063ba09
Merge pull request #11394 from github/redsun82/swift-error-on-uppercase-acronyms
...
Swift: reject uppercase acronyms in schema
2022-11-23 14:21:07 +01:00
Paolo Tranquilli
876add5214
Swift: reject uppercase acronyms in schema
...
This was causing hardly debuggable errors because names are transformed
to underscored lowercase names in the dbscheme and back to camelcase
for trap emission classes, which is not a noop in case uppercase
acronyms (like SIL or ABI) are in the name.
This makes the error be surfaced early with a helpful message.
2022-11-23 13:56:03 +01:00
Ben Ahmady
dcd082e955
Possible build fix, else needs new parameter
2022-11-23 12:48:47 +00:00
Tom Hvitved
bc6a41c1e6
Merge pull request #10927 from hvitved/csharp/phi-reads-in-data-flow-graph
...
C#: Include "phi reads" in `DataFlow::Node`
2022-11-23 13:34:18 +01:00
Ian Lynagh
d401be1845
Java: Fix typo: ceritificate
2022-11-23 12:12:32 +00:00
Nick Rolfe
686a1cbafe
Merge pull request #11386 from github/nickrolfe/dbscheme_case_split
...
Ruby/QL: only create dbscheme case-splits for columns on defining tables
2022-11-23 12:06:57 +00:00
Tom Hvitved
8f3731fd42
C#: Split AutobuildOptions into C#/C++ specific classes
2022-11-23 12:57:16 +01:00
Anders Schack-Mulligen
807f87e01f
Java: Adjust the prioritisation between MaD and source dispatch.
2022-11-23 12:56:32 +01:00
AlexDenisov
1c17d854d8
Merge pull request #11391 from github/redsun82/swift-package-downgrades
...
Swift: add downgrades script to extractor pack
2022-11-23 12:46:28 +01:00
Tony Torralba
6cfa89e1db
Merge pull request #11165 from atorralba/atorralba/swift/xxe-query-libxml2-sinks
...
Swift: Add libxml2 sinks to the XXE query
2022-11-23 12:39:44 +01:00
Paolo Tranquilli
a1bffff0b0
Swift: add downgrades script to extractor pack
2022-11-23 12:15:29 +01:00
Tom Hvitved
28c32fc78e
Merge pull request #11383 from hvitved/csharp/ci-extractor-unit-tests
...
C#: Also include extractor unit tests in `csharp-qltest.yml`
2022-11-23 11:58:07 +01:00
Henry Mercer
3b69821630
ATM: Add descriptions to ML-powered packs
2022-11-23 10:46:23 +00:00
Tom Hvitved
a55c56feed
Fix typo in codeql-workspace.yml
2022-11-23 11:33:52 +01:00
Ben Ahmady
40c2b3c43b
Merge branch 'codeql-cli-2.11.4' into subatoi/codeql-cli-2.11.4
2022-11-23 10:18:46 +00:00
Asger F
1c910550e6
Python: merge package/type columns
2022-11-23 11:17:42 +01:00
Asger F
22316ee4fe
Ruby: merge package/type columns
2022-11-23 11:17:42 +01:00
Asger F
2e3413c9b8
JS: Merge package/type columns
2022-11-23 11:17:42 +01:00
Ben Ahmady
093ff4061d
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:08:45 +00:00
Ben Ahmady
7644ecad52
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:08:29 +00:00
Ben Ahmady
0a91ee1019
Update docs/codeql/codeql-language-guides/abstract-syntax-tree-classes-for-working-with-java-programs.rst
2022-11-23 10:08:20 +00:00
Ben Ahmady
df7f0cf9a9
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-java.rst
2022-11-23 10:08:10 +00:00
Ben Ahmady
c06b8a68e5
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:08:00 +00:00
Jeroen Ketema
9e4cab74ec
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-23 11:07:03 +01:00
Ben Ahmady
c663da5be6
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:07:03 +00:00
Ben Ahmady
4bd7e24b5f
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:06:57 +00:00
Ben Ahmady
605c7113a2
Update docs/codeql/reusables/kotlin-java-differences.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:06:48 +00:00
Ben Ahmady
e2240abc78
Update docs/codeql/codeql-language-guides/codeql-for-java.rst
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-23 10:06:34 +00:00
Nick Rolfe
e16bdc4d07
Ruby/QL: only create dbscheme case-splits for columns on defining tables
2022-11-23 10:00:08 +00:00
Mathias Vorreiter Pedersen
349c5cd800
Merge pull request #11254 from MathiasVP/fix-ssa-flow
...
C++: Fix spurious reference flow
2022-11-23 09:52:28 +00:00
Geoffrey White
556d68aeed
Update swift/ql/src/queries/Security/CWE-311/CleartextTransmission.ql
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-11-23 09:17:18 +00:00
Paolo Tranquilli
545c2f67e9
Merge pull request #11382 from github/alexdenisov/swift-relax-file-archiving
...
Swift: do not abort if cannot archive a source file
2022-11-23 06:56:26 +01:00
Paolo Tranquilli
d345cec339
Merge pull request #11381 from github/alexdenisov/swift-fix-remapping-regression
...
Swift: fix remapping bug
2022-11-23 06:56:05 +01:00
ka1n4t
d113fb23c8
Add test case for PR-11368
2022-11-23 11:05:58 +08:00
Tom Hvitved
4ad7d2d822
C#: Also include extractor unit tests in csharp-qltest.yml
2022-11-22 19:55:38 +01:00
Ben Ahmady
24c413fbf9
Adds Kotlin (beta) content
2022-11-22 18:33:24 +00:00
Geoffrey White
7d45ca6293
Merge branch 'main' into optionals2
2022-11-22 17:35:27 +00:00
Alex Denisov
8f02463411
Swift: fix remapping bug
...
This issue has slipped during a recent refactoring:
https://github.com/github/codeql/pull/10987/files#diff-c5ab26a06a93c4507a834859a6a56878d5bfe16c4d7cbac4afc4f081d46f461aL63-R64
2022-11-22 17:25:07 +01:00
Alex Denisov
a2ac1384cb
Swift: do not abort if cannot archive a source file
2022-11-22 17:18:40 +01:00
Tony Torralba
92ee0aa7ae
Merge pull request #11367 from atorralba/atorralba/java/add-bitwise-implicit-intents
...
Java: Consider taint through bitwise operations on PendingIntent flags
2022-11-22 17:08:52 +01:00
Rasmus Wriedt Larsen
69b43f147a
Python: Fix ql4ql alerts
...
The rest will be ignored.
2022-11-22 16:24:47 +01:00
Tony Torralba
2e1a78e1bf
Add models for NSData and NSMutableData
2022-11-22 15:48:58 +01:00
Rasmus Wriedt Larsen
5866af413f
Merge pull request #11347 from tausbn/python-clean-up-import-resolution
...
Python: Add change note for module resolution
2022-11-22 15:28:38 +01:00
Mathias Vorreiter Pedersen
623372238d
C++: Better support for flow-through.
2022-11-22 13:54:44 +00:00
Rasmus Wriedt Larsen
04a68f8d52
Merge pull request #11372 from RasmusWL/getpass
...
Python: Model `getpass.getpass` as source of passwords
2022-11-22 14:49:04 +01:00
Rasmus Wriedt Larsen
00ec3a23ba
Python: Accept fix from module-resolution PR
2022-11-22 14:46:33 +01:00
Rasmus Wriedt Larsen
ee2f7401e8
Python: Add generator-flow/dataflow-consistency.ql
2022-11-22 14:46:33 +01:00
Rasmus Wriedt Larsen
8de5cfef43
Python: Update dataflow-consistency.expected
...
After merging in main
2022-11-22 14:46:33 +01:00
Rasmus Wriedt Larsen
c0ad870949
Python: Exclude synthetic generator functions from DataFlowCallable
2022-11-22 14:46:33 +01:00
Rasmus Wriedt Larsen
d86f98d60b
Python: Accept changes for enclosing-callable test
2022-11-22 14:46:33 +01:00
Rasmus Wriedt Larsen
aa382ac042
Python: Add test for strange generator taint flow
...
I did check, and this was not a problem with the old call-graph on main!
I'm absolutely baffled!
2022-11-22 14:46:33 +01:00
Rasmus Wriedt Larsen
36e8b8bfb9
Python: Add call-graph to cached dataflow stage
...
I didn't do any performance investigation on this, since it just seems
so much like the right approach.
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
fc0545561e
Python: Introduce points-to cached stage
...
With points-to not being used for the call-graph any longer, it's time
to split them.
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
bd46b7deaa
Python: Cache a few call-graph predicates
...
We DON'T want to recompute these ones for sure!
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
6646e98d20
Python: Fix results outside DB for StackTraceExposure
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
972cfa5cf6
Python: Accept bad StackTraceExposure.expected
...
This is only Python 2 though
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
a301c93ebf
Python: Fix results outside DB for CleartextLogging
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
0a41d8d2c1
Python: Accept bad CleartextLogging.expected
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
39ce50fadc
Python: Fix problems with sinks in pathlib
...
This must mean that we did not have this flow with the old call-graph,
which means the new call-graph is doing a better job (yay).
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
edcaff26af
Python: Add path-injection test using pathlib
...
Since it has the same problem of showing sinks inside the extracted
stdlib
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
9d29a0a044
Python: Accept changes to .expected from more pathlib flow
...
But we don't want to keep this, this commit is just to show why we need a fix :)
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
df4d09b3f9
Python: Don't rely on all DataFlowCall being resolved
...
I've been living dangerously with that assumption :|
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
478f5ffe96
Python: Limit self argument for PotentialLibraryCall
...
Using the object from `MethodCallNode` meant that in the code below,
`lib` from the import expression would be considered a self argument
(this showed up in dataflow-consistency query results, that were not
comitted... sorry)
```
from lib import func
func()
```
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
c4122275dc
Python: Bring back support for flow-summaries
...
Also needed to fix up `TestUtil/UnresolvedCalls.qll` after a bad merge
conflict resolution. Since all calls are now DataFlowCall, and not JUST
the ones that can be resolved, we need to put in the restriction that
the callable can also be resolved.
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
e5fdeae6fc
Python: Add return (func_ref, ...) test
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
fb0cc184d9
Python: Add test of multi func def based on runtime decision
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
276a825cd0
Python: Allow same function name in call-graph tests
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
8a56b48357
Python: Support super().__new__(cls)
2022-11-22 14:46:32 +01:00
Rasmus Wriedt Larsen
2b76964f7f
Python: Expand tests of __new__ a bit more
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
a4e6433942
Python: add support for type(self)()
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
d43a48c265
Python: Add type(self)() tests
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
16483f7d40
Python: Add funky call-graph regression
...
I don't even know how to phrase this :D
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
1e96ced3ab
Python: Ignore functions with @property decorator for now
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
cba93ded77
Python: Add test for @property problem
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
b33f02f9dc
Python: Fix self-passing problems
...
This also fixes performance problems for pandas-dev/pandas
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
722c69edcc
Python: Add test showing self type-tracking problems
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
5e5bab5a7c
Python: Don't pass synthetic class instance to __new__ on class calls
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
9949824810
Python: Expand implicit classmethods
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
6fefd54533
Python: Consider __new__ a classmethod
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
f040ad8dac
Python: Add test of __new__ handling
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
57c7dc8ea9
Python: Allow cls passing to classmethod
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
0cf13e9976
Python: Expand argument highlighting test
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
8e0bb62516
Python: Remove pragma[inline] from parameterMatch
...
It's gotten complex enough that it doesn't by definition seem necessary
to inline it. (in the range of ~2200 results for django and pandas)
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
4416037dc6
Python: Ignore SPURIOUS call-graph edges in points-to vs. type-tracker results
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
6351defe0d
Python: Add call-graph tests with isinstance
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
5fc127cb2c
Python: Make UnresolvedCalls.qll handle class calls without __init__
...
This commit used to make sense to have here in the ordering of commits,
but due to various rebases it no longer changes any test output..
it's still a good change though, so I'll keep it.
2022-11-22 14:46:31 +01:00
Rasmus Wriedt Larsen
98a849405f
Python: Add support for late *args arguments
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
035d083515
Python: Support flow to *args param from positional arg
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
db921ac036
Python: Add basic support for *args
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
b6314dd19d
Python: Add *args tests
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
c687df4ddc
Python: Support flow to keyword param from **kwargs arg
...
When resolving merge conflict after flow-summaries was merged, this is
the original commit where I introduced ParameterNodeImpl, so this is the
commit where differences in that implementation was committed...
I removed TParameterNode, since I could not see we we gain anything from
having it.
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
215a03d948
Python: Support flow to **kwargs param from keyword arg
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
503ad544e9
Python: Remove impossible flow for **kwargs params
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
eb600f07b7
Python: Use config for dataflow-consistency.ql
...
And ignore post-update nodes for `**kwargs` arguments
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
5722d231bd
Python: Add basic support for **kwargs
...
For now this is JUST from `**kwargs` in arguments, to `**kwargs`
parameters, and this part is based on field-flow
Note that dataflow-library complains about missing post update nodes for
these. This needs to be ignored, since post update nodes for `**kwargs`
arguments doesn't make sense, it's not possible to alter the dictionary
inside the method.
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
9b2663034d
Python: Change test .ql to also show bad argument flow
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
5a976cfb14
Python: Add more **kwargs arg passing tests
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
e7a337991a
Python: Accept fix from extractor change
...
namely the variable access mentioned in
https://github.com/github/codeql/pull/10171
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
7014be2047
Python: Reduce size of attrReadTracker
...
On pallets/flask, this reduced the number of tuples from
100866 results => 33060 results
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
61410191e7
Python: Fix bug in argumentRoutingTest.ql
...
Since `DataFlowPrivate::DataFlowCall` only exists for calls resolved to
a function, we didn't have any results before... but allowing any call
helps things!
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
a5c3e850f1
Python: Handle __call__
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
b5e8bf7882
Python: Add note about trying DataFlowDispatchPointsTo for InlineCallGraphTest
...
Since I was very confused about no results for __call__, I tried to see
whether I had cheated by making the comparison too unfair. But it didn't
seem to be the case.
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
f3ac81a013
Python: Expand tests for special method calls
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
f2e92bf963
Python: Port py/meta/call-graph
2022-11-22 14:46:30 +01:00
Rasmus Wriedt Larsen
7c1320ed4b
Python: Adjust ExternalAPI qhelp files
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
af9be6ad7e
Python: Suppress more spurious alerts from ExternalAPI queries
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
70cc986d5f
Python: Suppress None.json.dumps from ExternalAPI queries
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
0bdc808a7a
Python: Add ExternalAPI test None.json.dumps
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
7648462f98
Python: Fix ExternalAPIs queries
...
The output might end up being slightly more noisy since we don't
collapse positional and keyword arguments when the external target
function is included in the database, but this aligns with our long-term
goal of not doing that anymore, so I think it's fine.
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
2e2cee06c3
Python: Adjust InsecureRandomnessCustomizations.qll
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
ed70e118a9
Python: Make test/Filter query more robust
...
Since if you had tornado installed, we would follow imports and have
results from those files as well :|
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
9c275c177a
Python: Implement call-graph with type-trackers
...
This commit is a squash of 80 other commits. While developing, things
changed majorly 2-3 times, and it just wasn't feasible to go back and
write a really nice commit history.
My apologies for this HUGE commit.
Also, later on this is where I solved merge conflicts after flow-summaries
PR was merged.
For your amusement, I've included the original commit messages below.
Python: Add proper argument/parameter positions
Python: Handle normal function calls
Python: Reduce dataflow-consistency warnings
Previously there was a lot of failures for `uniqueEnclosingCallable` and
`argHasPostUpdate`
Removing the override of `getEnclosingCallable` in ParameterNode is
probably the most controversial... although from my point of view it's a
change for the better, since we're able to provide data-flow
ParameterNodes for more of the AST parameter nodes.
Python: Adjust `dataflow/calls` test
Python: Implement `isParameterOf`/`argumentOf`/`OutNode`
This makes the tests under `dataflow/basic` work as well 👍
(initially I had these as separate commits, but it felt like it was too much noise)
Python: Accept fix for `dataflow/consistency`
Python: Changes to `coverage/argumentRoutingTest.ql`
Notice we gain a few new resolved arguments.
We loose out on stuff due to:
1. not handling `*` or `**` in either arguments/parameters (yet)
2. not handling special calls (yet)
Python: Small fix for `TestUtil/RoutingTest.qll`
Since the helper predicates do not depend on this, moved outside class.
Python: Accept changes to `dataflow/coverage/NormalDataflowTest.ql`
Most of this is due to:
- not handling any kinds of methods yet
- not handling `*` or `**`
Python: Small investigation of `test_deep_callgraph`
Python: Accept changes to `coverage/localFlow.ql`
I don't fully understand why the .expected file changed.
Since we still have the desired flow, I'm not going to worry too much
about it.
with this commit, the `dataflow/coverage` tests passes 👍
Python: Minor doc update
Python: Add staticmethod/classmethod to `dataflow/calls`
Python: Handle method calls on class instances
without trying to deal with any class inheritance, or
staticmethod/classmethod at all.
Notice that with this change, we only have a DataFlowCall for the calls
that we can actually resolve. I'm not 100% sure if we need to add a
`UnresolvedCall` subclass of `DataFlowCall` for MaD in the future, but
it should be easy to do.
I'm still unsure about the value of `classesCallGraph`, but have just
accepted the changes.
Python: Handle direct method calls `C.foo(C, arg0)`
Python: Handle `@staticmethod`
Python: Handle class method calls... but the code is shit
WIP todo
Rewrite method calls to be better
also fixed a problem with `self` being an argument to the `x.staticmethod()` call :|
Python: Add subclass tests
Python: Split `class_advanced` test
Python: Rewrite call-graph tests to be inline expectation (1/2)
This adds inline expectations, next commit will remove old annotations
code... but I thought it would be easier to review like this.
Minor fixup
Python: Add simple subclass support
Python: more precise subclass lookup
Still not 100% precise.. but it's better
New ambiguous
Python: Add test for `self.m()` and `cls.m()` calls
Python: Handle `self.m()` and `cls.m()` calls
Python: Add tests for `__init__` and `__new__`
Python: Handle class calls
Python: Fix `self` argument passing for class calls
Now field-flow tests also pass 💪 (although the crosstalk
fieldflow test changes were due to this specific commit)
I also copied much of the setup for pre/post update nodes from Ruby,
specifically having the abstract `PostUpdateNodeImpl` in DataFlowPrivate
seemed like a nice change.
Same for the setup with `TNode` definition having the specification
directly in the body, instead of a `NeedsSyntheticPostUpdateNode` class.
Python: Add new crosstalk test WIP
Maybe needs a bit of refactoring, and to see how it all behaves with points-to
Python: Add `super()` call-graph tests
Python: Refactor MethodCall char-pred
In anticipation of supporting `super(MyClass, self).foo()`, where the
`self` argument doesn't come from an AttrNode, but from the second
argument to super.
Without `pragma[inline]` the optimizer found a terrible join-order --
this won't guarantee a good join-order for the future, but for now it
was just so simple and could let me move on with life.
Python: Add basic `super()` support
I debated a little (with myself) whether I should really do
`superTracker`, but I thought "why not" and just rolled with it. I did
not confirm whether it was actually needed anywhere, that is if anyone
does `ref = super; ref().foo()` -- although I certainly doubt it's very
wide-spread.
Python: InlineCallGraphTest: Allow non-unique callable name in different files
Python: more MRO tests
Python: Add MRO approximation for `super()`
Although it's not 100% accurate, it seems to be on level with the one in
points-to.
Python: Remove some spurious targets for direct calls
removal of TODO from refactoring
remove TODOs class call support
Python: Add contrived subclass call example
Python: Remove more spurious call targets
NOTE: I initially forgot to use
`findFunctionAccordingToMroKnownStartingClass` instead of
`findFunctionAccordingToMro` for __init__ and __new__, and since I did
make that mistake myself, I wanted to add something to the test to
highlight this fact, and make it viewable by PR reviewer... this will be
fixed in the next commit.
Python: Proper fix for spurious __init__ targets
Python: Add call-graph example of class decorator
Python: Support decorated classes in new call-graph
Python: Add call-graph tests for `type(obj).meth()`
Python: support `type(obj).meth()`
Python: Add test for callable defined in function
Python: Add test for callable as argument
Current'y we don't find these with type-tracking, which is super
mysterious. I did check that we have proper flow from the arguments to
the parameters.
Python: Found problem for callable as argument :| MAJOR WIP
WIP commit
IT WORKS AGAIN (but terrible performance)
remove pragma[inline]
remove oops
Fix performance problem
I tried to optimize it even further, but I didn't end up achieving anything :|
Fix call-graph comparison
add comparison version with easy lookup
incomplete missing call-graph tests
unhandled tests
trying to replicate missing call-edge due to missing imports ... but it's hard
also seems to be problems with the inline-expectation-value that I used, seems like it has both missing/unexpected results with same value
Python: Add import-problem test
Python: Add shadowing problem
some cleanup of rewrite fix
a little more cleanup
Add consistency queries to call-graph tests
Python: Add post-update nodes for `self` in implicit `super()` uses
But we do need to discuss whether this is the right approach :O
Fix for field-flow tests
This came from more precise argument passing
Fixed results in type-tracking
Comes from better argument passing with super() and handling of
functions with decorators
fix of inline call graph tests
Fixup call annotation test
Many minor cleanups/fixes
NewNormalCall -> NormalCall
Python: Major restructuring + qldoc writing
Python: Accept changes from pre/post update node .toString changes
Python: Reduce `super` complexity !! WIP !!
Python: Only pass self-reference if in same enclosing-callable
Python: Add call-graph test with nested class
This was inspired by the ImpliesDataflow test that showed missing flow
for q_super, but at least for the call-graph, I'm not able to reproduce
this missing result :|
Python: Restrict `super()` to function defined directly on class
Python: Accept fixes to ImpliesDataflow
Python: Expand field-flow crosstalk tests
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
aa78a43407
Python: Enable type-tracking in call-graph test
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
c85ccb2003
Python: Add call-graph compare meta-queries
...
Also changed the definition of a relevant call-target, so it's only what
is in the actual source code, which is what we want in the future! (so
what we're designing type-tracking to handle)
I also changed terminology from `callee` to `target`. It felt more
natural this way in my opinion.
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
a98554b6ed
Python: Accept tmp changes to flow summaries
...
After solving merge conflict
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
716576b1d6
Python: Minimal type-tracking call-graph
...
That does absolutely nothing so far, but compiles
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
6f5007b810
Python: Rename -> DataFlowDispatch
...
So diff can make more sense when introducing blank state for type-tracking based call-graph
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
f327a3f62a
Python: Remove strange-pointsto-interaction-investigation
...
These tests are not relevant anymore 💪
2022-11-22 14:46:29 +01:00
Rasmus Wriedt Larsen
b281cc88ff
Merge pull request #11208 from RasmusWL/call-graph-tests
...
Python: Test improvements in preparation for new call-graph PR
2022-11-22 14:31:09 +01:00
Rasmus Wriedt Larsen
9195b73d84
Python: Model getpass.getpass as source of passwords
2022-11-22 14:11:52 +01:00
Rasmus Wriedt Larsen
80e71b202a
Python: Cleartext queires: Remove flow from getpass.py
2022-11-22 14:08:00 +01:00
Rasmus Wriedt Larsen
9342e3ba76
Python: Enable new test
...
But look at all those elements from getpass.py implementation :(
2022-11-22 13:59:59 +01:00
Rasmus Wriedt Larsen
e01df3ea7c
Python: Prepare for new test
...
.expected line changes 😠
2022-11-22 13:52:50 +01:00
Taus
18be30d177
Python: Apply suggestion from review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2022-11-22 13:46:45 +01:00
Rasmus Wriedt Larsen
1b30cf8eca
Merge branch 'main' into call-graph-tests
2022-11-22 13:39:27 +01:00
erik-krogh
2ad28ab4db
add library inputs as a source to poly-redos
2022-11-22 13:05:34 +01:00
Erik Krogh Kristensen
158ea26dd1
Merge pull request #11362 from erik-krogh/read-only-cache
...
CI: use read-only-cache when running on a PR
2022-11-22 13:04:34 +01:00
Erik Krogh Kristensen
f67219965e
Merge pull request #11082 from erik-krogh/shellArr
...
JS: treat arrays that gets executed with shell:true as a sink for `js/shell-command-constructed-from-input`
2022-11-22 13:03:50 +01:00
Erik Krogh Kristensen
b2267c0e49
Merge pull request #11343 from erik-krogh/redundantAssignment
...
QL: add redundant-assignment query
2022-11-22 13:03:14 +01:00
Erik Krogh Kristensen
06386b2cdd
Merge pull request #11072 from erik-krogh/slicing
...
JS: poly-redos: don't sanitize calls through substring calls that just remove the start
2022-11-22 13:02:09 +01:00
erik-krogh
6b5cd9abc3
use RegExpTreeView insteaed of RegexTreeView in JS
2022-11-22 12:55:48 +01:00
erik-krogh
f9b775e4b8
do private imports of the deprecated Dep modules
2022-11-22 12:39:56 +01:00
Jeroen Ketema
cfb8f282d1
Merge pull request #11369 from jketema/fun-typo
...
C++: Fix typo flagged up by QL-for-QL
2022-11-22 12:34:54 +01:00
Jeroen Ketema
6a68e7936f
C++: Fix typo flagged up by QL-for-QL
2022-11-22 11:53:11 +01:00
Tony Torralba
1667fbad88
Add change note
2022-11-22 11:48:21 +01:00
Mathias Vorreiter Pedersen
98285393fe
Merge pull request #11357 from MathiasVP/ignore-more-instructions
...
C++: Ignore more instructions in dataflow
2022-11-22 10:47:51 +00:00
Tony Torralba
43f4dd8bc4
Consider taint through bitwise operations on PendingIntent flags
2022-11-22 11:39:30 +01:00
Tom Hvitved
ed841aee30
Merge pull request #11329 from hvitved/csharp/qltest-ci
...
C#: Add workflow for running QL tests
2022-11-22 11:36:16 +01:00
ka1n4t
ce2ba21240
Add binding between annotation and sink-param
2022-11-22 18:32:14 +08:00
Rasmus Wriedt Larsen
84faf49bf0
Python: Add tests for compound arguments field flow
2022-11-22 11:29:00 +01:00
Rasmus Wriedt Larsen
d876acde4c
Python: Fix SINK/SINK_F usage for crosstalk tests
...
As discussed in PR review
https://github.com/github/codeql/pull/11208#discussion_r1022473421
2022-11-22 11:29:00 +01:00
Anders Peter Fugmann
d799466e9d
Merge pull request #11338 from andersfugmann/update_swift_codeowners
...
Swift: set @github/codeql-swift as owner
2022-11-22 11:24:19 +01:00
Paolo Tranquilli
414f18fc97
Swift: fix extractor tests pack
...
This allows `codeql query compile` to run on integration test queries.
2022-11-22 10:58:57 +01:00
Erik Krogh Kristensen
ef270232dc
Merge pull request #11358 from erik-krogh/rubyDelPacks
...
Ruby: delete the target/packs folder in the `compile-queries` job
2022-11-22 10:56:52 +01:00
Jeroen Ketema
4731f9222c
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-22 10:53:24 +01:00
Mathias Vorreiter Pedersen
a2ce51fdf7
C++: Accept test changes.
2022-11-22 09:50:45 +00:00
Geoffrey White
949cfb758d
Merge branch 'main' into alamofire2
2022-11-22 09:29:53 +00:00
erik-krogh
10c602d9fb
CI: use read-only-cache when running on a PR
2022-11-22 10:20:09 +01:00
Anders Schack-Mulligen
15aa8b62b8
Merge pull request #11359 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-11-22 09:47:38 +01:00
Tom Hvitved
313767539a
C#: Add workflow for running QL tests
2022-11-22 09:32:44 +01:00
ihsinme
5ceab40841
Update DivideByZeroUsingReturnValue.ql
2022-11-22 10:11:18 +03:00
github-actions[bot]
e70eb3a3ee
Add changed framework coverage reports
2022-11-22 00:19:21 +00:00
erik-krogh
29055f7709
delete packs
2022-11-22 00:12:33 +01:00
Mathias Vorreiter Pedersen
320b5ca01a
C++: Ignore more instructions for dataflow.
2022-11-21 21:39:19 +00:00
Mathias Vorreiter Pedersen
fc3d6a1847
Merge branch 'replace-ast-with-ir-use-usedataflow' into fix-ssa-flow
2022-11-21 20:57:24 +00:00
Mathias Vorreiter Pedersen
7658df9ebd
Merge pull request #11355 from MathiasVP/fewer-read-steps
...
C++: Reduce `readStep` fan-in
2022-11-21 20:35:34 +00:00
Jami
8a73675483
Merge pull request #11070 from jcogs33/java-regex-injection
...
Java: Promote regex injection query from experimental
2022-11-21 15:04:26 -05:00
Mathias Vorreiter Pedersen
23d6eb67c3
C++: Fix comment.
2022-11-21 19:26:04 +00:00
Mathias Vorreiter Pedersen
c2ac60fc34
Merge pull request #11311 from MathiasVP/repair-mustflow
...
C++: Repair `MustFlow` library for use-use flow
2022-11-21 19:13:10 +00:00
Jami Cogswell
9e2ec9d12f
apply docs review suggestion
2022-11-21 13:39:46 -05:00
Mathias Vorreiter Pedersen
d1274e2769
C++: Accept more test changes.
2022-11-21 18:33:14 +00:00
Edoardo Pirovano
6c33ddcd47
Merge pull request #11349 from github/edoardo/2.11.4-mergeback
...
Merge `rc/3.8` into `main`
2022-11-21 18:08:27 +00:00
Mathias Vorreiter Pedersen
231e2a8df3
C++: Reduce fan-in for 'readStep'.
2022-11-21 17:07:29 +00:00
Erik Krogh Kristensen
af367a5fdf
Merge pull request #11348 from erik-krogh/cache-full-extractor
...
Ruby: cache the entire extractor
2022-11-21 18:06:32 +01:00
erik-krogh
76ceb49841
re-introduce the paths requirements in the ruby workflows
2022-11-21 17:55:57 +01:00
Erik Krogh Kristensen
53ba22ab5c
simplify pack creation
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-11-21 17:55:57 +01:00
erik-krogh
3b7ce0680d
Ruby: build queries on an XL worker, and use all the threads
2022-11-21 17:55:57 +01:00
erik-krogh
999e8ed0d0
Ruby: remove the path on branch pushes, for caching
2022-11-21 17:55:57 +01:00
erik-krogh
b1db390200
Ruby: use compilation cache in the ruby-build workflow
2022-11-21 17:55:57 +01:00
erik-krogh
9c792902c7
Ruby: cache the entire extractor
2022-11-21 17:55:57 +01:00
erik-krogh
64707f4f7b
remove redundant assignments
2022-11-21 17:45:05 +01:00
erik-krogh
937365141f
QL: add redundant-assignment query
2022-11-21 17:41:02 +01:00
tiferet
1c9545e49a
Address comment from code review:
...
Make `SyntacticHeuristics` an explicit import
2022-11-21 08:00:31 -08:00
Tony Torralba
e28f1ffe18
Merge pull request #11346 from atorralba/atorralba/java/fix-path-models
...
Java: Fix a couple of taint models for `java.nio.file.Path(s)`
2022-11-21 16:57:00 +01:00
Erik Krogh Kristensen
4f08000a2e
Merge pull request #11344 from erik-krogh/all-the-cache
...
Ruby: Use compilation cache for the qltest CI workflow
2022-11-21 16:26:29 +01:00
Tony Torralba
16a76853f4
Add libxml2 sinks
2022-11-21 16:25:51 +01:00
Taus
f12e15b46b
Python: Fix implicit this warnings
2022-11-21 15:23:13 +00:00
Mathias Vorreiter Pedersen
7e80a57724
C++: Make ql-for-ql happy.
2022-11-21 15:13:19 +00:00
Mathias Vorreiter Pedersen
24542ec84a
Merge branch 'main' into replace-ast-with-ir-use-usedataflow
2022-11-21 15:02:28 +00:00
Erik Krogh Kristensen
b4661f4a59
Merge pull request #11245 from erik-krogh/rb-redosMod
...
Ruby: use the shared regex pack
2022-11-21 15:34:20 +01:00
Tony Torralba
01dcf6a9ac
Merge pull request #11340 from atorralba/atorralba/disabled-poms
...
Java: Handle disabled Maven repositories
2022-11-21 15:31:53 +01:00
Taus
a385e87273
Python: Add change note for module resolution
...
Also adapts the version-specific tests to support results specific to
Python 2 (though at the moment there are no such tests).
2022-11-21 14:29:39 +00:00
Tony Torralba
5000a14451
Add change note
2022-11-21 15:22:26 +01:00
Mathias Vorreiter Pedersen
fcd9dd0be4
Update cpp/ql/lib/change-notes/2022-11-16-must-flow.md
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-11-21 14:18:20 +00:00
Taus
8f4eb7107a
Merge pull request #10861 from tausbn/python-clean-up-import-resolution
...
Python: Clean up import resolution
2022-11-21 15:18:08 +01:00
erik-krogh
57a7f89485
change merge-base to merge_base
2022-11-21 15:15:12 +01:00
Tony Torralba
57656d0a7e
Fix a couple of java.nio.file.Path(s) MaD rows
2022-11-21 15:14:02 +01:00
erik-krogh
f50778ae26
Ruby: set ram usage to 52GB in the qltest workflow
2022-11-21 15:02:14 +01:00
erik-krogh
a9c95a3230
ruby: delete the path requirement when running qltest on branches
2022-11-21 14:39:56 +01:00
erik-krogh
4af8d5769a
use compilation cache in ruby qltest
2022-11-21 14:35:12 +01:00
erik-krogh
24a973e545
run ruby qltest on a single XL worker
2022-11-21 14:35:12 +01:00
erik-krogh
af58329931
split saving the compilation cache into a shared workflow
2022-11-21 14:35:10 +01:00
Tom Hvitved
d189ba52c0
Merge pull request #11341 from hvitved/cfg/multi-edge-workaround
...
CFG: Workaround in test output for origin/target pairs with multiple edges
2022-11-21 14:34:17 +01:00
Jeroen Ketema
78ad9ba60f
Merge pull request #11262 from rdmarsh2/rdmarsh2/cpp/deprecate-ast-gvn
...
C++: deprecate AST-based GVN
2022-11-21 13:38:54 +01:00
Tom Hvitved
f7fc61e39d
Merge pull request #11336 from hvitved/ruby/ci-check-undefined-labels
...
Ruby: Add `--check-undefined-labels` to QL test job
2022-11-21 13:36:52 +01:00
AlexDenisov
6f52fe81d1
Merge pull request #11331 from github/redsun82/swift-codegen-skip-unchanged
...
Swift: skip QL code generation on untouched files
2022-11-21 13:34:41 +01:00
Tom Hvitved
0d89f57680
Swift: Update expected test output
2022-11-21 12:55:40 +01:00
Tom Hvitved
2fac505221
Ruby: Update expected test output
2022-11-21 12:52:27 +01:00
Gustav
256d8547c1
Fix copy-paste error
2022-11-21 12:29:16 +01:00
Nora Dimitrijević
61de07e53f
Merge branch 'main' into swift/js-injection
2022-11-21 12:15:00 +01:00
Tom Hvitved
e7ed056b6f
Sync files
2022-11-21 12:00:36 +01:00
Tom Hvitved
8c9431d278
CFG: Workaround in test output for source/sink pairs with multiple edges
2022-11-21 11:58:59 +01:00
Jeroen Ketema
752bc2e980
C++: Accept test changes after AST-based GVN deprecation
2022-11-21 11:45:09 +01:00
Tony Torralba
aa2c7426ad
Add change note
2022-11-21 11:42:40 +01:00
Mathias Vorreiter Pedersen
d361053e10
Update cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-11-21 10:37:03 +00:00
Mathias Vorreiter Pedersen
1e00e15c7b
Update cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-11-21 10:36:57 +00:00
Erik Krogh Kristensen
b6dd388bdb
Merge pull request #11328 from erik-krogh/removeQlCompCheck
...
QL/RB: delete language specific codeql query compile checks
2022-11-21 10:51:52 +01:00
Jeroen Ketema
ffbe1e065a
Merge pull request #11314 from MathiasVP/fix-flow-out-of-const-member-functions
...
C++: Fix flow out of const member functions
2022-11-21 10:36:59 +01:00
Tony Torralba
2809c3a77c
Handle disabled Maven repositories
2022-11-21 10:11:57 +01:00
Mathias Vorreiter Pedersen
7251f2fd3d
Merge pull request #11330 from MathiasVP/fix-performance-of-upcast-array-pointer-arith
2022-11-21 09:09:00 +00:00
Anders Fugmann
26866a7337
Swift: set @github/codeql-swift as owner
2022-11-21 09:58:12 +01:00
Tom Hvitved
99e70e9a50
Data flow: Sync files
2022-11-20 10:19:23 +01:00
Tom Hvitved
a3a3b46d54
Data flow: Account for return nodes with multiple return kinds when restricting flow through
...
For example, flow out via parameters allows for return nodes with multiple
return kinds:
```csharp
void SetXOrY(C x, C y, bool b)
{
C c = x;
if (b)
c = y;
c.Field = taint; // post-update node for `c` has two return kinds
}
```
2022-11-20 10:18:46 +01:00
Tom Hvitved
5adf10fcba
Data flow: Add return context to pruning stages 2-4
2022-11-20 10:18:46 +01:00
Tom Hvitved
ca17c5b053
Data flow: Add summary context to pruning stages 2-4
2022-11-20 10:18:40 +01:00
Tom Hvitved
1dbcf8eb10
Ruby: Add --check-undefined-labels to QL test job
2022-11-20 10:16:35 +01:00
erik-krogh
41e8170d59
delete the rest of the qlcompile job in Ruby
2022-11-19 11:16:24 +01:00
Erik Krogh Kristensen
a69524f7b4
Merge pull request #11318 from erik-krogh/deleteMoreDeps
...
delete old deprecations
2022-11-19 11:15:12 +01:00
tiferet
8d22fd25f1
Suggestions from code review
2022-11-18 15:57:46 -08:00
Porcupiney Hairs
db231a111c
Python : Improve the PAM authentication bypass query
...
The current PAM auth bypass query which was contributed by me a few months back, alert on a vulenrable function but does not check if the function is actually function. This leads to a lot of fasle positives.
With this PR, I add a taint-tracking configuration to check if the username parameter can actually be supplied by an attacker.
This should bring the FP's significantly down.
2022-11-19 01:29:25 +05:30
Henry Mercer
a964325724
Merge pull request #11332 from sigfaulterror/patch-1
...
Update analyzing-databases-with-the-codeql-cli.rst
2022-11-18 18:47:14 +00:00
sigfaulterror
a97570be63
Update analyzing-databases-with-the-codeql-cli.rst
...
just small doc error
2022-11-18 18:54:03 +01:00
Paolo Tranquilli
aaa96b20ed
Swift: fix python compatibility with CI
2022-11-18 17:51:20 +01:00
Mathias Vorreiter Pedersen
4478ac2c17
C++: Add change note.
2022-11-18 16:43:34 +00:00
Mathias Vorreiter Pedersen
ef6b85fa77
C++: Accept test changes.
2022-11-18 16:43:30 +00:00
Mathias Vorreiter Pedersen
b748ed8f43
C++: Repair the 'MustFlow' library.
2022-11-18 16:41:32 +00:00
Paolo Tranquilli
6dcdf8c71f
Swift: fix bazel setup
2022-11-18 17:22:44 +01:00
Paolo Tranquilli
aeb7b0d050
Swift: remove ModifiedStubMarkedAsGeneratedError
2022-11-18 17:13:12 +01:00
Nora Dimitrijević
8f5af3fca6
Merge branch 'main' into swift/js-injection
2022-11-18 17:07:20 +01:00
Paolo Tranquilli
2cd58817d7
Swift: skip QL code generation on untouched files
...
This is a developer QoL improvement, where running codegen will skip
writing (and especially formatting) any files that were not changed.
**Why?** While code generation in itself was pretty much instant, QL
formatting of generated code was starting to take a long time. This made
unconditionally running codegen quite annoying, for example before each
test run as part of an IDE workflow or as part of the pre-commit hook.
**How?** This was not completely straightforward as we could not work
with the contents of the file prior to code generation as that was
already post-processed by the QL formatting, so we had no chance of
comparing the output of template rendering with that. We therefore store
the hashes of the files _prior_ to QL formatting in a checked-in file
(`swift/ql/.generated.list`). We can therefore load those hashes at
the beginning of code generation, use them to compare the template
rendering output and update them in this special registry file.
**What else?** We also extend this mechanism to detect accidental
modification of generated files in a more robust way. Before this patch,
we were doing it with a rough regexp based heuristic. Now, we just store
the hashes of the files _after_ QL formatting in the same checked file,
so we can check that and stop generation if a generated file was
modified, or a stub was modified without removing the `// generated`
header.
2022-11-18 16:56:01 +01:00
Mathias Vorreiter Pedersen
bfba95f9f7
C++: Fix performance of 'cpp/upcast-array-pointer-arithmetic'.
2022-11-18 14:50:18 +00:00
Taus
07969260c8
Merge pull request #11132 from erik-krogh/parentQl
...
QL: fix non-attached annotations for newtype branches
2022-11-18 15:45:02 +01:00
Chris Smowton
f589ba8b9c
Merge pull request #11327 from github/post-release-prep/codeql-cli-2.11.4
...
Post-release preparation for codeql-cli-2.11.4
2022-11-18 14:42:51 +00:00
Taus
d79eed533b
Python: Remove unwanted recursion
...
Depending on `localFlowStep` meant that this predicate ended up being
recursive with itself (by way of flow summaries which depend on API
graphs, which in turn depend on import resolution).
Changing this to use the simple local flow step predicate that we use
for type tracking should fix this issue.
2022-11-18 13:50:50 +00:00
Mathias Vorreiter Pedersen
3c49447165
Merge pull request #11325 from MathiasVP/fix-join-in-cast-array-pointer-query
...
C++: Fix join order in `cpp/upcast-array-pointer-arithmetic`
2022-11-18 13:41:57 +00:00
erik-krogh
3cdfed9483
CI: delete language specific codeql query compile checks
2022-11-18 14:41:29 +01:00
Erik Krogh Kristensen
e777934290
Merge pull request #11316 from erik-krogh/examplesComp
...
CI: Also compile the `examples` folder
2022-11-18 12:29:03 +01:00
github-actions[bot]
5b14ebf22a
Post-release preparation for codeql-cli-2.11.4
2022-11-18 11:26:00 +00:00
Geoffrey White
2cf302f9df
Merge branch 'main' into alamofire2
2022-11-18 10:48:53 +00:00
Mathias Vorreiter Pedersen
1e14af6e64
C++: Fix join in 'cpp/upcast-array-pointer-arithmetic'.
2022-11-18 10:19:55 +00:00
erik-krogh
7c091fa6cd
also compile the examples folders as part of the compilation check
2022-11-18 10:31:42 +01:00
erik-krogh
23dc977d48
add a severity to incompleteswitchoverenum.ql to fix a compiler warning
2022-11-18 10:29:42 +01:00
Geoffrey White
16a84bd94a
Merge branch 'main' into alamofire2
2022-11-18 09:28:46 +00:00
Alvaro Muñoz
8a27660615
change handler function name
2022-11-18 09:43:17 +01:00
Alvaro Muñoz
69ecbda133
add change note
2022-11-18 09:43:17 +01:00
Alvaro Muñoz
7496b61b8d
Add rsync since both --rsh and --rsync-path admit commands
2022-11-18 09:43:17 +01:00
Harry Maclean
376d4e03a1
Ruby: Cache some barrier guard predicates
2022-11-18 18:17:02 +13:00
Harry Maclean
5deb16e58c
Ruby: Remove redundant predicate
...
The existing barrier guard machinery recognises guards such as `if x and y`,
so there's no need to explicitly model them.
2022-11-18 18:14:55 +13:00
Taus
e76ab8c78c
Merge branch 'main' into python-clean-up-import-resolution
2022-11-17 22:47:50 +00:00
erik-krogh
468a879c1f
Python: delete dead code. thanks QL-for-QL
2022-11-17 22:12:51 +01:00
erik-krogh
ba2734909f
JS: don't use deprecated files in tests
2022-11-17 22:12:50 +01:00
erik-krogh
3635db8244
JS: delete the deprecated [queryName].qll files
2022-11-17 22:12:50 +01:00
erik-krogh
635b8772d7
JS: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
e491b61e09
Python: move the contents of PEP249Impl to PEP249, which is possible now that the deprecations have been deleted
2022-11-17 22:12:50 +01:00
erik-krogh
a7ba693ccb
Python: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
a4e5d752e1
Java: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
d5ec781d4c
C#: delete old deprecations
2022-11-17 22:12:50 +01:00
erik-krogh
a5a244fc53
CPP: delete old deprecations
2022-11-17 22:12:50 +01:00
Chris Smowton
e83cc59cba
Merge pull request #11296 from smowton/smowton/fix/kotlin-string-literal-formatting
...
Kotlin: format string literals like the Java annotaton extractor
2022-11-17 20:04:09 +00:00
Chris Smowton
29c47ad515
Merge pull request #11320 from github/release-prep/2.11.4
...
Release preparation for version 2.11.4
2022-11-17 18:57:14 +00:00
Geoffrey White
2780d9a9a3
Merge branch 'main' into optionals2
2022-11-17 18:16:46 +00:00
Chris Smowton
cf34dbd276
Kotlin: format string literals like the Java annotaton extractor
...
Java's regular strings are formatted as they appear in source, but we don't easily have this information available in Kotlin. During annotation extraction however it guesses a source rendering because the source is not necessarily available. By formatting to match the annotation extractor, we prepare to ensure consistency with a Java database
when extracting annotations as seen by Kotlin.
2022-11-17 17:28:17 +00:00
Nora Dimitrijević
8b332778e3
Swift: update @security-severity
2022-11-17 18:08:06 +01:00
Chris Smowton
0deb2d4c5f
Copyedit Python release notes
2022-11-17 17:03:09 +00:00
Chris Smowton
63fcbb5969
Copyedit Python release notes
2022-11-17 17:02:55 +00:00
Chris Smowton
0219c2b02b
Copyedit Javascript changelog
2022-11-17 17:02:01 +00:00
Chris Smowton
80b2f0d3cd
Coopyedit Javascript changelog
2022-11-17 17:01:43 +00:00
Chris Smowton
d45c35a02e
Copyedit the Java src qlpack 0.4.4 release nnotes
2022-11-17 16:57:08 +00:00
Chris Smowton
47f07d83b8
Copyedit Java src qlpack changelog
2022-11-17 16:56:39 +00:00
Chris Smowton
e13eb79f5b
Java: edit 0.4.4 release notes to match the changelog
2022-11-17 16:55:26 +00:00
Chris Smowton
2bd151ba9c
Copyedit Java changelog
2022-11-17 16:54:33 +00:00
Chris Smowton
7c74350d5e
Copyedit Java changelog
2022-11-17 16:51:21 +00:00
github-actions[bot]
e105c13e77
Release preparation for version 2.11.4
2022-11-17 16:40:45 +00:00
Arthur Baars
4e88b8453a
Ruby: add flow summary for Enumerable#index_with
2022-11-17 16:22:32 +01:00
Owen Mansel-Chan
ac54da7d93
Merge pull request #11002 from owen-mc/dataflow/sync-go-libraries
...
Update go libraries to 55e052a
2022-11-17 15:22:31 +00:00
Owen Mansel-Chan
4073d77635
Add change notes
2022-11-17 14:27:07 +00:00
Owen Mansel-Chan
ab15a19028
Address review comments
2022-11-17 14:27:07 +00:00
Owen Mansel-Chan
166a3688f8
Use standard variable names for hasLocationInfo
...
This makes them match the QLDoc and also other implementations of
`hasLocationInfo`.
2022-11-17 14:27:07 +00:00
Owen Mansel-Chan
1a65a27fde
Update test expectations
...
In https://github.com/github/codeql/pull/8641 , `localFlowExit` was
changed to use `Stage2::readStepCand` instead of `read`, which means
that the big-step relation is broken up less. This causes test result
changes. Nothing is lost from the `select` clause, but some results may
have fewer paths, and fewer nodes and edges are output in the test
results.
2022-11-17 14:27:06 +00:00
Owen Mansel-Chan
71aeeee7c8
Accept trivial change to test output
...
In the `subpaths` section, the last node is now printed without its type
if it is the sink of the path.
This comes from the commit "Dataflow: Bugfix: include subpaths ending at
a sink. " in https://github.com/github/codeql/pull/7526
2022-11-17 14:27:06 +00:00
Owen Mansel-Chan
f2e2c02db6
Rename predicates to avoid clashes
2022-11-17 14:27:06 +00:00
Owen Mansel-Chan
1718ef88be
Data flow: Inline local(Expr)?(Flow|Taint)
...
See https://github.com/github/codeql/pull/7791
2022-11-17 14:27:05 +00:00
Owen Mansel-Chan
736435adda
Go: Add stub expectsContent
...
Corresponds to https://github.com/github/codeql/pull/8870
2022-11-17 14:27:05 +00:00
Owen Mansel-Chan
50210a9d24
Go: ParameterPosition and ArgumentPosition
...
Corresponds to https://github.com/github/codeql/pull/7260 , though some
of those changes had already been made.
2022-11-17 14:27:05 +00:00
Owen Mansel-Chan
83a3af2fff
Go: Summarized Callable
...
Corresponds to https://github.com/github/codeql/pull/9270
2022-11-17 14:27:04 +00:00
Owen Mansel-Chan
10ed4ad3df
Go: Split summaryThroughStep into two predicates
...
Cf. https://github.com/github/codeql/pull/9195
2022-11-17 14:27:04 +00:00
Owen Mansel-Chan
1ee5d3e80e
Move ParameterPosition etc to DataflowDispatch.qll
2022-11-17 14:27:04 +00:00
Owen Mansel-Chan
e5829201e1
Go: Implement ContentSet
2022-11-17 14:27:03 +00:00
Owen Mansel-Chan
282699e5b5
Go: Refactor SummarizedCallable.
...
Equivalent of https://github.com/github/codeql/pull/9210
2022-11-17 14:27:03 +00:00
Owen Mansel-Chan
c768f04e32
Go: Introduce generated flag as a part of the kind column for flow summaries
...
Equivalent of https://github.com/github/codeql/pull/8628
2022-11-17 14:27:03 +00:00
Owen Mansel-Chan
dae60c9deb
Update data flow libraries to 55e052af26
2022-11-17 14:27:02 +00:00
Taus
811426c586
Python: Remove manual magic entirely
...
This was causing issues with imports with many "dots" in the name.
Previously, the test added in this commit would not have the desired
result for the `check` call.
2022-11-17 14:15:55 +00:00
Tom Hvitved
9f13cdadcb
C#: Add use-use stress test
2022-11-17 13:42:56 +01:00
Chris Smowton
254a5b0928
Merge pull request #11293 from smowton/smowton/admin/exclude-kotlin-metadata-annotation
...
Java: Remove no-longer-needed expected diagnostics
2022-11-17 11:50:21 +00:00
Tom Hvitved
bbcef98e06
Merge pull request #11317 from hvitved/cpp/update-autobuilder-nuget-packages
...
C++: Update auto-builder nuget packages
2022-11-17 12:38:26 +01:00
Mathias Vorreiter Pedersen
b9bcff40c5
Merge branch 'replace-ast-with-ir-use-usedataflow' into fix-flow-out-of-const-member-functions
2022-11-17 10:41:12 +00:00
Mathias Vorreiter Pedersen
f1b85d7ebf
Merge pull request #11315 from MathiasVP/accept-test-changes
...
C++: Accept test changes on the use-use flow branch
2022-11-17 10:40:33 +00:00
Tamás Vajk
d8b5a04f97
Merge pull request #11291 from tamasvajk/kotlin-confusing-overload
...
Kotlin: Add test case for confusing overloading query
2022-11-17 11:11:33 +01:00
Tamás Vajk
c92989ca04
Merge pull request #11289 from tamasvajk/kotlin-empty-block
...
Kotlin: Exclude .kt files from empty block query
2022-11-17 11:11:25 +01:00
Chris Smowton
659f86cecf
Merge pull request #11310 from tamasvajk/kotlin-dead-code
...
Kotlin: Exclude .kt files from dead code queries
2022-11-17 10:10:51 +00:00
Chris Smowton
95fdea8b77
Merge pull request #11308 from tamasvajk/kotlin-non-serializable-field
...
Kotlin: Exclude .kt files from non serializable field query
2022-11-17 10:10:05 +00:00
Chris Smowton
11188304a7
Merge pull request #11306 from tamasvajk/kotlin-equals-missing
...
Kotlin: Exclude .kt files from missing `instanceof` in `equals` query
2022-11-17 10:09:35 +00:00
Tom Hvitved
780297152c
C#: Downgrade Microsoft.Build nuget package
...
17.4.0 does not officially support .NET 6 (it supports .NET 7), so downgrade
to avoid warnings.
2022-11-17 11:00:25 +01:00
Tom Hvitved
5ab77600b8
C++: Update auto-builder nuget packages
2022-11-17 10:44:23 +01:00
Erik Krogh Kristensen
45d4318e0e
Merge pull request #11272 from erik-krogh/clean-cache
...
CI: clean up the cache when compiling on main
2022-11-17 10:37:08 +01:00
Tom Hvitved
f24fa402f3
Adjust CFG
2022-11-17 10:32:28 +01:00
Erik Krogh Kristensen
ba894e21e8
Merge pull request #11146 from mbaluda-org/main
...
JS: Improved Hapi support
2022-11-17 10:22:48 +01:00
Mathias Vorreiter Pedersen
aa385a293d
C++: Accept test changes.
2022-11-16 23:00:00 +00:00
Mauro Baluda
a7dc29bad4
Merge branch 'main' into main
2022-11-16 23:53:16 +01:00
Mauro Baluda
49f476d3b4
Update javascript/ql/lib/semmle/javascript/frameworks/Hapi.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-16 23:53:07 +01:00
Mathias Vorreiter Pedersen
b12955e220
C++: Fix flow out of const member functions.
2022-11-16 22:46:21 +00:00
Taus
8ed8161d5c
Python: Fix tests for Python 2
...
This should make it so that the `prints3` tag is skipped when running
then Python 2 Language tests.
2022-11-16 22:20:08 +00:00
tiferet
4a1382925e
Remove some imports that are no longer used
2022-11-16 14:01:16 -08:00
yoff
505f454878
Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswl@github.com >
2022-11-16 22:20:19 +01:00
tiferet
ccbf1ca2a9
Add a comment
2022-11-16 13:05:06 -08:00
tiferet
38c40a7192
isEffectiveSink can't be final because ExtractMisclassifiedEndpointFeatures overrides it.
2022-11-16 12:12:50 -08:00
tiferet
8fee9cb0d5
Fix CodeQL warnings
2022-11-16 12:06:52 -08:00
Taus
81348049df
Python: Fix missing module resolution
...
This was due to bad manual magic: restricting the attribute name makes
sense when we're talking about submodules of a package, but it doesn't
when we're talking about reexported modules.
Also (hopefully) fixes the tests so that the Python 3-specific bits are
ignored under Python 2.
2022-11-16 19:58:32 +00:00
tiferet
c2035e85d2
Be explicit in requiring that each ATM config set its endpoint type.
2022-11-16 11:55:23 -08:00
tiferet
0fd013f9fd
Update the reason names in FilteredTruePositives.expected.
...
This is needed because we changed the names of three endpoint filters that were all called "not a direct argument to a likely external library call or a heuristic sink" in order to disambiguate them (fc56c5a022 ).
2022-11-16 11:54:10 -08:00
tiferet
eab270eb84
Move the definitions of isEffectiveSink and getAReasonSinkExcluded to the base class.
...
They can now be implemented generically for all sink types.
2022-11-16 11:47:24 -08:00
erik-krogh
de2ebe3618
QL: fix the same QLDoc being QLDoc for multiple things
2022-11-16 20:35:39 +01:00
Harry Maclean
a6f6936719
Merge pull request #11058 from hmac/actioncontroller-logger
...
Ruby: Model various ActionController methods
2022-11-17 08:21:00 +13:00
tiferet
fc56c5a022
Implement the type-specific endpoint filters as EndpointCharacteristics.
...
Also disambiguate three filters from three different sink types that all have the same name, "not a direct argument to a likely external library call or a heuristic sink".
2022-11-16 11:14:25 -08:00
Tom Hvitved
baaafadeb0
Merge pull request #11266 from hvitved/csharp/update-nuget-packages
...
C#: Update all nuget packages
2022-11-16 19:53:45 +01:00
Taus
19261ecfbf
Python: Remove spurious module references
2022-11-16 18:19:54 +00:00
Taus
2717b9a47d
Python: Extend import resolution tests
...
Extends the tests to
1. Account parts of the test code that may be specific to Python 2 or 3,
2. Also track which arguments passed to `check` are references to
modules.
The latter revealed a bunch of spurious results, which I have annotated
accordingly.
2022-11-16 17:58:24 +00:00
Mathias Vorreiter Pedersen
29f4b26280
Merge branch 'replace-ast-with-ir-use-usedataflow' into fix-ssa-flow
2022-11-16 16:09:35 +00:00
Tamás Vajk
b70a9d172b
Merge pull request #11304 from tamasvajk/kotlin-mut-dep
...
Kotlin: Exclude .kt files from mutual dependency query
2022-11-16 17:02:46 +01:00
Tamás Vajk
ae38d5d8b7
Merge pull request #11303 from tamasvajk/kotlin-one-stmt-line
...
Kotlin: Exclude .kt files from one stmt in line query
2022-11-16 17:02:35 +01:00
Mathias Vorreiter Pedersen
2796c46598
Merge pull request #11292 from github/redsun82/swift-remove-ipa-from-dbscheme-cpp
...
Swift: remove synthesized classes from the dbscheme
2022-11-16 16:00:58 +00:00
Paolo Tranquilli
1c69a1f012
Swift: fix typo in docstring
2022-11-16 16:36:48 +01:00
Paolo Tranquilli
27df44f5ad
Swift: replace empty IpaInfo() with a clearer True value
2022-11-16 16:35:17 +01:00
Joe Farebrother
d6c5132f39
Merge pull request #10684 from joefarebrother/android-keyboard-cache
...
Java: Add query for Sensitive Keyboard Cache
2022-11-16 15:27:44 +00:00
Tamás Vajk
dfc72edba2
Merge pull request #11302 from tamasvajk/kotlin-ignored-return
...
Kotlin: Exclude .kt files from ignored return value query
2022-11-16 16:23:58 +01:00
Tamás Vajk
ad7c0f9ebc
Merge pull request #11301 from tamasvajk/kotlin-naming-ref-type
...
Kotlin: Exclude .kt files from misnamed reftype query
2022-11-16 16:22:40 +01:00
Tamás Vajk
a3ff83595a
Merge pull request #11300 from tamasvajk/kotlin-useless-param-2
...
Kotlin: Exclude .kt files from useless parameter query
2022-11-16 16:22:27 +01:00
Tamás Vajk
b4b8649fd6
Merge pull request #11299 from tamasvajk/kotlin-nested-serializable
...
Kotlin: Exclude .kt files from serializable inner class query
2022-11-16 16:22:13 +01:00
Tamas Vajk
8b6bf910ba
Kotlin: Exclude .kt files from dead code queries
2022-11-16 16:20:09 +01:00
Tamas Vajk
983851fc60
Kotlin: Add FP test case for dead code queries
2022-11-16 16:18:37 +01:00
erik-krogh
e4b0d8dbf3
simplify the copy-logic, because cp -r actually creates the folders
2022-11-16 16:10:41 +01:00
Robert Marsh
70a9e49039
Merge pull request #11218 from MathiasVP/merge-some-indirect-and-instruction-nodes
...
C++: Remove some `IndirectOperand` and `IndirectInstruction` nodes
2022-11-16 10:09:40 -05:00
Rasmus Wriedt Larsen
3894fad54d
Merge pull request #11307 from github/RasmusWL/ql-style-no-return
...
ql-style-guide: Remove use of `return`
2022-11-16 15:39:35 +01:00
Tom Hvitved
7cab6b5491
C#: Include SSA "phi reads" in DataFlow::Node
2022-11-16 15:31:01 +01:00
Tamas Vajk
7d9ce53080
Kotlin: Exclude .kt files from non serializable field query
2022-11-16 15:30:25 +01:00
Tamas Vajk
a9023d06d0
Kotlin: Add FP test case for non serializable field query
2022-11-16 15:29:24 +01:00
Rasmus Wriedt Larsen
9f2d89c903
Update ql-style-guide.md
...
Our [QLDoc style guide](https://github.com/github/codeql/blob/main/docs/qldoc-style-guide.md#predicates-with-result ) says that we should avoid any use of `return`, so it would be smart to also do so in our own style guide for predicate names 😊
2022-11-16 15:27:38 +01:00
Tamas Vajk
fc614ad4d0
Kotlin: Exclude .kt files from missing instanceof in equals query
2022-11-16 15:24:47 +01:00
Mathias Vorreiter Pedersen
a9173727cf
Merge branch 'replace-ast-with-ir-use-usedataflow' into fix-ssa-flow
2022-11-16 14:22:54 +00:00
Tamas Vajk
b6978128b1
Exclude .kt files from mutual dependency query
2022-11-16 15:16:51 +01:00
Tamas Vajk
63e9ae3b93
Kotlin: Add FP test case for mutual dependency query
2022-11-16 15:16:18 +01:00
Tom Hvitved
67b6a82cf1
Merge pull request #11198 from hvitved/ssa/expose-phi-reads
...
SSA: Expose phi-read nodes
2022-11-16 15:11:58 +01:00
Tamas Vajk
c9241cc933
Exclude .kt files from one stmt in line query
2022-11-16 15:11:38 +01:00
Tamas Vajk
0d70b5c776
Kotlin: Add FP test case for one stmt in line query
2022-11-16 15:10:38 +01:00
Mathias Vorreiter Pedersen
4f2c2e6d5e
C++: Accept test changes.
2022-11-16 14:05:54 +00:00
Mathias Vorreiter Pedersen
3b1b8cc720
C++: Fix SSA for array writes.
2022-11-16 14:05:54 +00:00
Mathias Vorreiter Pedersen
3e5c66e932
C++: Accept test changes.
2022-11-16 14:05:48 +00:00
Mathias Vorreiter Pedersen
235a06903e
C++: Fix 'asParameter' to handle references.
2022-11-16 14:05:42 +00:00
Tamas Vajk
c42663723f
Exclude .kt files from ignored return value query
2022-11-16 15:05:29 +01:00
Tamas Vajk
5f6f72ba8e
Kotlin: Add FP test case for ignored return value query
2022-11-16 15:05:07 +01:00
Tamas Vajk
c1be93a34c
Exclude .kt files from misnamed reftype query
2022-11-16 14:59:20 +01:00
Tamas Vajk
e547be5e9a
Kotlin: Add FP test case for misnamed reftype query
2022-11-16 14:58:36 +01:00
Mathias Vorreiter Pedersen
2cebd5c51d
C++: Accept test changes.
2022-11-16 13:56:24 +00:00
Tamas Vajk
48c37a2c0f
Exclude .kt files from useless parameter query
2022-11-16 14:51:49 +01:00
Tamas Vajk
35078738bc
Kotlin: Add FP test case for useless parameter query
2022-11-16 14:51:21 +01:00
Chris Smowton
d6a395ba37
Remove non-longer-needed expected diagnostics
2022-11-16 13:49:59 +00:00
Chris Smowton
6c0bef7e6e
Merge pull request #11297 from erik-krogh/add-stats
...
JS: add stats for @satisfies_expr
2022-11-16 13:49:25 +00:00
Tamas Vajk
7a0e248096
Exclude .kt files from serializable inner class query
2022-11-16 14:46:01 +01:00
Tamas Vajk
782c82a2d3
Kotlin: Add test case for non serializable inner class query
2022-11-16 14:44:48 +01:00
Geoffrey White
127888f3c1
Merge branch 'main' into alamofire2
2022-11-16 13:32:13 +00:00
Geoffrey White
c8630bbe4f
Merge branch 'main' into optionals2
2022-11-16 13:31:08 +00:00
Tom Hvitved
54a6f066b3
Address review comment
2022-11-16 14:02:21 +01:00
Tamás Vajk
468a6f2a70
Merge pull request #11290 from tamasvajk/kotlin-autoboxing
...
Kotlin: Exclude .kt files from autoboxing query
2022-11-16 13:56:29 +01:00
Tamás Vajk
266a0874b5
Merge pull request #11284 from tamasvajk/kotlin-complex-bool-expr
...
Kotlin: Exclude .kt files from `java/complex-boolean-expression`
2022-11-16 13:55:30 +01:00
Tamás Vajk
91b7798be8
Merge pull request #11286 from tamasvajk/kotlin-resource-leak
...
Kotlin: Exclude .kt files from resource leak queries
2022-11-16 13:55:12 +01:00
erik-krogh
76c6943159
add stats for @satisfies_expr
2022-11-16 13:48:41 +01:00
erik-krogh
25b32860ba
Py: convert a block-comment that could be QLDoc to QLDoc
2022-11-16 13:45:37 +01:00
erik-krogh
fe49e41d7b
JS: convert some block-comments that could be QLDoc to QLDoc
2022-11-16 13:45:35 +01:00
erik-krogh
9eaeaf7322
ATM: convert some block-comments that could be QLDoc to QLDoc
2022-11-16 13:41:52 +01:00
erik-krogh
7331363618
Java: convert some block-comments that could be QLDoc to QLDoc
2022-11-16 13:40:15 +01:00
erik-krogh
6bfaf3b2f7
C#: convert some block-comments that could be QLDoc to QLDoc
2022-11-16 13:39:33 +01:00
erik-krogh
20c4699478
CPP: convert some block-comments that could be QLDoc to QLDoc
2022-11-16 13:39:22 +01:00
erik-krogh
78c9fb3d76
QL: don't flag up comments placed on the same line as non-comments
2022-11-16 13:36:28 +01:00
Tom Hvitved
67e8ec1a5f
Swift: Update expected test output
2022-11-16 13:36:03 +01:00
Arthur Baars
6fb014b34d
"CodeQL False positive" -> "CodeQL false positive"
2022-11-16 13:09:47 +01:00
Arthur Baars
bfb0ca7968
Merge pull request #11276 from aibaars/false-positive
...
CodeQL: add 'False positive' issue template
2022-11-16 13:00:14 +01:00
Arthur Baars
f0c3d039a1
Merge pull request #11227 from github/sj/remove-LGTM-issue-template
...
Remove issue template for LGTM.com false positive reports
2022-11-16 12:59:59 +01:00
Anders Schack-Mulligen
94bca4399a
Merge pull request #11183 from aschackmull/dataflow/groupflow
...
Dataflow: Introduce support for src/sink grouping in path results.
2022-11-16 12:59:01 +01:00
erik-krogh
f2222d32db
QL: add test
2022-11-16 12:51:57 +01:00
erik-krogh
f71359c81d
QL: detect toplevel block-comments that should be QLDoc
2022-11-16 12:51:53 +01:00
erik-krogh
de082260d8
QL: fixup getQLDoc()
2022-11-16 12:51:51 +01:00
Erik Krogh Kristensen
7d4ea47611
Merge pull request #10855 from erik-krogh/formatTaint
...
Ruby: taint-steps for printf calls - and add a `AdditionalTaintStep` class
2022-11-16 12:08:45 +01:00
Mauro Baluda
8bf0bbb715
code generalization
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-16 12:06:23 +01:00
Mauro Baluda
798b03f29d
code generalization
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-16 12:06:07 +01:00
Paolo Tranquilli
bafb9ae020
Swift: add upgrade/downgrade scripts
2022-11-16 12:00:26 +01:00
Tamas Vajk
55dc929a1f
Kotlin: Add test case for confusing overloading query
2022-11-16 11:57:05 +01:00
Joe Farebrother
cc960377ac
Apply suggestion from docs review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-16 10:54:14 +00:00
Joe Farebrother
255123cbf9
Apply suggestions from docs review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-16 10:54:14 +00:00
Joe Farebrother
7ae41ff165
Invert the xml logic to be consistent with the dataflow logic
2022-11-16 10:54:14 +00:00
Joe Farebrother
6d465aaf52
Apply code review suggestions
2022-11-16 10:54:14 +00:00
Joe Farebrother
63f715e650
fix implicit this
2022-11-16 10:54:14 +00:00
Joe Farebrother
dd4e1d0ac3
Add tests and fix issues
2022-11-16 10:54:14 +00:00
Joe Farebrother
10a3b3bd14
Cover cases in which input type is set via code
2022-11-16 10:54:14 +00:00
Joe Farebrother
359d703ded
More precise layout xml handling
2022-11-16 10:54:13 +00:00
Joe Farebrother
f48b57c95a
Apply review suggestions
2022-11-16 10:54:13 +00:00
Joe Farebrother
e6dd3673a1
Fix qldoc
2022-11-16 10:54:13 +00:00
Joe Farebrother
b4216767ad
Add change note
2022-11-16 10:54:13 +00:00
Joe Farebrother
775a5507a6
Add security severity
2022-11-16 10:54:13 +00:00
Joe Farebrother
c085c1f3ad
Fix typos
2022-11-16 10:54:13 +00:00
Joe Farebrother
0bce1894ae
Remove redundant import
2022-11-16 10:54:13 +00:00
Joe Farebrother
92190e5095
Add docs
2022-11-16 10:54:13 +00:00
Joe Farebrother
706858e211
Add test cases; fix the regex used
2022-11-16 10:54:13 +00:00
Joe Farebrother
85fe226256
Add sensitive keyboard cache query
2022-11-16 10:54:13 +00:00
Tamas Vajk
3d21f89f1d
Exclude .kt files from autoboxing query
2022-11-16 11:52:17 +01:00
Tamas Vajk
0d9e28012e
Kotlin: Add FP test cases for autoboxing query
2022-11-16 11:51:36 +01:00
Tamas Vajk
3d11e5bb32
Exclude .kt files from empty block query
2022-11-16 11:47:35 +01:00
Tamas Vajk
c91e20c6b5
Kotlin: Add FP test cases for empty blocks
2022-11-16 11:47:07 +01:00
Paolo Tranquilli
a3d33e27e2
Swift: ignore IPA classes in dbscheme
2022-11-16 11:39:10 +01:00
Joe Farebrother
3ebb7cfa1b
Merge pull request #11269 from joefarebrother/stub-gen-invalid-ids
...
Java: Stub generator: Exclude invalid identifiers from generated stubs
2022-11-16 10:26:22 +00:00
Paolo Tranquilli
88a0c4053b
Swift: move hierarchy IPA logic to schema.py
2022-11-16 11:14:17 +01:00
Mauro Baluda
784475dd66
Merge branch 'main' into main
2022-11-16 11:06:27 +01:00
Mauro Baluda
84cb59b942
Create 2022-11-08-hapi-glue.md
2022-11-16 11:05:23 +01:00
AlexDenisov
0c14759e86
Merge pull request #11285 from github/redsun82/swift-fix-generated-artifact
...
Swift: fix path of generated C++ files artifact
2022-11-16 10:47:01 +01:00
Paolo Tranquilli
6d1421a6f9
Swift: fix workflow mention in CODEOWNERS
2022-11-16 10:04:19 +01:00
Tamas Vajk
307d2d5dc1
Exclude .kt files from resource leak queries
2022-11-16 09:52:39 +01:00
Tamas Vajk
acab8e8632
Kotlin: Add FP test cases for resource leaks
2022-11-16 09:52:13 +01:00
Paolo Tranquilli
d4f3e38062
Swift: fix path of generated C++ files artifact
2022-11-16 09:49:57 +01:00
Tamas Vajk
ac85d2eb3e
Exclude .kt files from java/complex-boolean-expression
2022-11-16 09:38:42 +01:00
Tamas Vajk
de833d620e
Kotlin: Add FP test case for unnecessarily complex bool expression
2022-11-16 09:35:18 +01:00
Ed Minnix
38d47d63ec
Java: Add change note for addJavascriptInterface query
2022-11-15 23:40:03 -05:00
Ed Minnix
eb8ef72e47
Java: addJavascriptInterface query test case
2022-11-15 23:28:18 -05:00
Ed Minnix
3b96fefc71
Java: Add Android stubs to options file for CWE-079 test cases
2022-11-15 23:26:49 -05:00
tiferet
13cb0ab554
Fix CodeQL warning
2022-11-15 17:32:30 -08:00
tiferet
2ecdfd1ff6
Delete some code that's no longer in use
2022-11-15 17:29:03 -08:00
tiferet
fedb98ddb5
Implement the standard getAReasonSinkExcluded using StandardEndpointFilterCharacteristics
2022-11-15 17:22:00 -08:00
tiferet
cf4e37a0ab
Implement the standard endpoint filters as EndpointCharacteristics
2022-11-15 17:20:20 -08:00
tiferet
cb632b3534
Delete the file ExtractEndpointData.expected which was leftover in the last PR
2022-11-15 17:11:34 -08:00
Harry Maclean
ed3270fb04
Ruby: Update for upstream changes
2022-11-16 14:06:32 +13:00
Harry Maclean
2e2fcd49bf
Ruby: Consider Object#inspect a log sanitizer
...
The behaviour of `Object#inspect` depends on whether it has been
overridden by a subclass, but it will typically produce output on a
single line. Calling `inspect` on a String will replace newlines with
`\n`, which is then safe for interpolation into a log line.
2022-11-16 13:46:51 +13:00
Harry Maclean
762ebad66e
Ruby: Add change note
2022-11-16 13:46:51 +13:00
Harry Maclean
d0521f15f1
Ruby: Update tests
2022-11-16 13:46:51 +13:00
Harry Maclean
d2c0250b41
Ruby: Model ActionDispatch::Request#body_stream
2022-11-16 13:46:51 +13:00
Harry Maclean
9f357837fa
Ruby: Model send_data as an HTTP response
2022-11-16 13:46:51 +13:00
Harry Maclean
5cfc494e16
Ruby: Test render inside redirect_to
...
This test shows that we correctly identify redirect_to and render calls
inside respond_to blocks.
2022-11-16 13:46:51 +13:00
Harry Maclean
155b64d3fc
Ruby: Add test for render calls
2022-11-16 13:46:51 +13:00
Harry Maclean
b7e14311be
Ruby: Model ActionController logger
2022-11-16 13:46:50 +13:00
Harry Maclean
27681ac987
Ruby: Move ActionController tests to own directory
2022-11-16 13:46:49 +13:00
Erik Krogh Kristensen
c70f3d35d0
Merge pull request #11256 from erik-krogh/ts49
...
JS: Add support for TypeScript 4.9
2022-11-16 01:05:40 +01:00
Mauro Baluda
ec04f0c88f
hapi/glue tests
2022-11-15 23:45:27 +01:00
erik-krogh
8cb68b79c1
bump extractor version
2022-11-15 22:09:09 +01:00
erik-krogh
b0b5761a8c
update TS from 4.9.2-rc to 4.9.3
2022-11-15 22:08:54 +01:00
erik-krogh
364336e22a
add downgrade script
2022-11-15 22:07:25 +01:00
erik-krogh
1f90f7dd4d
add upgrade script
2022-11-15 22:07:25 +01:00
erik-krogh
d4c6f873af
add test for auto-accessors
2022-11-15 22:07:25 +01:00
erik-krogh
65567fa1ce
add test for the more precise type-narrowing with the in operator
2022-11-15 22:07:25 +01:00
erik-krogh
e98d1df5f4
add dataflow support
2022-11-15 22:07:25 +01:00
erik-krogh
a8973c1147
add test for dataflow
2022-11-15 22:07:24 +01:00
erik-krogh
75ef5b1b0b
add support for satisfies-expressions
2022-11-15 22:07:24 +01:00
erik-krogh
30c66303ba
initial skeleton for TypeScript 4.9
2022-11-15 22:07:24 +01:00
Nora Dimitrijević
09b669a584
Swift: Add direct call to remote source to a test
...
Strangely, there are two separate paths to each of the JSEvaluateScript
sinks: one passing through the JSString constructor, one omitting this
step.
2022-11-15 21:57:46 +01:00
Nora Dimitrijević
52e5d541ef
Update swift/ql/src/queries/Security/CWE-094/UnsafeJsEval.qhelp
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-15 21:15:04 +01:00
Nora Dimitrijević
fccb581765
Update swift/ql/src/queries/Security/CWE-094/UnsafeJsEval.qhelp
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-15 21:14:56 +01:00
Nora Dimitrijević
cb7d9d5f3f
Update swift/ql/src/queries/Security/CWE-094/UnsafeJsEval.qhelp
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-15 21:14:50 +01:00
Nora Dimitrijević
8db8f14f99
Update swift/ql/src/queries/Security/CWE-094/UnsafeJsEval.qhelp
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-15 21:14:37 +01:00
Nora Dimitrijević
b42482c960
Update swift/ql/src/queries/Security/CWE-094/UnsafeJsEval.qhelp
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2022-11-15 21:14:18 +01:00
Tiferet Gazit
710b215c38
Merge pull request #11263 from github/tiferet/extract-training-data
...
ATM: Extract training data
2022-11-15 12:08:13 -08:00
tiferet
fc078a47fd
Apply suggestion from code review
2022-11-15 11:14:01 -08:00
Ed Minnix
013ff79d17
Java: Check the value of parameter in WebView file access query
2022-11-15 13:50:56 -05:00
Ed Minnix
10875568ec
Java: add negative test cases for WebView file access query
2022-11-15 13:50:31 -05:00
Tiferet Gazit
092e019de9
Apply suggestions from code review
...
Co-authored-by: Stephan Brandauer <kaeluka@github.com >
2022-11-15 10:48:32 -08:00
Andrew Eisenberg
2ffb4b6480
Merge pull request #11279 from github/aeisenberg/atm-readme
...
Add more information about ATM queries for external users
2022-11-15 10:46:03 -08:00
Geoffrey White
e81c62e402
Swift: Correct comment.
2022-11-15 18:34:51 +00:00
Geoffrey White
7c1fb5d4a6
Swift: Add qldoc for AutoClosureExpr.
2022-11-15 18:31:30 +00:00
Geoffrey White
4eee375296
Swift: Add AutoClosureExpr.getExpr.
2022-11-15 18:31:30 +00:00
Geoffrey White
13d6deb9c4
Swift: Make similar enhancements to unary operations.
2022-11-15 18:31:30 +00:00
Geoffrey White
70075e2832
Swift: Add qldoc for BinaryExpr.
2022-11-15 18:31:21 +00:00
Andrew Eisenberg
88750a7000
Add more information about ATM queries for external users
2022-11-15 10:17:56 -08:00
Geoffrey White
3c46b0cad1
Swift: Add BinaryExpr.getOperator().
2022-11-15 18:04:48 +00:00
Geoffrey White
fa86e75330
Update swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-11-15 17:49:23 +00:00
Ed Minnix
1d71c38a8f
Java: Fix formatting of WebView file access query
2022-11-15 12:43:20 -05:00
Ed Minnix
694930556b
Java: documentation cleanup
2022-11-15 12:35:57 -05:00
AlexDenisov
f069802abb
Merge pull request #11277 from github/redsun82/swift-remove-ipa-from-dbscheme-cpp
...
Swift: remove IPA classes from `cppgen`
2022-11-15 18:34:59 +01:00
AlexDenisov
eb2f1ff559
Merge pull request #11274 from github/redsun82/swift-remove-double-newlines-in-schema
...
Swift: remove double newlines in schema
2022-11-15 18:34:32 +01:00
Erik Krogh Kristensen
6f4fd3ef72
Merge pull request #11175 from erik-krogh/erb
...
JS: extract .erb files as html
2022-11-15 18:21:48 +01:00
Arthur Baars
0ce4500b48
Apply suggestions from code review
...
Co-authored-by: Pierre <turbo@github.com >
2022-11-15 18:20:28 +01:00
Geoffrey White
1b6317d584
Update swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-11-15 17:19:32 +00:00
Jeroen Ketema
d79c722d95
Merge pull request #11278 from jketema/dataflow-test-typo
...
C++: Fix typo in dataflow test comment
2022-11-15 17:33:06 +01:00
Jeroen Ketema
98176007d8
C++: Fix type in dataflow test comment
2022-11-15 17:18:08 +01:00
erik-krogh
cec5045b52
Merge branch 'main' into erb
2022-11-15 17:16:05 +01:00
erik-krogh
e4dbf0acff
use instead of a fixed version number
2022-11-15 17:14:38 +01:00
erik-krogh
39938b4dad
add change-note
2022-11-15 17:14:38 +01:00
erik-krogh
29cf695b07
update expected output of the queries (some sorting changed due to locations being used slightly differently in the shared pack)
2022-11-15 17:14:38 +01:00
erik-krogh
e18ceba49e
port the JS regex/redos queries to use the shared pack
2022-11-15 17:14:38 +01:00
erik-krogh
031a910989
add a JS implementation of RegexTreeViewSig
2022-11-15 17:14:38 +01:00
erik-krogh
4a2472a078
add hasLocationInfo predicate to regexp terms
2022-11-15 17:14:37 +01:00
erik-krogh
e928777cb7
add codeql/regex as a dependency
2022-11-15 17:14:37 +01:00
erik-krogh
f6255e497b
Merge branch 'main' into rb-redosMod
2022-11-15 17:14:19 +01:00
Erik Krogh Kristensen
68e513c6a4
Merge pull request #11246 from erik-krogh/java-redosMod
...
Java: use the shared regex pack
2022-11-15 17:12:52 +01:00
Paolo Tranquilli
56b207e41f
Swift: remove IPA classes from cppgen
2022-11-15 17:07:52 +01:00
Mathias Vorreiter Pedersen
b8fab9ae79
C++: Respond to review comments.
2022-11-15 16:07:07 +00:00
Mathias Vorreiter Pedersen
1f43a1a924
Merge branch 'replace-ast-with-ir-use-usedataflow' into merge-some-indirect-and-instruction-nodes
2022-11-15 16:00:52 +00:00
Arthur Baars
da7788dd64
CodeQL: add 'False positive' issue template
2022-11-15 16:53:53 +01:00
Tony Torralba
89a8ccb828
Merge pull request #11273 from atorralba/atorralba/swift/string-utf8-step
...
Swift: Add `AdditionalTaintStep`
2022-11-15 16:46:26 +01:00
Tony Torralba
0570610765
Merge pull request #11138 from atorralba/atorralba/swift/xxe-query-aexml-sinks
...
Swift: Add AEXML sinks to XXE query
2022-11-15 16:42:17 +01:00
Mauro Baluda
8109a7b67a
Update javascript/ql/lib/semmle/javascript/frameworks/Hapi.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-15 16:27:21 +01:00
Mauro Baluda
e5e3bb3705
Generalize the server definition in plugin registration
2022-11-15 16:27:14 +01:00
Erik Krogh Kristensen
f7b5a4d170
Merge pull request #11203 from erik-krogh/shouldBePath
...
C#: update cs/assembly-path-injection cs/hardcoded-key to path-problems
2022-11-15 16:24:05 +01:00
Tony Torralba
8ca004fde1
Add AdditionalTaintStep
2022-11-15 16:14:22 +01:00
Mauro Baluda
563a56af9d
Update Hapi.qll
2022-11-15 15:46:34 +01:00
Paolo Tranquilli
635391eae8
Swift: autopep8 integration tests
2022-11-15 15:43:05 +01:00
Paolo Tranquilli
c2171c01e1
Swift: remove double newlines in schema
...
While PEP8 mandates those, they look bad in the schema file.
`autopep8` already ignores those, and they were single newlines at some
point until an overeager IDE has "fixed" them at some point without me
realizing.
Also, the pre-commit configuration was updated to take `schema.py` into
account.
2022-11-15 15:00:30 +01:00
erik-krogh
65c1e239eb
clean up the cache when compiling on main
2022-11-15 14:49:06 +01:00
Jeroen Ketema
a270f318e9
Merge pull request #11271 from jketema/ast-config-for-smart-ptrs
...
C++: Reintroduce the AST testing configuration for the smart pointer test too
2022-11-15 14:48:03 +01:00
Jeroen Ketema
2acda03518
C++: Reintroduce the AST testing configuration for the smart pointer test too
2022-11-15 13:49:03 +01:00
Asger F
dc440aaee6
Merge pull request #11255 from asgerf/js/dynamic-import-type-expr
...
JS: Handle DynamicImport in the context of a type
2022-11-15 13:31:08 +01:00
Geoffrey White
9887e2b53b
Merge branch 'main' into alamofire2
2022-11-15 12:19:54 +00:00
Geoffrey White
403f3caf4b
Merge branch 'main' into optionals2
2022-11-15 12:12:01 +00:00
Geoffrey White
ae5689b295
Swift: Update comment.
2022-11-15 12:04:10 +00:00
Geoffrey White
4c806a442a
Swift: Dataflow through ? :.
2022-11-15 12:01:09 +00:00
Stephan Brandauer
4b9b35d1c2
Merge pull request #11267 from github/atm/fix-non-sink-characteristics-hierarchy
...
ATM: remove superfluous class in EndpointCharacteristics hierarchy
2022-11-15 12:59:42 +01:00
Geoffrey White
52d5578fb5
Swift: Dataflow through second argument of ??.
2022-11-15 11:43:43 +00:00
Geoffrey White
2dbb891942
Swift: Dataflow through ??.
2022-11-15 11:42:43 +00:00
Geoffrey White
9b38e1102a
Swift: Add more tests of optionals.
2022-11-15 11:41:04 +00:00
Joe Farebrother
8d9b106be1
Exclude invalid identifiers from generated stubs
2022-11-15 11:19:40 +00:00
Mathias Vorreiter Pedersen
3d94286785
Merge pull request #11257 from MathiasVP/reduce-path-duplication
...
C++: Reduce path duplication
2022-11-15 11:01:11 +00:00
erik-krogh
dff7b475fb
make the top-level comment in SuperlinearBackTracking.qll a QLDoc
2022-11-15 11:46:44 +01:00
Tom Hvitved
67f31ffdf0
Ruby: Add tests for phi reads
2022-11-15 11:45:32 +01:00
Tom Hvitved
bd78e73131
C#: Add tests for phi reads
2022-11-15 11:45:32 +01:00
Tom Hvitved
81a1fa167a
SSA: Expose phi-reads
2022-11-15 11:45:32 +01:00
Tom Hvitved
32f60fd112
Ruby: Add more local flow tests for use-use flow
2022-11-15 11:45:31 +01:00
Nick Rolfe
8d854e0a6b
Merge pull request #11252 from github/nickrolfe/active_support_enumerable
...
Ruby: add flow summary for Enumerable#index_by
2022-11-15 10:40:42 +00:00
Tom Hvitved
dc2cd994d4
C#: Update expected test output
2022-11-15 11:22:48 +01:00
Tom Hvitved
a749212707
C#: Handle op_Checked* operators in the extractor
2022-11-15 11:22:19 +01:00
Rasmus Wriedt Larsen
e886b53a94
Python: CallGraph tests: remove rest of old annotations
2022-11-15 11:16:10 +01:00
Rasmus Wriedt Larsen
98bf3adc72
Python: Add enclosing-callable test
2022-11-15 11:11:59 +01:00
Rasmus Wriedt Larsen
7ca32ee2b5
Python: Fieldflow: merge assignment tests
2022-11-15 11:11:59 +01:00
Gustav Munkby
65c9d8cb78
Run go linux tests with fast package extraction
...
To ensure this code path is actively tested.
2022-11-15 10:40:27 +01:00
Gustav Munkby
a293239bd5
Accelerating go-extractor by using 'go list -deps'
...
Resurrect https://github.com/github/codeql-go/pull/554 , but behind an environment variable as to avoid the broken builds noted in https://github.com/github/codeql/issues/9304 , but still allowing some people to opt in to the much faster approach.
2022-11-15 10:30:56 +01:00
Stephan Brandauer
ec3578364e
remove superfluous class in EndpointCharacteristics hierarchy
2022-11-15 10:17:38 +01:00
Gustav Munkby
279ba60eb1
Refactor package path extraction
...
In preparation for pulling all package information at once.
2022-11-15 10:10:39 +01:00
Tom Hvitved
eda028721e
C#: Update all nuget packages
2022-11-15 09:19:33 +01:00
tiferet
9ecff0723c
Fix non-ascii character in docs
2022-11-14 16:34:24 -08:00
tiferet
6b7612fed7
Fix import errors in DebugResultInclusion.ql
2022-11-14 15:33:46 -08:00
tiferet
b47723d607
Delete ExtractEndpointData.
...
Also remove the associated test files.
2022-11-14 14:57:59 -08:00
tiferet
9d7e7735d5
Extract training data:
...
Implement the new query that selects data for training. For now we include clauses that implement logic that is identical to the old queries.
Include a temporary wrapper query that converts the resulting data into the format expected by the endpoint pipeline.
Move the small pieces of `ExtractEndpointData` that are still needed into `ExtractEndpointDataTraining.qll`.
2022-11-14 14:33:08 -08:00
Mauro Baluda
3260c81397
Merge branch 'github:main' into main
2022-11-14 22:59:06 +01:00
Mauro Baluda
5ea03b1ded
Update Hapi.qll
...
Add `server` definitions in plugin registration and plugin dependency declaration
2022-11-14 22:56:06 +01:00
Robert Marsh
5bbdaad0e5
C++: deprecate AST-based GVN
2022-11-14 16:50:39 -05:00
erik-krogh
10fff4e2ef
Merge branch 'main' into rb-redosMod
2022-11-14 21:31:10 +01:00
erik-krogh
b59a9bc95c
use instead of a fixed version number
2022-11-14 21:29:41 +01:00
erik-krogh
a4acea9adf
add change-note
2022-11-14 21:29:41 +01:00
erik-krogh
c029048306
port the Java regex/redos queries to use the shared pack
2022-11-14 21:29:41 +01:00
erik-krogh
d5b066636f
use namespace in PrintAst.qll to avoid conflict with Top
2022-11-14 21:29:41 +01:00
erik-krogh
b737bdbca0
add a Java implementation of RegexTreeViewSig
2022-11-14 21:29:41 +01:00
erik-krogh
20254dfc08
move existing regex-tree into a module
2022-11-14 21:29:41 +01:00
erik-krogh
af1470de07
add codeql/regex as a dependency
2022-11-14 21:29:41 +01:00
Ed Minnix
2fb9536847
Java: documentation cleanup for WebView file access query
2022-11-14 15:14:09 -05:00
Ed Minnix
7a0544d80e
Java: test files for WebView file access query
2022-11-14 15:11:15 -05:00
Erik Krogh Kristensen
d2857006cf
Merge pull request #11247 from erik-krogh/py-redosMod
...
Python: use the shared regex pack
2022-11-14 21:10:43 +01:00
Ed Minnix
73d6360eee
Java: add setAllowFileAccess to CrossOriginAccessMethod in WebView.qll
...
Local file access is enabled using the `WebSettings#setAllowFileAccess`
method.
2022-11-14 15:07:46 -05:00
Ed Minnix
89411a1db2
Fix alert message style
2022-11-14 14:41:06 -05:00
Ed Minnix
1132572620
Java: add test cases for setJavaScriptEnabled query
2022-11-14 14:33:12 -05:00
Tiferet Gazit
855eddab80
Merge pull request #11174 from github/tiferet/non-sink-endpoint-characteristics
...
Non-sink endpoint characteristics
2022-11-14 09:37:25 -08:00
Erik Krogh Kristensen
99636ba344
fix typo
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2022-11-14 17:35:55 +01:00
erik-krogh
324e0e8f90
always sort both by location and by term tostring
2022-11-14 17:33:48 +01:00
Ed Minnix
a7e7334f0f
Java: Documentation cleanup for setJavascriptEnabled
2022-11-14 11:10:43 -05:00
Rasmus Lerchedahl Petersen
4f159371f9
Python: add change notes
2022-11-14 17:01:45 +01:00
Rasmus Lerchedahl Petersen
9c7fee225c
Python: remove redundant override
2022-11-14 16:45:34 +01:00
Rasmus Lerchedahl Petersen
3ee756694f
Python: add missing qldoc
...
also add to ordinary `except`
2022-11-14 16:45:22 +01:00
Mathias Vorreiter Pedersen
16565401c7
C++: Reduce path duplication.
2022-11-14 15:29:57 +00:00
Ian Lynagh
7bf55c5846
Merge pull request #11251 from igfoo/igfoo/total
...
Kotlin: Add total number of diagnostics to telemetry
2022-11-14 15:09:57 +00:00
Edward Minnix III
55fad8ab23
Java: Fix description of setJavascriptEnabled query
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-11-14 10:04:01 -05:00
Edward Minnix III
7e5970f338
Java: Fix typos/formatting in setJavascriptEnabled query
...
Typos and formatting changes.
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-11-14 10:02:20 -05:00
Tony Torralba
5791e8b9a2
Slight renaming
2022-11-14 15:46:44 +01:00
Tony Torralba
07de92cdb6
Move AEXML.qll to avoid nesting
2022-11-14 15:46:44 +01:00
Tony Torralba
f2888dcb1e
Add sinks and tests for the AEXML library.
2022-11-14 15:46:44 +01:00
Tony Torralba
3ef7f3f44d
Merge pull request #11120 from atorralba/atorralba/swift/xxe-query-xmldocument-sinks
...
Swift: Adds XMLDocument sinks to the XXE query
2022-11-14 15:46:02 +01:00
Geoffrey White
3e6eedec30
Swift: Fix test output after merge.
2022-11-14 14:42:56 +00:00
Asger F
2bcf9b86cf
JS: Bump extractor version string
2022-11-14 15:09:50 +01:00
Asger F
5f18484fa9
JS: Change note
2022-11-14 15:09:30 +01:00
Asger F
b028d72d51
JS: Handle DynamicImport in the context of a type
2022-11-14 15:07:59 +01:00
Mathias Vorreiter Pedersen
7408931565
C++: Disable 'reference -> dereference' dataflow.
2022-11-14 14:05:31 +00:00
Chris Smowton
61149f297c
Merge pull request #11232 from grddev/patch-1
...
Go: Optimize trap.Writer by buffering gzip writes
2022-11-14 14:01:47 +00:00
Ian Lynagh
fab2d30f38
Kotlin: Make emitDiagnostic private
2022-11-14 13:53:16 +00:00
Ian Lynagh
1e6ef99a50
Merge pull request #11249 from igfoo/igfoo/telem-compilation-info
...
Java/Kotlin: Add compilation info to telemetry
2022-11-14 13:51:35 +00:00
Geoffrey White
5460004223
Merge branch 'main' into HEAD
2022-11-14 13:44:39 +00:00
Tom Hvitved
b242bd6468
Merge pull request #11080 from github/revert-11074-revert-10576-ssa/consistency-queries
...
Revert "Revert "SSA: Turn consistency predicates into `query` predicates""
2022-11-14 14:43:58 +01:00
Ian Lynagh
847ecd1eec
Java/Kotlin: Small refactoring of ExtractorInformation
2022-11-14 13:09:49 +00:00
Nick Rolfe
c80fbff648
Ruby: add changenote for Enumerable#index_by flow summary
2022-11-14 12:47:50 +00:00
Ian Lynagh
b20f8fc8c9
Kotlin: Add total number of diagnostics to telemetry
2022-11-14 12:27:54 +00:00
Nick Rolfe
c660ea100b
Ruby: add changenote for rb/stack-trace-exposure
2022-11-14 12:26:40 +00:00
Nick Rolfe
b39e2ef71c
Ruby: add stacktrace exposure query
2022-11-14 12:26:40 +00:00
Tony Torralba
52bd140213
Fix test expectations
2022-11-14 12:41:13 +01:00
Tony Torralba
c03eab2410
Add XMLDocument sinks
2022-11-14 12:41:13 +01:00
Tony Torralba
a21db3b3c2
Merge pull request #11086 from atorralba/atorralba/swift/xxe-query
...
Swift: Add new query for XML External Entities (XML) vulnerabilities
2022-11-14 12:34:30 +01:00
Ian Lynagh
87ee979a12
Java/Kotlin: Add compilation info to telemetry
...
This will give info about which kotlinc versions are used.
2022-11-14 11:31:37 +00:00
Nora Dimitrijević
16ba5b1bb5
Swift: update doctests
2022-11-14 12:30:16 +01:00
Ian Lynagh
3afd895d41
Merge pull request #11217 from igfoo/igfoo/kotlin_version_rec
...
Java/Kotlin: Write Kotlin version information to the database
2022-11-14 10:55:46 +00:00
Nick Rolfe
83b3312467
Merge pull request #11207 from github/nickrolfe/arel-sql
...
Ruby: add `SqlConstruction` concept, and implement it for calls to `Arel.sql`
2022-11-14 10:21:37 +00:00
Nick Rolfe
0dadf0bbb4
Ruby: add flow summary for Enumerable#index_by
2022-11-14 10:01:24 +00:00
Arthur Baars
dd519cc9bf
Ruby: also treat included/prepended modules as subclasses
2022-11-14 10:56:56 +01:00
yoff
dd525a4f9b
Merge pull request #11061 from erik-krogh/shared-redosMod
...
ReDoS: add a shared regex pack
2022-11-14 10:53:05 +01:00
AlexDenisov
d19bde8cb1
Merge pull request #11205 from github/alexdenisov/swift-db-upgrades-infra
...
Swift: db up/downgrade scripts
2022-11-14 09:51:15 +01:00
Alex Denisov
b5400f6dc9
Swift: remove rebase artifact
2022-11-14 08:55:44 +01:00
Ed Minnix
a8e67bdfc5
Java: Removed typo in Android WebView file access documentation
2022-11-12 10:15:15 -05:00
Ed Minnix
631a08496e
Java: WebView file access query change note
2022-11-12 10:09:35 -05:00
Ed Minnix
ea358f0698
Java: WebView file access query description
2022-11-12 10:01:30 -05:00
Ed Minnix
b4cd1ee34d
Java: Added description to query
2022-11-12 09:56:45 -05:00
Ed Minnix
7712ec2523
Java: setJavascriptEnabled query change notes
2022-11-12 09:54:26 -05:00
Ed Minnix
b9c2ee75be
Java: Query for Android WebView File Access
...
Query for Android WebView file access settings
2022-11-12 09:44:12 -05:00
Ed Minnix
e09f0861f3
Java: documentation for WebView#addJavascriptInterface query
2022-11-12 09:40:49 -05:00
Ed Minnix
e1ff04cd95
Java: Query for android.webkit.WebView#addJavascriptInterface
2022-11-12 09:40:49 -05:00
Ed Minnix
30cd447f69
Java: Add class to represent android.webkit.WebView#addJavascriptInterface
2022-11-12 09:40:49 -05:00
Ed Minnix
4d3a837310
Java: query for detecting enabling Javascript in Android WebSettings
2022-11-11 23:13:44 -05:00
Gustav
3514694cdf
Fix direct access to trap.Writer from trap.Labeler
2022-11-11 18:39:25 +01:00
Jeroen Ketema
2b37ebd7ed
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-11 17:24:34 +01:00
Jeroen Ketema
5c109cdef1
Merge pull request #11234 from jketema/std-iterator-fix
...
C++: Recognize `basic_string::iterator` as an iterator
2022-11-11 17:21:42 +01:00
Gustav
fea4b816af
Fix double close
...
Co-authored-by: Chris Smowton <smowton@github.com >
2022-11-11 17:12:13 +01:00
Taus
f92d836607
Python: Fix test failure
...
Casting to `ImportExpr` caused the `typetracking_imports` test to fail.
2022-11-11 16:03:14 +00:00
Ian Lynagh
b5c7d6bfcd
Kotlin: Fix build on OS X
2022-11-11 14:57:36 +00:00
Alex Denisov
d49015a7e6
Swift: infrastructure for upgrade/downgrade scripts
2022-11-11 15:51:23 +01:00
AlexDenisov
e69d003d8f
Merge pull request #11196 from github/redsun82/swift-error-element
...
Swift: create common `ErrorElement` superclass and tests
2022-11-11 15:50:58 +01:00
Taus
a08253b6d0
Python: Fix typo
2022-11-11 14:50:04 +00:00
Taus
a8a7a59ae8
Python: Add test for attribute name clash
2022-11-11 14:47:35 +00:00
Alex Denisov
ce1fb4c018
Swift: accept test changes
2022-11-11 15:22:58 +01:00
Mathias Vorreiter Pedersen
38acdaabfa
Merge pull request #11111 from geoffw0/tuples
...
Swift: Content flow through tuples
2022-11-11 14:20:26 +00:00
Henry Mercer
edaf64c254
Merge pull request #11233 from github/codeql-ci/atm/release-0.4.1
...
JS: Bump version numbers of ML-powered packs after 0.4.1 release
2022-11-11 14:20:08 +00:00
Erik Krogh Kristensen
2291f18695
Merge pull request #9827 from erik-krogh/overrideAny
...
QL: Query for detecting unused parameter in override methods
2022-11-11 15:17:48 +01:00
Ian Lynagh
7d54b542b5
Kotlin: Put extractor name in a resource rather than generating code
2022-11-11 14:04:14 +00:00
Taus
b540eb094c
Python: Various small fixes
...
- Swaps `module_reference_in_scope` and `module_name_in_scope`.
- uses `AttrRead::accesses` instead of `getObject`, etc.
- Removes an errant `none()`.
- Expands the QLDoc for some of the predicates.
2022-11-11 14:00:36 +00:00
Rasmus Wriedt Larsen
ddbcdcb4ba
Merge pull request #11160 from RasmusWL/dataflow-consistency-read-store
...
DataFlow: Add read/store stepIsLocal consistency checks
2022-11-11 14:51:45 +01:00
Taus
7f790432cc
Python: More review suggestions
...
I could have sworn I added all of them to the batch, but somehow these slipped through.
Co-authored-by: yoff <lerchedahl@gmail.com >
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2022-11-11 14:40:58 +01:00
Paolo Tranquilli
eb14348153
Merge branch 'main' into redsun82/swift-error-element
2022-11-11 14:36:02 +01:00
AlexDenisov
7b6cb70cc8
Merge pull request #11213 from github/redsun82/swift-types
...
Swift: extract or ignore last remaining types
2022-11-11 14:22:29 +01:00
Henry Mercer
afbd05d41a
Merge branch 'main' into codeql-ci/atm/release-0.4.1
2022-11-11 13:19:35 +00:00
Paolo Tranquilli
d3ff4908e6
Merge branch 'main' into redsun82/swift-error-element
2022-11-11 14:05:47 +01:00
Jeroen Ketema
612624d241
C++: Recognize basic_string::iterator as an iterator
2022-11-11 14:04:50 +01:00
Paolo Tranquilli
3816361c15
Merge branch 'main' into redsun82/swift-types
2022-11-11 13:54:12 +01:00
Taus
131fc986b4
Python: Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
Co-authored-by: yoff <lerchedahl@gmail.com >
2022-11-11 13:49:46 +01:00
github-actions[bot]
b5b69e9357
JS: Bump version of ML-powered library and query packs to 0.4.2
2022-11-11 12:48:00 +00:00
github-actions[bot]
3e5e695325
JS: Bump patch version of ML-powered library and query packs
2022-11-11 12:36:19 +00:00
Paolo Tranquilli
d567ab3569
Merge pull request #11231 from github/redsun82/swift-fix-synthesized-wrapper-decls
...
Swift: fix synthesized wrapper decls
2022-11-11 13:32:32 +01:00
Erik Krogh Kristensen
6dfa57a7b1
Merge pull request #11226 from erik-krogh/fixFormatCheck
...
CI: use `find` in the format check to fix it
2022-11-11 13:07:52 +01:00
Gustav
f659ee3e0b
Go: Optimize trap.Writer by buffering gzip writes
...
The TRAP writer already buffers writes before emitting to file, but running gzip compression is also fairly costly (especially if you only do it a couple of bytes at a time). Thus, this injects another buffer that collects the emitted tuples in string form, and only triggers gzip compression once the buffer is full. In my local testing, this buffering was actually more beneficial than the one between gzip and file (likely because the gzip writer already emits data in chunks), but that one is still beneficial.
2022-11-11 13:07:30 +01:00
Nick Rolfe
be60a871a3
Ruby: tweak comment
2022-11-11 12:01:23 +00:00
Paolo Tranquilli
3bb5505063
Swift: expand and fix VarDecl tests
2022-11-11 12:49:48 +01:00
Paolo Tranquilli
41977d1dbb
Swift: implement extraction of new properties
2022-11-11 12:49:48 +01:00
Paolo Tranquilli
3de650e19d
Swift: make toBeTested and shouldPrint propagate to children
2022-11-11 12:49:18 +01:00
Paolo Tranquilli
fc98fd3094
Swift: add var to the list of doc expanded abbreviations
2022-11-11 12:34:40 +01:00
Paolo Tranquilli
85233b3cbf
Swift: add new children to VarDecl
2022-11-11 12:34:40 +01:00
Nick Rolfe
e3ebf1c668
Merge pull request #11187 from github/nickrolfe/actioncable
...
Ruby: add ActionCable channel RPC params as remote flow sources
2022-11-11 11:32:13 +00:00
Nora Dimitrijević
4b7a89e754
Merge branch 'main' into swift/js-injection
2022-11-11 12:23:26 +01:00
Mathias Vorreiter Pedersen
0c7f57e0c4
C++: Accept test changes.
2022-11-11 11:09:38 +00:00
Mathias Vorreiter Pedersen
f534768715
C++: Fix join orders.
2022-11-11 11:09:38 +00:00
Mathias Vorreiter Pedersen
e0a6c16228
C++: Add missing QLDoc.
2022-11-11 11:09:38 +00:00
Mathias Vorreiter Pedersen
1a1f078684
C++: Also pick the operand as the 'ExprNode' when the expression is the qualifier of a call (and not just when it's an argument of a call).
2022-11-11 11:07:08 +00:00
Mathias Vorreiter Pedersen
c999704d1e
C++: Now that we sometimes target an operand where we'd target an instruction before we should pick the operand as the 'sink' in the call-target resolution recursion.
2022-11-11 11:07:08 +00:00
Mathias Vorreiter Pedersen
a51ac7b4e7
C++: Remove some unnecessary IPA values from 'IndirectInstruction' and 'IndirectOperand' when the semantically identical value already exists in the IR.
2022-11-11 11:07:08 +00:00
Michael Nebel
176405cd7c
Merge pull request #11223 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-11-11 11:49:50 +01:00
Jeroen Ketema
5dec08b9a3
Merge pull request #11212 from jketema/std-string-fixes
...
C++: Improve handling of `std::string::insert` with iterator return type and do some cleanup
2022-11-11 11:41:59 +01:00
Bas van Schaik
8147d2048e
Remove issue template for LGTM.com false positive reports
2022-11-11 10:36:26 +00:00
Mauro Baluda
25ac3499c2
Merge branch 'github:main' into main
2022-11-11 11:20:01 +01:00
Michael Nebel
ef50e57317
Merge pull request #11083 from michaelnebel/csharp/telemetry
...
C#: Telemetry query updates.
2022-11-11 10:57:54 +01:00
erik-krogh
887062d339
update cs/assembly-path-injection and cs/hardcoded-key to path-problems
2022-11-11 10:55:36 +01:00
erik-krogh
03a479fd60
use find in the format check to fix it
2022-11-11 10:50:42 +01:00
Rasmus Wriedt Larsen
ab42521906
Python: Port CallGraph-implicit-init tests
...
to the new call-graph test setup. Nice that we can write `MISSING:` now!
2022-11-11 10:34:28 +01:00
Rasmus Wriedt Larsen
b60504f404
Python: Delete CallGraph-xfail
...
No longer needed since we're using an established testing framework now
2022-11-11 10:34:28 +01:00
Rasmus Wriedt Larsen
6d9745e5c3
Python: Rewrite call-graph tests to be inline expectation (2/2)
...
I ported the predicates showing difference between points-to and
type-tracking, since it's helpful to see the list of differences,
instead of having to parse expectations!
2022-11-11 10:34:28 +01:00
Erik Krogh Kristensen
313f600432
Merge pull request #11214 from erik-krogh/oneFormatToRuleThemAll
...
CI: remove langauge specific format checks
2022-11-11 10:10:36 +01:00
ihsinme
0fb1dedbb2
Update DivideByZeroUsingReturnValue.ql
2022-11-11 11:38:48 +03:00
Jeroen Ketema
ba00a0f370
C++: Share parameter logic in std::string model
2022-11-11 08:48:11 +01:00
Jeroen Ketema
23e29e993b
C++: Split std::string::insert off in a separate class
...
The `insert` function has two different return types: `iterator` and
`basic_string&`.
2022-11-11 08:48:01 +01:00
AlexDenisov
ecd8921dcd
Merge pull request #11211 from github/redsun82/swift-drop-impossible-nodes
...
Swift: fix printing of unextracted entities
2022-11-11 08:06:54 +01:00
Harry Maclean
2b4217b8a4
Ruby: Update test fixture
2022-11-11 18:41:55 +13:00
Harry Maclean
b16cecc8db
Ruby: Add missing doc
2022-11-11 18:41:42 +13:00
Harry Maclean
62ea1f0a05
Ruby: Fix performance of string comparison guard
...
The `or` case ran extremely slowly before this change. Also exclude
string interpolations from consideration, for correctness, and add some
more tests.
2022-11-11 18:24:20 +13:00
github-actions[bot]
dcebe930e7
Add changed framework coverage reports
2022-11-11 00:21:31 +00:00
Harry Maclean
e25e192ef3
Ruby: Change the CFG for while clauses
...
The `when` node now acts as a join point for patterns in the when
clause, with match/no-match completions. This is similar to how `or`
expressions work.
The result of this is that the `when` clause "controls" the body of the
`when`, which allows us to model barrier guards for multi-pattern when
clauses.
For this code
case x
when 1, 2
y
end
The old CFG was
x --> when --> 1 --no-match--> 2 ---no-match---> case
\ \ ^
\ \ |
\ --match----+ |
\ | |
\ | |
------match---------> y --+
The new CFG is
x --> 1 --no-match--> 2 --no-match--> [no-match] when --no-match--> case
\ \ ^
\ \ |
\ --match--> [match] when --match--> y -----+
\ /
\ /
-------match-----
i.e. all patterns flow to the `when` node, which is split based on
whether the pattern matched or not. The body of the when clause then has
a single predecessor `[match] when`, which acts as condition block that
controls `y`.
2022-11-11 11:52:27 +13:00
Rasmus Lerchedahl Petersen
71335a1a97
python: update users of try
2022-11-10 22:20:28 +01:00
Rasmus Lerchedahl Petersen
7d05ba38d5
python: convenience methods for handler types
2022-11-10 22:20:28 +01:00
Rasmus Lerchedahl Petersen
e67515fae7
python: dataflow tests names in exception handlers
2022-11-10 22:20:28 +01:00
Rasmus Lerchedahl Petersen
a7e394b2be
python: SSA for names in except*
2022-11-10 22:20:28 +01:00
Rasmus Lerchedahl Petersen
30b58e7921
python: control flow node ExceptGroupStmt
...
- wrap `getType` and `getName`, considering dominance
- do not implement all the handles predicates
2022-11-10 22:20:27 +01:00
Rasmus Lerchedahl Petersen
9f9a962c03
python: wrap autogenerated ExceptGroupStmt_
...
also widen type of `Try::getHandler` to `Stmt`.
`ExceptStmt` is now too narrow,
as a handler can also be of type `ExceptGroupStmt`.
2022-11-10 22:20:27 +01:00
Rasmus Lerchedahl Petersen
24d22ccb6e
python: regenerated AST
2022-11-10 22:20:27 +01:00
Rasmus Lerchedahl Petersen
9f89325ca7
python: dummy stats for ExceptGroupStmt
2022-11-10 22:20:27 +01:00
Rasmus Lerchedahl Petersen
1fd76f02fd
python: db uprade and downgrade scripts
2022-11-10 22:20:27 +01:00
Rasmus Lerchedahl Petersen
856e48c414
python: new dbscheme
2022-11-10 22:20:27 +01:00
Rasmus Wriedt Larsen
88f703af1f
DataFlow: Accept changes to .expected
2022-11-10 22:13:34 +01:00
Ian Lynagh
e00f87045e
Java: Add up/downgrade scripts
2022-11-10 20:31:13 +00:00
Ian Lynagh
fac839f481
Java/Kotlin: Add a changenote for Compilation.getInfo
2022-11-10 20:29:04 +00:00
Ian Lynagh
a6b8f4b674
Java/Kotlin: Update stats
2022-11-10 20:29:04 +00:00
Ian Lynagh
2fb78565a7
Kotlin: Write version information to the database
2022-11-10 20:29:04 +00:00
Ian Lynagh
d0dfb4926b
Kotlin/Java: Add compilation_info table
2022-11-10 20:29:04 +00:00
Rasmus Wriedt Larsen
4caaa3a396
Python: Rewrite call-graph tests to be inline expectation (1/2)
...
This adds inline expectations, next commit will remove old annotations
code... but I thought it would be easier to review like this.
2022-11-10 21:08:29 +01:00
Erik Krogh Kristensen
90382c4d1c
Merge pull request #11178 from erik-krogh/passcode
...
JS/RB/PY: Recognize `passcode` as sensitive
2022-11-10 17:58:34 +01:00
erik-krogh
866e92558c
broaden the file pattern used in the format check to ensure js-ml is included
2022-11-10 17:57:45 +01:00
Paolo Tranquilli
f5b198b8b7
Swift: fix dangling test reference
2022-11-10 17:50:22 +01:00
erik-krogh
fbb2dcf7a8
remove langauge specific format checks
2022-11-10 17:47:14 +01:00
Paolo Tranquilli
88dc65cb3c
Swift: extract or ignore last remaining types
2022-11-10 17:38:32 +01:00
Paolo Tranquilli
04d042308b
Swift: fix QL compilation
2022-11-10 17:05:03 +01:00
Tom Hvitved
bda4b52395
Merge pull request #11206 from hvitved/ruby/self-toplevel-def
...
Ruby: Fix SSA entry definitions for `self` in top-level
2022-11-10 17:01:59 +01:00
Jeroen Ketema
f7c55a3258
Merge pull request #11202 from jketema/fix-accept-prototype
...
C++: Fix the `accept` prototype in the dataflow taint tests
2022-11-10 17:00:07 +01:00
Nick Rolfe
20f76e50c3
Ruby: actually call the isPublic() predicate I added
2022-11-10 15:53:04 +00:00
Geoffrey White
887d1893e7
Swift: Make ql-for-ql happy.
2022-11-10 15:51:02 +00:00
Paolo Tranquilli
458fb3a4a2
Swift: fix printing of unextracted entities
...
This was still printing explicitly ignored classes.
2022-11-10 16:49:32 +01:00
Paolo Tranquilli
30bbae3c22
Merge pull request #11209 from github/redsun82/swift-drop-impossible-nodes
...
Swift: drop impossible nodes from schema
2022-11-10 16:47:23 +01:00
Michael Nebel
2a26c8f340
Merge pull request #10628 from michaelnebel/java/typebasedmodels
...
Java: Type based summary models.
2022-11-10 16:34:52 +01:00
Geoffrey White
d97682991d
Swift: Add Alamofire sink for cpp/cleartext-transmission.
2022-11-10 15:33:00 +00:00
Nick Rolfe
b91b3148a4
Ruby: add missing qldoc comments for SQL injection query
2022-11-10 15:26:42 +00:00
Paolo Tranquilli
a54853d3b4
Swift: cleanup orphaned test files
2022-11-10 16:20:28 +01:00
Paolo Tranquilli
6a816ba700
Swift: create common error test directory
2022-11-10 16:20:28 +01:00
Paolo Tranquilli
c5bb32d6d2
Swift: create common ErrorElement superclass
2022-11-10 16:20:28 +01:00
Jeroen Ketema
62f5d10d03
C++: Fix localTaint expected results
2022-11-10 16:08:07 +01:00
Erik Krogh Kristensen
724a31b746
fix comment that wasn't updated in test
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2022-11-10 15:56:44 +01:00
Ian Lynagh
a2c0d47e9c
Merge pull request #11199 from igfoo/igfoo/kotlin_default
...
Kotlin: Update docs and tests
2022-11-10 14:53:06 +00:00
erik-krogh
676327d9e4
Merge branch 'main' into erb
2022-11-10 15:39:58 +01:00
erik-krogh
012fb28e25
only extract .html.erb files instead of all .erb files
2022-11-10 15:38:51 +01:00
Karim Ali
b209cac2e2
Merge pull request #11063 from karimhamdanali/swift-pbe-constant-password
...
Swift: detect the use of constant passwords for password-based encryption
2022-11-10 16:36:27 +02:00
Karim Ali
e18b2cfa39
Merge pull request #11084 from karimhamdanali/swift-static-iv
...
Swift: detect the use of static initialization vectors
2022-11-10 16:35:21 +02:00
Geoffrey White
23ff3769ac
Swift: Add Alamofire tests for swift/cleartext-transmission.
2022-11-10 14:31:53 +00:00
Nick Rolfe
511fb97273
Ruby: remove redundant import
2022-11-10 14:30:06 +00:00
Paolo Tranquilli
5b9e89acd3
Swift: implement ignoring of removed classes
2022-11-10 15:26:55 +01:00
Paolo Tranquilli
e26e0ec809
Swift: remove imposible nodes from schema
...
We don't expect these AST types to really appear during an extraction
run, even in an unsuccessful compilation.
2022-11-10 15:26:55 +01:00
Nick Rolfe
0337ccb93a
Ruby: add change notes for Arel.sql / SqlConstruction changes
2022-11-10 14:11:14 +00:00
Nick Rolfe
5a15558355
Ruby: treat an Arel.sql call as a SqlConstruction
2022-11-10 14:11:14 +00:00
Tom Hvitved
e18442069b
Ruby: Fix SSA entry definitions for self in top-level
2022-11-10 15:08:17 +01:00
Ian Lynagh
3d17c8f1ab
Merge pull request #11200 from igfoo/igfoo/extractor-info
...
Java/Kotlin: Add ExtractorInformation query
2022-11-10 13:51:13 +00:00
Paolo Tranquilli
7f36f65ab0
Merge pull request #11190 from github/redsun82/swift-exprs
...
Swift: extract some more `Expr`
2022-11-10 14:36:42 +01:00
Jeroen Ketema
62a0bcddd9
C++: Fix the accept prototype in the dataflow taint tests
2022-11-10 14:23:26 +01:00
Erik Krogh Kristensen
5d2ab8adfb
Merge pull request #11191 from erik-krogh/arrJoin
...
RB: add join(" ") calls as a sink for rb/shell-command-constructed-from-input
2022-11-10 14:20:42 +01:00
Erik Krogh Kristensen
54958fd502
Merge pull request #11201 from erik-krogh/no-set-output
...
QL-for-QL: don't use the deprecated set-output feature in github-actions
2022-11-10 14:07:40 +01:00
Michael Nebel
8041542f92
Java: Make sure that IterableTypes has a unique iterator.
2022-11-10 14:06:18 +01:00
Karim Ali
7d473fb265
address docs review
2022-11-10 15:01:05 +02:00
Michael Nebel
2f12ccc803
C#: Delete incorrect comment.
2022-11-10 13:59:50 +01:00
erik-krogh
a2ce764c82
update codeql-action version used in QL-for-QL, as the old version still used the deprecated set-output feature
2022-11-10 13:58:07 +01:00
Michael Nebel
9b5318876d
Java: Improve tests and allow spurious models.
2022-11-10 13:57:44 +01:00
Michael Nebel
91aa75da0e
Java: Rename IterableType to IterableClass.
2022-11-10 13:57:44 +01:00
Michael Nebel
ce8ab0e66e
Simplify test predicate implementation.
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-11-10 13:57:44 +01:00
Michael Nebel
0e7179ca85
Simplify functional predicate implementation.
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-11-10 13:57:44 +01:00
Michael Nebel
9d34ce9776
Adjust the co-variant claim comment.
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-11-10 13:57:44 +01:00
Michael Nebel
decfcdd82a
Improve IterableType implementation.
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-11-10 13:57:43 +01:00
Michael Nebel
d6ae1ef6f2
Java/C#: Move C# internal implementation for model generation.
2022-11-10 13:57:43 +01:00
Michael Nebel
4cb82ad5a7
Java: Explicit import of needed classes from stream and some improvements to comments.
2022-11-10 13:57:43 +01:00
Michael Nebel
62603dd2bc
Java: Inline expectations for type based model test case.
2022-11-10 13:57:43 +01:00
Michael Nebel
2011685e89
Java: Move internal model generator code to another folder.
2022-11-10 13:57:43 +01:00
Michael Nebel
ceef9cf276
C#: Fix spelling error in ql doc.
2022-11-10 13:57:43 +01:00
Michael Nebel
5b9ae5e6db
Java: Update ql doc comments.
2022-11-10 13:57:43 +01:00
Michael Nebel
8352925257
Java: Minor re-factorings.
2022-11-10 13:57:43 +01:00
Michael Nebel
9f783b018d
Java: Type based summaries are now also for Java.
2022-11-10 13:57:43 +01:00
Michael Nebel
8a0f00a5c9
Java: Update expected test output.
2022-11-10 13:57:43 +01:00
Michael Nebel
0c09f78142
Java: Comment in method for converting stream to Array.
2022-11-10 13:57:43 +01:00
Michael Nebel
84743ec87d
Java: Make support for array parameter and return values.
2022-11-10 13:57:43 +01:00
Michael Nebel
5b65f5c185
Java: Change test implementation to avoid failing CFG dead end consistency test.
2022-11-10 13:57:43 +01:00
Michael Nebel
8c1de5958b
Java: Make better QL docs and add some missing 'this'.
2022-11-10 13:57:43 +01:00
Michael Nebel
b80c533fb0
Java: Update expected test output.
2022-11-10 13:57:43 +01:00
Michael Nebel
937404892f
Java: Add further examples that are now supported.
2022-11-10 13:57:42 +01:00
Michael Nebel
39ee1e28cf
Java: Get the correct type of the instantiated iterator type.
2022-11-10 13:57:42 +01:00
Michael Nebel
dc79ed8192
Java: Update expected test output.
2022-11-10 13:57:42 +01:00
Michael Nebel
d1b8bef248
Java: Add more stream functions. Comment methods out, where we are not happy with the generated result.
2022-11-10 13:57:42 +01:00
Michael Nebel
62de3e4ab6
Java: Update expected test output.
2022-11-10 13:57:42 +01:00
Michael Nebel
716d6aeeee
Java: Add stream concat example.
2022-11-10 13:57:42 +01:00
Michael Nebel
96414034f9
Java: Support wildcards in paramters and generic collection like parameters.
2022-11-10 13:57:42 +01:00
Michael Nebel
efe802dac0
Java: Updated expected test output.
2022-11-10 13:57:42 +01:00
Michael Nebel
52f69f77bc
Java: Add stream example methods using wildcards.
2022-11-10 13:57:42 +01:00
Michael Nebel
b8922b0270
Java: Support wildcards for functional interfaces.
2022-11-10 13:57:42 +01:00
Michael Nebel
0caee16eb0
Java: Update expected test output.
2022-11-10 13:57:42 +01:00
Michael Nebel
0cfd7787f4
Java: Add some examples of functional interfaces for functions with two parameters.
2022-11-10 13:57:42 +01:00
Michael Nebel
3b109db2d1
Java: Generalize the support perceiving functional interfaces as functions.
2022-11-10 13:57:42 +01:00
Michael Nebel
3a5d06272f
Java: Update expected test output.
2022-11-10 13:57:42 +01:00
Michael Nebel
9ccff656bd
Java: Add some initial stubs for methods like java.util.stream.Stream.
2022-11-10 13:57:42 +01:00
Michael Nebel
8bc92320d4
Java: Consider classes that has a method that returns an iterator as container like types.
2022-11-10 13:57:42 +01:00
Michael Nebel
309b6e0810
Java: Add expected test output.
2022-11-10 13:57:42 +01:00
Michael Nebel
f22e1db33f
Java: Add test case for capturing type based summaries.
2022-11-10 13:57:41 +01:00
Michael Nebel
207191f987
Java: Move dataflow based model generation testcases to a subfolder.
2022-11-10 13:57:41 +01:00
Michael Nebel
0cab131c51
Java: Add type based summary model generation query.
2022-11-10 13:57:41 +01:00
Michael Nebel
bdc569feea
Java: Initial implementation of type based model generation.
2022-11-10 13:57:41 +01:00
erik-krogh
ac32f27fdc
don't use the deprecated set-output feature in github-actions
2022-11-10 13:49:29 +01:00
Paolo Tranquilli
de8e7b0f27
Swift: remove debug test and fix generation
2022-11-10 13:42:37 +01:00
Karim Ali
d229d6a7cb
address docs review
2022-11-10 14:30:04 +02:00
Mauro Baluda
53f1985e77
Merge branch 'github:main' into main
2022-11-10 13:27:20 +01:00
Ian Lynagh
31a1667fda
Java/Kotlin: Add ExtractorInformation query
2022-11-10 12:22:09 +00:00
Nick Rolfe
c9d34947b7
Ruby: add SqlConstruction concept
2022-11-10 12:17:56 +00:00
Ian Lynagh
eea062d357
Merge pull request #11053 from igfoo/igfoo/java-interface-redeclares-tostring
...
Kotlin: Run java-interface-redeclares-tostring on all platforms
2022-11-10 12:14:49 +00:00
Michael Nebel
9c6875ec0f
Merge pull request #10777 from michaelnebel/csharp/generatedataextensions
...
C#: Generate data extension files
2022-11-10 13:08:31 +01:00
Ian Lynagh
56f8100f16
Kotlin: Add to versions-compilers.rst
2022-11-10 12:01:06 +00:00
Paolo Tranquilli
edfecddca1
Swift: extract AppliedPropertyWrapperExpr
2022-11-10 12:55:28 +01:00
Nick Rolfe
9f31ef851f
Python: fix spelling of SqlExecution class in comment
2022-11-10 11:53:12 +00:00
Nick Rolfe
4a98ef064e
Ruby: use the 'customizations' pattern for the SQL injection query
2022-11-10 11:51:47 +00:00
Nick Rolfe
2b5e2ed282
Ruby: factor out some code into a helper predicate
2022-11-10 11:41:52 +00:00
Ian Lynagh
72a26865b5
Kotlin: Add a changenote for enabled-by-default
2022-11-10 11:36:15 +00:00
Mauro Baluda
ee02265ac2
Add property params to RequestInputAccess
2022-11-10 12:24:39 +01:00
Jeroen Ketema
d8e96ef12a
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-10 12:09:43 +01:00
Jeroen Ketema
d0a00254ad
Merge pull request #11184 from jketema/reintro-ast-annotation
...
C++: Re-introduce the `ast` annotations in the taint tests and related test infrastructure
2022-11-10 12:00:16 +01:00
Jeroen Ketema
e7576fdd1a
Merge pull request #11197 from jketema/simplify-taint-test
...
C++: Simplify dataflow taint test query
2022-11-10 11:58:50 +01:00
Paolo Tranquilli
28c9d6b6b5
Swift: extract PropertyWrapperValuePlaceholderExpr
2022-11-10 11:28:05 +01:00
Tom Hvitved
06f619875b
Merge pull request #11194 from github/post-release-prep/codeql-cli-2.11.3
...
Post-release preparation for codeql-cli-2.11.3
2022-11-10 11:27:51 +01:00
Nick Rolfe
2f9f1f73b7
Merge pull request #11166 from github/nickrolfe/active_support_flow_summaries
...
Ruby: generalise summaries for ActiveSupport Hash extensions
2022-11-10 10:11:48 +00:00
Anders Schack-Mulligen
a8ed6bad34
Merge pull request #11188 from aschackmull/java/mad-gen-sinks-precision
...
Java: Improve sink model generation precision by excluding variable capture.
2022-11-10 10:49:56 +01:00
Jeroen Ketema
4d7aeced3f
C++: Simplify dataflow taint test query
...
The complexity seems a left-over from before these tests were turned into
inline expectation tests, where the aim seems to have been to have exactly
one sink node for each `sink` call. Multiple sink nodes for the same `sink`
call are not made visible in the inline expecation tests, and I am not
conviced this was very useful before, so remove the complexity.
2022-11-10 10:38:22 +01:00
AlexDenisov
24ba51d11e
Merge pull request #11193 from github/redsun82/swift-avoid-doc-instead-of-desc
...
Swift: avoid wrongly using `doc` instead of `desc` for properties
2022-11-10 09:53:44 +01:00
Paolo Tranquilli
d7bbf74e49
Swift: fix ObjectLiteralExpr tests
2022-11-10 09:45:59 +01:00
Paolo Tranquilli
3b9ec2b9eb
Swift: fix ObjectLiteralExpr docs
2022-11-10 09:44:07 +01:00
github-actions[bot]
f795025f13
Post-release preparation for codeql-cli-2.11.3
2022-11-10 08:31:58 +00:00
Paolo Tranquilli
a8e6dc7a54
Swift: avoid wrongly using doc instead of desc for properties
2022-11-10 09:29:02 +01:00
Harry Maclean
a8b0d298ff
Ruby: More string comparison guards
...
Recognise if statements with conditionals made up or logical `and` or
`or` clauses as barrier guards.
2022-11-10 16:38:09 +13:00
tiferet
dbcdc2209e
Use names constants for confidence levels
2022-11-09 14:25:08 -08:00
tiferet
b6532fa9a0
Fix QLDoc style warning
2022-11-09 13:10:54 -08:00
tiferet
243980ef73
Documentation improvements
2022-11-09 13:04:16 -08:00
Tiferet Gazit
6cb01a210f
Apply suggestions from code review
...
Co-authored-by: Stephan Brandauer <kaeluka@github.com >
2022-11-09 12:53:52 -08:00
erik-krogh
88de299e12
add join(" ") calls as a sink for rb/shell-command-constructed-from-input
2022-11-09 21:46:25 +01:00
Nick Rolfe
eb2a487433
Ruby: update expected test output
2022-11-09 17:38:33 +00:00
Nick Rolfe
0d9aa0cdac
Ruby: fix clashing method names from merge conflict
2022-11-09 17:06:43 +00:00
Nick Rolfe
c8c53cb424
Merge remote-tracking branch 'origin/main' into nickrolfe/active_support_flow_summaries
2022-11-09 17:02:05 +00:00
Nick Rolfe
cfde7e9edc
Ruby: more accurate modeling of which ActionCable channel methods become endpoints
2022-11-09 16:14:11 +00:00
Ian Lynagh
fd6ae3a216
Kotlin: Accept test output
2022-11-09 15:59:15 +00:00
Paolo Tranquilli
0ccf81e67c
Swift: extract UnresolvedSpecializeExpr
2022-11-09 16:42:22 +01:00
Paolo Tranquilli
1a062823ee
Swift: extract DynamicLookupExpr
2022-11-09 16:31:59 +01:00
Paolo Tranquilli
e2bdef2fba
Swift: extract DynamicMemberRefExpr
2022-11-09 16:22:22 +01:00
Nick Rolfe
611ed93e39
Ruby: add is{Public,Protected,Private} to DataFlow::MethodNode
2022-11-09 15:18:16 +00:00
Erik Krogh Kristensen
d35e5ac752
Merge pull request #11180 from erik-krogh/yetMoreCi
...
CI: compile-queries: use cache when running on main, and support more base-branches
2022-11-09 16:16:30 +01:00
Paolo Tranquilli
4770ad3177
Swift: extract OverloadedDeclRefExpr
2022-11-09 16:06:23 +01:00
Asger F
83291f378b
Merge pull request #11157 from asgerf/js/yaml-locations
...
JS: fix issue with zero-column yaml locations
2022-11-09 15:57:54 +01:00
Andrew Eisenberg
df2e259944
Merge pull request #11073 from github/aeisenberg/vscode-ttl-docs
2022-11-09 06:53:50 -08:00
Paolo Tranquilli
5f8e7e67b4
Swift: extract ObjectLiteralExpr
2022-11-09 15:51:08 +01:00
Anders Schack-Mulligen
151f12ef5e
Java: Improve sink model generation precision by excluding variable capture.
2022-11-09 15:32:30 +01:00
Nick Rolfe
199b3f4d71
Ruby: add change note for ActionCable channel remote flow sources
2022-11-09 14:18:44 +00:00
Nick Rolfe
db20e7d143
Ruby: add ActionCable channel RPC params as remote-flow sources
2022-11-09 14:16:04 +00:00
Anders Schack-Mulligen
07f50e275d
Merge pull request #11182 from aschackmull/mad/split-configs
...
Java/C#: Split active configurations for model generator
2022-11-09 15:06:43 +01:00
Asger F
859dc7beb7
Merge pull request #11024 from asgerf/rb/data-flow-layer-capture2
...
Ruby: expand DataFlow API
2022-11-09 15:06:03 +01:00
erik-krogh
5ba694e909
remember to run on PRs
2022-11-09 14:55:08 +01:00
Paolo Tranquilli
a05706d89d
Merge pull request #11177 from github/redsun82/swift-decls
...
Swift: extract `PoundDiagnosticDecl` and `MissingMemberDecl`
2022-11-09 14:54:57 +01:00
Michael Nebel
57e31c11da
C#: Add change note.
2022-11-09 14:54:37 +01:00
erik-krogh
57ad491356
adjust the triggers, run on all PRs, and more branches
2022-11-09 14:50:53 +01:00
erik-krogh
8d51aaa403
add another fallback to main
2022-11-09 14:44:10 +01:00
erik-krogh
7e522770f6
simplify the cache keys
2022-11-09 14:43:30 +01:00
erik-krogh
1b9653827f
do a quicker merge-base calculation
2022-11-09 14:38:55 +01:00
Jeroen Ketema
0e33f4da6b
C++: Re-introduce most of the ast annotation test infrastructure
2022-11-09 14:37:01 +01:00
Jeroen Ketema
bd301768ea
C++: Re-introduce the ast annotations in the taint tests
2022-11-09 14:30:56 +01:00
Jeroen Ketema
0d27d63984
Merge remote-tracking branch 'upstream/main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-09 14:28:47 +01:00
Anders Schack-Mulligen
b3b7711149
Dataflow: Sync.
2022-11-09 14:23:15 +01:00
Anders Schack-Mulligen
ade83b3cfe
Dataflow: Introduce support for src/sink grouping in path results.
2022-11-09 14:22:24 +01:00
Jeroen Ketema
4c308d998e
Merge pull request #11179 from jketema/old-taint-fix
...
C++: Fix imports and module names in old dataflow/taint tracking library
2022-11-09 14:07:23 +01:00
Anders Schack-Mulligen
fc4f93c87a
Java/C#: Undo configuration footgun firing.
2022-11-09 13:20:39 +01:00
Nora Dimitrijević
5940f17b83
Swift: Docs + doctests
2022-11-09 13:10:08 +01:00
Jeroen Ketema
af6a87e54d
C++: Add missing QLDoc comments
2022-11-09 13:08:53 +01:00
erik-krogh
53917e506e
add refs/heads/ to make the ref fully-formed
2022-11-09 12:58:31 +01:00
Nick Rolfe
97e939ae2b
Ruby: refine summaries for Hash#reverse_merge etc.
...
- revert the changes to the taint summaries specific to ActionController
params
- make the general flow summaries value-preserving and use
WithElement[any]
2022-11-09 11:56:07 +00:00
erik-krogh
f0b09ee16c
fallback to main
2022-11-09 12:55:21 +01:00
erik-krogh
b3b13bdd43
use base_ref to calculate the cache-keys when running in a PR.
2022-11-09 12:55:02 +01:00
Jeroen Ketema
d7804f5473
C++: Fix DataFlow2 import
2022-11-09 12:53:05 +01:00
Mathias Vorreiter Pedersen
50c2683be0
Merge pull request #11181 from github/alexdenisov/extractor-errors-suite
...
Swift: add an internal query-suite for listing all the compiler errors
2022-11-09 11:52:59 +00:00
Jeroen Ketema
ceb6706c73
C++: Fix formatting
2022-11-09 12:52:44 +01:00
erik-krogh
ad7fc34efd
extract .erb files as html
2022-11-09 12:43:19 +01:00
Erik Krogh Kristensen
c537c80ed6
Merge pull request #11095 from erik-krogh/exportRead
...
JS: recognize more re-exported values as exported
2022-11-09 12:39:41 +01:00
Alex Denisov
dacbf4e798
Swift: use more common name for the query
2022-11-09 12:29:50 +01:00
Alex Denisov
4ee6ae67d6
Swift: use explicit this to conform to the coding style
2022-11-09 12:17:11 +01:00
Alex Denisov
a1fa424ec1
Swift: add an internal query-suite for listing all the compiler errors
2022-11-09 12:05:41 +01:00
Paolo Tranquilli
9d4a208c0d
Swift: extract MissingMemberDecl
2022-11-09 12:04:42 +01:00
Paolo Tranquilli
235181fb21
Swift: share translateDiagnosticsKind with SwiftDiagnosticsConsumer
2022-11-09 12:00:43 +01:00
Paolo Tranquilli
7bcee6e9a8
Merge branch 'main' into redsun82/swift-decls
2022-11-09 11:59:16 +01:00
erik-krogh
aede9c3467
support general base-branches, not just main
2022-11-09 11:55:19 +01:00
Jeroen Ketema
4ab5066ed2
C++: Fix imports and module names in old dataflow/taint tracking library
2022-11-09 11:52:39 +01:00
erik-krogh
484dc4ad3a
restore from another cache when running on main. Otherwise that workflow always takes an hour
2022-11-09 11:45:21 +01:00
AlexDenisov
8756989b4b
Merge pull request #11101 from github/alexdenisov/extractor-errors
...
Swift: extract diagnostics
2022-11-09 11:33:54 +01:00
erik-krogh
c8b7eccc6f
sync files
2022-11-09 11:31:13 +01:00
erik-krogh
23add8a72b
recognize passcode as sensitive
2022-11-09 11:30:57 +01:00
erik-krogh
e0bcfe2afb
add failing test
2022-11-09 11:30:31 +01:00
Paolo Tranquilli
73ad1307ae
Swift: extract PoundDiagnosticDecl
2022-11-09 11:13:55 +01:00
Paolo Tranquilli
c95a6ea5d1
Merge pull request #11176 from github/redsun82/swift-opaque-types
...
Swift: extract opaque types and their decls
2022-11-09 10:47:32 +01:00
Asger F
ac5a1d68ea
Merge pull request #11170 from asgerf/rb/taint-known-or-unknown
...
Ruby: handle knownOrUnkown in default taint step
2022-11-09 10:42:02 +01:00
Erik Krogh Kristensen
138a16f0b3
use getImportedModuleNode()
...
Co-authored-by: Asger F <asgerf@github.com >
2022-11-09 09:53:23 +01:00
Asger F
694d987365
JS: Update test output
2022-11-09 09:36:03 +01:00
Asger F
f4b2af730d
Update ruby/ql/lib/codeql/ruby/dataflow/internal/TaintTrackingPrivate.qll
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2022-11-09 09:28:07 +01:00
Paolo Tranquilli
b399d8df7e
Swift: extract opaque types and their decls
2022-11-09 09:27:25 +01:00
Harry Maclean
ad7b5ae7ed
Ruby: Add inline barrier guard test
2022-11-09 16:35:28 +13:00
Harry Maclean
f1b63c4df3
Ruby: Fix in clause barrier guard
2022-11-09 16:10:17 +13:00
Harry Maclean
0ab88c2e29
Ruby: Handle simple in clauses in barrier guard
2022-11-09 16:01:33 +13:00
Harry Maclean
87944a3a75
Ruby: Add test for another case guard variant
2022-11-09 15:05:03 +13:00
Harry Maclean
25ceeaf241
Ruby: Fix SplatExprCfgNode
2022-11-09 15:03:15 +13:00
Harry Maclean
4bc9096446
Ruby: Add case string comparison barrier guard
...
This recognises barriers of the form
STRINGS = ["foo", "bar"]
case foo
when "some string literal"
foo
when *["other", "strings"]
foo
when *STRINGS
foo
end
where the reads of `foo` inside each `when` are guarded by the comparison
of `foo` with the string literals.
We don't yet recognise this construct:
case foo
when "foo", "bar"
foo
end
This is due to a limitation in the shared barrier guard logic.
2022-11-09 15:03:13 +13:00
Jami
cfbaf5e53b
Merge pull request #10785 from jcogs33/insuff-key-size-globalflow-keysize
...
Java: Promote insufficient key size query from experimental
2022-11-08 18:05:01 -05:00
Geoffrey White
af9ad7b699
Merge branch 'main' into tuples
2022-11-08 21:38:38 +00:00
tiferet
ac14b6d685
Create EndpointCharacteristics to replace all existing NotASinkReasons and LikelyNotASinkReasons
2022-11-08 13:37:49 -08:00
Jami Cogswell
13decd38d9
update sink
2022-11-08 15:29:33 -05:00
Jami Cogswell
bada986433
apply review comments
2022-11-08 15:29:33 -05:00
Jami Cogswell
b99a1d2cd9
update sink and tests
2022-11-08 15:29:33 -05:00
Jami Cogswell
e49c5213ca
update change note
2022-11-08 15:29:33 -05:00
Jami Cogswell
0e93e71127
update tests
2022-11-08 15:29:33 -05:00
Jami Cogswell
695d6f0e4e
move files to regexp directory
2022-11-08 15:29:33 -05:00
Jami Cogswell
5402001362
remove original sanitizer
2022-11-08 15:29:33 -05:00
Jami Cogswell
be548c13e1
switch sink to use csv models
2022-11-08 15:29:33 -05:00
Jami Cogswell
5dcd3b2c0f
clean up files
2022-11-08 15:29:33 -05:00
Jami Cogswell
32f7348d30
update help file
2022-11-08 15:29:33 -05:00
Jami Cogswell
eb30e8fe9e
move Pattern.quote and Pattern.LITERAL models to Regex.qll
2022-11-08 15:29:33 -05:00
Jami Cogswell
81ad10bab5
update sink names
2022-11-08 15:29:33 -05:00
Jami Cogswell
5b089bbb9c
split sanitizer into three
2022-11-08 15:29:33 -05:00
Jami Cogswell
91491d9a7b
refactor into more classes; add more test cases; add LITERAL sanitizer
2022-11-08 15:29:33 -05:00
Jami Cogswell
50d638d1b6
create RegexInjection.qll file
2022-11-08 15:29:33 -05:00
Jami Cogswell
f6f26fe6c5
refactor code; add change note
2022-11-08 15:29:33 -05:00
Jami Cogswell
037a05cd66
add classes for Pattern, Matcher, and RegExUtils
2022-11-08 15:29:33 -05:00
Jami Cogswell
6ba7449df7
adjust imports
2022-11-08 15:29:33 -05:00
Jami Cogswell
6545cff0ef
add Pattern.quote sanitizer
2022-11-08 15:29:33 -05:00
Jami Cogswell
833c5edf06
move to .qll file and switch to InlineExpectations tests
2022-11-08 15:29:32 -05:00
Jami Cogswell
25436fe555
update options and qlref files
2022-11-08 15:29:32 -05:00
Jami Cogswell
32b140045e
move files out of experimental
2022-11-08 15:29:32 -05:00
Paolo Tranquilli
53b7584a90
Merge pull request #11169 from github/redsun82/swift-extract-last-stmts
...
Swift: extract remaining `Stmt`s
2022-11-08 20:51:10 +01:00
Paolo Tranquilli
7939b84380
Merge pull request #11168 from github/redsun82/swift-postfix-expr
...
Swift: extract `PostfixUnaryExpr`
2022-11-08 20:50:45 +01:00
tiferet
fadbdc1f63
Documentation improvements suggested by Andrew
2022-11-08 11:45:33 -08:00
Jeroen Ketema
6a5f37b1b7
Merge pull request #11149 from geoffw0/wrong-number-msg
...
C++: Clearer messages for the format args queries
2022-11-08 20:44:10 +01:00
erik-krogh
c1727ba005
lower precision to high in ql/override-any
2022-11-08 20:35:07 +01:00
erik-krogh
107cbb29b1
guide users towards using exists(variable) in ql/override-any
2022-11-08 20:34:58 +01:00
erik-krogh
c5fece7a87
QL: improve the dead-code query
2022-11-08 20:20:34 +01:00
Erik Krogh Kristensen
8b11e98d42
Merge pull request #11162 from erik-krogh/ciCache
...
CI: try only to fill the compilation cache from main in the compile-queries workflow
2022-11-08 19:24:14 +01:00
Asger F
43769ad464
Ruby: update test output
2022-11-08 19:20:57 +01:00
Nick Rolfe
a9ff0bdbbf
Ruby: accept changed test output
2022-11-08 17:36:31 +00:00
Mathias Vorreiter Pedersen
f19b381e3e
C++: Add use-use flow through global variables.
2022-11-08 17:10:37 +00:00
Paolo Tranquilli
cbae72d9da
Swift: remove emoji in test
2022-11-08 17:41:40 +01:00
Paolo Tranquilli
9ee4f8b388
Swift: extract remaining Stmts
...
`FailStmt` are `return nil` in fallible initializers.
`PoundAssertStmt` are an experimental feature for compile time
assertions.
2022-11-08 17:38:17 +01:00
Mathias Vorreiter Pedersen
4cdcebf022
Merge pull request #11161 from geoffw0/localflowsource
...
Swift: Add LocalFlowSource class and a few sources.
2022-11-08 16:12:32 +00:00
Paolo Tranquilli
00d3ff8a18
Swift: extract UnaryPostfixExpr
2022-11-08 17:10:33 +01:00
Michael Nebel
d8889f2d1f
C#: Make a dummy project as a part of running the conversion script.
2022-11-08 17:02:57 +01:00
Jeroen Ketema
74f9b322a8
Merge branch 'main' into update-from-main
2022-11-08 17:01:02 +01:00
Nick Rolfe
865d0ca64a
Ruby: add changenote for ActiveSupport Hash extension summaries
2022-11-08 15:52:21 +00:00
Nick Rolfe
04575674db
Ruby: generalise summaries for ActiveSupport Hash extensions
2022-11-08 15:48:20 +00:00
Michael Nebel
0b04505e04
C#: Update all data extensions files.
2022-11-08 16:47:02 +01:00
Michael Nebel
d3a458ef1a
C#: Remove blank lines in generated converted models.
2022-11-08 16:46:38 +01:00
Asger F
271de66f01
Ruby: rename getConst -> getConstant
2022-11-08 16:41:04 +01:00
Andrew Eisenberg
e674759860
Add documentation about the codeQL.queryHistory.ttl setting
...
Update docs/codeql/codeql-for-visual-studio-code/customizing-settings.rst
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-08 07:22:20 -08:00
Mauro Baluda
8e546e8496
Add req.url.origin to RequestInputAccess
2022-11-08 16:14:10 +01:00
Asger F
a60f510c85
Ruby: handle knownOrUnkown in default taint step
2022-11-08 16:11:55 +01:00
AlexDenisov
6fb021a5bc
Merge pull request #11164 from github/redsun82/swift-print-unextracted
...
Swift: print unextracted entities
2022-11-08 16:07:44 +01:00
Michael Nebel
f1b5ed1cba
C#: Remove [source|sink|summary|negativeSummary]Model/1 predicates.
2022-11-08 16:01:43 +01:00
Jeroen Ketema
2bef82babc
Merge pull request #11163 from jketema/missing-return
...
C++: Add dataflow test that deliberately omits the return of a non-void function
2022-11-08 16:00:36 +01:00
Geoffrey White
c8426776fc
Merge branch 'main' into wrong-number-msg
2022-11-08 14:47:19 +00:00
Tony Torralba
eef4fc3a0a
Apply suggestions from code review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2022-11-08 15:44:26 +01:00
Paolo Tranquilli
d325a42890
Swift: print unextracted entities
2022-11-08 15:38:53 +01:00
Alex Denisov
3f2f328d87
Swift: put invocation files into a separate folder
2022-11-08 15:32:51 +01:00
Jeroen Ketema
d93bda21c2
Merge pull request #11159 from jketema/strcat-return-deref-taint
...
C++: Also taint the return value dereference in the `strcat` model
2022-11-08 15:27:07 +01:00
Alex Denisov
096469c6fe
Swift: use timestamp + getpid for the invocation filename
2022-11-08 15:26:35 +01:00
Jeroen Ketema
fa2d58adff
C++: Add dataflow test that deliberately omits the return of a non-void function
2022-11-08 15:12:34 +01:00
Alex Denisov
42004d93f0
Swift: cleanup diagnostic message construction
2022-11-08 15:07:01 +01:00
erik-krogh
22d7f3cfe5
try only to fill the cache from main
2022-11-08 15:06:00 +01:00
Alex Denisov
d9b3104c78
Swift: remove unneeded include
2022-11-08 15:03:43 +01:00
Alex Denisov
4f05f083a5
Swift: split SwiftLocationExtractor into h/cpp
2022-11-08 15:02:22 +01:00
Alex Denisov
609c7cf84d
Swift: Rename diagnostics consumer
2022-11-08 14:56:50 +01:00
Geoffrey White
25b4296045
Swift: Rename predicate to avoid confusion.
2022-11-08 13:52:33 +00:00
Alex Denisov
2b8b6d3dc3
Swift: ignore diagnostics for PrintAst
2022-11-08 14:45:56 +01:00
Alex Denisov
e9c4cb227f
Swift: add more diagnostics tests
2022-11-08 14:41:10 +01:00
Alex Denisov
680b7a16fb
Swift: extract location extraction into a separate entity
2022-11-08 14:41:10 +01:00
Alex Denisov
e9da5eecf2
Swift: update test expectations
2022-11-08 14:41:06 +01:00
Geoffrey White
24c8f1d8b5
Swift: Add some local (and remote) flow sources for String.
2022-11-08 13:38:25 +00:00
Alex Denisov
b62a4aae1a
Swift: include null terminators into the invocation file hash
2022-11-08 14:36:28 +01:00
Alex Denisov
433f4e0cb5
Swift: use DbFile/DbLocation
2022-11-08 14:36:28 +01:00
Alex Denisov
288bdc2ee9
Swift: add diagnostics test case
2022-11-08 14:36:28 +01:00
Alex Denisov
b39cf7ea11
Swift: diagnostics: fix bazel build
2022-11-08 14:36:28 +01:00
Alex Denisov
1574e855eb
Swift: consume and store compiler frontend diagnostics
2022-11-08 14:36:28 +01:00
Alex Denisov
62c26f8f27
Swift: add diagnostics to dbscheme
2022-11-08 14:36:25 +01:00
Erik Krogh Kristensen
e01cbb2ffa
Merge pull request #10378 from erik-krogh/aliasFlow
...
JS: expand localFieldStep to use access-paths, and build access-paths in more cases
2022-11-08 14:26:12 +01:00
Geoffrey White
e669754d0b
Swift: Also add local flow sources to summary queries.
2022-11-08 13:05:41 +00:00
Geoffrey White
be05b807cd
Swift: Add models-as-data local flow sources as well.
2022-11-08 13:05:41 +00:00
Geoffrey White
0dcb5546a1
Swift: Add a LocalFlowSource and FlowSource class.
2022-11-08 13:05:41 +00:00
Geoffrey White
c5285acb04
Swift: Add more tests for String flow sources.
2022-11-08 13:05:40 +00:00
Paolo Tranquilli
552c5249ac
Merge pull request #11131 from github/redsun82/swift-incomplete-ast
...
Swift: deal with incomplete ASTs
2022-11-08 14:01:58 +01:00
Tom Hvitved
f0554fcdee
Merge pull request #11155 from hvitved/ruby/avoid-stage-recomputation
...
Ruby: Avoid stage recomputation
2022-11-08 13:46:53 +01:00
Tom Hvitved
edde3defed
Merge pull request #11153 from hvitved/ruby/basic-block-at-conditions
...
Ruby: Split basic blocks around constant conditionals
2022-11-08 13:35:52 +01:00
Rasmus Wriedt Larsen
4895daba85
DataFlow: Add read/store stepIsLocal consistency checks
2022-11-08 13:32:49 +01:00
Asger F
69f5879384
JS: Update TRAP test output
2022-11-08 13:02:26 +01:00
Tony Torralba
d813590780
Merge pull request #11156 from atorralba/atorralba/swift/bitwise-operation
...
Swift: Add `BitwiseOperation.qll`
2022-11-08 12:15:00 +01:00
Jeroen Ketema
c61a9c5911
C++: Also taint the return value dereference in the strcat model
2022-11-08 12:08:44 +01:00
Asger F
44e94f6615
JS: Change note
2022-11-08 11:51:26 +01:00
Paolo Tranquilli
9731048836
Swift: remove an assert from swift headers
...
An interesting byproduct was finding a problematic `assert` in the
Swift headers. An incomplete `FallthroughStmt` was asserting on having
a destination. I did not find any other sensible way of getting rid of
the crash when running in debug mode than to patch the header.
2022-11-08 11:47:12 +01:00
Paolo Tranquilli
fda9d19a97
Swift: replace undefined labels with UnspecifiedElement
2022-11-08 11:47:12 +01:00
Paolo Tranquilli
8d3e6ff8a7
Swift: add label iteration
2022-11-08 11:47:12 +01:00
Paolo Tranquilli
450a4a04af
Swift: add incomplete ast test
...
The test was inspired by locally running the query against files in
https://github.com/apple/swift/tree/main/test/Parse
A query for missing elements was also added to the AST tests, expecting
nothing to be found.
2022-11-08 11:46:07 +01:00
Asger F
fef922e417
JS: Bump extractor version string
2022-11-08 11:44:40 +01:00
Paolo Tranquilli
d6fb6bf036
Swift: customize UnspecifiedElement
2022-11-08 11:40:27 +01:00
Paolo Tranquilli
e17bc6c581
Swift: add UnspecifiedElement
2022-11-08 11:40:27 +01:00
Asger F
92e8f059c8
JS: Avoid emitting column zero in yaml files
2022-11-08 11:38:26 +01:00
Tony Torralba
4411852e59
Add BitwiseOperation.qll
2022-11-08 11:33:10 +01:00
Paolo Tranquilli
2aa528852e
Swift: add possibility to specify null class
2022-11-08 11:27:14 +01:00
Nora Dimitrijević
7585541514
Merge branch 'main' into swift/js-injection
2022-11-08 11:25:54 +01:00
Nora Dimitrijević
d37ed02e79
Swift: basic Data-related taint flow in query
...
Still TODO: a more comprehensive taint flow model for Data in the libs.
2022-11-08 11:24:53 +01:00
Nora Dimitrijević
66291d3575
Swift: sync tests pass with additional flow steps
...
TODO: Convert those flow steps to taint flow models in the library.
2022-11-08 11:09:55 +01:00
Tom Hvitved
f0b9ca4bf9
Ruby: Add more guards tests
2022-11-08 11:09:54 +01:00
Asger F
a75c50620c
Ruby: update more SSA test output
2022-11-08 11:03:24 +01:00
Jeroen Ketema
e00585ca24
Merge pull request #11154 from jketema/dataflow-test-fix
...
C++: Fix wrong return types and missing statement in dataflow test
2022-11-08 10:55:09 +01:00
Tom Hvitved
37a69b4569
Ruby: Avoid stage recomputation
2022-11-08 10:51:30 +01:00
Karim Ali
c794fef9cb
update qhelp with more details about the use of constant passwords
2022-11-08 11:26:52 +02:00
AlexDenisov
d1848194eb
Merge pull request #11152 from github/redsun82/swift-bitwise-test
...
Swift: add bitwise ops to `PrintAst` test
2022-11-08 10:25:48 +01:00
Tamás Vajk
38abd389eb
Merge pull request #11045 from tamasvajk/kotlin-confusing-default
...
Kotlin: Excluded compiler generated methods from `java/confusing-method-signature`
2022-11-08 10:25:36 +01:00
Karim Ali
b1679df3d2
tighten check against the "iv" argument only
2022-11-08 11:22:18 +02:00
Karim Ali
b077fc5e91
add more details in qhelp about the use of hardcoded/constant IVs
2022-11-08 11:19:41 +02:00
Jeroen Ketema
0d4a2239fc
C++: Fix wrong return types and missing statement in dataflow test
2022-11-08 09:55:10 +01:00
Paolo Tranquilli
072edad0fd
Swift: accept new test changes
2022-11-08 09:30:25 +01:00
Erik Krogh Kristensen
c82410fd16
Merge pull request #10680 from erik-krogh/unsafeRbCmd
...
RB: add an unsafe-shell-command-construction query
2022-11-08 09:22:33 +01:00
Tom Hvitved
7ba0682297
Ruby: Split basic blocks around constant conditionals
2022-11-08 09:07:23 +01:00
Tom Hvitved
c86f597153
Ruby: Add test for disjunctive guard
2022-11-08 09:01:22 +01:00
Paolo Tranquilli
21adcca065
Swift: add bitwise ops to PrintAst test
2022-11-08 08:53:36 +01:00
Harry Maclean
8c8f1418d5
Merge pull request #11150 from hmac/try-fixup
...
Ruby: Cosmetic change
2022-11-08 12:19:47 +13:00
Harry Maclean
03aa8df8e2
Ruby: Cosmetic change
2022-11-08 10:24:21 +13:00
Harry Maclean
d392cdaab6
Merge pull request #11022 from hmac/try-code-injection
...
Ruby: try/try! as code execution
2022-11-08 09:42:52 +13:00
Tony Torralba
ef967b6a21
Merge pull request #10890 from atorralba/atorralba/android-startactivities-summaries
...
Java: Add flow summaries for startActivities
2022-11-07 18:06:30 +01:00
Nora Dimitrijević
7c515bbef7
Swift: _ as in _ = ... is a CFG leaf node.
...
This enables DataFlow to skip over it and not get stuck.
2022-11-07 18:02:06 +01:00
Mathias Vorreiter Pedersen
b305e15e11
Merge pull request #11147 from jketema/fix-dataflow-dataflow-tests
...
C++: Fix the use-use dataflow configuration in `dataflow/dataflow-tests`
2022-11-07 16:54:18 +00:00
Geoffrey White
d72ea52f68
C++: More accurate test tags.
2022-11-07 16:32:46 +00:00
Geoffrey White
55a7adff20
C++: Make the message clearer.
2022-11-07 16:32:45 +00:00
Geoffrey White
b911556896
C++: Add a test showing the motivation.
2022-11-07 16:17:32 +00:00
Alexander Eyers-Taylor
c6c4a7b14f
Merge pull request #11068 from alexet/alexet/qlspec-instanceof
...
QL Spec: Add instanceof in classes
2022-11-07 16:15:09 +00:00
Felicity Chapman
cfb0ff2618
Merge pull request #11145 from github/felicitymay-ruby-docs-updates
...
Ruby: add a couple of missing links to a new article
2022-11-07 16:09:48 +00:00
Jeroen Ketema
89c5e3df1f
C++: Fix the dataflow configuration in dataflow/dataflow-tests
2022-11-07 16:43:55 +01:00
Mauro Baluda
8b33e6d175
Improved Hapi support
...
- server defined by Glue
2022-11-07 16:29:44 +01:00
Erik Krogh Kristensen
3f871a08e2
apply suggestions from doc review
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2022-11-07 16:29:10 +01:00
Felicity Chapman
418a245ea9
Add missing link to Ruby guide
2022-11-07 15:28:14 +00:00
Felicity Chapman
f20bfacc5a
Add missing link to general articles
2022-11-07 15:27:14 +00:00
Arthur Baars
0b3d55e6ab
Merge pull request #11140 from github/codeql-cli-2.11.2
...
Merge documentation changes of 2.11.2 into 2.11.3
2022-11-07 16:07:20 +01:00
Tamás Vajk
ed305d2699
Merge pull request #11032 from tamasvajk/kotlin-unused-for-loop-var
...
Kotlin: exclude loop variables on ranges from 'unused locals' check
2022-11-07 15:44:10 +01:00
Karim Ali
5766ff21d0
Merge pull request #10993 from karimhamdanali/swift-pbe-constant-salts
...
Swift: detect the use of constant salts
2022-11-07 16:22:41 +02:00
Asger F
a887ff4f09
JS: Add test cases to include results with column-zero end locations
2022-11-07 15:13:25 +01:00
Jeroen Ketema
5732c3bca0
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-11-07 15:03:26 +01:00
Stephan Brandauer
577f1a588b
Merge pull request #11143 from github/codeql-ci/atm/release-0.4.0
...
JS: Bump version numbers of ML-powered packs after 0.4.0 release
2022-11-07 15:03:24 +01:00
erik-krogh
7a8e7150f0
add change-note
2022-11-07 14:36:55 +01:00
erik-krogh
f2d980b132
update ruby build to include the regex pack (depend on #10668 )
2022-11-07 14:36:53 +01:00
erik-krogh
860c3c443c
update expected output of the queries (some sorting changed due to locations being used slightly differently in the shared pack)
2022-11-07 14:34:20 +01:00
erik-krogh
40e4359173
port the Ruby regex/redos queries to use the shared pack
2022-11-07 14:34:18 +01:00
erik-krogh
3432e814c5
add a Ruby implementation of RegexTreeViewSig
2022-11-07 14:33:46 +01:00
erik-krogh
af922702c7
move existing regex-tree into a module
2022-11-07 14:33:46 +01:00
erik-krogh
dddf550593
add codeql/regex as a dependency
2022-11-07 14:33:45 +01:00
erik-krogh
c89016b181
use instead of a fixed version number
2022-11-07 14:32:20 +01:00
erik-krogh
c733648dc6
add change-note
2022-11-07 14:31:53 +01:00
erik-krogh
618438642a
update expected output of the queries (some sorting changed due to locations being used slightly differently in the shared pack)
2022-11-07 14:31:52 +01:00
erik-krogh
4f11e2d25f
port the Python regex/redos queries to use the shared pack
2022-11-07 14:31:51 +01:00
erik-krogh
05605480ae
drive-by simplification of the python regex-tree
2022-11-07 14:31:27 +01:00
erik-krogh
1aeaefca7f
add a Python implementation of RegexTreeViewSig
2022-11-07 14:31:27 +01:00
erik-krogh
5fbcbbc584
move existing regex-tree into a module
2022-11-07 14:31:27 +01:00
erik-krogh
2b139924cd
add codeql/regex as a dependency
2022-11-07 14:31:27 +01:00
erik-krogh
f5daee2483
port canonicalization fix from #11071 to the shared pack
2022-11-07 14:26:55 +01:00
erik-krogh
09275a56c1
remove files from identical files that soon won't be identical
2022-11-07 14:22:46 +01:00
erik-krogh
5ec22bc180
add a shared regex pack
2022-11-07 14:22:46 +01:00
JarLob
d865f2ecf5
Remove import
2022-11-07 14:19:24 +01:00
Asger F
edc5d8d644
Ruby: update test output
2022-11-07 14:17:50 +01:00
Geoffrey White
645906a7d7
Merge branch 'main' into tuples
2022-11-07 13:17:12 +00:00
Asger F
a213e9e55d
Merge pull request #1 from hvitved/rb/data-flow-layer-capture2
...
Ruby: Make sure to always generate SSA definitions for namespace self-variables
2022-11-07 14:12:48 +01:00
Erik Krogh Kristensen
d67235b3c1
Merge pull request #11071 from erik-krogh/fixCanon
...
ReDoS: fix canonicalization in NfaUtils
2022-11-07 14:10:50 +01:00
github-actions[bot]
69df9f9daa
JS: Bump version of ML-powered library and query packs to 0.4.1
2022-11-07 13:06:46 +00:00
Asger F
f991991474
Ruby: fix incomplete renaming of getCanonicalEnclosing/Nested module
2022-11-07 14:04:10 +01:00
Arthur Baars
4d50543d70
Merge pull request #11141 from aibaars/docs-update
...
Ruby: expand explanation of desugaring
2022-11-07 14:03:07 +01:00
Tom Hvitved
2737255705
Ruby: Make sure to always generate SSA definitions for namespace self-variables
2022-11-07 14:02:09 +01:00
Asger F
a39cefe40f
Ruby: fix broken test
2022-11-07 14:01:11 +01:00
github-actions[bot]
82277d8f56
JS: Bump minor version of ML-powered library and query packs
2022-11-07 13:00:28 +00:00
github-actions[bot]
268a990aa6
JS: Bump version of ML-powered model pack to 0.3.1
2022-11-07 13:00:28 +00:00
github-actions[bot]
a1e0bf022e
ATM: Update model pack dependency of ML-powered model building and query packs
2022-11-07 13:00:27 +00:00
github-actions[bot]
be808deb59
JS: Bump minor version of ML-powered model pack
2022-11-07 12:59:44 +00:00
JarLob
e122f94c1c
Move to isBooleanConstant
2022-11-07 13:38:05 +01:00
Arthur Baars
33b1c8471c
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-07 13:35:58 +01:00
Chris Smowton
eb365c1d24
Merge pull request #11079 from smowton/smowton/test/test-java-extractor-vs-captured-type-variables
...
Java: Add test for multiply-bounded wildcards
2022-11-07 12:31:19 +00:00
Arthur Baars
aad3e06027
Apply suggestions from code review
...
Co-authored-by: Nick Rolfe <nickrolfe@github.com >
2022-11-07 13:08:57 +01:00
JarLob
74ee101592
Extend Constant Condition query with String.IsNullOrEmpty.
2022-11-07 13:05:37 +01:00
Arthur Baars
6a0a81b3be
Ruby: expand explanation of desugaring
2022-11-07 12:57:01 +01:00
Tamás Vajk
830be92f1d
Merge pull request #11089 from tamasvajk/kotlin-enum-ctor-call
...
Kotlin: Extract missing arguments of enum constructor calls
2022-11-07 12:55:27 +01:00
AlexDenisov
f8e80f96ff
Merge pull request #11124 from github/redsun82/swift-await
...
Swift: extract `AwaitExpr`
2022-11-07 12:52:42 +01:00
Karim Ali
53055bc8b6
add another reference to RFC 2898
2022-11-07 13:44:25 +02:00
Karim Ali
2a22c69a64
remove unused variable from test + updated expected output
2022-11-07 13:31:55 +02:00
Karim Ali
1756feae71
address docs review
2022-11-07 13:20:02 +02:00
Arthur Baars
9d55cd7658
Merge pull request #11139 from aibaars/docs-update
...
Ruby: docs add missing entry
2022-11-07 12:10:23 +01:00
Paolo Tranquilli
b30a6d36b5
Swift: extract AwaitExpr
2022-11-07 12:08:51 +01:00
Paolo Tranquilli
b94066acd8
Merge pull request #11094 from github/redsun82/swift-translators
...
Swift: refactor visitors to use translations
2022-11-07 12:01:44 +01:00
Arthur Baars
63dc0445a8
Ruby: docs add missing entry
2022-11-07 11:54:37 +01:00
Arthur Baars
16c3da3a27
Merge pull request #11056 from alexrford/ruby/ast-ref-table-docs
...
Ruby: add an AST reference guide
2022-11-07 11:48:37 +01:00
Geoffrey White
7b62bed9db
Merge pull request #10947 from karimhamdanali/swift-pbe-iterations
...
Swift: detect hash functions with low # of iterations
2022-11-07 10:38:29 +00:00
Chris Smowton
e877967a62
Add test verifying no malformed wildcards result from captured type variables with a Collection<? extends ...> type
2022-11-07 10:29:04 +00:00
Chris Smowton
d999c1d3dd
Java: Add test for multiply-bounded wildcards
...
This exercises several cases of variables bounded both by a wildcard and by a bound on the type parameter, checking that the extractor strips the wildcards and captures to decide on a concrete type for the parameters and return values.
2022-11-07 10:29:04 +00:00
Asger F
334d5b1b17
Ruby: fix stale qldoc
2022-11-07 11:23:40 +01:00
Chris Smowton
1cd30847f6
Merge pull request #11121 from smowton/smowton/fix/java-wildcard-extraction
...
Kotlin: fix extraction of Java nested wildcards; wildcards in return types
2022-11-07 10:23:02 +00:00
Asger F
27e1a8bd7a
Ruby: cache predicates related to getConst
2022-11-07 11:18:29 +01:00
Chris Smowton
68face8d46
Merge pull request #11130 from smowton/smowton/fix/kotlin-always-extract-file-labels
...
Kotlin: always populate the `files` table
2022-11-07 10:14:41 +00:00
Jeroen Ketema
d62e3f6bc2
Merge pull request #11137 from jketema/dataflow-test-fixes
...
C++: Small fixes for the dataflow tests
2022-11-07 11:07:09 +01:00
Anders Schack-Mulligen
99ca28ea9b
Merge pull request #10886 from aschackmull/dataflow/joinorders
...
Dataflow: Fix a couple of join-orders.
2022-11-07 11:05:29 +01:00
Chris Smowton
587aa93f6d
Merge pull request #11105 from smowton/smowton/fix/use-defaults-method-to-implement-jvmoverloads
...
Kotlin: use `$default` functions to implement `@JvmOverloads`
2022-11-07 09:54:16 +00:00
Tamas Vajk
4e8d8a4de1
Add compilerGeneratedReason for enum constructor call arguments
2022-11-07 10:07:05 +01:00
Tamas Vajk
7d927a7396
Adjust enum constructor argument extraction based on review
2022-11-07 10:07:05 +01:00
Tamas Vajk
fb5b344427
Fix failing build on early kotlin versions
2022-11-07 10:07:05 +01:00
Tamas Vajk
44e70afa85
Kotlin: Extract missing arguments of enum constructor calls
2022-11-07 10:07:04 +01:00
Asger F
d4b018f242
Ruby: typo: found up -> looked up
2022-11-07 09:58:00 +01:00
erik-krogh
fc38bf0429
Merge branch 'main' into aliasFlow
2022-11-07 09:46:48 +01:00
Jeroen Ketema
291027ad82
C++: Fix return type in dataflow test
2022-11-07 09:42:54 +01:00
Jeroen Ketema
3b1feeef6d
C++: Remove unneeded isAdditionalFlowStep from dataflow test
...
Since the introduction of flow through global variables these additional
steps are no longer needed.
2022-11-07 09:40:57 +01:00
Asger F
25f0382fce
Ruby: replace asMethod with asCallableAstNode
2022-11-07 09:38:48 +01:00
Asger F
af5a378572
Ruby: fix typo in qldoc
2022-11-07 09:20:35 +01:00
Asger F
9a38e31baa
Ruby: add explicit 'this'
2022-11-07 09:20:28 +01:00
Asger F
ff20908bbd
Ruby: Assignment -> AssignExpr
2022-11-07 09:20:16 +01:00
erik-krogh
40032f295a
treat arrays that gets executed with shell:true as a sink for js/shell-command-constructed-from-input
2022-11-07 09:19:05 +01:00
Asger F
25dd8db423
Ruby: Refactor out getAnElementWriteCall
2022-11-07 09:18:18 +01:00
Asger F
5fa49b3319
Ruby: asExpr() -> getExprNode()
2022-11-07 09:18:00 +01:00
Asger F
8b85744d3e
Ruby: use lambdaCreation and handle "proc" in there
2022-11-07 09:14:55 +01:00
erik-krogh
bc5b7455cf
add failing test
2022-11-07 09:14:52 +01:00
Dave Bartolomeo
b8e1aa67d8
Merge pull request #11134 from github/post-release-prep/codeql-cli-2.11.3
...
Post-release preparation for codeql-cli-2.11.3
2022-11-05 13:54:49 -04:00
github-actions[bot]
fca754bddd
Post-release preparation for codeql-cli-2.11.3
2022-11-05 14:30:48 +00:00
Dave Bartolomeo
8344d5a376
Merge pull request #11133 from github/release-prep/2.11.3
...
Release preparation for version 2.11.3
2022-11-04 22:50:41 -04:00
Mathias Vorreiter Pedersen
60ac031db4
Merge pull request #11036 from geoffw0/simplify3
2022-11-05 00:31:05 +00:00
Dave Bartolomeo
013b7eff1c
Apply suggestions from code review
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-11-04 18:46:32 -04:00
github-actions[bot]
508327235a
Release preparation for version 2.11.3
2022-11-04 20:16:23 +00:00
Tiferet Gazit
5198ad7612
Merge pull request #11055 from github/tiferet/sink-classification-reasons
...
Sink endpoint characteristics
2022-11-04 11:24:08 -07:00
Henry Mercer
b32f4b844a
Merge pull request #11118 from github/henrymercer/atm-check-queries-improvements
...
ATM: Miscellaneous improvements for the check queries workflow
2022-11-04 18:04:32 +00:00
Arthur Baars
9992ecc317
Merge branch 'codeql-cli-2.11.2' into ruby/ast-ref-table-docs
2022-11-04 17:59:35 +01:00
Calum Grant
e9e94dcb0f
Merge pull request #10932 from github/nickrolfe/ruby-dataflow-docs
...
Ruby: data flow docs
2022-11-04 16:47:00 +00:00
tiferet
833041c62e
Fix QLDoc style errors
2022-11-04 09:30:31 -07:00
tiferet
2aa4651534
Remove predicates not yet used from the current PR
2022-11-04 09:30:31 -07:00
tiferet
74c8bfff4f
Minor changes from code review
2022-11-04 09:30:31 -07:00
tiferet
e60c016fc6
Format fixes
2022-11-04 09:30:31 -07:00
tiferet
cbf81b8839
Improve the import structure
2022-11-04 09:30:31 -07:00
tiferet
300456cd3e
Enforce the abstraction over characteristics:
...
Make the implementations of specific `EndpointCharacteristic`s private.
2022-11-04 09:30:31 -07:00
tiferet
c0cc754fb5
Rename ClassificationReasons
...
Change the name to EndpointCharacteristics.
2022-11-04 09:30:30 -07:00
tiferet
a4939b91e7
Generalize the definition of a known sink:
...
If the list of reasons includes positive indicators with maximal confidence for this class, it's a known sink for the class.
This negates the need for each query config to define the isKnownSink predicate individually.
2022-11-04 09:30:29 -07:00
tiferet
08bbe596a2
Create the sink ClassificationReasons
...
Write the reasons that indicate that an endpoint is a sink for each sink type.
Also fix import error.
2022-11-04 09:30:29 -07:00
erik-krogh
d7f1491f41
fix non-attached annotations for newtype branches
2022-11-04 17:19:42 +01:00
Dave Bartolomeo
649c3af98a
Merge pull request #11127 from github/henrymercer/fix-atm-pr-checks
...
ATM: Fix CodeQL pack workspace references
2022-11-04 12:19:42 -04:00
Alex Ford
53e83ff048
Ruby: AST ref docs - add futher reading section
2022-11-04 16:01:31 +00:00
Alex Ford
13aad99194
Ruby: AST ref docs - add Calls section intro
2022-11-04 16:01:31 +00:00
Alex Ford
a77fc96067
Ruby: AST ref docs - note about desugaring and synthesized AstNodes
2022-11-04 16:01:31 +00:00
Alex Ford
530b29ccdf
Ruby: AST ref docs - note AssignExpr
2022-11-04 16:01:31 +00:00
Alex Ford
9cf3284371
Ruby: AST ref docs - add a missing space
2022-11-04 16:01:31 +00:00
Mathias Vorreiter Pedersen
bd549e527c
Merge pull request #11128 from jketema/dont-use-old
...
C++: Do not use the old dataflow library in `additional-flow-to-parameter`
2022-11-04 15:59:52 +00:00
Arthur Baars
5aee96d907
Merge branch 'codeql-cli-2.11.2' into ruby/ast-ref-table-docs
2022-11-04 16:39:29 +01:00
Arthur Baars
a11de9b145
Merge branch 'codeql-cli-2.11.2' into nickrolfe/ruby-dataflow-docs
2022-11-04 16:38:19 +01:00
Arthur Baars
20bebba1ff
Merge pull request #10957 from aibaars/doc-api-graph
...
Ruby: document API graphs
2022-11-04 16:36:38 +01:00
Arthur Baars
58c0e65542
Merge pull request #11129 from aibaars/improve-weak-crypto
...
Ruby: Improve weak crypto query
2022-11-04 16:31:55 +01:00
alexet
c07db098a7
QLSpec: Adress comments from review
2022-11-04 15:27:21 +00:00
Arthur Baars
610bbeee97
Update docs/codeql/codeql-language-guides/using-api-graphs-in-ruby.rst
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-11-04 16:21:57 +01:00
Chris Smowton
8fd4041511
Kotlin: always populate the files table
...
Previously individual top-level file declarations relied on their corresponding file-class to declare their `File` instance, but this can be scuppered by a Java extractor replacing that file-class and identifying a different file location.
2022-11-04 15:00:27 +00:00
Arthur Baars
98f4c29913
Ruby: weak crypto: do not report weak hash algorithms
...
Weak hash algorithms such as MD5 and SHA1 are often
used in non security sensitive contexts and reporting
all uses is far too noisy.
2022-11-04 15:58:50 +01:00
Erik Krogh Kristensen
418d632738
Merge pull request #11123 from erik-krogh/stableCI-followup-2
...
fix typo in compile-queries workflow
2022-11-04 15:48:27 +01:00
Jeroen Ketema
fc2013334f
C++: Do not use the old dataflow library in additional-flow-to-parameter
...
Either both queries here should use the old library or neither should. The
expectation is that the expected results between the queries differ depending
on the additional flow step in one of them.
2022-11-04 15:46:36 +01:00
AlexDenisov
c7da814bca
Merge pull request #11122 from github/alexdenisov/make-macos-sed-happy
...
Swift: make sed on macos happy
2022-11-04 15:45:06 +01:00
Paolo Tranquilli
0370d1a1ba
Merge pull request #11008 from github/redsun82/swift-macos-integration-tests
...
Swift: rework workflows
2022-11-04 15:44:42 +01:00
Alex Ford
d218572c72
Ruby: Apply review suggestions for AST reference guide
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-04 14:42:33 +00:00
Tom Hvitved
05bf86acb6
Merge pull request #11126 from hvitved/cpp/position-overrides
...
C++: Let `(Indirect|Direct)Position` be sub classes of `Position`
2022-11-04 15:35:27 +01:00
AlexDenisov
0260ecfbdb
Merge branch 'main' into alexdenisov/make-macos-sed-happy
2022-11-04 15:17:08 +01:00
Henry Mercer
0b9588bf9e
ATM: Add test pack to workspace
2022-11-04 14:07:14 +00:00
Henry Mercer
3e863a539a
ATM: Fix CodeQL pack workspace references
...
This fixes the
[ATM PR checks](https://github.com/github/codeql/actions/runs/3392995797/jobs/5639827326 )
breaking on main as a result of
https://github.com/github/codeql/pull/11004 .
2022-11-04 14:03:34 +00:00
Tom Hvitved
95835b8297
C++: Let (Indirect|Direct)Position be sub classes of Position
2022-11-04 14:31:18 +01:00
erik-krogh
def9b5e2ce
fix typo in compile-queries workflow
2022-11-04 13:58:29 +01:00
Erik Krogh Kristensen
265838aa2c
Merge pull request #11117 from erik-krogh/stableCI-followup
...
fix merge-base compilation when running directly on main
2022-11-04 13:56:41 +01:00
Arthur Baars
fadc278485
Merge branch 'codeql-cli-2.11.2' into nickrolfe/ruby-dataflow-docs
2022-11-04 13:05:26 +01:00
AlexDenisov
476bbfbdb7
Update qltest.sh
2022-11-04 13:04:24 +01:00
Henry Mercer
cbbff0c401
ATM: Rename workflow
...
Rename to take into account us now checking the results of the query
suite too.
2022-11-04 11:51:35 +00:00
Henry Mercer
87f7b65052
ATM: Check the results of the queries too
2022-11-04 11:51:35 +00:00
Erik Krogh Kristensen
91b33f72b5
update name and comment to reflect that it also runs on rc branches
2022-11-04 12:50:18 +01:00
Anders Schack-Mulligen
a1dba82360
Dataflow: Sync.
2022-11-04 12:41:55 +01:00
Anders Schack-Mulligen
828d187198
Dataflow: Fix a couple of join-orders.
2022-11-04 12:41:55 +01:00
Tamás Vajk
545dd8b8d8
Merge pull request #11106 from tamasvajk/kotlin-binop-ext
...
Kotlin: Extract extension binary operators
2022-11-04 12:41:06 +01:00
Chris Smowton
ca04779dfc
Kotlin: fix extraction of Java nested wildcards; wildcards in return types
...
This fixes two mistakes: return-type extraction not imposing a wildcard where a Java prototype explicitly uses one, and nested wildcard detection quietly failing due to not looking through a `JavaWildcardType` correctly.
I add a variant of the `kotlin_java_lowering_wildcards` test where Java prototypes are only seen from Kotlin, to be sure extraction is working as expected.
2022-11-04 11:39:26 +00:00
Henry Mercer
fe27e09a07
ATM: Add codeowners entry for new workflow
2022-11-04 10:57:00 +00:00
Henry Mercer
05dd161d76
ATM: Use database analyze to check results interpretation too
2022-11-04 10:54:08 +00:00
Henry Mercer
7976d746b6
ATM: Simplify DB path definition and improve quoting
2022-11-04 10:49:25 +00:00
Henry Mercer
35a4d31519
ATM: Fix naming of query pack
2022-11-04 10:46:06 +00:00
Henry Mercer
f558e858e7
ATM: Install codeql using new input to fetch-codeql Action
2022-11-04 10:44:14 +00:00
Paolo Tranquilli
2bec4479e7
Merge pull request #11029 from github/redsun82/swift-filtered-debugging
...
Swift: add possibility to run the extractor under an env-specified tool
2022-11-04 11:44:11 +01:00
Mathias Vorreiter Pedersen
b95163cfe4
Merge pull request #11112 from MathiasVP/local-expr-flow
...
C++: Improve `Buffer.qll` performance
2022-11-04 10:32:27 +00:00
erik-krogh
47289a4d33
fix merge-base compilation when running directly on main
2022-11-04 11:28:56 +01:00
Erik Krogh Kristensen
ec87a932b8
Merge pull request #11078 from erik-krogh/stableCI
...
add workflow that checks compilation of all queries with the latest stable release
2022-11-04 11:21:23 +01:00
Michael Nebel
d580722164
C#: Modify unsupported external library meta query to use call instead of dispatchcall.
2022-11-04 11:20:33 +01:00
Michael Nebel
187ece610b
C#: Only evaluate api name and namespace strings if they are needed.
2022-11-04 11:20:33 +01:00
Michael Nebel
366b94addc
C#: Implement override for getAPrimaryQlClass for AnonymousClass.
2022-11-04 11:20:33 +01:00
Michael Nebel
e0d7e277fb
C#: Align counting with Java and only count calls and not all possible dispatch calls.
2022-11-04 11:20:33 +01:00
Michael Nebel
be1129e782
C#: Only consider effectively public methods.
2022-11-04 11:20:33 +01:00
Michael Nebel
fec4d1992d
C#: Update telemetry expected output.
2022-11-04 11:20:33 +01:00
Michael Nebel
f0b5058760
C#: Remove filename from telemetry output.
2022-11-04 11:20:33 +01:00
Erik Krogh Kristensen
c82d8cbacc
Merge pull request #11013 from erik-krogh/sndCmd
...
JS: second-order-command-injection
2022-11-04 10:58:50 +01:00
Paolo Tranquilli
daa4e99a2f
Swift: fix executable permissions
...
These were broken by a merge done in the github UI.
2022-11-04 10:47:47 +01:00
Geoffrey White
3c07ff592a
Swift: Fix result expectations.
2022-11-04 09:44:48 +00:00
Paolo Tranquilli
fdde84ac35
Merge branch 'main' into redsun82/swift-filtered-debugging
2022-11-04 10:42:48 +01:00
Paolo Tranquilli
858ae3dab4
Merge pull request #11116 from github/redsun82/swift-expect-failure-in-qltest
...
Swift: allow expecting failure in qltest.sh
2022-11-04 10:40:41 +01:00
Geoffrey White
20147e87b2
Swift: Correct var names.
2022-11-04 09:38:12 +00:00
Mathias Vorreiter Pedersen
2617e6d7c6
C++: Inline a predicate that was only used once.
2022-11-04 09:35:34 +00:00
Tom Hvitved
2f8dcdd602
Merge pull request #10933 from hvitved/csharp/fix-flow-into-phis
...
C#: Fix flow steps into phi/uncertain def nodes
2022-11-04 10:28:09 +01:00
Tom Hvitved
587e6739d9
Merge pull request #11060 from hvitved/dataflow/path-node-reach-charpred
...
Data flow: Restrict public `PathNode`s to those that may reach a sink
2022-11-04 10:17:09 +01:00
Paolo Tranquilli
231f2238c1
Swift: fix wrong test names
2022-11-04 10:06:57 +01:00
Paolo Tranquilli
4cfe11c319
Swift: allow expecting failure in qltest.sh
2022-11-04 10:03:00 +01:00
Anders Schack-Mulligen
331b8c0144
Merge pull request #10904 from aschackmull/java/joinorders
...
Java: Fix some join-orders.
2022-11-04 09:24:31 +01:00
Asger F
4ae90e35d5
Ruby: inline transitive class-hierarchy getters
2022-11-04 08:50:33 +01:00
Asger F
472a10fd54
Ruby: direct -> immediate
2022-11-04 08:49:01 +01:00
Michael Nebel
3c8fb0520e
C#: Sync files.
2022-11-04 08:20:53 +01:00
Michael Nebel
cee06140e2
C#: Deprecate ModelCsv classes.
2022-11-04 08:20:53 +01:00
Michael Nebel
990a898cc7
C#: Remove the Csv name where appropriate.
2022-11-04 08:20:53 +01:00
Michael Nebel
d11bca0cdc
C#: Migrate unit tests to data extensions.
2022-11-04 08:20:53 +01:00
Michael Nebel
e432e6576a
C#: Add missing import of tainted member definition.
2022-11-04 08:20:53 +01:00
Michael Nebel
5acfc22442
C#: Bi-directional import of synthetic field declarations.
2022-11-04 08:20:53 +01:00
Michael Nebel
afb604ee5f
C#: Remove all generated models.
2022-11-04 08:20:53 +01:00
Michael Nebel
44e4cf6556
C#: Delete all the manually created models.
2022-11-04 08:20:53 +01:00
Michael Nebel
43af1e4b42
C#: Add generated models for .NET Runtime.
2022-11-04 08:20:52 +01:00
Michael Nebel
8fa6140a0d
C#: Add data extensions version of the model generator scripts.
2022-11-04 08:20:52 +01:00
Michael Nebel
f181d66003
C#: Add data extensions files for handwritten models.
2022-11-04 08:20:52 +01:00
Michael Nebel
7be79290e8
C#: Define extensible predicates.
2022-11-04 08:20:52 +01:00
Michael Nebel
eb27e8acc5
C#: Prepare ExternalFlow for converting model predicates into extensible predicates.
2022-11-04 08:20:52 +01:00
Michael Nebel
ac47b56566
C#: Update the library qlpack to pick up data extensions.
2022-11-04 08:20:47 +01:00
Michael Nebel
e6a8019c2b
C#: Add python script for generating YAML files containing data extensions.
2022-11-04 08:19:05 +01:00
Michael Nebel
4972839b69
C#: Add queries for extracting hand written MaD models.
2022-11-04 08:19:05 +01:00
Michael Nebel
2a0c3636c7
C#: Add small dummy project.
2022-11-04 08:19:05 +01:00
Michael Nebel
4b649e0bad
C#: Update flowsummaries test expected output.
2022-11-04 08:19:05 +01:00
Michael Nebel
3c02d614fa
C#: Re-generate the .NET Runtime models.
2022-11-04 08:19:05 +01:00
Paolo Tranquilli
3a8efb3db1
Swift: make visit arguments pointers again
2022-11-04 06:06:05 +01:00
Mathias Vorreiter Pedersen
84af725ef1
Fix QLDoc.
2022-11-03 20:33:41 +00:00
Mathias Vorreiter Pedersen
b42e81c32d
C++: Speed up 'Buffer.qll'.
2022-11-03 20:31:55 +00:00
Mathias Vorreiter Pedersen
ae01201c43
Merge pull request #11109 from jketema/fix-field-dataflow-tests
...
C++: Fix the IR dataflow configuration for the field flow tests
2022-11-03 19:19:30 +00:00
Geoffrey White
d69d289020
Swift: remove getArgumentByParamName (for now).
2022-11-03 18:56:13 +00:00
Geoffrey White
86cbf1b82c
Swift: Add comments.
2022-11-03 18:45:43 +00:00
Jami Cogswell
910eebcf5d
update change note
2022-11-03 14:44:04 -04:00
Mathias Vorreiter Pedersen
1d1161771a
Merge pull request #11108 from jketema/indirect-arg-out-as-partial-def
...
C++: Turn `IndirectArgumentOutNode` into a `PartialDefinitionNode`
2022-11-03 17:57:12 +00:00
Paolo Tranquilli
e0eb820ef9
Swift: fix extraction of BuiltinIntegerLiteralType
2022-11-03 18:16:54 +01:00
Paolo Tranquilli
a1d798b817
Swift: make visit arguments references instead of pointers
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
cc9dafffde
Swift: encapsulate swift::ASTVisitor functionality
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
7c9fffc201
Swift: rename all visitors to translators
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
75f30a8f9c
Swift: refactor ExprVisitor to use translations
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
a6b1806e66
Swift: refactor TypeVisitor to use translations
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
c8cb30f76e
Swift: refactor StmtVisitor to use translations
...
Also make `visit` in `SwiftDispatcher` work on `const` pointers.
Also, fixed a bug where the guard of a `CaseLabelItem` was not being
extracted, hence the test updates.
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
faf10294ed
Swift: refactor PatternVisitor to use translations
2022-11-03 18:16:53 +01:00
Paolo Tranquilli
4702271102
Swift: add cfg.swift to AST tests
2022-11-03 18:16:53 +01:00
Jeroen Ketema
96425a1787
C++: Fix the IR dataflow configuration for the field flow tests
2022-11-03 18:06:37 +01:00
Jeroen Ketema
c87b516130
C++: Turn IndirectArgumentOutNode into a PartialDefinitionNode
2022-11-03 17:58:35 +01:00
Geoffrey White
24f0eeb6df
Swift: Better assigning to tuple values.
2022-11-03 15:52:01 +00:00
Geoffrey White
6dc51edb4c
Swift: Assigning to tuple values.
2022-11-03 15:51:58 +00:00
Geoffrey White
472ece45e7
Swift: Basic content flow through tuples.
2022-11-03 15:51:33 +00:00
Geoffrey White
a7ecdef2a6
Swift: Add dataflow tests for tuples.
2022-11-03 15:50:27 +00:00
Nora Dimitrijević
924f999aa8
Merge pull request #11104 from github/swift/webviewjoinorder
2022-11-03 16:44:17 +01:00
Erik Krogh Kristensen
1f51bd4594
add dash in description
...
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com >
2022-11-03 16:24:59 +01:00
Nora Dimitrijević
fdd7d76ffd
Swift: use FreeFunctionDecl/.has(Qualified)Name
...
Instead of hand-rolled predicates.
2022-11-03 16:14:43 +01:00
Tamas Vajk
16cb4c5aaa
Kotlin: Extract extension binary operators
2022-11-03 16:11:23 +01:00
Tamas Vajk
70561cabaf
Kotlin: Add test cases for extension binary operators
2022-11-03 16:10:32 +01:00
Tom Hvitved
1711efcc47
C#: Update expected test output
2022-11-03 15:52:30 +01:00
Tom Hvitved
a533c95640
C++: Update expected test output
2022-11-03 15:52:30 +01:00
Tom Hvitved
d3488da0c2
Data flow: Sync files
2022-11-03 15:52:30 +01:00
Tom Hvitved
cc87d2e38b
Data flow: Restrict public PathNodes to those that may reach a sink
2022-11-03 15:52:30 +01:00
Chris Smowton
1ea87020c4
Kotlin: use $default functions to implement @JvmOverloads
...
This avoids extracting the default value expression in more than one place, which causes inconsistencies for e.g. anonymous classes, which expect to have a single `new` expression associated.
2022-11-03 14:48:36 +00:00
Nora Dimitrijević
0e67100cad
Swift: fix bad join order in WebView/JsExportedSource
...
The `getName = getName` join was happening too early,
before the methods themselves have been enumerated.
2022-11-03 15:30:04 +01:00
Henry Mercer
12ab95668c
Merge pull request #11098 from github/henrymercer/summary-metrics-consistent-naming
...
Summary metrics: Improve consistency of naming
2022-11-03 14:05:23 +00:00
Henry Mercer
8060b30cce
Merge pull request #11099 from github/henrymercer/atm-labeler
...
Add ATM to labeler
2022-11-03 13:49:35 +00:00
Erik Krogh Kristensen
5918e0184c
quote $CHANNEL
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-11-03 14:17:44 +01:00
Mathias Vorreiter Pedersen
1ca7c5b97d
Merge pull request #11091 from JarLob/assign
...
Fix AV Rule 76
2022-11-03 13:06:10 +00:00
erik-krogh
96ec54e5be
fix minor issues in qhelp
2022-11-03 14:01:58 +01:00
erik-krogh
b5666888b1
rewrite @description of second-order-command-injection
2022-11-03 14:00:29 +01:00
erik-krogh
83a8b1afb8
use fetch-codeql action
2022-11-03 13:49:15 +01:00
Arthur Baars
6891b52216
Merge branch 'codeql-cli-2.11.2' into doc-api-graph
2022-11-03 13:29:03 +01:00
Arthur Baars
a42f3fdfbc
Merge pull request #10873 from aibaars/ruby-beta-notice
...
Ruby: drop beta notice
2022-11-03 13:28:01 +01:00
Henry Mercer
7ce4629b12
Add ATM to labeler
2022-11-03 11:55:19 +00:00
Henry Mercer
dd264c6dfb
Consistently mention language in metric names
...
This improves consistency between the lines of code queries and the
number of successfully extracted files queries.
2022-11-03 11:44:10 +00:00
Mathias Vorreiter Pedersen
ad0b36a0c9
C++: Add change note.
2022-11-03 11:41:38 +00:00
Henry Mercer
c60d071239
Lowercase "lines"
2022-11-03 11:40:22 +00:00
Tony Torralba
da67b1059c
Remove (now unnecessary) import
2022-11-03 12:38:45 +01:00
Arthur Baars
7c577ae1d1
Address review feedback
2022-11-03 12:37:50 +01:00
Mathias Vorreiter Pedersen
f4915073c8
Merge pull request #11097 from MathiasVP/accept-test-change
...
C++: Accept test change
2022-11-03 11:24:57 +00:00
Tony Torralba
3e1819f25d
Model XMLParser constructor init(contentsOf:)
2022-11-03 12:01:42 +01:00
Tony Torralba
fe138dc0a1
Add explicitly safe test cases
2022-11-03 12:01:42 +01:00
Tony Torralba
0c6957ea78
Adjust test expectations of a query affected by new summaries
2022-11-03 12:01:42 +01:00
Tony Torralba
f4047e016c
Address QL-for-QL alert
...
Use an alert message consistent with the other languages
2022-11-03 12:01:42 +01:00
Tony Torralba
dc6f60a501
Add new XXE query
...
Only XMLParser sinks for the time being
2022-11-03 12:01:42 +01:00
Tony Torralba
83caf01778
Merge pull request #11096 from atorralba/atorralba/swift/unit
...
Swift: Move the Unit class to its own file
2022-11-03 12:00:57 +01:00
Mathias Vorreiter Pedersen
5d5c64a58b
C++: Accept test change.
2022-11-03 10:27:07 +00:00
erik-krogh
3159b3d9a1
swift: fix unused variable
2022-11-03 11:20:15 +01:00
erik-krogh
f9195d194b
go: make sure the source/sink have the same type as the edges relation
2022-11-03 11:20:15 +01:00
erik-krogh
c9fcef2608
go: add a precision tag to go/examples/deferinloop
2022-11-03 11:20:15 +01:00
erik-krogh
1ec204987d
go: remove precision from metric queries
2022-11-03 11:20:15 +01:00
erik-krogh
fc811bd33d
add workflow that checks compilation of all queries with the latest stable release
2022-11-03 11:20:12 +01:00
Tony Torralba
978ed03e9c
Move the Unit class to its own file
2022-11-03 11:19:41 +01:00
Chris Smowton
44b0f1921f
Merge pull request #11090 from smowton/smowton/fix/value-parameter-label-external-class
...
Kotlin: drop same-file requirement for overridden parameter labels
2022-11-03 10:17:33 +00:00
Nora Dimitrijević
3d24e0a2eb
Swift: enable VSCode to build extractor via CMake
...
The `-arch=x86_64` from `swift/rules.bzl` turns out to be unnecessary,
even on Arm-based Macs.
2022-11-03 11:16:48 +01:00
Nora Dimitrijević
28b7f0884f
Swift: UnsafeJsEval test finally compiles
2022-11-03 11:16:48 +01:00
Nora Dimitrijević
7b599f5fef
Swift: Add async varant of WKWebView evaluateJavaScript(_:)
...
See concurrency note here: https://developer.apple.com/documentation/webkit/wkwebview/1415017-evaluatejavascript
See also https://developer.apple.com/documentation/swift/calling-objective-c-apis-asynchronously
2022-11-03 11:16:48 +01:00
Nora Dimitrijević
5c905c42b2
Swift: Initial UnsafeJsEval query
2022-11-03 11:16:48 +01:00
erik-krogh
655b4a4d17
recognize more re-exported values as exported
2022-11-03 11:08:00 +01:00
erik-krogh
94e864e933
add failing test
2022-11-03 11:04:04 +01:00
Asger F
0f1b3486de
Ruby: Use another join order for nested constant lookup
2022-11-03 10:47:39 +01:00
Mathias Vorreiter Pedersen
18802a2883
Merge pull request #11042 from MathiasVP/simplify-buffer.qll
...
C++: Simplify `buffer.qll` repair
2022-11-03 09:18:39 +00:00
Asger F
a195ea942e
Ruby: only drop to CFG layer for getConstantValue()
2022-11-03 10:18:31 +01:00
Asger F
8502939b65
Merge pull request #11081 from asgerf/ql/dependency-paths
...
QL4QL: Add DependencyPath.ql query
2022-11-03 10:17:45 +01:00
Asger F
cf4a3e0bbe
Ruby: 'a' -> 'an' in a qldoc
2022-11-03 10:13:39 +01:00
Asger F
fe8945b5c9
Ruby: Rename getCanonicalEnclosing/Nested module
...
getCanonicalEnclosingModule -> getParentModule
getCanonicalNestedModule -> getNestedModule
2022-11-03 10:10:47 +01:00
Mathias Vorreiter Pedersen
01f3150a70
Merge pull request #11092 from hvitved/swift/avoid-deprecated-ssa-predicates
...
Swift: Avoid calls to deprecated SSA predicates
2022-11-03 09:03:47 +00:00
Asger F
bd2a065562
Ruby: rename ConstantValue::getX -> fromX
2022-11-03 10:03:40 +01:00
Asger F
fbcdb53d72
QL: Add option to follow 'cached' dependencies
2022-11-03 09:43:56 +01:00
erik-krogh
f3741ff1e4
changes based on review
2022-11-03 09:41:05 +01:00
Paolo Tranquilli
7e0a7d8b71
Swift: fix third-party action commit
2022-11-03 09:20:58 +01:00
Paolo Tranquilli
73131cef9e
Merge branch 'main' into redsun82/swift-macos-integration-tests
2022-11-03 09:19:07 +01:00
Tom Hvitved
4e3fcc3235
Swift: Avoid calls to deprecated SSA predicates
2022-11-03 09:03:20 +01:00
Dave Bartolomeo
499f20f6e8
Merge pull request #11004 from dbartol/dbartol/use-workspace-versions
2022-11-02 20:02:48 -04:00
JarLob
3317223e19
Fix AV Rule 76
2022-11-02 22:50:25 +01:00
Tom Hvitved
46631d6eaf
Merge pull request #10931 from hvitved/ruby/fix-flow-into-phis
...
Ruby: Fix flow steps into phi nodes
2022-11-02 21:07:06 +01:00
Chris Smowton
8e240a2e84
Kotlin: drop same-file requirement for overridden parameter labels
2022-11-02 19:28:53 +00:00
Chris Smowton
8eee450c65
Merge pull request #11064 from smowton/smowton/fix/kotlin-inherited-defaults
...
Kotlin: handle default parameter values inherited from an overridden function
2022-11-02 18:13:14 +00:00
Dave Bartolomeo
15be488c53
Fix typo
2022-11-02 12:40:55 -04:00
Dave Bartolomeo
a475e5758d
Merge remote-tracking branch 'upstream/main' into dbartol/use-workspace-versions
2022-11-02 12:38:03 -04:00
Dave Bartolomeo
7cad4b7918
Revert changes to ATM, which isn't in the workspace
2022-11-02 12:37:30 -04:00
Tamas Vajk
e48dfcc5b1
Kotlin: exclude loop variables on ranges from 'unused locals' check
2022-11-02 17:34:59 +01:00
Dave Bartolomeo
966be2727e
Use correct bundle version for second init
2022-11-02 12:22:39 -04:00
Dave Bartolomeo
3507cdc796
Stop using latest for second init
2022-11-02 12:17:24 -04:00
Chris Smowton
197be69425
Merge pull request #11069 from smowton/smowton/fix/kotlin-vararg-constructor-defaults
...
Kotlin vararg constructors: don't call a default-parameter constructor just because there are no varargs
2022-11-02 16:08:45 +00:00
Alex Ford
3b015eef51
Merge pull request #11057 from alexrford/ruby/ast-doc-table-whitespace
...
Ruby: fix whitespace in basic query doc table
2022-11-02 15:43:06 +00:00
Dave Bartolomeo
906f2f5e0f
Add repo
2022-11-02 11:42:39 -04:00
Dave Bartolomeo
631b8fed30
Add token
2022-11-02 11:40:01 -04:00
Dave Bartolomeo
bb0b0801dd
Try again
2022-11-02 11:38:11 -04:00
Rasmus Lerchedahl Petersen
0a7cfad048
python: inline query tests for command injection
...
note how the test file is partially annotated
and those annotations can now be expressed
In this particular test file, absolute line numbers
might have been better than relative ones.
We might remove line numbers altogether,
but should check more querries to see how it looks.
2022-11-02 16:21:59 +01:00
Rasmus Lerchedahl Petersen
f486c44b00
python: library for inline query tests
...
similar to the consistency queires used in js
but based on the inline expectations framework
2022-11-02 16:18:36 +01:00
Dave Bartolomeo
5d288d321a
Use latest released bundle for QL-for-QL
2022-11-02 11:10:04 -04:00
Tamás Vajk
b59cb778ef
Merge pull request #11077 from tamasvajk/kotlin-code-quality
...
Kotlin: Remove code duplication
2022-11-02 16:00:55 +01:00
Asger F
bac573bbed
QL4QL: Add DependencyPath.ql query
2022-11-02 15:46:12 +01:00
Karim Ali
f6484e6e6b
cleanup old code comments
2022-11-02 16:21:51 +02:00
Karim Ali
27d2dc6d9e
update expected results
2022-11-02 16:13:50 +02:00
Karim Ali
eefda61445
add a query that checks for the use of static IVs
2022-11-02 16:09:00 +02:00
Ian Lynagh
c2339b1203
Merge pull request #11050 from igfoo/igfoo/compiler_arguments
...
Kotlin: Run compiler_arguments test on all platforms
2022-11-02 14:07:36 +00:00
Ian Lynagh
285ff54853
Merge pull request #11052 from igfoo/igfoo/default-parameter-mad-flow
...
Kotlin: Run default-parameter-mad-flow on all platforms
2022-11-02 14:07:27 +00:00
Ian Lynagh
60fe5d6428
Merge pull request #11054 from igfoo/igfoo/gradle_kotlinx_serialization
...
Kotlin: Reunite the parts of gradle_kotlinx_serialization
2022-11-02 14:07:10 +00:00
Chris Smowton
cad268476c
Accept test changes re: method source-locs
2022-11-02 14:00:14 +00:00
Chris Smowton
d704795d90
Use versioned all-overrides function
2022-11-02 13:57:53 +00:00
Chris Smowton
d700fddfdd
Kotlin: handle default parameter values inherited from an overridden function
2022-11-02 13:57:53 +00:00
Paolo Tranquilli
2c517a3237
Swift: fix codegen test invocation
2022-11-02 14:48:20 +01:00
Paolo Tranquilli
99764450b3
Swift: remove redundant test run
2022-11-02 14:44:33 +01:00
Paolo Tranquilli
bc65d358f2
Swift: fix wrongly exchanged action bodies
2022-11-02 14:43:57 +01:00
Paolo Tranquilli
6ce6d9dc37
Swift: fix quick tests action, again
2022-11-02 14:42:14 +01:00
Paolo Tranquilli
08909e5c69
Swift: fix quick tests action
2022-11-02 14:38:07 +01:00
Paolo Tranquilli
17012c1a45
Swift: fix workflow job dependencies
2022-11-02 14:35:23 +01:00
Paolo Tranquilli
e6d4685109
Swift: split quick tests in separate action
...
Also, make the quick test list explicit in the action code, so we can
catch an inadvertant test deletion.
2022-11-02 14:32:45 +01:00
Jean Helie
37869e816b
Merge pull request #11067 from github/jhelie/add-atm-model-integration-tests-hello-world
...
ATM: add hello world workflow for development of model integration te…
2022-11-02 14:20:51 +01:00
Tamas Vajk
1d3f4826a9
Fix failing internal checkß
2022-11-02 13:57:11 +01:00
erik-krogh
6bc12e8f2b
Merge branch 'main' into formatTaint
2022-11-02 13:39:30 +01:00
Alex Ford
727b5aebd1
Ruby: AST ref docs - add too toctree
2022-11-02 12:36:52 +00:00
Nick Rolfe
8786c700c2
Expand explanations of example global data-flow queries
2022-11-02 11:30:37 +00:00
Jean Helie
45320d91d1
Merge pull request #11065 from github/jhelie/add-check-to-run-atm-queries
...
ATM: add PR check running boosted queries
2022-11-02 12:28:40 +01:00
Chris Smowton
39520e54ea
Restore enum class exclusion from constructor default parameters
2022-11-02 11:28:13 +00:00
Paolo Tranquilli
3acd4486a3
Swift: add tests for RUN_UNDER support
...
While I would have preferred to add a proper unit test, this required
more infrastructure for mocking system calls. Instead I made `qltest.sh`
accept a `//codeql-extractor-env` header and used that to write a QL
test exercising the `RUN_UNDER` functionality.
2022-11-02 12:09:13 +01:00
Nick Rolfe
9998752147
Accept suggested wording improvements
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-02 10:53:21 +00:00
Tamas Vajk
145e2093f3
Kotlin: Remove code duplication
2022-11-02 11:46:33 +01:00
Tom Hvitved
1e3adcd14e
Revert "Revert "SSA: Turn consistency predicates into query predicates""
2022-11-02 11:37:37 +01:00
Tom Hvitved
f603d96f48
Merge pull request #11074 from github/revert-10576-ssa/consistency-queries
...
Revert "SSA: Turn consistency predicates into `query` predicates"
2022-11-02 11:29:42 +01:00
Tom Hvitved
f3e7d8778c
Merge pull request #11075 from hvitved/ruby/avoid-ssa-deprecated-predicates
...
Ruby: Avoid calls to deprecated SSA predicates
2022-11-02 11:29:22 +01:00
erik-krogh
33cca29a8e
drop down to the CFG instead of the AST to better support de-sugaring
2022-11-02 11:23:01 +01:00
Tom Hvitved
fa762d9952
C#: Fix flow steps into phi nodes
...
- Add missing flow from post-update nodes into phi nodes.
- Prevent flow from reads into phi nodes when use-use flow is prohibited.
2022-11-02 10:21:50 +01:00
Tom Hvitved
5b5dd07d60
C#: Add data flow test that illustrates issue with flow into phi nodes
2022-11-02 10:20:56 +01:00
Jean Helie
c4b750002e
Merge branch 'main' into jhelie/add-atm-model-integration-tests-hello-world
2022-11-02 10:09:56 +01:00
Jean Helie
e8549a413b
rename workflow
2022-11-02 10:09:06 +01:00
Tamas Vajk
a7cc8fced5
Adjust code based on review
2022-11-02 09:46:53 +01:00
Tamas Vajk
ec5ac17f87
Kotlin: Excluded compiler generated methods from java/confusing-method-signature
2022-11-02 09:40:31 +01:00
Tamas Vajk
556c199a89
Kotlin: Add test case for confusingly overloaded $default method
2022-11-02 09:40:31 +01:00
Tom Hvitved
2d5b9c12a6
Ruby: Avoid calls to deprecated SSA predicates
2022-11-02 09:37:28 +01:00
Tony Torralba
759ffc4743
Merge pull request #11027 from atorralba/atorralba/swift/webview-js-native-bridge-sources
...
Swift: WebView JS-native bridge sources
2022-11-02 09:32:57 +01:00
Tamás Vajk
79aba19dde
Merge pull request #10951 from tamasvajk/kotlin-fix-startoffset
...
Kotlin: Fix location (start position) of method calls
2022-11-02 09:20:32 +01:00
Tom Hvitved
780ea72b3b
Revert "SSA: Turn consistency predicates into query predicates"
2022-11-02 09:11:45 +01:00
Paolo Tranquilli
82998ce3a3
Merge branch 'main' into redsun82/swift-filtered-debugging
2022-11-02 06:39:16 +01:00
Paolo Tranquilli
57a616262f
Swift: fix run cwd
2022-11-02 06:27:09 +01:00
Paolo Tranquilli
0d9ecfc4de
Swift: move small bazel tests to build action
2022-11-02 06:23:44 +01:00
Paolo Tranquilli
6e370beb92
Swift: turn on macOS QL tests with slicing
2022-11-02 06:07:55 +01:00
Alex Ford
e6f91b91e0
Ruby: AST ref docs - initial draft
2022-11-01 23:48:23 +00:00
Geoffrey White
85e99feb49
Swift: Have swift/unsafe-webview-fetch use indices instead of parameter names.
2022-11-01 22:58:48 +00:00
Geoffrey White
d87117f623
Swift: Have swift/string-length-conflation use indices instead of parameter names.
2022-11-01 22:51:10 +00:00
erik-krogh
851d53d56b
don't sanitize calls through substring calls that just remove the start
2022-11-01 22:51:07 +01:00
erik-krogh
08bc14f598
add failing test
2022-11-01 22:50:13 +01:00
Tom Hvitved
28b7ab7fbe
Merge pull request #11066 from hvitved/ssa/deprecate-no-uncertain-reads-predicates
2022-11-01 22:06:08 +01:00
erik-krogh
c15f63ce62
sync files
2022-11-01 21:35:27 +01:00
erik-krogh
15416a9c86
fix getCanonicalCharClass in NfaUtils
2022-11-01 21:35:07 +01:00
erik-krogh
78e35e2f29
add failing test
2022-11-01 21:33:19 +01:00
Jean Helie
3d1f75221b
address @henrymercer's comments
2022-11-01 20:57:58 +01:00
Jean Helie
44bf8184fe
ATM: add PR check running the boosted queries
2022-11-01 20:57:58 +01:00
Jean Helie
ce1092c33d
add test repo
2022-11-01 20:57:58 +01:00
Chris Smowton
4910bf12e9
Kotlin vararg constructors: don't call a default-parameter constructor just because there are no varargs
...
This is the constructor case of https://github.com/github/codeql/pull/10909
2022-11-01 19:28:56 +00:00
alexet
04a47093ee
QL Spec: Add instanceof in classes
2022-11-01 18:31:43 +00:00
Dave Bartolomeo
9d5e5e3ee7
${workspace} all the things
2022-11-01 13:29:05 -04:00
Felicity Chapman
1a702bfd50
Add new article to toctree to fix test
2022-11-01 17:26:36 +00:00
Dave Bartolomeo
49c4c554c4
Merge from main
2022-11-01 13:22:40 -04:00
Mathias Vorreiter Pedersen
30f15473db
C++: Use 'max' instead of 'unique.'
2022-11-01 16:55:45 +00:00
Tom Hvitved
ee9163aa40
Ruby: Fix flow steps into phi nodes
...
- Add missing flow from post-update nodes into phi nodes.
- Prevent flow from reads into phi nodes when use-use flow is prohibited.
2022-11-01 16:33:06 +01:00
Tom Hvitved
a191edfbd5
Ruby: Add data flow tests that illustrate problems with flow into SSA phi nodes
2022-11-01 16:32:46 +01:00
Alex Ford
d061df2e12
Ruby: AST ref docs - Module.qll
2022-11-01 15:24:23 +00:00
Tom Hvitved
640b0ce093
SSA: Deprecate *NoUncertainReads predicates
2022-11-01 15:21:32 +01:00
Karim Ali
8be4d47178
fix typos
2022-11-01 16:03:36 +02:00
Jean Helie
1d6db8db9a
ATM: add hello world workflow for development of model integration tests workflow
2022-11-01 14:51:11 +01:00
erik-krogh
6f3ca40fed
expand the explanation to include with arguments make the commands vulnerable
2022-11-01 14:24:23 +01:00
Tom Hvitved
e8f9429b92
Merge pull request #10917 from hvitved/ruby/singleton-call-sensitivity
...
Ruby: Call-context sensitivity for singleton method calls
2022-11-01 14:13:26 +01:00
Erik Krogh Kristensen
8fd6424db9
fix the qhelp
...
Co-authored-by: Asger F <asgerf@github.com >
2022-11-01 14:05:25 +01:00
Geoffrey White
84c754e007
Merge pull request #11062 from geoffw0/rename
...
Swift: Rename ECB-Encryption directory
2022-11-01 12:59:53 +00:00
Arthur Baars
aba87a139d
Merge pull request #10668 from aibaars/ruby-deps
...
Ruby: update dependencies
2022-11-01 13:55:42 +01:00
Tom Hvitved
f623ea0a55
Merge pull request #10576 from hvitved/ssa/consistency-queries
...
SSA: Turn consistency predicates into `query` predicates
2022-11-01 13:07:33 +01:00
Karim Ali
fe408cfb41
add a query that detects the use of constant passwords
2022-11-01 14:03:27 +02:00
Arthur Baars
ab963fef82
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-11-01 11:35:26 +01:00
Arthur Baars
8b39059d3a
Update .github/workflows/ruby-build.yml
2022-11-01 10:49:12 +01:00
Geoffrey White
a1edd65542
Merge pull request #11034 from geoffw0/global
...
Swift: Add and use AbstractFunctionDecl.hasGlobalName predicate.
2022-11-01 09:27:26 +00:00
Geoffrey White
c3577b2256
Swift: Rename test directory.
2022-11-01 09:21:50 +00:00
Geoffrey White
7d80c5c7f7
Swift: Rename query directory.
2022-11-01 09:21:10 +00:00
Tom Hvitved
4edef874d6
SSA: Turn consistency predicates into query predicates
2022-11-01 10:01:56 +01:00
erik-krogh
84a7fddd95
remove explicit versions in lock files, as the dependencies are all installed locally
2022-11-01 09:09:26 +01:00
Erik Krogh Kristensen
ff2a5e8c27
Merge pull request #10986 from erik-krogh/tsPerf
...
JS: push more context into load/store steps from the exploratory flow-analysis
2022-11-01 09:03:24 +01:00
Asger F
2619f3f667
Ruby: include overridden methods in getAnInstanceSelf
2022-11-01 08:32:55 +01:00
Alex Ford
f5c2ed9e45
Ruby: AST ref docs - fix table formatting and some misnamed classes
2022-10-31 22:35:00 +00:00
Alex Ford
a7ebbfb139
Ruby: WIP AST reference guide
2022-10-31 22:14:09 +00:00
erik-krogh
5e5160d4fc
add which commands are flagged in the change-note
2022-10-31 21:42:59 +01:00
Erik Krogh Kristensen
994c033c62
Merge pull request #11049 from erik-krogh/noCrossTalk
...
QL: prevent some cross-talk between modules
2022-10-31 21:41:00 +01:00
Tamas Vajk
91972d1d1f
Kotlin: Fix location (start position) of method calls
2022-10-31 21:08:15 +01:00
Jeroen Ketema
80ef3b39ff
Merge branch 'main' into mathiasvp/replace-ast-with-ir-use-usedataflow
2022-10-31 18:26:34 +01:00
Jeroen Ketema
222c9a6357
Merge pull request #11048 from jketema/add-constant-test
...
C++: Add `strcpy` test for `cpp/non-constant-format`
2022-10-31 18:01:13 +01:00
Ian Lynagh
caa56c9cad
Kotlin: compiler_arguments test: Normalise path separators in output
...
Otherwise we get different output on Windows vs Posix.
2022-10-31 16:31:08 +00:00
Nick Rolfe
23db9c573f
Ruby docs: add LocalSourceNode and remove CfgNode from class list
2022-10-31 16:25:34 +00:00
Paolo Tranquilli
59284739dd
Swift: reenable ql tests on macos
2022-10-31 17:07:56 +01:00
Jeroen Ketema
b43cbf7f95
Update cpp/ql/test/query-tests/Likely Bugs/Format/NonConstantFormat/test.cpp
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-10-31 17:03:29 +01:00
Paolo Tranquilli
80ea2b8c5e
Swift: use macos-12-xl runners
2022-10-31 16:59:11 +01:00
Paolo Tranquilli
003866621f
Swift: rework workflows
...
* A unique workflow file has been created merging all `swift-*.yml`
workflows
* Change filtering at job level was added using [dorny/paths-filter][1]
* only one build of the extractor is made, and then shared via cache
(not as an artifact because of [this longstading issue][2])
* integration tests are now run on on macOS
* qltests are not run any more on macOS to cut on feedback time
* autobuilder tests were moved to the macOS build step to avoid loading
bazel twice
[1]: https://github.com/dorny/paths-filter#examples
[2]: https://github.com/actions/upload-artifact/issues/38
2022-10-31 16:59:11 +01:00
Ian Lynagh
067704a59a
Kotlin: default-parameter-mad-flow test: Make kotlinc call work on Windows
2022-10-31 15:57:34 +00:00
Ian Lynagh
2783668092
Kotlin: compiler_arguments test: Fix running gradle on Windows
2022-10-31 15:29:23 +00:00
erik-krogh
86e81f523c
add explicit this
2022-10-31 15:56:01 +01:00
Ian Lynagh
6b5deee9a8
Kotlin: Reunite the parts of gradle_kotlinx_serialization
2022-10-31 14:55:58 +00:00
Ian Lynagh
d3934c97ed
Kotlin: Run java-interface-redeclares-tostring on all platforms
2022-10-31 14:52:19 +00:00
Ian Lynagh
7c4df8c81f
Kotlin: Run default-parameter-mad-flow on all platforms
2022-10-31 14:51:15 +00:00
erik-krogh
7d0beeafad
QL: prevent some cross-talk between modules
2022-10-31 15:51:05 +01:00
Ian Lynagh
b1d9f9f9d5
Kotlin: Run compiler_arguments test on all platforms
2022-10-31 14:46:46 +00:00
Jeroen Ketema
abe9258943
C++: Add strcpy test for cpp/non-constant-format
2022-10-31 15:29:17 +01:00
Jeroen Ketema
83afc2a0ad
C++: Add strcpy prototype to test
2022-10-31 15:25:35 +01:00
Ian Lynagh
21600c612d
Merge pull request #11037 from igfoo/igfoo/log
...
Kotlin: Integration tests: Allow \ as a path separator in logs test
2022-10-31 14:03:57 +00:00
Tamás Vajk
e356720c73
Merge pull request #11014 from tamasvajk/kotlin-for-loop-var
...
Kotlin: Resugar `for` loops
2022-10-31 14:48:21 +01:00
Asger F
ab4e341e65
Ruby: fix handling of namespaces with no 'self'
2022-10-31 14:05:11 +01:00
Asger F
9da5ec79c5
Ruby: Drive-by fix a QL4QL alert
2022-10-31 14:05:11 +01:00
Asger F
e549f15b1c
Ruby: fix implicit 'this'
2022-10-31 14:05:11 +01:00
Asger F
056b1e8d63
Ruby: add some basic tests
2022-10-31 14:05:11 +01:00
Chris Smowton
d959630991
Merge pull request #11040 from smowton/smowton/fix/inherited-method-implementing-collection-interface
...
Kotlin: fix method types when an inherited method implements a collection type
2022-10-31 12:40:28 +00:00
Asger F
9be2512050
Ruby: rename one of the PostsController2 classes
...
These had the same name and ended up being unified
2022-10-31 13:33:41 +01:00
Asger F
b4b34cc994
Ruby: port part of ActionController model
2022-10-31 13:33:41 +01:00
Asger F
12ce46e4b1
Ruby: port part of Railties model
2022-10-31 13:33:41 +01:00
Asger F
38955d1761
Ruby: port part of the Rails model
2022-10-31 13:33:41 +01:00
Asger F
9f59b6b439
Update type-tracking test
2022-10-31 13:33:41 +01:00
Asger F
0a8f39fe96
Ruby: recover some incomplete capture flow
2022-10-31 13:33:41 +01:00
Asger F
ff02ba5965
Ruby: include SSA param input step for flowsTo
2022-10-31 13:33:41 +01:00
Asger F
017157820a
Ruby: make ParameterNode extend LocalSourceNode
2022-10-31 13:33:41 +01:00
Asger F
b29ac5249e
Ruby: add type-tracking inline test in global flow test
2022-10-31 13:33:41 +01:00
Asger F
4ed61c13f8
Ruby: add some captured-variable flow tests
2022-10-31 13:33:41 +01:00
Asger F
b632e21ba0
Ruby: add ConstRef
2022-10-31 13:33:41 +01:00
Karim Ali
3911f3b202
update query description following docs review
2022-10-31 13:54:35 +02:00
Karim Ali
76a330d4b9
update code example to be OWASP compliant
2022-10-31 13:52:49 +02:00
Karim Ali
723ca8ed88
update documentation following docs review
2022-10-31 13:50:30 +02:00
Ian Lynagh
a53c2104d1
Kotlin: Integration tests: Allow \ as a path separator in logs test
2022-10-31 11:24:39 +00:00
Nick Rolfe
5369ba1d83
ruby docs: remove distracting sentence
2022-10-31 11:24:30 +00:00
Tony Torralba
b62ede1544
Fix issue in JsExportedSource
...
Model the source as an access to the tainted field, instead of the field itself (which didn't work)
2022-10-31 12:08:03 +01:00
Chris Smowton
c11d63e4d2
Merge pull request #11015 from smowton/smowton/fix/go-cleartext-logging-exclude-protobuf-getters
...
Go: exclude protobuf read steps from cleartext-logging query
2022-10-31 10:43:52 +00:00
Geoffrey White
ca586b4f3d
Merge remote-tracking branch 'upstream/main' into global
2022-10-31 10:28:29 +00:00
Geoffrey White
0dd8f574a7
Swift: Redesign as a FreeFunctionDecl class + add some qldoc.
2022-10-31 10:24:12 +00:00
Geoffrey White
c161bb5e95
Merge pull request #11035 from geoffw0/simplify2
...
Swift: Simplify some more QL
2022-10-31 09:50:55 +00:00
Rasmus Wriedt Larsen
ead0844174
Merge pull request #10998 from RasmusWL/essa-use-use-test
...
Python: Add failing ESSA use-use test
2022-10-31 10:38:26 +01:00
Paolo Tranquilli
2b395985e6
Swift: remove unneeded trailing / in README.md
2022-10-31 09:55:03 +01:00
Paolo Tranquilli
e62acb1e8c
Swift: revert wrong paragraph edit in README.md
2022-10-31 09:54:15 +01:00
Paolo Tranquilli
7237362feb
Swift: add debug path mapping to README.md
...
This allows breakpoints to work more reliably, including on a bazel
project in CLion.
2022-10-31 09:51:41 +01:00
Paolo Tranquilli
46c7ee0e4f
Swift: refactor RUN_UNDER code
2022-10-31 09:51:20 +01:00
Paolo Tranquilli
80debe19e0
Swift: fix RUN_UNDER_FILTER check
2022-10-31 09:50:45 +01:00
Tamas Vajk
4cd0f1ca66
Apply code review findings
2022-10-31 08:43:53 +01:00
Harry Maclean
0dd63c007e
Ruby: Add change note
2022-10-31 11:53:22 +13:00
Harry Maclean
fd61a5253d
Ruby: Recognise try/try! as code executions
2022-10-31 11:53:22 +13:00
Harry Maclean
3f403f0f87
Merge pull request #10700 from hmac/activesupport
...
Ruby: Model some ActiveSupport methods
2022-10-31 11:50:44 +13:00
erik-krogh
fc2112831c
add second-order-command-injection query
2022-10-30 21:20:47 +01:00
Mathias Vorreiter Pedersen
1b50168d08
C++: Add an initial pruning stage to prevent this
...
large TC in 'localFlowToExpr':
```
Evaluated relational algebra for predicate Buffer#61e3d199::localFlowStepToExpr#2#ff@0a49913i with tuple counts:
4713946 ~0% {2} r1 = SCAN DataFlowUtil#47741e1f::simpleLocalFlowStep#2#ff OUTPUT In.1, In.0
40897385 ~46% {2} r2 = JOIN boundedFastTC:Buffer#61e3d199::localFlowToExprStep#2#ff_10#higher_order_body:DataFlowUtil#47741e1f::simpleLocalFlowStep#2#ff_0#higher_order_body WITH DataFlowUtil#47741e1f::simpleLocalFlowStep#2#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
45611331 ~43% {2} r3 = r1 UNION r2
3376553 ~14% {2} r4 = JOIN r3 WITH DataFlowUtil#47741e1f::ExprNode::getExpr#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
return r4
```
After this commit the tuple counts looks like:
```
Evaluated relational algebra for predicate Buffer#61e3d199::localFlowStepToExpr#2#ff@8cc38x5k on iteration 2 running pipeline standard with tuple counts:
51367 ~3% {2} r1 = JOIN Buffer#61e3d199::getBufferSize0#1#f#prev_delta WITH DataFlowUtil#47741e1f::ExprNode::getExpr#0#dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.0
124933 ~18% {2} r2 = JOIN r1 WITH #Buffer#61e3d199::localFlowToExprStep#2Plus#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
176300 ~17% {2} r3 = r1 UNION r2
184685 ~22% {2} r4 = JOIN r3 WITH DataFlowUtil#47741e1f::simpleLocalFlowStep#2#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1
56646 ~47% {2} r5 = JOIN r4 WITH DataFlowUtil#47741e1f::ExprNode::getExpr#0#dispred#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
44635 ~16% {2} r6 = r5 AND NOT Buffer#61e3d199::localFlowStepToExpr#2#ff#prev(Lhs.0, Lhs.1)
return r6
```
2022-10-30 14:20:15 +01:00
Mathias Vorreiter Pedersen
aa8214addf
C++: Simplify 'Buffer.qll' by avoiding 'asIndirectExpr'. This removes the flow from 'x' to 'x++', which makes the whole library a lot simpler.
2022-10-30 12:58:53 +01:00
Chris Smowton
b370497f96
Avoid split overrides
2022-10-29 18:23:45 +01:00
Chris Smowton
3573e211cc
Correct test expectations
2022-10-29 11:40:58 +01:00
Chris Smowton
b6e4f472d1
Remove unnecessary import
2022-10-29 11:40:57 +01:00
Chris Smowton
6d321e0151
Add change note
2022-10-29 11:40:57 +01:00
Chris Smowton
5c66d87ed6
gofmt
2022-10-29 11:40:57 +01:00
Chris Smowton
0c6c135967
Go: exclude protobuf read steps from cleartext-logging query
...
This query already treats structs differently to usual: it includes field -> whole struct taint steps, but explicitly excludes struct -> field steps. This means that a logging framework sinking an entire struct with a tainted field yields an alert, but we don't get FPs caused by writing field `x` but then reading field `y`.
However, protobuf messages have a special treatment, with taint usually associated with the whole struct and getter methods propagating that taint out. Suppressing these getter method steps specifically for the cleartext-logging query mirrors its treatment of structs in general and avoids this sort of field-mismatch FP.
On the downside we will miss same-field propagation like `m.field = password; Log(m.GetField())` if we don't have source code for the implementation of `m`. However this is hopefully unusual since the typical use of protobufs is to serialize and deserialize, rather than using the struct as a general-purpose datastructure.
2022-10-29 11:40:57 +01:00
Chris Smowton
8266a22332
Kotlin: fix method types when an inherited method implements a collection type
...
In this circumstance the compiler seems to generate a specialised version of the implementing function with its argument type replaced by the interface-implementing child class' type parameter. However it stores a back-pointer to the real declared function, which we should use as the call target.
2022-10-29 11:29:04 +01:00
Dave Bartolomeo
85790fcade
Merge pull request #10964 from smowton/smowton/admin/modernise-qlpacks
...
qlpacks: libraryPathDependencies -> dependencies
2022-10-28 16:44:22 -04:00
Mathias Vorreiter Pedersen
18d3801c92
Merge pull request #11033 from MathiasVP/exclude-void-calls
...
C++: Don't create `DataFlow::Node`s for `void`-typed instructions
2022-10-28 20:46:33 +02:00
Chris Smowton
d9744c81b7
Merge pull request #11017 from smowton/smowton/fix/kotlin-wildcard-suppression-annotation
...
Kotlin: fix wildcard suppression where the annotation applies to a parent type/argument.
2022-10-28 18:33:07 +01:00
Ian Lynagh
84427e132e
Kotlin: Move the logs test to all-platforms
2022-10-28 17:56:41 +01:00
Geoffrey White
840b74dbb5
Swift: Add and use ApplyExpr.getArgumentByParamName.
2022-10-28 17:55:11 +01:00
Geoffrey White
f122005aaf
Swift: Simplify out some variables.
2022-10-28 17:26:17 +01:00
Tony Torralba
2402504a4c
Add missing SummaryPostUpdateNode
2022-10-28 18:24:17 +02:00
Geoffrey White
b4d939a620
Swift: Correct a comment.
2022-10-28 17:11:24 +01:00
Chris Smowton
f9e811bddf
Legacy support qlpacks: continue using libraryPathDependencies; add a comment noting this is obsolete.
2022-10-28 16:47:30 +01:00
Chris Smowton
1914a114a2
Merge pull request #11018 from smowton/smowton/fix/kotlin-extension-specialisation
...
Kotlin: specialise extension receivers the same as other function parameters
2022-10-28 16:15:41 +01:00
Chris Smowton
d6e2f5f4a8
Use ?.not() to negate a nullable boolean
2022-10-28 16:13:55 +01:00
Chris Smowton
1e1c9f639c
Avoid Kotlin 1.5+ function firstNotNullOfOrNull
2022-10-28 16:13:55 +01:00
Chris Smowton
24f87ac963
Kotlin: fix wildcard suppression where the annotation applies to a parent type/argument.
...
In the process I also fix the missed case where suppression can be switched off using a parameterized annotation.
2022-10-28 16:13:55 +01:00
Ian Lynagh
2796d60d79
Merge pull request #11019 from igfoo/igfoo/win_integ
...
Kotlin: Get some integration tests running on Windows
2022-10-28 16:12:15 +01:00
Chris Smowton
5ad5cdce47
Swift integration-test runner: use --additional-packs
2022-10-28 16:07:38 +01:00
Chris Smowton
ee63e60bb7
qlpacks: libraryPathDependencies -> dependencies
2022-10-28 16:07:36 +01:00
Geoffrey White
648c2d09f9
Swift: Simplify InsecureTLS.ql.
2022-10-28 15:56:03 +01:00
Tony Torralba
baf7986cfa
Rework types exported through JSContext
...
Better model the JSExport protocol logic
2022-10-28 15:56:05 +02:00
Rasmus Wriedt Larsen
a04c78ab94
Python: Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2022-10-28 15:31:42 +02:00
Asger F
06ec03de74
Ruby: add convenience-accessors for ConstantValue
2022-10-28 15:16:14 +02:00
Asger F
046e669c78
Ruby: add getAncestorExpr
2022-10-28 15:16:14 +02:00
Asger F
77d1788619
Ruby: add data flow versions of ArrayLiteral, HashLiteral, Pair
2022-10-28 15:16:14 +02:00
Asger F
2546d09fe2
Ruby: add SetterCallNode
2022-10-28 15:16:14 +02:00
Asger F
515b8366d2
Ruby: add getAnAncestor, getADescendent
2022-10-28 15:16:14 +02:00
Asger F
c8f7519cee
Ruby: add Module.getNamespaceOrTopLevel
2022-10-28 15:16:14 +02:00
Asger F
1f644a9c1d
Ruby: add getEnclosingToplevel
2022-10-28 15:16:14 +02:00
Asger F
436cc60138
Ruby: update some uses of getConstantValue()
2022-10-28 15:16:14 +02:00
Asger F
156964bfc9
Ruby: add getEnclosingModule and getNestedModule
2022-10-28 15:16:14 +02:00
Asger F
67772bbc43
Ruby: Accessors for attributes and elements
2022-10-28 15:16:14 +02:00
Asger F
8976ba5583
Ruby: Add CallableNode, MethodNode, and accessors
2022-10-28 15:16:13 +02:00
Ian Lynagh
49425e6c2a
Kotlin: Integration tests: Make a couple more posix-only for now
2022-10-28 13:59:36 +01:00
Geoffrey White
cf9c3afc86
Swift: Add and use AbstractFunctionDecl.hasGlobalName predicate.
2022-10-28 13:57:24 +01:00
Tamas Vajk
d745381ebe
Remove unneeded consistency test output
2022-10-28 14:56:25 +02:00
Tamas Vajk
803a97df7f
Kotlin: Resugar for loops with tuples as loop variables
2022-10-28 14:55:50 +02:00
Tamas Vajk
841340b266
Kotlin: Resugar for loops
2022-10-28 14:55:50 +02:00
Tamas Vajk
1e3060598f
Kotlin: Add for loop tests
2022-10-28 14:55:50 +02:00
Mathias Vorreiter Pedersen
f3be58e2ba
C++: Accept more test changes.
2022-10-28 14:53:24 +02:00
Alex Ford
bb9205226a
Ruby: fix whitespace in basic query doc table
2022-10-28 13:36:45 +01:00
Mathias Vorreiter Pedersen
20b188ff42
Merge pull request #11020 from rdmarsh2/rdmarsh2/repair-365-days-per-year
...
C++: repair Adding365DaysPerYear.ql
2022-10-28 14:35:05 +02:00
Mathias Vorreiter Pedersen
f6ff9c9c66
Update cpp/ql/src/Likely Bugs/Leap Year/LeapYear.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2022-10-28 14:32:08 +02:00
Paolo Tranquilli
3dcdc739de
Swift: add possibility to run the extractor under an env-specified tool
...
if `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER` env variable is set, and either
* `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER_FILTER` is not set, or
* it is set to a regexp matching any substring of the extractor call
then the extractor process is substituted with the command (and possibly
options) stated in `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER`, followed by the
system arguments of the extractor itself (which should include the
extractor program itself at the start).
Before calling `exec`, `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER` is unset to
avoid unpleasant loops.
An example usage is to run the extractor under `gdbserver :1234` when
the arguments match a given source file.
2022-10-28 14:12:27 +02:00
Tamás Vajk
caf9ac50d9
Merge pull request #11026 from tamasvajk/kotlin-remove-kotlin-java-eq-test
...
Kotlin: Remove `javaEquivalent` consistency query
2022-10-28 14:08:53 +02:00
Chris Smowton
366410ee9e
Fix incorrect parameter ordering
2022-10-28 12:58:23 +01:00
Mathias Vorreiter Pedersen
0a3d0c4f56
Merge pull request #11031 from geoffw0/simplify
...
Swift: Simplify queries using MethodDecl.hasQualifiedName
2022-10-28 13:58:08 +02:00
Mathias Vorreiter Pedersen
9888de8acb
Merge branch 'replace-ast-with-ir-use-usedataflow' into rdmarsh2/repair-365-days-per-year
2022-10-28 13:48:12 +02:00
Mathias Vorreiter Pedersen
42e8ec32d7
Merge pull request #11030 from MathiasVP/fix-ql-for-ql-errors
...
C++: Fix QL-for-QL in #10817
2022-10-28 13:39:50 +02:00
Tony Torralba
48b0cc0229
Add models for JSContext and JSValue
2022-10-28 13:01:25 +02:00
Mathias Vorreiter Pedersen
3261612a8c
C++: Exclude void-typed instructions from 'DataFlow::Node'. These nodes can never contain any data so we don't need dataflow nodes for them.
2022-10-28 13:00:23 +02:00
Tony Torralba
81701547b2
Add taint sources for WKScriptMessage
...
This is what contains externally-provided data in Webview JS-native bridges
2022-10-28 12:58:27 +02:00
Mathias Vorreiter Pedersen
142e50008e
Merge pull request #10967 from MathiasVP/fix-swift-summary
...
Swift: Fix flow out of summarized callables
2022-10-28 12:57:52 +02:00
Geoffrey White
368f37a27e
Swift: And another.
2022-10-28 11:46:27 +01:00
Geoffrey White
1f3ed1cec7
Merge remote-tracking branch 'upstream/main' into simplify
2022-10-28 11:42:05 +01:00
Geoffrey White
6fca350714
Use MethodDecl.hasQualifiedName.
2022-10-28 11:41:42 +01:00
Mathias Vorreiter Pedersen
2098489bb0
C++: Make QL-for-QL happy.
2022-10-28 12:35:52 +02:00
AlexDenisov
ce441ade63
Merge pull request #11028 from github/redsun82/swift-filesystem
...
Swift: fix remapping
2022-10-28 12:11:26 +02:00
Mathias Vorreiter Pedersen
062a0abceb
Swift: Fix flow out of summarized callables.
2022-10-28 12:09:05 +02:00
Ian Lynagh
f387eb21eb
Kotlin: Integration tests: Add a qlpack.yml
2022-10-28 10:53:45 +01:00
Ian Lynagh
382c08e3cd
Kotlin: Fix some integrations tests on Windows
2022-10-28 10:53:45 +01:00
Ian Lynagh
15d5369bdd
Kotlin: Run some integration tests on Windows too
2022-10-28 10:53:45 +01:00
Tamás Vajk
8bc46d5e56
Merge pull request #11025 from tamasvajk/kotlin-fix-external-location
...
Kotlin: Fix external location in integration test
2022-10-28 11:33:25 +02:00
Jeroen Ketema
fafc0b5575
Merge pull request #10995 from MathiasVP/fix-as-expr
...
C++: Fix `asExpr` and `asIndirectExpr` in IR dataflow
2022-10-28 11:23:13 +02:00
Paolo Tranquilli
a87495226a
Swift: fix remapping
...
With the change to `std::filesystem` some path concatenations were
translated to appending, which is not the same. In case rhs is absolute
`lhs / rhs == rhs`, while concatenating treats `rhs` as if it was
relative. The same behaviour can be obtained in `std::filesystem` by
using `lhs / rhs.relative_path()`.
2022-10-28 11:16:49 +02:00
Tamas Vajk
7ceadb0df0
Kotlin: Remove javaEquivalent consistency query
...
The `javaEquivalent` consistency query is no longer needed, as the `diags` query is now a superset of it.
2022-10-28 10:44:42 +02:00
Rasmus Wriedt Larsen
8628ff5e52
Merge pull request #10999 from RasmusWL/inline-fail-tag
...
InlineExpectationsTest: Fail if missing `getARelevantTag`
2022-10-28 10:35:49 +02:00
Mathias Vorreiter Pedersen
95a54f79d8
Merge pull request #10938 from geoffw0/printfprecision
...
C++: Fix printf.qll bug
2022-10-28 10:33:58 +02:00
Mathias Vorreiter Pedersen
172261495f
Merge branch 'replace-ast-with-ir-use-usedataflow' into fix-as-expr
2022-10-28 10:32:31 +02:00
Tamas Vajk
99880c980c
Kotlin: Fix external location in integration test
2022-10-28 10:24:14 +02:00
erik-krogh
0a7e797090
update expected outputs after reordering tests
2022-10-28 10:16:21 +02:00
erik-krogh
946720f414
reorder the CWE-078 tests into subdirectories
2022-10-28 10:16:21 +02:00
Jeroen Ketema
4ca0838815
Merge pull request #11009 from RasmusWL/dataflow-label
...
Misc: Add automatic `DataFlow Library` label
2022-10-28 09:58:33 +02:00
Rasmus Wriedt Larsen
e8fdff7a3b
Python: Expand ExternalAPIs test
...
We never had a showcase of how keyword arguments were handled
2022-10-28 09:38:02 +02:00
Rasmus Wriedt Larsen
6577281bed
Python: Add crosstalk fieldflow test
2022-10-28 09:31:16 +02:00
Rasmus Wriedt Larsen
c1b2561598
Python: Extend fieldflow tests with bound method call
2022-10-28 09:31:16 +02:00
Rasmus Wriedt Larsen
0f34752f8f
Python: Delete classesCallGraph.ql
...
I don't see the value from this, so just going to outright delete it.
(it actually stayed alive for quite some time in the original git history,
but never seemed to be that useful.)
2022-10-28 09:31:01 +02:00
Rasmus Wriedt Larsen
7d8c0c663f
Python: Remove dataflow/coverage/dataflow.ql
...
The selected edges is covered by `NormalDataflowTest.ql` now... and
reading the test-output changes in `edges` is just going to make commits
larger while not providing any real value.
2022-10-28 09:29:32 +02:00
Rasmus Wriedt Larsen
609a4cfd42
Python: validate tests in datamodel.py
...
And adopt argument passing tests as well.
turns out that `C.staticmethod.__func__` doesn't actually work :O
2022-10-28 09:29:32 +02:00
Rasmus Wriedt Larsen
39081e9c1c
Python: Fix staticmethod datamodel test
2022-10-28 09:29:32 +02:00
Mathias Vorreiter Pedersen
22cdeec3fb
Merge branch 'main' into printfprecision
2022-10-28 09:29:29 +02:00
Erik Krogh Kristensen
93fb2930c8
Merge pull request #10968 from erik-krogh/fixRbCode
...
RB: fix rb/code-injection
2022-10-28 09:14:14 +02:00
Harry Maclean
368ce69198
Fix qldoc formatting
2022-10-28 11:31:55 +13:00
Harry Maclean
9df8edcb1c
Ruby: fix formatting
2022-10-28 11:31:55 +13:00
Harry Maclean
cd34686967
Ruby: Document flow summary for Hash#extract!
2022-10-28 11:31:55 +13:00
Harry Maclean
ca7b48c3d5
Add change note
2022-10-28 11:31:55 +13:00
Harry Maclean
5e781f24b6
Ruby: Remove duplicate test
...
This is already tested in hash-flow.
2022-10-28 11:31:55 +13:00
Harry Maclean
4ec527a9ea
Ruby: Explain difference between flow tests
...
The type-tracking flow tests document the difference in sensitivity
between type-tracking and dataflow, so failures in that test are
expected.
2022-10-28 11:31:55 +13:00
Harry Maclean
6e8446b6ae
Fix tests
2022-10-28 11:31:55 +13:00
Harry Maclean
ef260db76e
Fix singleton set literal
2022-10-28 11:31:55 +13:00
Harry Maclean
71d703f2a5
Ruby: Add ActiveSupport extensions
2022-10-28 11:31:55 +13:00
Harry Maclean
cb37a0e835
Ruby: Add summaries for Hash#deep_merge(!)
2022-10-28 11:31:55 +13:00
Harry Maclean
3dea1d6a60
Ruby: Add flow summary for Hash#except!
2022-10-28 11:31:55 +13:00
Harry Maclean
0454642220
Ruby: Model deep_dup and presence
2022-10-28 11:31:55 +13:00
Harry Maclean
9f260853ac
Ruby: Model more ActiveSupport string extensions
2022-10-28 11:31:55 +13:00
Harry Maclean
b389d50943
Ruby: Identify safe_constantize
2022-10-28 11:31:54 +13:00
Jami Cogswell
f40eefce57
use CompileTimeConstantExpr instead of StringLiteral
2022-10-27 17:11:07 -04:00
Jami Cogswell
65f7474110
simplify algorithm.matches
2022-10-27 16:44:03 -04:00
Rasmus Wriedt Larsen
2c7570e971
Apply suggestions from code review
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-10-27 22:16:48 +02:00
Robert Marsh
a334dc9b2b
C++: repair Adding365DaysPerYear.ql
2022-10-27 15:06:48 -04:00
Robert Marsh
b7e42e805b
Merge pull request #10994 from rdmarsh2/rdmarsh2/return-cstr-repair
...
C++: repair the ReturnCstr query
2022-10-27 14:25:22 -04:00
Geoffrey White
ca279f4073
Merge pull request #10996 from geoffw0/methods
...
Swift: Add MethodDecl.hasQualifiedName
2022-10-27 19:18:48 +01:00
Chris Smowton
45a4cd89a6
Kotlin: specialise extension receivers the same as other function parameters
...
This arises when a generic class extends one of its parameters; for example, `class G<T> { val T.v; get() = 1 }`, where specialisation `G<List>` should generate a method specialisation `getV(List)`.
2022-10-27 18:31:19 +01:00
Geoffrey White
3507ea3f2a
Swift: Autoformat.
2022-10-27 17:37:21 +01:00
Robert Marsh
24cb36a1e2
C++: constrain indirect out node to constructors
2022-10-27 11:48:17 -04:00
Henry Mercer
19b7e9ebc7
Merge pull request #10997 from github/henrymercer/go-extract-file-locations
...
Go: Extract locations of successfully extracted files
2022-10-27 16:12:15 +01:00
Chris Smowton
5ef99ca5bd
Merge pull request #11003 from smowton/smowton/fix/reintroduce-pointless-wildcards
...
Kotlin: reintroduce pointless wildcards when a Java declaration explicitly uses them
2022-10-27 16:06:21 +01:00
Ian Lynagh
6533e2ea5c
Merge pull request #10976 from igfoo/igfoo/version
...
Kotlin: Ignore tags when comparing versions
2022-10-27 15:50:39 +01:00
Ian Lynagh
b4242dd913
Merge pull request #11012 from igfoo/igfoo/mkdir
...
Kotlin: Fix integration tests on Mac
2022-10-27 15:39:10 +01:00
Mathias Vorreiter Pedersen
20bd30060f
C++: Fix 'StackPointerFlowsToUse' import.
2022-10-27 16:34:04 +02:00
Rasmus Wriedt Larsen
b840e8efb8
Java: Remove MISSING: XssSink annotations from text/plain responses in JaxWs
2022-10-27 15:55:14 +02:00
Erik Krogh Kristensen
bbdda9ef70
Merge pull request #10727 from erik-krogh/js-last-msg
...
JS: fix some more style-guide violations in the alert-messages
2022-10-27 15:48:12 +02:00
Geoffrey White
d0f45180ab
Swift: cache some predicated.
2022-10-27 14:17:51 +01:00
Rasmus Wriedt Larsen
cee9139a0d
Java: Correctly annotate missing XSS sinks in JaxWs modeling
2022-10-27 15:17:17 +02:00
Ian Lynagh
f237360d81
Merge pull request #11011 from igfoo/igfoo/modules
...
Kotlin: Handle /modules/... paths specially too
2022-10-27 13:48:32 +01:00
Ian Lynagh
6c232f95bc
Kotlin: Fix integration tests on Mac
2022-10-27 13:48:04 +01:00
Mathias Vorreiter Pedersen
b4c8a52117
C++: Accept more test changes.
2022-10-27 14:44:43 +02:00
Paolo Tranquilli
507e3b35ad
Merge pull request #10987 from github/redsun82/swift-filesystem
...
Swift: use `std::filesystem` and `picoSHA2`
2022-10-27 14:14:37 +02:00
Taus
503cc560cf
Merge pull request #10943 from bananabr/main
...
Javascript/Python: Tokens built from predictable UUIDs
2022-10-27 14:12:34 +02:00
Rasmus Wriedt Larsen
adf109b624
Merge branch 'main' into inline-fail-tag
2022-10-27 13:42:32 +02:00
Ian Lynagh
bafa80667c
Kotlin: Handle /modules/... paths specially too
...
On Windows, we don't want a C: prefix on these either.
2022-10-27 12:24:28 +01:00
Ian Lynagh
6d77b34323
Merge pull request #11000 from igfoo/igfoo/unknown-binary-location
...
Kotlin: Handle /!unknown-binary-location/... paths specially on Windows
2022-10-27 12:09:32 +01:00
Jeroen Ketema
1d7efd8e82
Merge pull request #10905 from jsoref/spelling-code-scanning-product
...
Spelling code scanning product
2022-10-27 12:55:37 +02:00
Mathias Vorreiter Pedersen
2fc7e6159e
C++: Accept test changes.
2022-10-27 12:12:34 +02:00
Mathias Vorreiter Pedersen
e2a0d62adf
C++: Fix 'asIndirectExpr' when the underlying instruction is a 'VariableAddressInstruction'.
2022-10-27 12:12:34 +02:00
Nick Rolfe
b1da636be0
Ruby: first draft of data flow docs
2022-10-27 11:42:39 +02:00
Arthur Baars
6f646be733
Ruby: document API graphs
2022-10-27 10:59:35 +02:00
Erik Krogh Kristensen
cecb498bf3
Merge pull request #10984 from tyage/add-next-js-source
...
JS: Add Next.js parameters as source
2022-10-27 10:36:12 +02:00
Erik Krogh Kristensen
71f29f037a
Merge pull request #10988 from erik-krogh/passwrd
...
JS: remove some FPs in `js/password-in-configuration-file`
2022-10-27 10:34:56 +02:00
Tamás Vajk
a428ab5f73
Merge pull request #11006 from tamasvajk/kotlin-fix-test-1
...
Kotlin: fix test to expect diagnostic
2022-10-27 10:34:24 +02:00
Paolo Tranquilli
09f549ab38
Merge pull request #11007 from github/redsun82/cmake-generator
...
Swift: fix cmake generator on Linux
2022-10-27 09:52:55 +02:00
Rasmus Wriedt Larsen
4079223151
Misc: Add automatic DataFlow Library label
...
Would just be nice for filtering PRs
2022-10-27 09:40:15 +02:00
Paolo Tranquilli
09a51ecdd5
Swift: fix cmake generator on Linux
2022-10-27 09:32:05 +02:00
Paolo Tranquilli
3fca25310f
Swift: fix copy option
2022-10-27 09:29:05 +02:00
Paolo Tranquilli
22db4932ee
Swift: add overwrite_existing to source archiving
2022-10-27 09:26:57 +02:00
Tamas Vajk
1727fcb845
Kotlin: fix test to expect diagnostic
2022-10-27 09:14:23 +02:00
Rasmus Wriedt Larsen
6d43db43dd
Ruby: Fix tag missing from getARelevantTag
2022-10-27 09:12:06 +02:00
Rasmus Wriedt Larsen
977792070a
Java: Fix tag missing from getARelevantTag
2022-10-27 09:11:24 +02:00
Rasmus Wriedt Larsen
fc7eb5b4fc
InlineExpectationsTest: sync
2022-10-27 09:02:28 +02:00
Rasmus Wriedt Larsen
dbd84b2d37
InlineExpectationsTest: Add quote around missing tag
...
To aid with quickly scanning where the missing tag is. I just had to do
this myself looking over some test failures, and it all just blurred
into each other in the logs.
see https://github.com/github/codeql/actions/runs/3332266045/jobs/5512944867#step:5:467
2022-10-27 09:02:28 +02:00
Tamás Vajk
f1fcb64e94
Merge pull request #10992 from tamasvajk/kotlin-unused-extension
...
Kotlin: do not report on unused `object` extension parameters
2022-10-27 08:50:33 +02:00
tyage
c22f9443f2
Refactoring Next.js parameter
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-10-27 10:28:51 +09:00
tyage
e8b751ae17
Update javascript/ql/src/change-notes/2022-10-26-nextjs-params.md
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-10-27 10:24:08 +09:00
tyage
ac27307a2b
Update javascript/ql/lib/semmle/javascript/frameworks/Next.qll
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-10-27 10:23:59 +09:00
tyage
54050bf1b6
update test result XssWithAdditionalSources
2022-10-27 10:23:37 +09:00
Harry Maclean
bdb143cf83
Merge pull request #10913 from thiggy1342/expand-ruby-ssrf-sinks-faraday-connection-new
...
Ruby: Add Faraday::Connection.new as sink for SSRF query
2022-10-27 10:33:44 +13:00
Dave Bartolomeo
23b572e9b7
Use ${workspace} for intra-workspace dependencies
...
Now that the released CLI supports replacement variables in dependency version ranges, we can now mark our published library packs as depending on whatever version of their dependency is in our workspace, without having to manually bump the dependency version every release.
Note that when the packs are published, the dependencies in the published pack file are rewritten to have the correct specific version.
2022-10-26 16:40:01 -04:00
Jami Cogswell
1bfdfc954b
shorten class/predicate names
2022-10-26 16:30:14 -04:00
erik-krogh
2ace10b294
bump the version of the shared pack in the QL-for-QL qlpack.yml file
2022-10-26 22:16:42 +02:00
Chris Smowton
28b6e263ec
Kotlin: reintroduce pointless wildcards when a Java declaration explicitly uses them
...
For example, Java code might use `HasOutVariance<? extends String>`, or `HasInVariance<? super Object>`, both of which are needless wildcards and which the Kotlin extractor would previously have refused to reintroduce due to their not specifying a larger type than their bound. However this led to inconsistency with Java extraction, which
extracts the type as it appears in source.
This seems to particularly happen with generated code, e.g. the output of the Kotlin protobuf compiler.
2022-10-26 20:05:27 +01:00
Daniel Santos
63c71b7d09
Merge branch 'main' into main
2022-10-26 14:05:26 -05:00
Ian Lynagh
0a470b0864
Kotlin: Handle /!unknown-binary-location/... paths specially on Windows
...
The standard code wants to normalise it to C:/!unknown-binary-location/...
which is particularly annoying for cross-platform test output.
2022-10-26 19:20:32 +01:00
Robert Marsh
25a1148e04
C++: autoformat
2022-10-26 14:11:37 -04:00
Henry Mercer
c1984ea35f
Go: Update expected output
2022-10-26 19:11:21 +01:00
Robert Marsh
8e2d34f0b6
C++: Accept dataflow test changes
2022-10-26 14:10:23 -04:00
Daniel Santos
64da2cec50
removed unnecessary getACall and fixed formatting
2022-10-26 12:02:55 -05:00
Rasmus Wriedt Larsen
5e9897d150
InlineExpectationsTest: sync
2022-10-26 18:21:13 +02:00
Rasmus Wriedt Larsen
76e84ef63a
InlineExpectationsTest: Fail if missing getARelevantTag
2022-10-26 18:20:37 +02:00
Mathias Vorreiter Pedersen
e43422a090
Merge pull request #10975 from rdmarsh2/rdmarsh2/inconsistent-loop-direction-repair
...
C++: repair InconsistentLoopDirection
2022-10-26 18:17:53 +02:00
Rasmus Wriedt Larsen
bfe9aa1225
InlineExpectationsTest: Add test showing what happens if you leave out getARelevantTag
2022-10-26 18:00:03 +02:00
Rasmus Wriedt Larsen
b3f29b0a53
Python: Add failing ESSA use-use test
...
I initially created this as a dataflow test, but then realized it could
just be an ESSA test. I cound't find any existing ESSA tests though :|
so created a new dir for it.
2022-10-26 17:49:33 +02:00
Geoffrey White
a32b08f56a
Swift: remove redundant line.
2022-10-26 16:39:33 +01:00
Geoffrey White
e981a28b0f
Swift: autoformat test.
2022-10-26 16:32:52 +01:00
Henry Mercer
b0b321a16f
Go: Standardise formatting
2022-10-26 16:31:08 +01:00
Henry Mercer
4bc8529490
Go: Extract locations of successfully extracted files
...
Switch the successfully extracted files query to the `location, message` results format so that we get rich location information when exporting the results of this query to SARIF. Previously the query used the `message` results format, which meant the interpreted results lacked a location.
2022-10-26 16:28:02 +01:00
Geoffrey White
0b3408b1f6
Swift: Fix typo.
2022-10-26 16:24:25 +01:00
Geoffrey White
5d21c51deb
Swift: use hasQualifiedName in UnsafeWebViewFetch.ql.
2022-10-26 16:12:29 +01:00
Geoffrey White
0d41d4e90c
Swift: for consistancy, lets have a simple hasName function as well.
2022-10-26 16:11:01 +01:00
Mathias Vorreiter Pedersen
562f052eb0
C++: Accept test changes.
2022-10-26 17:06:38 +02:00
Mathias Vorreiter Pedersen
bc9cd63ef0
C++: Add an 'IndirectExprNode(Base)' class similar to 'ExprNode(Base)' to structure conversions between indirect daaflow nodes and expressions.
2022-10-26 17:05:01 +02:00
Geoffrey White
b24a27d4ae
Swift: Add hasQualifiedName methods and tests.
2022-10-26 16:03:49 +01:00
Robert Marsh
de89b4c69f
C++: repair the ReturnCstr query
2022-10-26 11:02:23 -04:00
Robert Marsh
fc9f239a3b
C++: make ConstructorCall df nodes the qualifier
...
This makes the dataflow node for a ConstructorCall be the outnode of the
qualifier, which is the resulting constructed object. This should make
`asExpr` on a ConstructorCall do the "right thing" rather than selecting
the void-typed CallInstruction.
2022-10-26 11:01:53 -04:00
Robert Marsh
adeb69e396
C++: autoformat
2022-10-26 10:49:06 -04:00
Mathias Vorreiter Pedersen
4bcba16748
Merge pull request #10833 from MathiasVP/repair-badly-bounded-write-2
...
C++: Prepare `Buffer.qll` for IR-based use-use dataflow
2022-10-26 16:38:33 +02:00
Karim Ali
420c35d4a2
add a query that detects the use of constant salts
2022-10-26 15:32:59 +02:00
Chris Smowton
fac383a3ac
Merge pull request #10974 from smowton/smowton/fix/dont-translate-tochar
...
Kotlin: don't try to call nonexistent `j.l.Number.toChar`
2022-10-26 14:18:03 +01:00
Tamas Vajk
9cc7a30a75
Kotlin: do not report on unused object extension parameters
2022-10-26 15:06:51 +02:00
Tamas Vajk
fbcf7ea669
Kotlin: Add test case for unused extension parameters
2022-10-26 15:05:59 +02:00
Asger F
c9dfba344a
Merge pull request #10925 from asgerf/ql/navigate-doc
...
Docs: Mention new navigation commands
2022-10-26 14:29:42 +02:00
Ian Lynagh
37c40c58d2
Merge pull request #10959 from igfoo/igfoo/diags
...
Java/Kotlin: Add a diagnostics consistency query
2022-10-26 13:07:01 +01:00
Mathias Vorreiter Pedersen
2ba94f7c89
Merge pull request #10838 from MathiasVP/repair-cleartext-transmission-2
...
C++: Prepare `cpp/cleartext-transmission` for IR-based use-use dataflow
2022-10-26 13:43:56 +02:00
Paolo Tranquilli
521e6235b5
Swift: use std::filesystem and picoSHA2
...
This replaces usages of `llvm::fs` and string manipulation with
`std::filesystem`, also replacing `std::string` with
`std::filesystem::path` where it made sense.
Moreover MD5 hashing used in macOS file remapping was replaced by
SHA256 hashing using a small header-only SHA256 C++ library with an
MIT license, https://github.com/okdshin/PicoSHA2 .
File contents hashing was relocated to the newly created `file` library
for later planned reuse.
2022-10-26 13:23:44 +02:00
Ian Lynagh
dd7ec499df
Kotlin: Ignore tags when comparing versions
...
We thought that 1.7.20-Beta > 1.7.20, and so tried to use 1.7.0's
extractor with 1.7.20.
2022-10-26 12:21:55 +01:00
erik-krogh
0f9b4334cc
remove some FPs in js/password-in-configuration-file
2022-10-26 11:51:56 +02:00
Paolo Tranquilli
e422a4eef9
Swift: move TargetFile to a separate lib
2022-10-26 10:54:51 +02:00
erik-krogh
21e7e27e1f
push more context into load/store steps from the exploratory flow-analysis
2022-10-26 10:52:47 +02:00
Erik Krogh Kristensen
52cd200ca0
Merge pull request #10985 from asgerf/js/reaches-return-escape
...
JS: Do not track returned values out of the enclosing function
2022-10-26 10:52:11 +02:00
Tony Torralba
924995d9e1
Merge pull request #10977 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-10-26 09:51:17 +02:00
Asger F
414bd40c41
JS: Do not track returned values out of the enclosing function
2022-10-26 09:29:49 +02:00
Paolo Tranquilli
a3234503b8
Merge pull request #10983 from github/redsun82/swift-third-party
...
Swift: move libraries from `tools` to `third_party`
2022-10-26 08:59:50 +02:00
Mathias Vorreiter Pedersen
58b6c45d27
Merge pull request #10958 from geoffw0/comma
...
C++: Fix performance issue on cpp/comma-before-misleading-indentation
2022-10-26 08:29:18 +02:00
tyage
7a19744cf2
add change note
2022-10-26 15:17:50 +09:00
tyage
95dca7c3ed
update comment
2022-10-26 15:13:59 +09:00
tyage
09f8ca8cc0
add query in comment
2022-10-26 15:13:03 +09:00
tyage
232893aafa
make query parameters in ServerSideProps and next/router
...
as a RemoteFlowSource
2022-10-26 14:41:07 +09:00
Paolo Tranquilli
c8788bb5cd
Swift: move libraries from tools to third_party
2022-10-26 07:05:56 +02:00
tyage
1f4fc7fc2d
add params, query to test
2022-10-26 10:53:11 +09:00
tyage
06925681b0
add test for context.params
2022-10-26 10:53:11 +09:00
github-actions[bot]
5454f9a738
Add changed framework coverage reports
2022-10-26 00:20:29 +00:00
Jami Cogswell
1e80fa118c
add modules
2022-10-25 18:26:00 -04:00
Daniel Santos
f7ace6f801
Update javascript/ql/src/experimental/Security/CWE-340/TokenBuiltFromUUID.ql
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-10-25 14:27:03 -05:00
Geoffrey White
1e8b4bdd6f
Merge pull request #10973 from geoffw0/comment
...
Swift: Fix UrlRemoteFlowSource name clash
2022-10-25 18:51:51 +01:00
Robert Marsh
8a125d1ae5
C++: repair InconsistentLoopDirection
2022-10-25 13:34:08 -04:00
thiggy1342
9c1fbfd330
Merge branch 'main' into expand-ruby-ssrf-sinks-faraday-connection-new
2022-10-25 13:09:17 -04:00
Chris Smowton
004f4be5fb
Kotlin: don't try to call nonexistent j.l.Number.toChar
...
Previously we thought this could be callable because Kotlin's view of `j.l.Integer` inherits `k.Number` which defines `toChar`.
2022-10-25 17:09:05 +01:00
Geoffrey White
53fa91f8ba
Swift: Add comment.
2022-10-25 16:51:57 +01:00
Daniel Santos
feece6f7b4
Merge branch 'github:main' into main
2022-10-25 10:43:20 -05:00
Geoffrey White
a67bd4d903
Swift: Fix name clash.
2022-10-25 16:40:27 +01:00
Ian Lynagh
4050801a17
Kotlin: Autoformat query
2022-10-25 16:26:12 +01:00
Ian Lynagh
52cfc33576
Kotlin: Accept test changes
2022-10-25 16:26:12 +01:00
Ian Lynagh
63b64e4daa
Kotlin: Test tweaks for the diags consistency query
2022-10-25 16:26:11 +01:00
Ian Lynagh
caf7ebc634
Java/Kotlin: Add a diagnostic consistency query
2022-10-25 16:26:11 +01:00
Ian Lynagh
185d43a7b0
Kotlin: Turn warnings into trace messages
...
This is normal behaviour, nothing to be concerned about.
2022-10-25 16:26:11 +01:00
Daniel Santos
5b080481aa
TokenBuiltFromUuid formatting
2022-10-25 09:51:48 -05:00
Daniel Santos
b8d60edb49
TokenBuiltFromUuid isAdditionalTaintStep refactor
2022-10-25 09:51:07 -05:00
Daniel Santos
375edf7455
TokenAssignmentValueSink refactor
2022-10-25 09:50:04 -05:00
thiggy1342
3659eaa780
add markdown file extension
2022-10-25 10:13:19 -04:00
Geoffrey White
257748d82b
C++: Rename predicate.
2022-10-25 14:52:22 +01:00
Geoffrey White
3d025ea77e
Merge pull request #10903 from geoffw0/review
...
Swift: Add some summary queries.
2022-10-25 14:47:09 +01:00
yo-h
01a67adb49
Merge pull request #10738 from github/yo-h-patch-1
...
Java: update framework list
2022-10-25 09:42:18 -04:00
Jeroen Ketema
3befa1cd96
Merge pull request #10965 from MathiasVP/fix-gettypeimpl-in-ir-dataflow
...
C++: Fix `getType` in IR dataflow
2022-10-25 15:02:45 +02:00
Tamás Vajk
3264bbc1db
Merge pull request #10962 from tamasvajk/kotlin-unreachable-catch
...
Kotlin: Exclude .kt files from `java/unreachable-catch-clause`
2022-10-25 15:01:25 +02:00
Tamás Vajk
7013663d13
Merge pull request #10881 from tamasvajk/kotlin-constant-expr
...
Kotlin: Exclude constructs in serialization constructors from `java/evaluation-to-constant`
2022-10-25 15:00:58 +02:00
erik-krogh
e8dce25cc2
fix rb/code-injection
2022-10-25 14:44:23 +02:00
Geoffrey White
b59f01f968
Swift: Use UnknownFile.
2022-10-25 13:44:13 +01:00
Mathias Vorreiter Pedersen
557b94cd83
Merge pull request #10966 from jketema/spelling-comments
...
C++: Spelling fixes and documentation clarification
2022-10-25 14:34:49 +02:00
Mathias Vorreiter Pedersen
6a7bcd384a
Merge pull request #10939 from rdmarsh2/rdmarsh2/cpp/modulus-analysis-comments
...
C++: additional comments for modulus analysis
2022-10-25 14:29:54 +02:00
Mathias Vorreiter Pedersen
1bd48f8d02
Merge branch 'replace-ast-with-ir-use-usedataflow' into repair-cleartext-transmission-2
2022-10-25 14:27:33 +02:00
Mathias Vorreiter Pedersen
c8f81bc6b8
Merge branch 'replace-ast-with-ir-use-usedataflow' into repair-badly-bounded-write-2
2022-10-25 14:24:38 +02:00
Mathias Vorreiter Pedersen
39b268194a
C++: Accept test changes.
2022-10-25 14:10:51 +02:00
Karim Ali
18dd0f650c
update iterations threshold to most recent OWASP recommendation
...
which is at least 120,000 iterations for secure password hashing
2022-10-25 14:01:40 +02:00
Tamas Vajk
80fa45fd8e
Fix expected fest file after rebase
2022-10-25 13:52:25 +02:00
Tamas Vajk
f1e6b756e3
Add integration test with constant expression in a generated constructor
2022-10-25 13:52:25 +02:00
Tamas Vajk
eaa04b72f1
Apply code review findings
2022-10-25 13:49:54 +02:00
Tamas Vajk
78c23c2657
Kotlin: Exclude constructs in serialization constructors from java/evaluation-to-constant
2022-10-25 13:49:54 +02:00
Jeroen Ketema
2ad3119fab
C++: Clarify getType based on the QLDoc of Instruction::getResultType()
2022-10-25 13:34:49 +02:00
Jeroen Ketema
21acefb0b4
C++: Fix some spelling mistakes that were earlier fixed in "experimental"
2022-10-25 13:32:29 +02:00
Tamás Vajk
30fc6acb19
Merge pull request #10961 from tamasvajk/kotlin-abstract-collection-cast
...
Kotlin: Improve `java/abstract-to-concrete-cast` to handle `when` branches
2022-10-25 13:27:19 +02:00
Karim Ali
408c7bebe5
fix .expected file
2022-10-25 13:24:37 +02:00
Karim Ali
e8f55b9f0d
update output message
2022-10-25 13:24:37 +02:00
Karim Ali
c0ac29db16
clarify qhelp + add references to it
2022-10-25 13:24:37 +02:00
Karim Ali
4b7cb706f6
fix error in checking # of iterations
...
plus also simplify the pattern matching of the sink classes
2022-10-25 13:24:37 +02:00
Karim Ali
0d2e7d43b9
add expected output
2022-10-25 13:24:37 +02:00
Karim Ali
5179a99abb
fix test cases to use the correct class name
2022-10-25 13:24:37 +02:00
Karim Ali
c4b2519e6c
initial draft of the Swift query for CWE-916
2022-10-25 13:24:37 +02:00
Henry Mercer
7e2c06de80
Merge pull request #10963 from github/codeql-ci/js/ml-powered-pack-release-0.3.6
...
JS: Bump version numbers of ML-powered packs after 0.3.6 release
2022-10-25 12:12:15 +01:00
yoff
9d542f1be9
Merge pull request #10887 from Sim4n6/TarSlipImprov
...
Python: Add TarSlip Improv query
2022-10-25 13:02:52 +02:00
Chris Smowton
b9f4856d47
Merge pull request #10876 from smowton/smowton/feature/kotlin-default-method-auto-mad
...
Java models-as-data: infer Kotlin $default models from that of its parent function
2022-10-25 11:58:54 +01:00
Alvaro Muñoz
9830d2bebc
Format Restify.qll
2022-10-25 12:53:44 +02:00
Mathias Vorreiter Pedersen
23b07e5589
Merge branch 'replace-ast-with-ir-use-usedataflow' into fix-gettypeimpl-in-ir-dataflow
2022-10-25 12:52:33 +02:00
Mathias Vorreiter Pedersen
b85d3bc829
Merge branch 'main' into replace-ast-with-ir-use-usedataflow
2022-10-25 12:51:30 +02:00
Paolo Tranquilli
a4258ea390
Merge pull request #10953 from github/redsun82/cmake-generator
...
Bazel/CMake: make cmake runnable from outside the workspace
2022-10-25 12:47:10 +02:00
Chris Smowton
c4ba644dfd
Merge pull request #10952 from smowton/smowton/fix/java-interface-redeclares-tostring
...
Kotlin: extract interface redeclarations of `Object` methods
2022-10-25 11:29:10 +01:00
Mathias Vorreiter Pedersen
a4d434ee05
C++: Fix 'getType' for indirect dataflow nodes in IR dataflow.
2022-10-25 12:24:11 +02:00
Henry Mercer
1dc14bcaee
Merge branch 'main' into codeql-ci/js/ml-powered-pack-release-0.3.6
2022-10-25 10:54:08 +01:00
Alvaro Muñoz
a80b691358
Remove unnecessary TaggedTemplateEntryPoint
2022-10-25 11:44:45 +02:00
Alvaro Muñoz
37ea3f23f1
Refactored ReplySource to ReplyCall. Got rid of unnecessary ref()
2022-10-25 11:42:48 +02:00
github-actions[bot]
caf3a098c8
JS: Bump version of ML-powered library and query packs to 0.3.7
2022-10-25 09:12:00 +00:00
Tamas Vajk
0e4287e378
Kotlin: Exclude .kt files from java/unreachable-catch-clause
2022-10-25 11:06:51 +02:00
Tamas Vajk
4b042f9770
Kotlin: Add test cases for java/unreachable-catch-clause
2022-10-25 11:06:15 +02:00
github-actions[bot]
5d100c8036
JS: Bump patch version of ML-powered library and query packs
2022-10-25 09:00:40 +00:00
Tamas Vajk
a0490f454b
Kotlin: Improve java/abstract-to-concrete-cast to handle when branches
2022-10-25 10:17:47 +02:00
Tamas Vajk
690d6517d7
Kotlin: Add abstract to concrete type cast guarded by when
2022-10-25 10:16:40 +02:00
Jami Cogswell
1a1245343d
remove getNodeIntValue
2022-10-24 17:09:24 -04:00
Daniel Santos
3051903037
Merge branch 'github:main' into main
2022-10-24 15:47:11 -05:00
Jami Cogswell
c742a09def
remove AlgoSpec class
2022-10-24 16:15:18 -04:00
Jami Cogswell
d569f93e78
update getAlgoSpec
2022-10-24 16:05:57 -04:00
Jami Cogswell
09829d7f7a
simplify instanceof usage
2022-10-24 15:49:41 -04:00
Jami Cogswell
8bc0a64863
remove KeyGenInitMethodAccess class
2022-10-24 15:42:36 -04:00
Philip Ginsbach
b9f1cc5c6f
Merge pull request #10929 from github/ginsbach/TypeSignatureDocumentation
...
documentation for type signature members
2022-10-24 20:41:25 +01:00
Jami Cogswell
eb69b98dff
remove separators
2022-10-24 15:28:31 -04:00
Jami Cogswell
2ee23f004e
update qldoc for AlgorithmParameterSpec
2022-10-24 15:22:33 -04:00
Jami Cogswell
4c8e0a7648
update qldoc of JavaSecurityKeyPairGenerator and JavaSecurityAlgoParamGenerator
2022-10-24 15:05:05 -04:00
Chris Smowton
d171decad7
Accept test changes
...
All of java.util.{Collection,List,Map} redeclare `boolean equals(Object)` in order to add documentation, as a side-effect creating a real symbol that can be used as a dispatch target.
2022-10-24 19:49:29 +01:00
Chris Smowton
843f847960
Merge pull request #10921 from smowton/smowton/fix/ignore-enhanced-nullability
...
Kotlin: ignore enhanced nullability when extracting primitive types
2022-10-24 19:43:04 +01:00
Chris Smowton
7a0bded2ac
Kotlin: support argument-range specifications for $default methods
2022-10-24 19:31:03 +01:00
Chris Smowton
8d10b1b77b
Convert test to inline-expectation test
2022-10-24 19:15:35 +01:00
Paolo Tranquilli
89ca7e26fe
Merge pull request #10955 from github/redsun82/swift-fix-missing-bodies
...
Swift: fix missing extraction of function bodies in SPM builds
2022-10-24 20:00:02 +02:00
Geoffrey White
6f77e14aef
C++: Fix rare performance issue on cpp/comma-before-misleading-indentation.
2022-10-24 18:21:10 +01:00
Erik Krogh Kristensen
ef5132b0ae
Merge pull request #10883 from erik-krogh/codeSink
...
RB: don't flag code-injection for dynamic loading where an attacker only controls a substring
2022-10-24 18:59:36 +02:00
erik-krogh
aafef382dc
refactor StringPercentCall#getFormatArgument
2022-10-24 18:57:24 +02:00
Daniel Santos
5ab068a3cc
Update python/ql/src/experimental/Security/CWE-340/TokenBuiltFromUUID.ql
...
Co-authored-by: Taus <tausbn@github.com >
2022-10-24 11:55:21 -05:00
Daniel Santos
be8780742b
Update python/ql/src/experimental/Security/CWE-340/TokenBuiltFromUUID.ql
...
You are totally right! I just scanned the module's document and assumed it would implement it all. Pasting the documentation here for future reference https://docs.python.org/3/library/uuid.html?highlight=uuid#uuid.UUID .
Co-authored-by: Taus <tausbn@github.com >
2022-10-24 11:49:17 -05:00
Paolo Tranquilli
d419749eb2
Swift: fix missing extraction of function bodies in SPM builds
...
For some reason `-experimental-skip-non-inlinable-function-bodies-without-types`
is passed to the frontend, which will skip extraction of most bodies.
By suppressing that option the problem goes away.
2022-10-24 17:11:13 +02:00
Paolo Tranquilli
6651c9447e
Swift: failing test for extracting function bodies
2022-10-24 17:10:38 +02:00
Daniel Santos
a2ad924376
Minor formatting fixes
2022-10-24 09:38:17 -05:00
Alvaro Muñoz
742e4aa471
Apply suggestions from code review
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-10-24 16:17:11 +02:00
thiggy1342
952ad6ea46
Merge branch 'main' into expand-ruby-ssrf-sinks-faraday-connection-new
2022-10-24 09:52:24 -04:00
Asger F
ac4cac889f
Ruby: add DataFlow::ModuleNode
...
sdf
2022-10-24 15:35:17 +02:00
Asger F
65add15416
Ruby: add getALocalUse()
...
This is the inverse of getALocalSource()
2022-10-24 15:35:17 +02:00
Asger F
aab1e1f5b4
Ruby: add some helpers at the AST level
2022-10-24 15:35:17 +02:00
Tony Torralba
2148e8be4d
Merge pull request #10892 from atorralba/atorralba/swift/customurlschemes
...
Swift: Add a new Custom URL Scheme source
2022-10-24 15:33:27 +02:00
Mathias Vorreiter Pedersen
75de0f5c65
C++: Respond to review comments.
2022-10-24 15:13:50 +02:00
Tony Torralba
30f5fb6d83
Update expectations after merge
2022-10-24 14:24:13 +02:00
Mathias Vorreiter Pedersen
a7d6f4ff19
C++: Fix pointer/pointee conflation and handle flow through '++' when tracking indirect flow.
2022-10-24 14:23:43 +02:00
Paolo Tranquilli
1866a98c77
Bazel/CMake: fix typo in README.md
2022-10-24 14:19:11 +02:00
Erik Krogh Kristensen
5ff98cd80e
Merge pull request #10888 from erik-krogh/glob
...
Ruby: add model for Dir.glob and other Dir methods
2022-10-24 14:17:37 +02:00
Paolo Tranquilli
f49f6430a1
Bazel/CMake: make cmake runnable from outside the workspace
...
Also added a small `README.md` file.
2022-10-24 14:15:45 +02:00
Asger F
bcfe4ece6f
Merge pull request #10918 from asgerf/rb/constant-compound-assignment
...
Ruby: handle compound constant-assignment
2022-10-24 14:07:28 +02:00
Asger F
cac2e2e2e4
Merge pull request #10928 from asgerf/rb/assumed-global-const
...
Ruby: assume some global constants are defined
2022-10-24 14:06:34 +02:00
Chris Smowton
c6f4742f29
Kotlin: extract interface redeclarations of Object methods
...
Due to a probable compiler bug (?) the redeclaration looks like a fake symbol, leading to Java dispatching against a declaration that Kotlin doesn't believe exists.
2022-10-24 12:45:07 +01:00
Paolo Tranquilli
22adf21dd3
Merge pull request #10912 from jketema/templ-func-prototype
...
C++: Update test result after extractor changes
2022-10-24 13:44:02 +02:00
Tamás Vajk
1d2087b92a
Merge pull request #10949 from tamasvajk/kotlin-underscore-var
...
Kotlin: exclude Kotlin files from `java/underscore-identifier`
2022-10-24 13:32:49 +02:00
Asger F
0ffb0f6d4d
Ruby: constant lookup is unaffected by blocks
2022-10-24 13:07:21 +02:00
Chris Smowton
86e99c497d
Merge pull request #10930 from smowton/smowton/fix/external-property-overloads
...
Kotlin: give external extension properties with matching name and file distinct trap filenames
2022-10-24 11:32:37 +01:00
erik-krogh
07d90b34df
use instanceof in DirPathAccess
2022-10-24 12:05:26 +02:00
Erik Krogh Kristensen
669b0c35fe
fix qldoc
...
Co-authored-by: Nick Rolfe <nickrolfe@github.com >
2022-10-24 12:05:26 +02:00
erik-krogh
85cd7f9121
add model for Dir.glob and other Dir methods
2022-10-24 12:05:26 +02:00
Tony Torralba
f523fbc9d0
Merge branch 'main' into atorralba/swift/customurlschemes
2022-10-24 11:41:50 +02:00
Tony Torralba
3973e1ce04
Update swift/ql/test/library-tests/dataflow/dataflow/FlowConfig.qll
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2022-10-24 11:37:51 +02:00
Chris Smowton
88c4a2f6e2
Merge pull request #10936 from smowton/smowton/fix/internal-constructor-called-from-java
...
Kotlin: make internal constructors' trap labels consistent with the Java extractor
2022-10-24 09:37:00 +01:00
Paolo Tranquilli
90d4861b70
Merge pull request #10875 from github/redsun82/swift-codegen-doc
...
Swift: add infrastructure for documenting generated code
2022-10-24 10:14:57 +02:00
Tony Torralba
80f7d58fae
Add missing tests for not-quite-working flow steps
2022-10-24 09:37:22 +02:00
Paolo Tranquilli
fd226c51c1
Merge pull request #10924 from github/redsun82/swift-fix-qltest-failure-reporting
...
Swift: add qltest tests and fix its failure reporting
2022-10-24 09:34:12 +02:00
Paolo Tranquilli
15e5faf5b6
Merge branch 'main' into templ-func-prototype
2022-10-24 09:19:46 +02:00
Tamas Vajk
d585839b7e
Kotlin: exclude Kotlin files from java/underscore-identifier
2022-10-24 09:05:28 +02:00
Tamas Vajk
0192ae8331
Kotlin: Add test case for variables named underscore
2022-10-24 09:04:54 +02:00
Daniel Santos
066ffb7520
Tokens built from predictable UUIDs
2022-10-22 11:15:43 -05:00
Arthur Baars
b3855b089a
Ruby: some more tests
2022-10-22 14:15:29 +02:00
ALJI Mohamed
92a3846102
Fix query to omit sinks within std lib files
2022-10-22 09:35:55 +01:00
ALJI Mohamed
fdbed2a019
Add expected test results without considering inStdLib files.
2022-10-22 09:34:57 +01:00
Arthur Baars
ccaa12998d
Ruby: desugar compound constant-assignments
2022-10-22 01:11:35 +02:00
ALJI Mohamed
0f44268038
Add expected test results
2022-10-21 22:14:55 +01:00
ALJI Mohamed
7d60f1f1c8
Modified the QL ref file and add TarSlip examples
2022-10-21 22:14:00 +01:00
ALJI Mohamed
7319052495
Delete the examples/
2022-10-21 21:47:00 +01:00
ALJI Mohamed
31a6fb4181
Add TarSlip qlref for query-tests
2022-10-21 21:28:20 +01:00
Sim4n6
925f9d09e5
Update python/ql/src/experimental/Security/CWE-022bis/TarSlipImprov.ql
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2022-10-21 21:06:51 +01:00
Nick Rolfe
e5663574fe
Merge pull request #10935 from github/nickrolfe/taint-step
2022-10-21 19:28:23 +01:00
Geoffrey White
8a8b1aff7f
Swift: Restrict expressions count to expressions with locations.
2022-10-21 18:57:15 +01:00
Geoffrey White
3215295d06
Swift: simpkify SummaryStats.ql description.
2022-10-21 18:48:08 +01:00
Geoffrey White
dfe336cd33
C++: Autoformat tests.
2022-10-21 18:36:12 +01:00
Geoffrey White
2f849b4e77
C++: Change note.
2022-10-21 17:53:11 +01:00
Robert Marsh
88708d015c
C++: additional comments for modulus analysis
2022-10-21 12:50:41 -04:00
Geoffrey White
0d030d2b13
C++: Fix FormatLiteral.getMaxConvertedLength bug.
2022-10-21 17:29:55 +01:00
Geoffrey White
06e86accac
C++: Add a few cases to the formatLiteral test.
2022-10-21 17:29:28 +01:00
Geoffrey White
c8bf0d03a5
C++: Add formatAttribute test.
2022-10-21 17:29:27 +01:00
Geoffrey White
1376385abb
C++: Add formatLiteral test.
2022-10-21 17:29:26 +01:00
Chris Smowton
00800017fd
Kotlin: make internal constructors' trap labels consistent with the Java extractor
...
Previously we accidentally named these something like <init>$main, which is a name-mangling the Kotlin compiler applies to internal methods but not to constructors, which look to Java just like regular public constructors.
2022-10-21 16:48:37 +01:00
Nick Rolfe
9fb436e22b
Ruby: add change note for localTaintStep fix
2022-10-21 16:33:29 +01:00
Nick Rolfe
269c27757d
Ruby: include value-preserving flow in localTaintStep
2022-10-21 16:17:11 +01:00
Nick Rolfe
5319216c18
Ruby: add test of TaintTracking::localFlowStep
2022-10-21 16:04:04 +01:00
Jean Helie
88c6453fa6
Merge pull request #10934 from github/jhelie/add-hello-world-workflow-atm-queries
...
ATM: add hello world version of workflow checking queries run
2022-10-21 16:58:44 +02:00
Jean Helie
c0593c945b
ATM: add hello world version of workflow checking queries run
2022-10-21 16:37:43 +02:00
Paolo Tranquilli
6bd09b1858
Merge branch 'main' into redsun82/swift-codegen-doc
2022-10-21 15:31:52 +02:00
Chris Smowton
42d6968c20
Kotlin: give external extension properties with matching name and file distinct trap filenames
2022-10-21 14:28:53 +01:00
Paolo Tranquilli
408968a417
Swift: fix swift compilation in QL tests
2022-10-21 15:20:38 +02:00
Asger F
84ae17dcbb
Ruby: ensure Object is a transitive superclass
2022-10-21 15:18:59 +02:00
Philip Ginsbach
0dc7123ded
documentation for type signature members
2022-10-21 13:42:12 +01:00
Chris Smowton
5e28e5a170
Merge pull request #10909 from smowton/smowton/fix/kotlin-varargs-dataflow
...
Kotlin: Fix varargs dataflow, and varargs default handling
2022-10-21 13:32:34 +01:00
Paolo Tranquilli
bd62f2be0e
Merge branch 'main' into redsun82/swift-fix-qltest-failure-reporting
2022-10-21 14:07:19 +02:00
Paolo Tranquilli
04f6debb88
Swift: fix bazel packaging
2022-10-21 13:42:24 +02:00
Asger F
23697dba26
Docs: Mention new navigation commands
...
Document the changes in this PR:
https://github.com/github/vscode-codeql/pull/1568
2022-10-21 13:33:08 +02:00
Chris Smowton
b80bf4a73e
Account for route to IrSimpleType.kotlinType changing as of v1.7.0
2022-10-21 11:55:15 +01:00
Paolo Tranquilli
dbdf6ea489
Swift: fix qltest failure reporting
...
`qltest.sh` was not exiting with a failure when the extractor was
failing.
2022-10-21 12:54:09 +02:00
Paolo Tranquilli
cf7a5f877b
Swift: add qltest.sh tests
2022-10-21 12:54:09 +02:00
Jonas Jensen
7a8c9e7644
Merge pull request #10919 from kaspersv/kaspersv/document-equiv-rel-module
...
QL language spec: Document built-in equivalence relation module
2022-10-21 12:47:29 +02:00
Ian Lynagh
2e6d6e1538
Merge pull request #10894 from igfoo/igfoo/psi
...
Kotlin: Refactor PSI handling
2022-10-21 11:43:49 +01:00
Chris Smowton
1fe9e8457f
Kotlin: Fix varargs dataflow, and varargs default handling
...
Dataflow requires accounting for the fact that the varargs parameter isn't necessarily last in the parameter list in a couple more places. Default handling just requires that if the only null parameter is the varargs argument, and it has no default value, then no $default method is required-- the caller is expected to simply pass nothing (at QL
/ source level) or an empty array (at JVM level).
2022-10-21 11:14:41 +01:00
Kasper Svendsen
b29ed3b85a
Address reviewer comments from @jbj
2022-10-21 12:08:51 +02:00
Arthur Baars
a56ed88db2
Merge pull request #10920 from github/post-release-prep/codeql-cli-2.11.2
...
Post-release preparation for codeql-cli-2.11.2
2022-10-21 11:58:12 +02:00
Chris Smowton
7889d9cffa
Kotlin: ignore enhanced nullability when extracting primitive types
...
Otherwise we'll mistake `@NotNull Integer` for `int` and similar, causing a mismatch vs. Java signatures.
2022-10-21 10:55:26 +01:00
Tom Hvitved
4422327c00
Ruby: Call-context sensitivity for singleton method calls
2022-10-21 11:48:25 +02:00
Asger F
3fd2b9ad7b
Ruby: add a comment
...
This would have saved me some time
2022-10-21 11:44:12 +02:00
Asger F
ee7970afcb
Ruby: treat String as a builtin
2022-10-21 11:44:11 +02:00
Asger F
db58e3357b
Ruby: allow speculative container qname resolution
2022-10-21 11:44:11 +02:00
Kasper Svendsen
925fd2eb45
Accept reviewer reformulation
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-10-21 11:34:48 +02:00
Kasper Svendsen
6fe0de8a9e
Accept auto-format suggestion
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-10-21 11:32:37 +02:00
Kasper Svendsen
7faea53c18
QL language spec: Document built-in equivalence relation module
2022-10-21 11:03:01 +02:00
Rasmus Wriedt Larsen
8e8fb3d34f
Merge pull request #10911 from RasmusWL/location-debug
...
Python: add `debug based on location` snippet
2022-10-21 10:59:51 +02:00
Tony Torralba
7a43bdbf05
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2022-10-21 10:20:01 +02:00
Tamás Vajk
352c20b0c8
Merge pull request #10885 from tamasvajk/kotlin-const-loop-cond-fp
...
Kotlin: Add test case for false positive with modified captured variable
2022-10-21 10:08:02 +02:00
github-actions[bot]
be7693283b
Post-release preparation for codeql-cli-2.11.2
2022-10-21 08:07:17 +00:00
Tom Hvitved
6feff7e3ed
Ruby: Add more data-flow call sensitivity tests
2022-10-21 09:36:34 +02:00
Tom Hvitved
cf35299d08
Merge pull request #10910 from hvitved/ruby/call-graph-refactor
...
Ruby: Refactor call graph logic for singleton methods
2022-10-21 09:36:13 +02:00
Asger F
d26b0892cf
Ruby: also add an AST test
2022-10-21 09:23:21 +02:00
Asger F
038bdecad7
Ruby: add test with compound assignment to a constant
2022-10-21 09:20:03 +02:00
Tamas Vajk
9d1af76c02
Add more test cases
2022-10-21 08:51:11 +02:00
Tamas Vajk
7559d3095f
Revert "Kotlin: Exclude captured variables from constant loop condition check"
...
This reverts commit 3e476f96bd .
2022-10-21 08:38:30 +02:00
Tom Hvitved
db699ae314
Ruby: Refactor call graph logic for singleton methods
2022-10-21 07:27:41 +02:00
Jami Cogswell
345e4e0e8f
remove unnecessary 'exists'
2022-10-20 23:52:31 -04:00
thiggy1342
4e5c1f210d
Update ruby/ql/lib/change-notes/2022-10-20-expand-faraday-model-for-ssrf-sink
...
Co-authored-by: Rahul Zhade <rzhade3@users.noreply.github.com >
2022-10-20 17:33:17 -04:00
thiggy1342
ffd596b295
Merge branch 'main' into expand-ruby-ssrf-sinks-faraday-connection-new
2022-10-20 17:12:08 -04:00
Chris Smowton
ac013f9d19
Merge pull request #10889 from smowton/smowton/fix/enum-entry-class-warning
...
Kotlin: Don't warn on extracting an enum-entry class
2022-10-20 22:08:29 +01:00
thiggy1342
244a3329e0
Merge branch 'main' into expand-ruby-ssrf-sinks-faraday-connection-new
2022-10-20 16:37:57 -04:00
thiggy1342
4c3e3e442a
Add Faraday::Connection.new as sink for SSRF query
2022-10-20 20:32:08 +00:00
Jeroen Ketema
4b5674af32
C++: Update test result after extractor changes
2022-10-20 22:18:32 +02:00
Rasmus Wriedt Larsen
ad915e2698
Python: add debug based on location snippet
2022-10-20 21:20:24 +02:00
Geoffrey White
138643519c
Merge pull request #10757 from geoffw0/sqlinject
...
Swift: Query for SQL injection
2022-10-20 18:55:38 +01:00
Geoffrey White
661106c1a0
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-10-20 17:54:40 +01:00
Chuan-kai Lin
2e9c8c759c
Merge pull request #10907 from cklin/document-assume-small-delta
...
QL language spec: pragma[assume_small_delta]
2022-10-20 09:00:45 -07:00
Chris Smowton
f2749a8878
Don't warn on extracting an enum-entry class
2022-10-20 16:09:45 +01:00
Chuan-kai Lin
9df725901b
QL language spec: pragma[assume_small_delta]
2022-10-20 07:30:02 -07:00
Asger F
8c2c28dd56
Ruby: add test showing missing superclass edge
2022-10-20 15:56:58 +02:00
Arthur Baars
a520de3986
Merge pull request #10902 from github/release-prep/2.11.2
...
Release preparation for version 2.11.2
2022-10-20 15:55:44 +02:00
Arthur Baars
c59c6f6eb6
Update go/ql/src/CHANGELOG.md
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-10-20 15:22:54 +02:00
Arthur Baars
45c9a0d0b1
Apply suggestions from code review
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-10-20 15:22:29 +02:00
Ian Lynagh
9bc0c98b8e
Kotlin: Update logs test
2022-10-20 14:18:31 +01:00
Anders Schack-Mulligen
9ebcaf80e7
Java: Fix some join-orders.
2022-10-20 14:23:36 +02:00
Josh Soref
397b724da1
spelling: triggered
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:02 -04:00
Josh Soref
c224231497
spelling: specify
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:02 -04:00
Josh Soref
f7d78486d1
spelling: repositories
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:02 -04:00
Josh Soref
6767554e19
spelling: recognition
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:02 -04:00
Josh Soref
9ed6d97f96
spelling: recommended
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:02 -04:00
Josh Soref
f0d27c0257
spelling: properties
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:02 -04:00
Josh Soref
485543c2b5
spelling: precondition
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:21:01 -04:00
Josh Soref
ff1b3208ae
spelling: official
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
ff6676e59b
spelling: normalize
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
e4321f07a0
spelling: mimic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
1600825679
spelling: implicit
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
f5ff522a50
spelling: implicitly
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
c5c9f4d746
spelling: dependencies
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
474aef438b
spelling: connection
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
4c6454971f
spelling: compound
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Josh Soref
8ff24bc3b9
spelling: additional
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-20 08:18:23 -04:00
Geoffrey White
5a3577679d
Swift: Improve metadata.
2022-10-20 12:44:56 +01:00
Tom Hvitved
471a596dfb
Merge pull request #10895 from hvitved/ruby/track-module-no-self-params
...
Ruby: Block for steps into `self` parameters in `trackModuleAccess`
2022-10-20 13:34:59 +02:00
Geoffrey White
adeef309f3
Swift: Add some queries to help examine databases.
2022-10-20 12:34:07 +01:00
Ian Lynagh
291330c7e1
Kotlin: Small code simplification
2022-10-20 12:29:48 +01:00
github-actions[bot]
9a0848bbc4
Release preparation for version 2.11.2
2022-10-20 11:05:19 +00:00
Tom Hvitved
faaead682e
Ruby: Block for steps into self parameters in trackModuleAccess
2022-10-20 13:00:12 +02:00
Tom Hvitved
bda98261cc
Ruby: Add more call graph tests
2022-10-20 12:59:32 +02:00
Paolo Tranquilli
7144383505
Swift: fix british spelling of behaviour
2022-10-20 11:43:46 +02:00
Paolo Tranquilli
f9df8a645f
Swift: fix potential name conflict on schema class fields
2022-10-20 11:30:05 +02:00
Paolo Tranquilli
8813aea893
Swift: allow default class doc name to be set for properties
2022-10-20 11:23:13 +02:00
Chris Smowton
e868cdf91b
Merge pull request #9876 from smowton/smowton/feature/interface-forwarding
...
Kotlin: implement default interface forwarding
2022-10-20 10:17:47 +01:00
Paolo Tranquilli
c22a7e1c81
Swift: rename _DocnameModifier to _DocModifier
2022-10-20 11:05:55 +02:00
Paolo Tranquilli
37b405f134
Swift: add generated docs for predicates
2022-10-20 11:05:01 +02:00
Paolo Tranquilli
22bd10132f
Swift: insert blank line between doc and desc
2022-10-20 10:49:26 +02:00
erik-krogh
bb8bcd4643
fix typo
2022-10-20 10:48:02 +02:00
erik-krogh
c13e8e4f48
Merge branch 'main' into formatTaint
2022-10-20 10:46:16 +02:00
Paolo Tranquilli
b65f49bd50
Swift: document introducer_int
2022-10-20 10:46:12 +02:00
Paolo Tranquilli
7b181a2de0
Swift: change doc of Immediate property getters
2022-10-20 10:39:37 +02:00
Paolo Tranquilli
6830c2f355
Swift: enhance property docs
2022-10-20 10:35:47 +02:00
erik-krogh
7797211118
Merge branch 'main' into unsafeRbCmd
2022-10-20 10:34:17 +02:00
erik-krogh
24916f8538
rename runsImmediately to runsArbitraryCode
2022-10-20 10:10:11 +02:00
Arthur Baars
fd5f678e1f
Merge pull request #10897 from jsoref/spelling-frontend
...
Spelling frontend
2022-10-20 10:09:54 +02:00
AlexDenisov
32ac7d6f25
Merge pull request #10893 from github/redsun82/setup-python-4
...
Swift: bump actions/setup-python from 3 to 4
2022-10-20 09:35:42 +02:00
Jeroen Ketema
70b48ad213
Merge pull request #10896 from jsoref/codeowners-codeql-frontend-reviewers
...
Fix CODEOWNERS docs/codeql paths
2022-10-20 09:26:03 +02:00
Paolo Tranquilli
9abaa5c0b3
Swift: rename doc_name with doc in properties
2022-10-20 08:59:08 +02:00
Paolo Tranquilli
492d5aec78
Swift: rename doc to description in properties
2022-10-20 08:57:41 +02:00
Josh Soref
2d83b86e1a
Fix CODEOWNERS docs/codeql/ paths
...
* codeql-cli
* codeql-for-visual-studio-code
* ql-language-reference path
2022-10-19 23:36:42 -04:00
Josh Soref
8fa524cd52
spelling: substitution
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 23:27:19 -04:00
Josh Soref
7cc61ec018
spelling: monotonic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 23:27:19 -04:00
Josh Soref
cd0e69ae32
spelling: meaningful
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 23:27:19 -04:00
Alvaro Muñoz
c7ac237968
Update test results after merging new XSS improvements
2022-10-19 23:41:37 +02:00
Alvaro Muñoz
c10087b9a3
Merge branch 'restify_improvements' of https://github.com/pwntester/codeql into restify_improvements
2022-10-19 22:18:29 +02:00
Alvaro Muñoz
009403b61e
Add QLDoc for FormatterSetup.getAFormatterHandler
2022-10-19 22:18:13 +02:00
Alvaro Muñoz
2ad5a70cf1
Merge branch 'main' into restify_improvements
2022-10-19 21:57:37 +02:00
Erik Krogh Kristensen
534574f4d9
Merge pull request #10764 from pwntester/javascript_xss_improvements
...
JS: Consider other XSS unsafe content-types when reasoning about XSS vulnerabilities
2022-10-19 21:53:24 +02:00
Geoffrey White
5b1e138300
Swift: Another qhelp edit.
2022-10-19 20:49:26 +01:00
Geoffrey White
495f744cd3
Swift: Attempt to address qhelp suggestions.
2022-10-19 20:44:27 +01:00
Geoffrey White
05d9c7b892
Swift: More 'an SQL' -> 'a SQL'.
2022-10-19 19:44:59 +01:00
Geoffrey White
83dc6d1564
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2022-10-19 19:42:35 +01:00
Ian Lynagh
74a4061508
Kotlin: Refactor PSI handling
...
We were giving warnings about comments, when we were actually trying to
populate numlines.
2022-10-19 18:02:24 +01:00
Alvaro Muñoz
245be44eac
Merge branch 'main' into javascript_xss_improvements
2022-10-19 18:18:19 +02:00
Alvaro Muñoz
976dd7f99f
Fix format errors
2022-10-19 18:14:25 +02:00
dependabot[bot]
c3693f1a20
Swift: bump actions/setup-python from 3 to 4
...
Also fixes python version with a `.pythonversion` file.
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-19 18:10:42 +02:00
Chris Smowton
c6b62c934b
Merge pull request #10853 from smowton/smowton/fix/specialised-anon-classes
...
Kotlin: extract called private methods of specialised types, and specialised instances of anonymous types
2022-10-19 16:48:28 +01:00
Tony Torralba
c2a2d6b379
Fix LaunchOptionsUrlVarDecl
...
Update test expectations
2022-10-19 17:42:28 +02:00
Jami Cogswell
b7f360647e
rename change note
2022-10-19 11:37:42 -04:00
Alvaro Muñoz
31d271b8e1
Fix format errors
2022-10-19 17:32:34 +02:00
Henry Mercer
6a12d676b8
Merge pull request #10878 from jsoref/spelling-ml
...
Spelling ml
2022-10-19 16:28:06 +01:00
Paolo Tranquilli
6426b8dc7e
Merge pull request #10891 from github/alexdenisov/xcode-autobuilder-tests
...
Swift: add Xcode autobuilder tests
2022-10-19 17:19:21 +02:00
ALJI Mohamed
9163cbec09
Restrict the reach for an additional taint step
2022-10-19 16:08:49 +01:00
Jami Cogswell
e5982f19fa
minor updates
2022-10-19 11:05:40 -04:00
ALJI Mohamed
25a7fcffc0
Add an additional taint step
2022-10-19 16:01:34 +01:00
Tony Torralba
0678b06a9b
Apply review suggestions
2022-10-19 16:58:43 +02:00
Chris Smowton
4da480ecc0
Accept test changes resulting from correctly mapping extension methods' default proxies
2022-10-19 15:56:17 +01:00
Tony Torralba
e2c9240973
Add a new Custom URL Scheme source
...
Also adds a couple of data flow steps to model flow through `?` expressions.
2022-10-19 16:55:14 +02:00
Chris Smowton
14b8892ced
Don't create interface forwarders for other interfaces, and target super accesses correctly
...
Intermediate interfaces don't need interface forwarders, since the Kotlin compiler won't try to make them non-abstract by synthesising methods.
Super references should always target an immediate superclass, not the ancestor containing the intended implementation.
2022-10-19 15:37:06 +01:00
Alex Denisov
bb31ff7aef
Swift: drop redundant workflow
2022-10-19 16:36:45 +02:00
Alex Denisov
7790abce22
Swift: better CI names
2022-10-19 16:31:27 +02:00
Tony Torralba
25241276b0
Add change note
2022-10-19 16:29:36 +02:00
Alex Denisov
f6cfeab357
Swift: add Xcode autobuilder to CI
2022-10-19 16:29:08 +02:00
Tony Torralba
429bd5fbd8
Add flow summaries for startActivities
...
Uses SyntheticCallables and SyntheticGlobals to pair each startActivities call to getIntent calls in the components targeted by the intent(s).
2022-10-19 16:25:04 +02:00
Alex Denisov
95b7e8abb5
Swift: make xcode-autobuilder tester work with several tests
2022-10-19 16:20:32 +02:00
Ian Lynagh
71b649558b
Merge pull request #10648 from igfoo/igfoo/lockless
...
Kotlin: Implement lockless TRAP writing
2022-10-19 15:04:19 +01:00
Alex Denisov
e51485595c
Swift: introduce xcode-autobuilder tests
2022-10-19 16:04:07 +02:00
Erik Krogh Kristensen
8086d37cfc
Merge pull request #10840 from erik-krogh/html_safe
...
RB: simplify html_safe modeling
2022-10-19 15:02:21 +02:00
ALJI Mohamed
d6fa745279
Add TarSlip Improv query
2022-10-19 14:01:40 +01:00
Tamas Vajk
3e476f96bd
Kotlin: Exclude captured variables from constant loop condition check
2022-10-19 15:01:17 +02:00
Jami Cogswell
961e5c72a3
minor updates
2022-10-19 08:44:35 -04:00
Tamas Vajk
0bc57410a0
Kotlin: Add FP test case for constant loop condition
2022-10-19 14:19:49 +02:00
Ian Lynagh
24a84875ad
Merge pull request #10879 from jsoref/spelling-kotlin
...
Spelling kotlin
2022-10-19 12:26:52 +01:00
erik-krogh
3dd89bb7bf
remove duplicate alerts due to multiple states reaching the same sink
2022-10-19 13:19:18 +02:00
Tom Hvitved
9e5d9f897f
Merge pull request #10824 from jsoref/spelling-csharp
...
Spelling csharp
2022-10-19 13:16:02 +02:00
Ian Lynagh
83a3ae64c4
Kotlin: Accept test changes
2022-10-19 12:14:39 +01:00
Ian Lynagh
c9cf33dd20
Kotlin: Nest TRAP files inside their basename
2022-10-19 12:14:39 +01:00
Ian Lynagh
dff1cf4c48
Kotlin: Don't write TRAP files that are already out-of-date
2022-10-19 12:14:38 +01:00
Ian Lynagh
e6e0fe0cd4
Kotlin: Tweak custom_plugin/diagnostics test
2022-10-19 12:14:38 +01:00
Ian Lynagh
b251078976
Kotlin: Implement lockless TRAP writing
...
Rather than using lock files and rewriting TRAP file, and storing the
metadata in a .metadata file, we now encode the metadata in the filename
and rename all but the newest TRAP file so that the importer doesn't
see them.
So we might end up with e.g.
Text.members#0.0-1664381081060-java.trap.gz
Text.members#55.0-1658481279000-java.trap-old.gz
Text.members#55.0-1664381081060-java.trap-old.gz
For now, you can go back to the old system by setting
CODEQL_EXTRACTOR_JAVA_TRAP_LOCKING=true
in the environment.
2022-10-19 12:14:38 +01:00
erik-krogh
226bd1f321
add flow-state support to sanitizers in code-execution, and use that to refactor the string-concatenation-sanitizer
2022-10-19 13:06:54 +02:00
erik-krogh
3e51f6fa8e
use flow-states to remove FPs related to an attacker only controlling a substring in code-injection
2022-10-19 13:00:44 +02:00
Erik Krogh Kristensen
caaee26ae5
Merge pull request #10880 from jsoref/spelling-ql
...
Spelling ql
2022-10-19 12:38:48 +02:00
erik-krogh
2a72e89090
add a runsImmediately predicate to CodeExecution (name chosen by Copilot)
2022-10-19 12:30:47 +02:00
Chris Smowton
7ba9a31766
Use US spelling
2022-10-19 10:41:29 +01:00
Paolo Tranquilli
861377f650
Swift: property doc tweaks
2022-10-19 11:40:05 +02:00
erik-krogh
d77b31672d
add failing test for safe-ish uses of Object.send
2022-10-19 11:27:08 +02:00
erik-krogh
cb33d5aeff
add test for .send(..) in code-injection
2022-10-19 11:25:30 +02:00
Tony Torralba
fd8f8cb930
Merge pull request #10223 from atorralba/atorralba/unsafe-content-resolver
...
Java: New Android query to detect unsafe content URI resolution
2022-10-19 11:22:04 +02:00
Tamás Vajk
0f499dfb75
Merge pull request #10877 from tamasvajk/kotlin-safe-call-null-check
...
Kotlin: Add test for useless null check on safe calls
2022-10-19 11:19:58 +02:00
Tamás Vajk
086362d8ee
Merge pull request #10859 from tamasvajk/kotlin-field-masking
...
Kotlin: Exclude fields of live literals from `java/field-masks-super-field`
2022-10-19 11:19:44 +02:00
Josh Soref
99aa5ffea6
spelling: substitutions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 05:10:23 -04:00
Josh Soref
24a032041f
spelling: sanitize
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 05:10:23 -04:00
Henry Mercer
3afb9c1b3b
Merge pull request #10845 from github/henrymercer/remove-worsening-queries
...
ATM: Remove worsening-based queries
2022-10-19 10:05:53 +01:00
Josh Soref
0bc19506e7
spelling: reinitialised
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:59:16 -04:00
Josh Soref
0079ee3d54
spelling: annotation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:59:16 -04:00
James Fletcher
e9e2e90a92
Merge pull request #10647 from jf205/lgtm-cli-vs-code
...
Partially remove mentions of lgtm.com from the CodeQL documentation
2022-10-19 09:32:01 +01:00
Josh Soref
d722448796
spelling: injection
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:27:37 -04:00
Josh Soref
a4beafbe44
spelling: classifier
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:27:37 -04:00
Josh Soref
7055b139bf
spelling: the
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:22:34 -04:00
AlexDenisov
5c8fa84d30
Merge pull request #10786 from github/alexdenisov/xcode-autobuilder
...
Swift: introduce Xcode autobuilder
2022-10-19 10:19:49 +02:00
Josh Soref
2636f7108e
spelling: subclasses
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
08b06aa056
spelling: regular
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
e39706afc1
spelling: regex
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
866cc1eda1
spelling: recursive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
b3df4ab207
spelling: preferable
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
d9900fe548
spelling: possibility
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
bc029bd1b8
spelling: plentiful
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
f2ce34cd41
spelling: parameterized
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
08d479bff4
spelling: override
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
a6e0f0e47a
spelling: maintainability
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
4d22b2aaab
spelling: interesting
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
362d143737
spelling: immediately
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
5468dbaaf1
spelling: corresponding
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
fefea7ed4e
spelling: consistencies
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
8ced7d64d3
spelling: comment
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
8689a9405b
spelling: characteristic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
f176877a29
spelling: builtin
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:19:27 -04:00
Josh Soref
86a85b8997
spelling: unsupported
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
5e15c7af31
spelling: unspecified
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
fd562dabf3
spelling: unhandled
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
8e032ac8c1
spelling: suitability
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
32cfe77e92
spelling: successor
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
e228b019d5
spelling: security
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
03524d7e74
spelling: roslyn
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
524ab47c44
spelling: representing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
cfb3329428
spelling: representation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
87998943e1
spelling: relation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
e231c64404
spelling: reachable
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
f063904739
spelling: proposed
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
fc2613f465
spelling: property
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
4b6b1fd8a8
spelling: propagates
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:17 -04:00
Josh Soref
7ee9e0286b
spelling: processing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
9d4d9b2ba2
spelling: predecessor
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
ce5ecf5c79
spelling: performance
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
f3fce91f02
spelling: overrider
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
431f05db4a
spelling: opposed
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
407833ffb1
spelling: nullability
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
f7b4d1e99a
spelling: modifiers
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
75397e5e61
spelling: matching
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
a52ea7522e
spelling: known
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
be2dbe7fac
spelling: initializer
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
29ea496ec9
spelling: implicitly
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
0c2fa214ef
spelling: highlighting
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
772a6d00a9
spelling: extension
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
31a95a12c9
spelling: exclusive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
0ecc7cb67a
spelling: enumerable
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
a68a61d43f
spelling: entity
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
5a7022d1c5
spelling: encoded
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
55c4354ef2
spelling: dispose
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
96aab6902a
spelling: determine
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
5dd575a494
spelling: dereference
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Josh Soref
14ce0ea802
spelling: cryptographic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 03:49:16 -04:00
Tamas Vajk
bd9c7df25b
Improve QL quality
2022-10-19 09:00:39 +02:00
Tamas Vajk
d65c52bfc5
Kotlin: Add test for useless null check on safe calls
2022-10-19 08:49:56 +02:00
Jami Cogswell
4df0fbcce1
update tests
2022-10-19 01:17:57 -04:00
Jami Cogswell
dc8b62baa0
add support for AlgorithmParameterGenerator
2022-10-19 00:11:59 -04:00
Jami Cogswell
ff557a287f
add min key size predicates
2022-10-18 23:08:54 -04:00
Jami Cogswell
383b8a84e9
update select statement to be closer to cpp's
2022-10-18 21:55:11 -04:00
Alvaro Muñoz
b79f7f3e95
Address code review comments
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2022-10-18 21:42:15 +02:00
Alvaro Muñoz
6ab62da015
Add Restify/Spife support
2022-10-18 21:41:34 +02:00
erik-krogh
e29bf8ced2
Merge branch 'main' into html_safe
2022-10-18 19:49:37 +02:00
Tom Hvitved
6208071575
Merge pull request #10874 from hvitved/ruby/fix-test-syntax-error
...
Ruby: Fix syntax error in a test
2022-10-18 19:28:17 +02:00
Chris Smowton
b148e3168f
Java models-as-data: infer Kotlin $default models from that of its parent function
2022-10-18 18:17:08 +01:00
Geoffrey White
027b71381a
Swift: annotate all cases.
2022-10-18 16:38:02 +01:00
Paolo Tranquilli
65fd9cbf9c
Swift: docname and desc examples
2022-10-18 17:05:19 +02:00
Paolo Tranquilli
35c1d311c5
Swift: add doc name override
2022-10-18 17:04:51 +02:00
Paolo Tranquilli
8de7df9c21
Swift: add auto-generated docs for getters
2022-10-18 17:04:51 +02:00
Paolo Tranquilli
4d87abed0e
Swift: generate docname in qlgen
2022-10-18 17:04:51 +02:00
Paolo Tranquilli
5f7fa6f915
Swift: generate class docs
...
Python docstrings in `schema.py` are now added to the generated classes.
As an example, a docstring is added to `Expr`.
2022-10-18 17:04:51 +02:00
Paolo Tranquilli
f41fd81965
Swift: add docstring parsing
2022-10-18 16:54:26 +02:00
Tom Hvitved
61b9065135
Ruby: Fix syntax error in a test
2022-10-18 16:49:32 +02:00
Geoffrey White
73f977c98c
Merge pull request #10510 from geoffw0/staticfn
...
C++: Fix FPs for cpp/unused-static-function in files that were not extracted completely
2022-10-18 14:53:49 +01:00
Tony Torralba
1d745a6365
Merge pull request #10774 from atorralba/atorralba/swift/url-field-summaries
...
Swift: Add summaries for tainted URL fields
2022-10-18 15:32:23 +02:00
Arthur Baars
14f150c1f3
Merge pull request #10872 from aibaars/set-output
...
CI: update actions/cache to v3
2022-10-18 15:09:29 +02:00
Arthur Baars
55bda34a45
Ruby: drop beta notice
2022-10-18 15:07:35 +02:00
Jean Helie
e2462d8a2e
Merge pull request #10871 from github/atm-model-pack-update/f3c3c9360a727959e428ecc6932257e6a546dc65d8a9baac525a49247123822d
...
ATM: Update model pack to version 0.2.1-2022-09-06-08h55m54s.bubbly-basin-xpztl8fh.f3c3c9360a727959e428ecc6932257e6a546dc65d8a9baac525a49247123822d
2022-10-18 14:55:21 +02:00
Paolo Tranquilli
fd46592dfb
Merge pull request #10869 from github/redsun82/swift-no-base-suffix
...
Swift: replace `Base` suffix with `Generated::` module
2022-10-18 14:28:08 +02:00
AlexDenisov
5e17861066
Merge pull request #10870 from github/redsun82/swift-rm-schema.yml
...
Swift: remove obsolete `schema.yml`
2022-10-18 14:23:48 +02:00
Arthur Baars
f56e155080
CI: update actions/cache to v3
2022-10-18 14:07:52 +02:00
github-actions[bot]
fa274e4375
ATM: Update ML model to 0.2.1-2022-09-06-08h55m54s.bubbly-basin-xpztl8fh.f3c3c9360a727959e428ecc6932257e6a546dc65d8a9baac525a49247123822d
2022-10-18 11:53:42 +00:00
Paolo Tranquilli
8a839c8b96
Swift: remove obsolete schema.yml
2022-10-18 12:51:56 +02:00
Paolo Tranquilli
9c7eec5e44
Swift: remove debug print from qlgen.py
2022-10-18 12:48:18 +02:00
Tony Torralba
0eeaf71716
Simplify models by introducing TaintInheritingContent
2022-10-18 12:36:18 +02:00
Paolo Tranquilli
e29fe54b3c
Swift: remove redudant import
2022-10-18 12:35:35 +02:00
Paolo Tranquilli
f4f5e3e382
Swift: remove redundant module namespace
2022-10-18 12:32:31 +02:00
Paolo Tranquilli
af3f782ad5
Swift: fix TypeDecl.qll
2022-10-18 12:21:06 +02:00
Paolo Tranquilli
581939d139
Swift: replace non-genereated Base suffixes
...
This is the effect of running
```
find swift/ql/lib/codeql/swift/elements -type f | xargs sed -ri 's/\b([A-Z]\w+)Base\b/Generated::\1/g'
```
followed by reformatting.
2022-10-18 12:21:06 +02:00
Paolo Tranquilli
307c885c1f
Swift: use Generated:: instead of Base suffix
...
This commit changes `codegen` and the generated classes.
2022-10-18 12:21:06 +02:00
Chris Smowton
2713b3ee06
Comment extraction: don't treat anonymous classes differently
2022-10-18 11:10:29 +01:00
Calum Grant
643cfced6a
Merge pull request #10837 from github/calumgrant/ruby-frameworks2
...
Ruby: Add more frameworks to the list of supported frameworks
2022-10-18 11:06:14 +01:00
Tamás Vajk
0069fd9681
Merge pull request #10860 from tamasvajk/kotlin-clinit-static
...
Kotlin: Add `static` modifier to `clinit`
2022-10-18 11:39:34 +02:00
Chris Smowton
50f99d8e82
Don't produce interface forwarders directed at an abstract target
2022-10-18 10:31:01 +01:00
erik-krogh
8a3e255e12
remove FPs in rb/stored-xss from spurious sources
2022-10-18 11:07:48 +02:00
Chris Smowton
67aa6c7737
Merge pull request #10822 from smowton/smowton/feature/kotlin-collection-literals
...
Koltin: support collection literals
2022-10-18 09:45:59 +01:00
erik-krogh
e47e20c5e7
remove use of HtmlSafeCall from tests
2022-10-18 10:43:24 +02:00
erik-krogh
5a98f66bef
simplify the modeling of html_safe. Any call to html_safe is now considered an XSS sink
2022-10-18 10:43:22 +02:00
Alex Denisov
0c3fd9fdcf
Swift: %/\t/\s/
2022-10-18 10:17:02 +02:00
Alex Denisov
ad9f5efcd7
Swift: stream directly instead of using intermediate string
2022-10-18 10:15:16 +02:00
Alex Denisov
eba7f1a744
Swift: simplify Bazel a bit
2022-10-18 10:04:50 +02:00
Tom Hvitved
19bcd287cb
Merge pull request #10867 from hvitved/ruby/orm-tracking-redundant-additional-step
...
Ruby: Remove redundant additional flow step from `OrmTracking::Configuration`
2022-10-18 10:03:51 +02:00
Tom Hvitved
d362296f1c
Merge pull request #10864 from hvitved/ruby/get-a-barrier-node-join-fix
...
Ruby: Fix bad join-order in `BarrierGuard::getABarrierNode`
2022-10-18 10:03:02 +02:00
Alex Denisov
a3b5f2239d
Swift: do not use C casts
2022-10-18 10:01:02 +02:00
Alex Denisov
44c26be2c4
Swift: make dealing with CF types typesafe
2022-10-18 09:53:06 +02:00
Tom Hvitved
1266d248ed
Ruby: Remove redundant additional flow step from OrmTracking::Configuration
2022-10-18 09:33:29 +02:00
Tamas Vajk
b67a8877a7
Kotlin: Add static modifier to clinit
2022-10-18 09:26:06 +02:00
Alex Denisov
d97669f9aa
Swift: add CMake target for xcode-autobuilder
2022-10-18 09:22:40 +02:00
Alex Denisov
6d754c42d7
Swift: do not use relative include paths
2022-10-18 09:14:48 +02:00
Alex Denisov
023fea68d0
Merge branch 'main' into alexdenisov/xcode-autobuilder
2022-10-18 09:12:47 +02:00
Tamás Vajk
543e2f5aab
Merge pull request #10678 from tamasvajk/kotlin-type-param-modifiers
...
Kotlin: Extract type parameter modifiers (`reified`, `in`, `out`)
2022-10-18 09:10:57 +02:00
Jami Cogswell
5f39888a2d
minor code restructure
2022-10-17 16:28:06 -04:00
Tom Hvitved
6c765a95ff
Ruby: Fix bad join-order in BarrierGuard::getABarrierNode
...
Before
```
Evaluated relational algebra for predicate XSS#e59174e9::Shared::Sanitizer#class#f@6c9d334e with tuple counts:
0 ~0% {1} r1 = JOIN ActionView#3462bac2::RailsHtmlEscaping#f WITH project#DataFlowPublic#e1781e31::CallNode::getArgument#1#dispred#fff#3 ON FIRST 1 OUTPUT Lhs.0
554860 ~0% {2} r2 = JOIN SsaImpl#ff97b16a::Cached::getARead#1#ff_10#join_rhs WITH DataFlowPrivate#462ff392::Cached::TExprNode#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
1 ~0% {1} r3 = JOIN r2 WITH DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstArrayInclusionCall#::getAMaybeGuardedCapturedDef#0#f ON FIRST 1 OUTPUT Lhs.1
1 ~0% {1} r4 = r1 UNION r3
7 ~0% {1} r5 = JOIN r2 WITH DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstCompare#::getAMaybeGuardedCapturedDef#0#f ON FIRST 1 OUTPUT Lhs.1
3045081 ~1% {3} r6 = JOIN DataFlowPrivate#462ff392::Cached::TExprNode#ff_10#join_rhs WITH DataFlowPrivate#462ff392::Cached::TExprNode#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Rhs.1
3045081 ~1% {3} r7 = JOIN r6 WITH ControlFlowGraph#46cebcbd::CfgNode::getBasicBlock#0#dispred#ff ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
554860 ~1% {3} r8 = JOIN r7 WITH SsaImpl#ff97b16a::Cached::getARead#1#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2
1462917146 ~0% {3} r9 = JOIN r8 WITH SsaImpl#ff97b16a::Cached::getARead#1#ff ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
5082692 ~1% {4} r10 = JOIN r9 WITH DataFlowPublic#e1781e31::guardControlsBlock#3#fff_102#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.2, Rhs.2, Lhs.1
33 ~0% {1} r11 = JOIN r10 WITH BarrierGuards#2462899b::stringConstArrayInclusionCall#3#fff ON FIRST 3 OUTPUT Lhs.3
57 ~0% {1} r12 = JOIN r10 WITH BarrierGuards#2462899b::stringConstCompare#3#fff ON FIRST 3 OUTPUT Lhs.3
90 ~0% {1} r13 = r11 UNION r12
97 ~0% {1} r14 = r5 UNION r13
98 ~0% {1} r15 = r4 UNION r14
return r15
```
After
```
[2022-10-17 20:35:01] Evaluated non-recursive predicate XSS#e59174e9::Shared::Sanitizer#class#f@487a64ar in 65ms (size: 98).
Evaluated relational algebra for predicate XSS#e59174e9::Shared::Sanitizer#class#f@487a64ar with tuple counts:
0 ~0% {1} r1 = JOIN ActionView#3462bac2::RailsHtmlEscaping#f WITH project#DataFlowPublic#e1781e31::CallNode::getArgument#1#dispred#fff#3 ON FIRST 1 OUTPUT Lhs.0
33 ~0% {1} r2 = JOIN DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstArrayInclusionCall#::guardChecksSsaDef#3#fff WITH DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstArrayInclusionCall#::guardControlsSsaDef#4#ffff ON FIRST 3 OUTPUT Rhs.3
33 ~0% {1} r3 = r1 UNION r2
57 ~1% {1} r4 = JOIN DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstCompare#::guardChecksSsaDef#3#fff WITH DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstArrayInclusionCall#::guardControlsSsaDef#4#ffff ON FIRST 3 OUTPUT Rhs.3
554860 ~0% {2} r5 = JOIN SsaImpl#ff97b16a::Cached::getARead#1#ff_10#join_rhs WITH DataFlowPrivate#462ff392::Cached::TExprNode#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
1 ~0% {1} r6 = JOIN r5 WITH DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstArrayInclusionCall#::getAMaybeGuardedCapturedDef#0#f ON FIRST 1 OUTPUT Lhs.1
7 ~0% {1} r7 = JOIN r5 WITH DataFlowPublic#e1781e31::BarrierGuard#BarrierGuards#2462899b::stringConstCompare#::getAMaybeGuardedCapturedDef#0#f ON FIRST 1 OUTPUT Lhs.1
8 ~0% {1} r8 = r6 UNION r7
65 ~2% {1} r9 = r4 UNION r8
98 ~1% {1} r10 = r3 UNION r9
return r10
```
2022-10-17 20:39:30 +02:00
Chris Smowton
b4c4a26e22
Element.hasChildElement: associate local classes specialisations with their unspecialised containing function
2022-10-17 18:43:12 +01:00
Chris Smowton
baaa06391c
Extract interface forwarders with public visiblity
2022-10-17 18:43:12 +01:00
Chris Smowton
1613e47388
Improve and accept changes to compiler-generated methods test
2022-10-17 18:43:11 +01:00
Robert Marsh
500004dbe0
Merge pull request #10841 from MathiasVP/repair-command-line-injection-2
...
C++: Prepare `cpp/command-line-injection` for IR-based use-use dataflow
2022-10-17 13:42:32 -04:00
Robert Marsh
ccea372fd0
Merge pull request #10842 from MathiasVP/repair-non-constant-format-2
...
C++: Prepare `cpp/non-constant-format` for IR-based use-use dataflow
2022-10-17 13:39:56 -04:00
Chris Smowton
b763c406b6
hasChildElement: include method -> local class edges
2022-10-17 18:38:13 +01:00
Chris Smowton
fff9a75ff8
Accept test changes
2022-10-17 18:38:13 +01:00
Chris Smowton
4201031ae0
Restrict interface override synthesis to cases where both the overriding class and the interface are Kotlin-defined.
...
If the interface is Java-defined and it provides a default interface implementation then real class-file default methods are being used and kotlinc won't synthesise anything. If the loaded .class file wasn't made by Kotlin, then we see all the real methods and there is no need to synthesise anything either.
2022-10-17 18:38:13 +01:00
Chris Smowton
e8a35983ee
Implement Kotlin default interface method forwarding
...
Kotlin's implementation of defaults depends on the -Xjvm-default setting (or the @JvmDefault deprecated annotation, not implemented here): by default, actual interface class files don't use default method, and any class that would inherit one instead implements the interface calling a static method defined on TheInterface$DefaultImpls. With
-Xjvm-default=all or =all-compatibility, real interface default methods are emitted, with the latter retaining the DefaultImpls methods so that other Kotlin can use it.
Here I adopt a hybrid solution: create a real default method implementation, but also emit a forwarding method like `@override int f(int x) { return super.TheInterface.f(x); }`, because the Java extractor will see `MyClass.f` in the emitted class file and try to dispatch directly to it. The only downside is that we emit a default interface
method body for a prototype that will appear to be `abstract` to the Java extractor and which it will extract as such. I work around this by tolerating the combination `default abstract` in QL. The alternative would be to fully mimic the DefaultImpls approach, giving 100% fidelity to kotlinc's strategy and therefore no clash with the Java
extractor's view of the world.
2022-10-17 18:38:13 +01:00
Robert Marsh
2f0c7729ff
Merge pull request #10818 from github/mathiasvp/fix-join-in-ssa-internals
...
C++: Fix join in `SsaInternals`
2022-10-17 13:36:32 -04:00
Chris Smowton
595a66a3a4
Fix extraction of primitive-typed arrays
2022-10-17 18:29:59 +01:00
Chris Smowton
ecb3788467
Make useAnonymousClass private
2022-10-17 18:24:04 +01:00
Chris Smowton
f358be85eb
Accept test changes
2022-10-17 18:23:10 +01:00
Chris Smowton
9611fea479
Fix mistaking unspecialised for raw types, and failing to account for an empty declaration stack
2022-10-17 18:22:41 +01:00
Geoffrey White
040d72e7f1
Merge pull request #10857 from geoffw0/locationstring
...
Swift: Give Location a useful toString
2022-10-17 18:10:51 +01:00
james
d917416479
fix document anchor in codeql-library-for-ruby
2022-10-17 16:51:48 +01:00
James Fletcher
4d7195509c
Merge branch 'main' into lgtm-cli-vs-code
2022-10-17 16:24:29 +01:00
james
51c0287905
address review comments
2022-10-17 16:19:15 +01:00
Paolo Tranquilli
3a99b9845e
Merge pull request #10856 from github/redsun82/swift-show-ql-class-in-collapsed-hierarchy-tests
...
Swift: show QL class in generated tests on collapsed hierarchies
2022-10-17 16:38:24 +02:00
Taus
58754982ce
Python: Update type tracking tests
...
No longer missing! 🎉
2022-10-17 14:34:10 +00:00
Taus
ad13fbaeb6
Python: Add tests
...
A slightly complicated test setup. I wanted to both make sure I captured
the semantics of Python and also the fact that the kinds of global flow
we expect to see are indeed present.
The code is executable, and prints out both when the execution reaches
certain files, and also what values are assigned to the various
attributes that are referenced throughout the program. These values are
validated in the test as well.
My original version used introspection to avoid referencing attributes
directly (thus enabling better error diagnostics), but unfortunately
that made it so that the model couldn't follow what was going on.
The current setup is a bit clunky (and Python's scoping rules makes it
especially so -- cf. the explicit calls to `globals` and `locals`), but
I think it does the job okay.
2022-10-17 14:29:41 +00:00
Taus
651afaf11b
Python: Hook up new implementation
...
Left as its own commit, as otherwise the diff would have been very
confusing.
2022-10-17 14:29:41 +00:00
Taus
0051ba1596
Python: Add new module resolution implementation
...
A fairly complicated bit of modelling, mostly due to the quirks of
how imports are handled in Python.
A few notes:
- The handling of `__all__` is not actually needed (and perhaps not
desirable, as it only pertains to `import *`, though it does match
the current behaviour), but it might become useful at a later date,
so I left it in.
- Ideally, we would represent `foo as bar` in an `import` as a
`DefinitionNode` in the CFG. I opted _not_ to do this, as it would
also affect points-to, and I did not want to deal with any fallout
arising from that.
2022-10-17 14:29:41 +00:00
Chris Smowton
eb97735568
Merge pull request #10797 from smowton/smowton/fix/byte-short-inversion
...
Kotlin: fix bit-inversion operator for Byte and Short types
2022-10-17 15:05:57 +01:00
Chris Smowton
e1c93c9284
Merge pull request #10816 from smowton/smowton/fix/kotlin-adapted-function-references
...
Kotlin: extract function references using compiler-generated adapters
2022-10-17 15:05:16 +01:00
erik-krogh
bb4bc55c6a
update expected output
2022-10-17 15:52:21 +02:00
Geoffrey White
dcf254a9e3
Swift: Make QL-for-QL happy.
2022-10-17 14:23:28 +01:00
Taus
f5b2eb94a6
Merge pull request #10783 from yoff/python/subscript-nodes
...
Python: API graph improvements for subscripts
2022-10-17 15:21:56 +02:00
Tamas Vajk
21c13fb9a3
Kotlin: Exclude variables of live literals from java/field-masks-super-field
2022-10-17 15:07:44 +02:00
Geoffrey White
0281bfedda
Merge pull request #10689 from d10c/swift/cleartext-storage-nsuserdefaults
...
Swift: Query for CWE-312: Exposure of sensitive information using NSUserDefaults
2022-10-17 14:05:17 +01:00
Geoffrey White
13f9834fde
Merge pull request #10780 from karimhamdanali/swift-hardcoded-key
...
Swift: detect hardcoded encryption keys
2022-10-17 14:02:31 +01:00
Arthur Baars
7af4c08055
Merge pull request #10803 from hmac/actiondispatch-response
...
Ruby: Model ActionDispatch::Response
2022-10-17 14:51:25 +02:00
Geoffrey White
9767064310
Swift: Fix bug for sqlite3_prepare_v3.
2022-10-17 13:40:35 +01:00
Geoffrey White
1221cbaee7
Swift: Updated results after merge with main.
2022-10-17 13:35:46 +01:00
Geoffrey White
13018150ed
Merge branch 'main' into sqlinject
2022-10-17 13:30:14 +01:00
Geoffrey White
85e164d4f6
Swift: QLDoc some stuff while we're here.
2022-10-17 13:22:44 +01:00
Tony Torralba
01a08d44bb
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-10-17 14:14:38 +02:00
Geoffrey White
3b9151cb24
Swift: Restore UnknownLocation.toString(), it seems helpful.
2022-10-17 13:11:22 +01:00
Paolo Tranquilli
e49268d036
Swift: show QL class in generated tests on collapsed hierarchies
...
In those kinds of tests the results may have different final classes
that are not necessarily visible (or tested) solely through the string
representation. For better testing and reading of expected results,
`getQlPrimaryClasses` is added in these cases.
2022-10-17 14:08:04 +02:00
erik-krogh
f09e3bd3ac
add String#% as a printf like call
2022-10-17 13:51:43 +02:00
Geoffrey White
9c8bbe384b
Swift: Add Location.toString.
2022-10-17 12:48:17 +01:00
Paolo Tranquilli
c3968a2166
Merge pull request #10854 from github/redsun82/swift-extract-implicit-conversions
...
Swift: extract all `ImplicitConversionExpr`
2022-10-17 13:46:10 +02:00
Geoffrey White
4d0c23c4da
Swift: Add a test of Location.qll.
2022-10-17 12:45:26 +01:00
Chris Smowton
efd7b6e692
Use isFunction
2022-10-17 12:27:58 +01:00
Arthur Baars
f7ff2cdc0d
Merge branch 'main' into actiondispatch-response
2022-10-17 13:22:17 +02:00
erik-krogh
d4919d04ba
add a taint-step for format-calls
2022-10-17 13:16:38 +02:00
erik-krogh
f222cc1f3e
refactor the existing taint-step for string interpolation into StringFormatters.qll
2022-10-17 13:16:38 +02:00
erik-krogh
6de1abcb0e
add a returnsFormatted predicate to the printf model, similar to the JS implementation
2022-10-17 13:16:38 +02:00
erik-krogh
a2b924bbdf
move model of printf style calls to StringFormatters.qll
2022-10-17 13:16:34 +02:00
Paolo Tranquilli
789be9a1ad
Swift: add ImplicitConversionExpr test
2022-10-17 12:57:44 +02:00
Karim Ali
bbc03a1578
add false negatives to the test case
2022-10-17 12:54:34 +02:00
Karim Ali
bb3bf64364
update example with both AES and Blowfish for better clarity
2022-10-17 12:54:34 +02:00
Karim Ali
b840a41222
fix typo in doc
2022-10-17 12:54:34 +02:00
Karim Ali
e942cfb98e
fix typos in docs and in-code comments
2022-10-17 12:54:34 +02:00
Karim Ali
aef9645bd6
change use of toString() to getName()
2022-10-17 12:54:34 +02:00
Karim Ali
81e027f225
address QLDoc style comments
2022-10-17 12:54:34 +02:00
Karim Ali
d56c82ff75
add a query that detects hardcoded keys
2022-10-17 12:54:34 +02:00
Chris Smowton
be53ec9b42
Accept test changes
2022-10-17 11:48:22 +01:00
Chris Smowton
f9d65e42dd
Use compiler-provided adapter functions when creating a function reference
2022-10-17 11:48:21 +01:00
Paolo Tranquilli
e4bcea708e
Swift: extract all ImplicitConversionExpr
...
In order to do so, `VisitorBase` was changed to allow writing one
`translate` function for an abstract class like
`ImplicitConversionExpr`.
2022-10-17 12:47:05 +02:00
Chris Smowton
4c63237ed1
Add test checking argument <-> parameter matching, and fix superconstructor calls that were missing their argument.
2022-10-17 11:44:44 +01:00
Chris Smowton
8553266aae
Allow specialised instances of anonymous classes
2022-10-17 11:27:05 +01:00
Chris Smowton
73f5dea51e
Extract private members of specialised generic classes on demand
2022-10-17 11:27:04 +01:00
Chris Smowton
f1fd470f49
Merge pull request #10821 from smowton/smowton/fix/kotlin-property-ref-to-sam-interface
...
Kotlin SAM conversion: tolerate property refs used to implement a SAM interface
2022-10-17 11:25:24 +01:00
Geoffrey White
2b3ab180fa
Merge pull request #10077 from intrigus-lgtm/cpp/wexpand-commmand-injection
...
Add query for tainted `wordexp` calls.
2022-10-17 11:18:38 +01:00
erik-krogh
dbf2673a91
add returnsFormatted predicate to PrintfStyleCall (similar to JS)
2022-10-17 12:15:31 +02:00
erik-krogh
46627a737e
add an AdditionalTaintStep class for Ruby
2022-10-17 12:15:30 +02:00
Erik Krogh Kristensen
71135da7ff
Merge pull request #10768 from erik-krogh/fixFileLoops
...
JS: fix that js/file-system-race could have FPs related to loops
2022-10-17 12:01:55 +02:00
Tony Torralba
81d38132cf
Fix test expectations
2022-10-17 12:00:51 +02:00
Alex Denisov
dde51d3045
Swift: do not rely on CFStringGetLength
2022-10-17 11:46:07 +02:00
Taus
fa2faeb77b
Merge pull request #10802 from jsoref/spelling-python
...
Spelling python
2022-10-17 11:33:27 +02:00
Tony Torralba
1e4850044c
Increase precision of the URL(string:relativeTo:) models
2022-10-17 11:29:30 +02:00
Alex Denisov
0521855755
Swift: split Xcode autobuild
2022-10-17 11:24:20 +02:00
Jeroen Ketema
720efd62b0
Merge pull request #10825 from jsoref/spelling-cpp
...
Spelling cpp
2022-10-17 10:42:53 +02:00
Rasmus Lerchedahl Petersen
2a56fb5a21
python: expand TODO
2022-10-17 10:23:55 +02:00
Rasmus Lerchedahl Petersen
c4271c1125
Python: add TODO comments
2022-10-17 10:22:47 +02:00
Tony Torralba
a540aaa35b
Address alert message style violation
2022-10-17 10:22:31 +02:00
Tony Torralba
434a2a9f5d
Improve qhelp example text
2022-10-17 10:19:40 +02:00
Alex Denisov
f3ed54e7ba
Swift: only run Xcode autobuilder on macOS
2022-10-17 10:14:06 +02:00
Tony Torralba
c909b8824c
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-10-17 10:12:56 +02:00
Erik Krogh Kristensen
122d188f1d
Merge pull request #10832 from erik-krogh/passRb
...
RB: add model for the `Digest` and `OpenSSL::Digest` modules
2022-10-17 10:02:33 +02:00
Tamás Vajk
85fbf4b965
Merge pull request #10767 from tamasvajk/kotlin-prop-ref-fix
...
Kotlin: adjust extracted property reference base class
2022-10-17 09:40:03 +02:00
erik-krogh
191efdf6e0
replace getMethod("new").getReturn() with getInstance()
2022-10-17 09:35:44 +02:00
Anders Schack-Mulligen
6ef5fac239
Merge pull request #10814 from aschackmull/dataflow/synth-global
...
Dataflow: Add support for synthetic global fields in MaD.
2022-10-17 08:34:26 +02:00
Arthur Baars
dbee26ecde
Merge pull request #10850 from hmac/fix-self-test
...
Ruby: Update test fixture
2022-10-17 07:23:51 +02:00
Harry Maclean
aa6c433529
Ruby: Update test fixture
...
This change is due to a8fdda65fb .
2022-10-17 09:44:32 +13:00
Harry Maclean
eddb8493d8
Apply suggestions from code review
...
Co-authored-by: Nick Rolfe <nickrolfe@github.com >
2022-10-17 09:34:44 +13:00
Harry Maclean
0e6322d673
Ruby: Restrict XSS header sinks
...
Not all header writes are relevant to XSS. Restrict these to just
content-type and access-control-allow-origin.
2022-10-17 09:34:44 +13:00
Harry Maclean
8ae86cf443
Ruby: Consider header writes as XSS sinks
2022-10-17 08:17:37 +13:00
Harry Maclean
545222d1e9
Ruby: Add change note
2022-10-17 08:17:37 +13:00
Harry Maclean
73ca595b56
Ruby: Model ActionDispatch::Response
2022-10-17 08:17:37 +13:00
Jeroen Ketema
45a0b66f73
C++: Fix test after spelling fixes
2022-10-15 14:23:08 +02:00
yoff
40526fdedb
Update python/ql/lib/change-notes/2022-10-04-api-subscript-nodes.md
...
Co-authored-by: Taus <tausbn@github.com >
2022-10-15 08:16:19 +02:00
Arthur Baars
ae0c9b76e0
Merge pull request #10843 from aibaars/fix-self
...
Ruby: fix self variables in blocks
2022-10-15 00:48:14 +02:00
Alex Ford
2c5129e720
Merge pull request #10369 from alexrford/rb/sensitive-get-query
...
Ruby: add `rb/sensitive-get-query` query
2022-10-14 22:34:47 +01:00
Jami Cogswell
2714c7fdcf
update tests
2022-10-14 16:45:13 -04:00
Josh Soref
86ad9f5c92
spelling: whose
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
360ce7bcf0
spelling: vulnerabilities
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
dd5c455e8b
spelling: variable
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
9a32aba581
spelling: themselves
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
1f8aaf7e07
spelling: supplemental
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
b75b0ba60f
spelling: specified
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
c5acca4e24
spelling: sequence
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
a588bcf268
spelling: representing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
ad3f6f4ccd
spelling: provides
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
281bb0ec24
spelling: proposed
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
bbc9931b05
spelling: primitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
004f36720b
spelling: predicate
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
f7a1647129
spelling: overrunning
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
aa70b97bd3
spelling: optimistically
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
aa3d43aa96
spelling: opposed
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
5dd61e3abe
spelling: operand
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
1e34019bf9
spelling: obtain
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
0c3eb53602
spelling: library
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
0fc69a4d6f
spelling: label
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
5a109c981e
spelling: justified
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
324aa61738
spelling: interesting
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
1453efe5b6
spelling: instructions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
d12285841e
spelling: initializers
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:44 -04:00
Josh Soref
83cf8a85ce
spelling: indirect
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
8f511adbd9
spelling: implicit
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
0e14dd1447
spelling: hypothetical
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
a0f48ffe86
spelling: forgotten
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
be07baca69
spelling: expressions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
25350ad760
spelling: expression
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
7ce4174f64
spelling: exploit
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
f92d763182
spelling: exception
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
c575a2b90e
spelling: evaluates
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
bf86e53af1
spelling: encryption
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
22d170a9d2
spelling: dynamic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
b9cf38404a
spelling: duplicate
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
be1753264e
spelling: discriminate
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
488dd3fce5
spelling: dimensions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
68ea820eda
spelling: different
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
df7bdcd0ab
spelling: determined
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
ff6ce9c5b4
spelling: description
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
1c290b9b88
spelling: declared
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
2027278f66
spelling: corresponds
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
56684ca937
spelling: configuration
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
0536fb78be
spelling: circuit
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
2a3e2d35e6
spelling: certain
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
46b3f9a907
spelling: behaviour
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
0fe91cb97f
spelling: approximation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
950ce8ad37
spelling: alignof
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:43 -04:00
Josh Soref
dc2c4f7404
spelling: aliased
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:42 -04:00
Josh Soref
5bc8004066
spelling: another class
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 15:08:41 -04:00
Robert Marsh
5cd6dafe27
Merge pull request #10839 from MathiasVP/repair-flow-sources-2
...
C++: Prepare `FlowSources.qll` for IR-based use-use dataflow
2022-10-14 13:46:28 -04:00
Jami Cogswell
da218fdbf1
clean up code
2022-10-14 13:03:34 -04:00
Asger F
b88b2f169b
Merge pull request #10836 from asgerf/rb/fix-spurious-singleton-calls
...
Ruby: fix spurious singleton calls
2022-10-14 18:49:51 +02:00
Calum Grant
8922df37b1
Update docs/codeql/support/reusables/frameworks.rst
...
Co-authored-by: Nick Rolfe <nickrolfe@github.com >
2022-10-14 17:05:09 +01:00
Jami Cogswell
0334470f33
remove commented out predicates that relied on typeFlag
2022-10-14 10:55:30 -04:00
Paolo Tranquilli
ec3dbd8e9d
Merge pull request #10815 from github/redsun82/cmake-generator-prototype
...
Swift: cmake generator for better IDE support
2022-10-14 16:52:00 +02:00
Ian Lynagh
f0eabd4675
Merge pull request #10759 from igfoo/igfoo/numlines2
...
kotlin: Populate numlines
2022-10-14 15:39:40 +01:00
Henry Mercer
c0ac7ad7db
Remove query for worsening-based classifier evaluation
2022-10-14 15:35:43 +01:00
Geoffrey White
8eccae1cdd
Swift: Fix the qhelp.
2022-10-14 15:31:53 +01:00
Geoffrey White
f96e4eb87e
Swift: One more go at getting the query message how ql-for-ql wants it.
2022-10-14 15:28:14 +01:00
Ian Lynagh
05f70e9c66
Merge pull request #10633 from igfoo/igfoo/ministdlib
...
Kotlin: Add a ministdlib test
2022-10-14 15:22:21 +01:00
Geoffrey White
227b10adf6
Swift: Qhelp.
2022-10-14 15:18:47 +01:00
Henry Mercer
63ab295a46
Remove queries for worsening-based evaluation
2022-10-14 15:18:19 +01:00
Josh Soref
bb8148799d
spelling: creation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Josh Soref
3ee73cfe5d
spelling: continuing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Josh Soref
38e2a3d31d
spelling: constructor
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Josh Soref
eb40e48278
spelling: constraints
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Josh Soref
962bcd78f5
spelling: compound
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Josh Soref
322b957e27
spelling: circumference
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Josh Soref
9db8307a88
spelling: available
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-14 10:16:55 -04:00
Arthur Baars
a8fdda65fb
Ruby: fix self variables in blocks
2022-10-14 16:02:39 +02:00
Asger F
8cb4f230d8
Merge branch 'main' into rb/fix-spurious-singleton-calls
2022-10-14 15:52:38 +02:00
Geoffrey White
24c6bb4c52
Swift: More modern (?) phrasing.
2022-10-14 14:41:02 +01:00
Geoffrey White
3da3a278ab
Swift: Query metadata.
2022-10-14 14:31:38 +01:00
Ian Lynagh
4dcf4f2d2c
Merge pull request #10819 from github/igfoo/kotlin
...
Kotlin: Some windows fixes
2022-10-14 14:28:57 +01:00
Jami Cogswell
47030df8ac
remove commented-out 3 configs
2022-10-14 09:26:44 -04:00
Mathias Vorreiter Pedersen
e7b0536896
C++: Repair 'cpp/non-constant-format' in preparation for IR-based use-use dataflow.
2022-10-14 15:26:25 +02:00
Tom Hvitved
407f7072e4
Merge pull request #10829 from hvitved/ruby/call-graph-perf
...
Ruby: Call graph performance improvements
2022-10-14 15:24:27 +02:00
Mathias Vorreiter Pedersen
b1f93b07c9
C++: Repair the 'cpp/command-line-injection' query in preparation for IR-based use-use dataflow.
2022-10-14 15:11:41 +02:00
Asger F
1bd3d29409
Ruby: workaround issue with 'def self.method' in a block
2022-10-14 15:07:33 +02:00
Mathias Vorreiter Pedersen
00a25dbe45
C++: Accept test changes.
2022-10-14 15:01:31 +02:00
Mathias Vorreiter Pedersen
01a81a9c56
C++: Repair the 'FlowSources' library in preparation for IR-based use-use dataflow.
2022-10-14 14:52:29 +02:00
erik-krogh
5f826d0eef
fix typo
2022-10-14 14:43:51 +02:00
Mathias Vorreiter Pedersen
7ad781e91c
C++: Repair the 'cpp/cleartext-transmission' query in preparation for IR-based use-use dataflow.
2022-10-14 14:37:59 +02:00
Asger F
17a246b321
Ruby: more uninteresting test updates
2022-10-14 13:59:52 +02:00
Calum Grant
4a10f4d313
Added more frameworks to the list
2022-10-14 12:42:58 +01:00
erik-krogh
dfdf8c7869
add change-note
2022-10-14 13:28:36 +02:00
Anders Schack-Mulligen
72fc9d1e65
Remove redundant import.
2022-10-14 13:28:09 +02:00
erik-krogh
7c76645157
add model for the core OpenSSL::Digest module
2022-10-14 13:25:34 +02:00
erik-krogh
e2476949b9
add model for the core Digest module
2022-10-14 12:49:37 +02:00
Alex Denisov
3040837062
Swift: introduce Xcode autobuilder
2022-10-14 12:45:48 +02:00
Calum Grant
7c912ea876
Merge pull request #10810 from github/calumgrant/ruby-frameworks
...
Ruby: Update supported languages and frameworks
2022-10-14 11:40:50 +01:00
Mathias Vorreiter Pedersen
49f39d7602
C++: Accept test changes.
2022-10-14 12:35:46 +02:00
Mathias Vorreiter Pedersen
3ec60f11bb
C++: Repair 'Buffer.qll'.
2022-10-14 12:25:17 +02:00
Arthur Baars
9ccf5a7798
Merge pull request #10749 from aibaars/run_request
...
Ruby: treat Faraday#run_request as remote source
2022-10-14 12:24:39 +02:00
Asger F
8228730634
Ruby: fix regression for methods in singleton classes
2022-10-14 11:57:35 +02:00
Alex Ford
b29bf82e05
Ruby: fix merge error
2022-10-14 10:51:12 +01:00
Alex Ford
3baad89e57
Merge remote-tracking branch 'origin/main' into rb/sensitive-get-query
2022-10-14 10:50:09 +01:00
Asger F
30f7380f74
Ruby: Add regression test for lost calls
2022-10-14 11:49:55 +02:00
Alex Ford
24dad5599a
Ruby: fix SensitiveNode detection relating to class/instance variables
2022-10-14 10:41:46 +01:00
Harry Maclean
7d23170fb2
Merge pull request #10602 from hmac/hmac/actiondispatch-request
...
Ruby: Model ActionDispatch::Request
2022-10-14 22:17:20 +13:00
Paolo Tranquilli
a20fdad7c3
Swift: update README.md with IDE setup
2022-10-14 11:12:53 +02:00
Paolo Tranquilli
20a1281580
Merge branch 'main' into redsun82/cmake-generator-prototype
2022-10-14 10:58:50 +02:00
Anders Schack-Mulligen
5ce4483a8e
Merge pull request #10795 from aschackmull/java/synth-callable
...
Java: Add support for synthetic callables with flow summaries and model Stream.collect
2022-10-14 10:58:14 +02:00
Paolo Tranquilli
0ae70fda37
Bazel/CMake: make generated inclusion explicit
2022-10-14 10:57:40 +02:00
Rasmus Wriedt Larsen
fb49babc14
Merge pull request #10778 from sylwia-budzynska/python-db-models
...
Python: Add cx_Oracle, phoenixdb, pyodbc models
2022-10-14 10:49:24 +02:00
Mathias Vorreiter Pedersen
134cc6291c
C++: Fix join in SsaInternals.
2022-10-14 10:29:56 +02:00
Alex Ford
36a1b18f5b
Ruby: revert SensitiveDataHeuristics changes
2022-10-14 09:19:41 +01:00
Mathias Vorreiter Pedersen
d62ae96763
C++: Fix ql-for-ql alerts.
2022-10-14 10:14:53 +02:00
Mathias Vorreiter Pedersen
1c51ad8d26
C++: Update 'identical-files'.
2022-10-14 10:14:53 +02:00
Mathias Vorreiter Pedersen
4c5953fce0
C++: Accept query-test changes.
2022-10-14 10:14:52 +02:00
Mathias Vorreiter Pedersen
373c849b18
C++: Accept library-test changes
2022-10-14 10:14:52 +02:00
Mathias Vorreiter Pedersen
41cbef81ec
C++: Replace AST dataflow with IR dataflow.
2022-10-14 10:14:52 +02:00
Paolo Tranquilli
7ad3d8776b
Merge branch 'main' into redsun82/cmake-generator-prototype
2022-10-14 10:13:12 +02:00
Paolo Tranquilli
d734ed9839
Bazel/CMake: fix multiple cmake generate targets
2022-10-14 10:12:40 +02:00
Asger F
a06cc30f05
Ruby: fix some more spurious call edges
2022-10-14 10:11:22 +02:00
Asger F
b1dadc224c
Ruby: uninteresting test output update
2022-10-14 10:10:39 +02:00
Asger F
ae71828fc4
Ruby: add more tests for singleton up/down calls
2022-10-14 10:09:59 +02:00
Asger F
789f591de4
Ruby: add another spurious call edge test
2022-10-14 10:09:57 +02:00
Asger F
1476efbe2c
Ruby: restrict to a use of 'self' in singleton methods
2022-10-14 10:09:11 +02:00
Asger F
329ab9156a
Ruby: add test showing spurious call
2022-10-14 10:07:34 +02:00
Paolo Tranquilli
14f2d3995a
Swift: make generate_cmake public
2022-10-14 10:01:10 +02:00
Paolo Tranquilli
3946448e7c
Bazel/CMake: create compilation database by default
...
If on Windows and not in developer mode, the creation of the symbolic
link can be skipped by setting `CREATE_COMPILATION_DATABASE_LINK` to
`OFF`.
2022-10-14 09:58:09 +02:00
Tom Hvitved
81bc6c2d49
Ruby: Call graph performance improvements
2022-10-14 09:47:27 +02:00
Jeroen Ketema
cbc0dacf18
Merge pull request #10823 from jsoref/spelling-swift
...
Spelling swift
2022-10-14 09:36:34 +02:00
erik-krogh
a6c83a7b14
add change-note
2022-10-14 09:20:33 +02:00
Erik Krogh Kristensen
332bc35ff1
Merge pull request #10708 from erik-krogh/kernelSink
...
RB: add a query flagging uses of `Kernel.open()` that are not with a constant string
2022-10-14 09:13:26 +02:00
Paolo Tranquilli
739702b905
Bazel/CMake: make compilation db link symbolic
2022-10-14 08:57:16 +02:00
Paolo Tranquilli
2b47375190
Bazel/CMake: use -iquote
2022-10-14 08:54:15 +02:00
Harry Maclean
e6dc27a7b5
Add content_mime_type, fix env/filtered_env
2022-10-14 19:49:22 +13:00
Jami Cogswell
6eb58d832c
remove dependence on typeFlag
2022-10-14 00:47:57 -04:00
Harry Maclean
0130e4ba7f
Re-add path methods that are user-controlled
2022-10-14 16:49:15 +13:00
Jami Cogswell
c61f23baae
experiment with more code condensing
2022-10-13 23:24:06 -04:00
Josh Soref
413fa3d566
spelling: access
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:57:32 -04:00
Josh Soref
ef63f57e55
spelling: arithmetic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:45:25 -04:00
Josh Soref
5ea0f06f05
spelling: algorithm
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:45:25 -04:00
Josh Soref
916e162064
spelling: accessibility
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:45:25 -04:00
Josh Soref
480f1e24af
spelling: unsupported
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:43:27 -04:00
Josh Soref
eaa8ca0752
spelling: parameter
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:42:46 -04:00
Josh Soref
6d8074e3c6
spelling: observer
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:42:46 -04:00
Josh Soref
9b9b54a905
spelling: implementation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:42:46 -04:00
Josh Soref
50ed25098b
spelling: hierarchy
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:42:46 -04:00
Josh Soref
243991fae7
spelling: constants
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:42:46 -04:00
Josh Soref
0a508726e0
spelling: canonicalization
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 19:42:46 -04:00
Jami Cogswell
2daa3457d7
combine three configs into one
2022-10-13 17:57:56 -04:00
Alex Ford
cda7d84633
Ruby: update rb/sensitive-get-query tests
2022-10-13 22:41:34 +01:00
Alex Ford
3d478a3951
Ruby: clarify qhelp
2022-10-13 22:39:54 +01:00
Alex Ford
9fbd293944
Ruby: avoid making notSensitiveRegexp always flag instance/class variables as not sensitive
2022-10-13 22:38:42 +01:00
Alex Ford
15cab6eed5
Update ruby/ql/src/queries/security/cwe-598/SensitiveGetQuery.qhelp
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-10-13 21:43:59 +01:00
Arthur Baars
a327802e43
Merge pull request #10801 from jsoref/spelling-ruby
...
Spelling ruby
2022-10-13 21:05:56 +02:00
sylwia-budzynska
0eb48969a0
Fix typo
2022-10-13 20:02:03 +02:00
Chris Smowton
e1c43c67ee
Koltin: support collection literals
2022-10-13 18:48:00 +01:00
Chris Smowton
1efcf38a34
Kotlin SAM conversion: tolerate property refs used to implement a SAM interface
2022-10-13 17:32:22 +01:00
Sylwia Budzynska
e291d61bc7
Add oracledb model
2022-10-13 18:08:47 +02:00
Alvaro Muñoz
41fea776e8
Do not discard XSS sinks when non-content-type headers are local to the sendArgument expression
2022-10-13 17:50:43 +02:00
Josh Soref
08f688d240
spelling: without
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
9fef7d4130
spelling: which
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
5765a71d90
spelling: whether
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
f19a5c43f0
spelling: uninitialized
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
8669de57e7
spelling: the
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
7ee24e5fbb
spelling: synthesized
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
887b49aae4
spelling: superfluous
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:10 -04:00
Josh Soref
33bc3131f9
spelling: something
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
05e20a389e
spelling: shortcuts
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
bc339e4477
spelling: see https
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
ad7dc81bdc
spelling: sanitize
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
eed09718c5
spelling: retrieval
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
d1929ab281
spelling: restrictions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
36bd186aa0
spelling: response
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
76aa0481bf
spelling: resolve
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
00cc3331ea
spelling: request
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
24f847a58c
spelling: representing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
441d5359cc
spelling: recursion
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
7ad24f3121
spelling: recommendation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
c02b6b3151
spelling: qualified
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
7b019da56a
spelling: quadratic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
662c96e412
spelling: processing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
7883263375
spelling: printing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
2f8c515064
spelling: parameter
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
90aa65a9d0
spelling: package
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
3337f4cba5
spelling: override
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
02f3ce1c43
spelling: mutually
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
6ac31517ac
spelling: method
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
06ec1e2a07
spelling: looking
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
3a38da0791
spelling: jumpsteps
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
d18f5c7eb2
spelling: interacting
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
5f1f551368
spelling: indirection
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
df05c77772
spelling: important
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
9d53938859
spelling: further
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
9004a83f24
spelling: for
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
df9c8c7661
spelling: flow
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:09 -04:00
Josh Soref
c527264198
spelling: execute
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
de63bbc559
spelling: everything
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
b2f5bfaf74
spelling: emptiness
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
565543a61b
spelling: elliptic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
90b8781e6b
spelling: edge
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
7fd7d9c986
spelling: distinguish
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
165514c4ab
spelling: dispatcher
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
7b070bad86
spelling: decorated
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
9eaeafd4e5
spelling: decide
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
cce8a97545
spelling: cross
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
dc383007b1
spelling: credentials
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
3f74fa92ae
spelling: corresponding
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
d648886c55
spelling: context
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
6e905ce96f
spelling: connection
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
e3b85b15b6
spelling: compatibility
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
ac1c5221ef
spelling: attribute
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Josh Soref
f2fee60486
spelling: access
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 11:21:08 -04:00
Ian Lynagh
7d22bdb7e1
Windows fixes
2022-10-13 16:16:54 +01:00
Geoffrey White
76ff593cc5
Swift: Bring it all together into a query.
2022-10-13 16:06:44 +01:00
Josh Soref
d94ebe9a4e
spelling: unknown
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
e1b4476399
spelling: the
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
0999ec3c70
spelling: specifies
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
45d1e3f9b2
spelling: representation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
9be162a119
spelling: recursion
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
124c5544cf
spelling: predicates
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
eab3e18962
spelling: possibility
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
a37af45f86
spelling: overridable
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
be38e6eddc
spelling: navigation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
e62dda9c7b
spelling: mutation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
8078f91b28
spelling: mapping
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
f26b380767
spelling: keyword
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
2648cb0322
spelling: injection
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
52a3e3c2fd
spelling: heuristic
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
d0866c150f
spelling: for
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
f4b32a3042
spelling: excluding
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:41 -04:00
Josh Soref
893c5457a8
spelling: disambiguation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:56:40 -04:00
Josh Soref
8483c79aef
spelling: continuing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:52:02 -04:00
Josh Soref
b986c30454
spelling: connection
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:52:01 -04:00
Josh Soref
939dc49a88
spelling: compound
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:52:01 -04:00
Josh Soref
fe7bd81c9a
spelling: captured
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:52:01 -04:00
Josh Soref
72f91c1d29
spelling: ancestors
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:51:27 -04:00
Josh Soref
5d94733078
spelling: ambiguously
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-13 10:51:25 -04:00
Geoffrey White
7d78df25bf
Swift: Define SQL sinks.
2022-10-13 15:50:57 +01:00
sylwia-budzynska
c33dd8fd4b
Merge branch 'main' into python-db-models
2022-10-13 16:48:50 +02:00
Alex Ford
594812640e
Merge pull request #10746 from alexrford/ruby/activejob-deserialize
...
Ruby: Add `ActiveJob::Serializers.deserialize` as a code execution sink
2022-10-13 15:36:45 +01:00
Geoffrey White
ce5631e7cb
Swift: Complete the rename.
2022-10-13 15:22:36 +01:00
Geoffrey White
12cb099376
Swift: Rename to match other languages (except Java).
2022-10-13 15:21:39 +01:00
Geoffrey White
398b2a392f
Swift: Add more test variants.
2022-10-13 15:13:29 +01:00
Paolo Tranquilli
81628f595c
Merge branch 'main' into redsun82/cmake-generator-prototype
2022-10-13 15:55:50 +02:00
Arthur Baars
9abd599024
Ruby: treat Faraday#run_request as remote source
2022-10-13 15:44:21 +02:00
Paolo Tranquilli
b8b6b254bb
Swift: cmake generator for better IDE support
...
A cmake generator in bazel is introduced allowing to import the Swift
extractor as a CMake project while keeping Bazel files as the source of
truth for the build.
Using the CMake project:
* requires bazel and clang to be installed and available on the command
line
* does not require a previous bazel build, however
* will require a CMake reconfiguration for changes to generated code
(like changes to the schema)
2022-10-13 15:25:24 +02:00
Alvaro Muñoz
744cea9baa
add tests
2022-10-13 15:19:29 +02:00
Anders Schack-Mulligen
ad8f0fc1dd
Java: Address review comments.
2022-10-13 14:55:55 +02:00
Anders Schack-Mulligen
f1634d3dca
Dataflow: Add support for C#/Python/Ruby/Swift.
2022-10-13 14:29:27 +02:00
Anders Schack-Mulligen
69bf13b1d4
Dataflow: Sync.
2022-10-13 14:19:12 +02:00
Anders Schack-Mulligen
2848909450
Dataflow: Add support for synthetic global fields in MaD.
2022-10-13 14:18:13 +02:00
Erik Krogh Kristensen
3a1a94b8af
Merge pull request #10798 from erik-krogh/matchCaseReg
...
Rb: add case-when expressions as a sink to rb/polynomial-redos
2022-10-13 13:55:42 +02:00
Arthur Baars
6ea2b87224
Merge pull request #10811 from aibaars/silence-warning
...
Ruby: remove warning
2022-10-13 13:38:25 +02:00
Tom Hvitved
758494b10a
Merge pull request #10790 from hvitved/csharp/avoid-get-a-reachable-read
...
C#: Deprecate `AssignableRead::getAReachableRead`
2022-10-13 13:25:01 +02:00
Tom Hvitved
19e3d7cdb2
Merge pull request #10769 from hvitved/csharp/cil-ssa-data-flow-nodes
...
C#: Include CIL SSA definitions in `DataFlow::Node`
2022-10-13 13:24:44 +02:00
Anders Schack-Mulligen
d79a7e863a
Merge pull request #10806 from aschackmull/dataflow/additional
...
Dataflow: Add additional annotation.
2022-10-13 13:02:48 +02:00
Arthur Baars
16b035600e
Ruby: remove warning
2022-10-13 13:01:06 +02:00
Calum Grant
8305a634fa
Update Ruby frameworks
2022-10-13 11:50:30 +01:00
sylwia-budzynska
fec3ab7e01
Update Frameworks.qll
2022-10-13 12:46:20 +02:00
Calum Grant
7db37d9201
Update supported Ruby version
2022-10-13 11:46:14 +01:00
Sylwia Budzynska
5f737c82a4
Resolve confilct
2022-10-13 12:43:47 +02:00
Alex Ford
a65850e922
Merge pull request #10784 from alexrford/ruby/pathname-existence
...
Ruby: model `Pathname#existence` extension from `ActiveSupport`
2022-10-13 11:38:22 +01:00
Sylwia Budzynska
646c9b559b
Add tests
2022-10-13 12:36:57 +02:00
Sylwia Budzynska
e41d79e37d
Add python cx_oracle, phoenixdb, pyodbc models
2022-10-13 12:36:41 +02:00
erik-krogh
3a3a5aa17c
add case-in as a sink for polynomial-redos
2022-10-13 12:36:07 +02:00
Alvaro Muñoz
468628525e
Change to camelcase
2022-10-13 12:18:07 +02:00
Alvaro Muñoz
ea8edb8408
initial tests
2022-10-13 11:32:21 +02:00
Anders Schack-Mulligen
30a891c2e7
Java: Fix compilation errors.
2022-10-13 11:19:57 +02:00
Anders Schack-Mulligen
51dfb319f5
Java: autoformat
2022-10-13 11:17:44 +02:00
Anders Schack-Mulligen
ac3379657d
Java: qldoc fix and changenote.
2022-10-13 11:17:44 +02:00
Anders Schack-Mulligen
5b8fa3f8f9
Java: Add test for Stream.collect.
2022-10-13 11:17:44 +02:00
Anders Schack-Mulligen
8c7b6d6f20
Java: Add support for synthetic callables with flow summaries and model Stream.collect.
2022-10-13 11:17:44 +02:00
Anders Schack-Mulligen
036724ce8d
Dataflow: Sync.
2022-10-13 11:03:30 +02:00
Anders Schack-Mulligen
c4915b27e7
Dataflow: Add additional annotation.
2022-10-13 11:03:08 +02:00
Tamás Vajk
6c781b5b1a
Merge pull request #10789 from tamasvajk/kotlin-useless-params
...
Kotlin: reduce FPs in useless parameter check for Kotlin code
2022-10-13 09:40:54 +02:00
Jami Cogswell
e0f0d554cb
condense code
2022-10-12 22:18:07 -04:00
Harry Maclean
a3c14f7f46
Update test
2022-10-13 13:57:28 +13:00
Harry Maclean
8e55e62b15
Ruby: Add change note
2022-10-13 13:24:16 +13:00
Harry Maclean
4686718630
Ruby: Add kind to Http::Server::RequestInputAccess
...
Like in JS, this describes whether the input came from the request URL,
body, parameters, headers or cookie. Only some of these are relevant for
UrlRedirect and ReflectedXSS queries.
2022-10-13 13:24:16 +13:00
Harry Maclean
9eff4936cf
Ruby: Restrict request methods to user-controlled
2022-10-13 13:24:16 +13:00
Harry Maclean
ad464abde2
Ruby: Model more params accesses
2022-10-13 13:24:16 +13:00
Erik Krogh Kristensen
10aab81f42
Merge pull request #10799 from jsoref/spelling-nfautils
...
ReDoS: Spelling nfautils
2022-10-12 23:09:06 +02:00
Jami Cogswell
bcb506b637
add placeholder qldocs
2022-10-12 17:04:51 -04:00
Jami Cogswell
bfbb6db436
clean up code
2022-10-12 16:58:34 -04:00
Jami Cogswell
37d85587e0
refactor code into InsufficientKeySize.qll
2022-10-12 15:39:57 -04:00
Henry Mercer
c3af41b907
Merge pull request #10781 from github/codeql-ci/js/ml-powered-pack-release-0.3.5
...
JS: Bump version numbers of ML-powered packs after 0.3.5 release
2022-10-12 20:20:31 +01:00
Josh Soref
09c8a98761
spelling: representation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 15:20:26 -04:00
Josh Soref
bb1ce8973a
spelling: repeatable
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 15:20:24 -04:00
Josh Soref
adb8860b9b
spelling: pattern
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 15:20:24 -04:00
Asger F
d28b9af8bd
Merge pull request #10791 from asgerf/rb/rails-render-file
...
Ruby: treat render 'file:' argument as a file system access
2022-10-12 21:18:32 +02:00
Josh Soref
c7ae0728f3
spelling: javascript
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 15:02:00 -04:00
Josh Soref
98b317d1a5
spelling: escape
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 15:02:00 -04:00
Josh Soref
370da943dc
spelling: abcdefghijklmnopqrstuvwxyz
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 15:02:00 -04:00
Rasmus Lerchedahl Petersen
fb90089973
python: rewrite model for Aiohttp
2022-10-12 20:15:49 +02:00
Rasmus Lerchedahl Petersen
db616a526a
python: rewrite models using subscripts
...
more rewrites could be done to these models
for instance, I think the extra taint configuration could be removed,
but here I just wanted to illustrate the benefits of the new API graph.
2022-10-12 20:15:49 +02:00
Rasmus Lerchedahl Petersen
0b8e908823
Python: fix def nodes for subscript
...
We were using `getMember` for dictionaries, these are now getIndex
Also add convenience predicate for string keys
2022-10-12 20:13:48 +02:00
erik-krogh
66b3fe3425
add case-when expressions as a sink to rb/polynomial-redos
2022-10-12 19:57:01 +02:00
Chris Smowton
429d400125
Kotlin: fix bit-inversion operator for Byte and Short types
2022-10-12 17:23:16 +01:00
Jeroen Ketema
99b9101455
Merge pull request #10796 from github/nickrolfe/implicit_this
...
C++: use explicit `this`
2022-10-12 18:11:06 +02:00
Nick Rolfe
cfb9277cd7
C++: use explicit this
2022-10-12 16:11:45 +01:00
Alex Ford
0536d4b540
Merge branch 'main' into ruby/activejob-deserialize
2022-10-12 15:04:12 +01:00
Geoffrey White
5496b11153
Swift: Update tests based on feedback.
2022-10-12 14:52:14 +01:00
Sam Browning
87af5b7d71
Merge pull request #10793 from github/sabrowning1/clarify-codeql-installation-vscode
...
Add clarity to CodeQL extension installation
2022-10-12 09:42:38 -04:00
Edward Minnix III
ce740b47ae
Merge pull request #10637 from egregius313/egregius313/android-misconfigured-contentprovider
...
Android ContentProvider Incomplete Permissions
2022-10-12 09:41:03 -04:00
Chris Smowton
338ce838bf
Merge pull request #10788 from smowton/smowton/feature/kotlin-default-proxy-getter
...
Kotlin: Add Callable.getKotlinParameterDefaultsProxy
2022-10-12 14:16:09 +01:00
Sam Browning
8791a20f0c
Merge branch 'main' into sabrowning1/clarify-codeql-installation-vscode
2022-10-12 08:59:43 -04:00
Jami Cogswell
0fc4a33d43
remove commented-out code
2022-10-12 08:54:06 -04:00
Michael Nebel
2836c5eaef
Merge pull request #10679 from michaelnebel/csharp/telemetryresults
...
C#/Java: Limit telemetry results.
2022-10-12 14:52:20 +02:00
Jami Cogswell
01c2a8cbba
add symm to the single config; still seems to work
2022-10-12 08:51:22 -04:00
Sam Browning
af12eedb32
Add clarity to CodeQL extension installation
2022-10-12 08:46:42 -04:00
Ian Lynagh
9dc933cfc8
Kotlin: Fix inherited-callee test
...
We can't define the same classes in Java and Kotlin.
2022-10-12 13:45:21 +01:00
Tom Hvitved
d42c74f1a4
C#: Include CIL SSA definitions in DataFlow::Node
2022-10-12 14:39:30 +02:00
Asger F
7bfb3497eb
Ruby: change note
2022-10-12 14:29:34 +02:00
Nora Dimitrijević
7b90ba6189
Merge pull request #10550 from d10c/cpp/comma-before-misleading-indentation
2022-10-12 14:08:53 +02:00
Tom Hvitved
f49bfa7bcc
C#: Deprecate Assignable(Read)::getAReachableRead
2022-10-12 14:08:46 +02:00
Asger F
83464d48a9
Merge pull request #10773 from asgerf/rb/bugfix-singleton-class-resolution
...
Ruby: bugfix in type-tracking singleton class resolution
2022-10-12 13:45:16 +02:00
Nora Dimitrijević
949d3e13fe
Merge branch 'main' into cpp/comma-before-misleading-indentation
2022-10-12 13:25:22 +02:00
Nora Dimitrijević
695d8c6004
C++: Add Wikipedia references to QHelp
2022-10-12 13:21:24 +02:00
Nora Dimitrijević
93c01371c3
C++: no parens in select message
...
Debatable; see comment thread in PR.
2022-10-12 13:01:37 +02:00
Nora Dimitrijević
b42b88338e
C++: s/put/but/ typo in QHelp
2022-10-12 13:00:42 +02:00
Tamas Vajk
0d6da9ca7f
Exclude serialization constructors from useless parameters check
2022-10-12 12:58:28 +02:00
Nora Dimitrijević
a56770999f
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2022-10-12 12:54:27 +02:00
Jeroen Ketema
d389a183f0
Merge pull request #10743 from jsoref/spelling
...
Spelling
2022-10-12 12:48:22 +02:00
Tamas Vajk
955336fb22
Kotlin: exclude generated code from useless parameter check
2022-10-12 12:42:56 +02:00
Tamas Vajk
aa9dc3a764
Kotlin: Add test case for useless parameter FP
2022-10-12 12:42:27 +02:00
Chris Smowton
3b49594c20
Kotlin: Add Callable.getKotlinParameterDefaultsProxy
2022-10-12 11:29:55 +01:00
Mathias Vorreiter Pedersen
9eca56cbe2
Merge pull request #10779 from MathiasVP/add-uninitialized-dataflow-predicate-to-ir-dataflow
...
C++: Add `UninitializedNode` to experimental IR dataflow
2022-10-12 11:09:01 +01:00
sylwia-budzynska
7bcd247128
Apply suggestions from code review
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2022-10-12 12:08:20 +02:00
Tom Hvitved
9bd25220d4
Merge pull request #10760 from hvitved/ruby/regex-taint-flow-restrict
...
Ruby: Restrict regexp taint flow to `String` summaries
2022-10-12 11:59:08 +02:00
Tamás Vajk
56797c515b
Merge pull request #10776 from tamasvajk/kotlin-missing-override-fix
...
Kotlin/Java: Exclude generated code from `java/missing-override-annotation`
2022-10-12 11:30:20 +02:00
Nick Rolfe
39107047bf
Merge pull request #10735 from github/nickrolfe/actionmailer
...
Ruby: add `ActionMailer#params` as a `RemoteFlowSource`
2022-10-12 10:21:11 +01:00
Tom Hvitved
202549bdd9
Merge pull request #10758 from hvitved/ruby/type-tracking-level-step
...
Type tracking: Split up `levelStep` into `levelStepCall` and `levelStepNoCall`
2022-10-12 10:42:01 +02:00
Josh Soref
c92ce69f48
spelling: when
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
9d6ea28448
spelling: the
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
a8e5a12ec2
spelling: specific
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
b9d8903bdb
spelling: similarly
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
9eac158d7c
spelling: revocation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
08a79531cf
spelling: response
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
1a14c06008
spelling: receiver
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
061d1ee9fe
spelling: presence
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
71b0613f9a
spelling: parenthesized
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
ba0f34afed
spelling: owasp
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
0919507565
spelling: outside
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:26 -04:00
Josh Soref
7e0bbf1bdb
spelling: optimization
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:25 -04:00
Josh Soref
114653162c
spelling: operator
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:25 -04:00
Josh Soref
c77f685c0c
spelling: operations
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-12 04:40:25 -04:00
Asger F
e55be83645
Ruby: add 'render file:' as file system access
2022-10-12 09:47:04 +02:00
Jami Cogswell
29de0c6748
make one config for asymm with flow states; seems to work...
2022-10-11 22:29:48 -04:00
Jami Cogswell
3e8748e639
add path-graph back to query alerts
2022-10-11 16:56:11 -04:00
Jami Cogswell
26f4abf12b
remove globalflow for key(pair)gen
2022-10-11 16:56:11 -04:00
Jami Cogswell
e64825ff7a
fix code-scanning bot problems
2022-10-11 16:56:11 -04:00
Jami Cogswell
b6a8c27d48
delete experimental files
2022-10-11 16:56:11 -04:00
Jami Cogswell
bd76b1fcc0
clean-up and update configurations to have specs as sink
2022-10-11 16:56:10 -04:00
Jami Cogswell
0c2cff253f
updates from discussing with Tony
2022-10-11 16:56:10 -04:00
Jami Cogswell
3cc7f143b2
clean up code somewhat
2022-10-11 16:56:10 -04:00
Jami Cogswell
f5a2fef7a3
update tests for non-path version
2022-10-11 16:56:10 -04:00
Jami Cogswell
b0af9f936c
added kg taintracking config to all
2022-10-11 16:56:10 -04:00
Jami Cogswell
b7123c17f8
draft of adding kpg tracking into dataflow config
2022-10-11 16:56:10 -04:00
Jami Cogswell
cdac0e2b52
add local algo name tracking, still need to add ability to track algo name when KeyGen obj is param to other method
2022-10-11 16:56:10 -04:00
Jami Cogswell
c414ee0e25
add ECC dataflow config; passes all test cases; still don't have algo name tracking
2022-10-11 16:56:10 -04:00
Jami Cogswell
5e2ef66014
refactoring to use both dataflow configs; commit before deleting unused code
2022-10-11 16:56:10 -04:00
Jami Cogswell
ac707198d5
commit before adding taint flow back (since no taint flow doesn't capture all cases)
2022-10-11 16:56:10 -04:00
Jami Cogswell
8ffd2522e7
add draft code to find algo type to replace tainttracking configs
2022-10-11 16:56:10 -04:00
Jami Cogswell
d3b1a04c13
handle FN case with simple VarAccess; add draft of dataflow config to handle complex VarAccess
2022-10-11 16:56:10 -04:00
Jami Cogswell
7de9c05c9d
use CompileTimeConstantExpr for FN with VarAccess, and remove KeyGeneratorInitConfiguration
2022-10-11 16:56:10 -04:00
Jami Cogswell
75794ec7a7
false negative testing - before rewrite for variable dataflow
2022-10-11 16:56:10 -04:00
Jami Cogswell
7d94590d79
add change note
2022-10-11 16:56:10 -04:00
Jami Cogswell
9eb45c3787
refactor tests and code, update help file
2022-10-11 16:56:10 -04:00
Jami Cogswell
657e1e62ca
start refactoring query logic into lib file
2022-10-11 16:56:10 -04:00
Jami Cogswell
3643c9e658
update metadata
2022-10-11 16:56:10 -04:00
Jami Cogswell
9b7df354e6
move files
2022-10-11 16:56:10 -04:00
Alex Ford
bf4dac78c5
Ruby: remove some singleton set literals
2022-10-11 21:44:52 +01:00
Alex Ford
d3c8ce3f48
Ruby: ActiveSupport extends Pathname with an existence method that may return itself
2022-10-11 21:35:58 +01:00
Henry Mercer
bfa9765a6d
Merge branch 'main' into codeql-ci/js/ml-powered-pack-release-0.3.5
2022-10-11 19:06:01 +01:00
github-actions[bot]
06bbede92b
JS: Bump version of ML-powered library and query packs to 0.3.6
2022-10-11 17:58:33 +00:00
github-actions[bot]
4e3a6e60b2
JS: Bump patch version of ML-powered library and query packs
2022-10-11 17:48:46 +00:00
Asger F
ed165c6194
Ruby: bugfix in self-resolution in type-tracking
2022-10-11 18:53:20 +02:00
Asger F
a64286b664
Ruby: add test for singleton class instance field
...
incorrect test output
2022-10-11 18:53:20 +02:00
Tony Torralba
4b2aa93a05
Update test expectations after rebase
2022-10-11 17:54:59 +02:00
Mathias Vorreiter Pedersen
fc810ddbf4
Merge pull request #10775 from atorralba/atorralba/swift/custom-url-scheme-sources
...
Swift: Add taint sources for custom URL scheme URLs
2022-10-11 16:47:52 +01:00
Tony Torralba
8525db5af6
Add summaries for tainted URL fields
2022-10-11 17:24:26 +02:00
Tony Torralba
f4d43deec4
Add taint sources for custom URL scheme URLs
2022-10-11 17:19:04 +02:00
Mathias Vorreiter Pedersen
f88aaf37a5
C++: Add 'UninitializedNode' to IR dataflow.
2022-10-11 16:08:06 +01:00
Ed Minnix
80cc3fc518
Reword first sentence of documentation
2022-10-11 11:02:37 -04:00
Edward Minnix III
1f0a48de28
Documentation suggestion
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-10-11 10:59:00 -04:00
Mathias Vorreiter Pedersen
af79139c30
Merge pull request #10772 from atorralba/atorralba/swift/subscriptexpr-taint-step
...
Swift: Add taint step for subscript expressions
2022-10-11 15:45:54 +01:00
Alex Ford
3d08a2954d
Ruby: add rb/unsafe-deserialization sinks for const_get args
2022-10-11 15:45:51 +01:00
Alex Ford
a3f096a6bc
Ruby: rb/unsafe-deserialization test realignment
2022-10-11 15:44:00 +01:00
Tamas Vajk
41a54f2a98
Add change note
2022-10-11 16:40:08 +02:00
Tamas Vajk
524dac551b
Add upgrade and downgrade folders
2022-10-11 16:40:08 +02:00
Tamas Vajk
9eea6d4193
Kotlin: Extract type parameter modifiers (reified, in, out)
2022-10-11 16:40:07 +02:00
Nick Rolfe
078c3e9d28
Ruby: create top-level module for ActionMailer
2022-10-11 15:22:42 +01:00
Mathias Vorreiter Pedersen
7ac9c1e832
Merge pull request #10713 from MathiasVP/fix-types-in-ir-dataflow
...
C++: Fix `getType` for experimental IR dataflow
2022-10-11 15:20:49 +01:00
Rasmus Wriedt Larsen
b3f10311b3
Merge pull request #10752 from RasmusWL/pymssql
...
Python: DB Modeling: Add `pymssql` and `executemany` in general
2022-10-11 15:55:04 +02:00
Tamas Vajk
9b2cc6c318
Kotlin/Java: Exclude generated code from java/missing-override-annotation
2022-10-11 15:48:46 +02:00
Tony Torralba
0892a5795d
Add taint step for subscript expressions
2022-10-11 15:33:45 +02:00
Sylwia Budzynska
319923f445
Add python cx_oracle, phoenixdb, pyodbc models
2022-10-11 15:29:57 +02:00
Tamás Vajk
8523d21f8c
Merge pull request #10696 from tamasvajk/kotlin-lateinit
...
Kotlin: Extract `lateinit` modifier
2022-10-11 15:03:10 +02:00
Tamás Vajk
e9835ec07e
Merge pull request #10756 from tamasvajk/kotlin-fix-java-modifier
...
Kotlin: extract `protected` modifier from java class files
2022-10-11 15:02:13 +02:00
Erik Krogh Kristensen
66c2de87b0
Merge pull request #10729 from erik-krogh/py-last-msg
...
Py: fix some more style-guide violations in the alert-messages
2022-10-11 14:48:14 +02:00
Rasmus Wriedt Larsen
ac30cfa5c1
Python: Apply suggestions from code review
2022-10-11 14:05:27 +02:00
erik-krogh
a826dbbdee
fix capitalization in stack-trace-exposure
2022-10-11 13:59:10 +02:00
Tom Hvitved
7171fd1bb2
Update python/ql/lib/semmle/python/dataflow/new/internal/TypeTrackerSpecific.qll
...
Co-authored-by: Taus <tausbn@github.com >
2022-10-11 13:58:51 +02:00
Tom Hvitved
f1c44f72b5
Python: Sync on TypeTracker.qll changes
2022-10-11 13:58:50 +02:00
Tom Hvitved
2e8f46ddd9
Type tracking: Split up levelStep into levelStepNoCall and levelStepCall
...
To reduce non-linear recursion during call graph construction.
2022-10-11 13:58:46 +02:00
Mathias Vorreiter Pedersen
95e798565b
C++: Expand on the comment about missing types in the database. Also rename 'getType0' to 'getTypeImpl' to avoid confusion.
2022-10-11 12:57:51 +01:00
Erik Krogh Kristensen
0883b1782d
Merge pull request #10730 from erik-krogh/ql-last-msg
...
QL: fix some more style-guide violations in the alert-messages
2022-10-11 13:43:21 +02:00
erik-krogh
7500a31814
fix that js/file-system-race could have FPs related to loops
2022-10-11 13:41:51 +02:00
erik-krogh
0220f0aa5c
use type-tracking instead
2022-10-11 13:37:01 +02:00
Asger F
02656b16c3
Merge pull request #10685 from asgerf/rb/splat-and-local-field-step
...
Ruby: summarize unary splat operators and add local field step
2022-10-11 13:28:58 +02:00
erik-krogh
b64a1b7c42
add a missing qldoc
2022-10-11 13:26:04 +02:00
erik-krogh
cadb948d57
add change-note
2022-10-11 13:26:03 +02:00
erik-krogh
d427e55507
add qhelp
2022-10-11 13:26:03 +02:00
erik-krogh
557dd10896
add a rb/unsafe-shell-command-construction query
2022-10-11 13:26:01 +02:00
Ian Lynagh
b31a721929
Kotlin: Remove some noisy diagnostics
2022-10-11 12:20:42 +01:00
erik-krogh
0d5da42ddd
add a getName() utility to DataFlow::ParameterNode
2022-10-11 13:05:22 +02:00
erik-krogh
75422dfa72
add library for reasoning about gems and .gemspec files
2022-10-11 13:05:19 +02:00
erik-krogh
99b90789e5
add .shellescape as a sanitizer for rb/command-injection
2022-10-11 13:05:19 +02:00
erik-krogh
b16b3c0394
move cwe-078 tests into subfolders
2022-10-11 13:05:19 +02:00
Tamas Vajk
43f9331052
Kotlin: adjust extracted property reference base class
2022-10-11 12:52:26 +02:00
Tamas Vajk
92b425b1c2
Kotlin: Add test to show imperfections in property reference extraction
2022-10-11 12:51:06 +02:00
Alvaro Muñoz
2ab34c85b2
Deprecate previous version
2022-10-11 12:46:01 +02:00
Alvaro Muñoz
15f641893e
Deprecate previous version
2022-10-11 12:44:46 +02:00
Alvaro Muñoz
d5520d93c8
Deprecate previous version
2022-10-11 12:43:20 +02:00
Alvaro Muñoz
30958f7cde
Deprecate previous version
2022-10-11 12:42:40 +02:00
Alvaro Muñoz
2a1b2db4c3
Deprecate previous version
2022-10-11 12:40:32 +02:00
Erik Krogh Kristensen
01bc5f7226
Merge pull request #10731 from erik-krogh/rb-last-msg
...
Ruby: fix some more style-guide violations in the alert-messages
2022-10-11 12:16:52 +02:00
ihsinme
3954da5938
Update DivideByZeroUsingReturnValue.ql
2022-10-11 13:11:45 +03:00
Mathias Vorreiter Pedersen
5cfc3fe8df
C++: Use 'DataFlowType' instead of 'Type' for the 'getType' predicate in 'PostUpdateNode'.
2022-10-11 11:00:25 +01:00
Tom Hvitved
878654e0ff
Merge pull request #10763 from hvitved/ruby/move-summarized-callable-from-model
...
Ruby: Move `SummarizedCallableFromModel` into `ModelsAsData.qll`
2022-10-11 11:47:38 +02:00
Tom Hvitved
2b75562037
Ruby: Use DataFlow::Configuration in RegExpConfiguration.qll
2022-10-11 11:39:45 +02:00
erik-krogh
42e1735f2a
update expected output
2022-10-11 11:37:26 +02:00
Alvaro Muñoz
5c412b9363
Use Pascal convention
2022-10-11 11:24:07 +02:00
erik-krogh
8779da8c0b
reintroduce Psych
2022-10-11 11:14:52 +02:00
Alvaro Muñoz
ad80642b18
Consider other XSS unsafe content-types when reasoning about XSS vulnerabilities
2022-10-11 11:13:17 +02:00
Erik Krogh Kristensen
7d282c3d75
fix casing in alert-message
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-10-11 11:12:59 +02:00
Tom Hvitved
d6df69d481
Merge pull request #10754 from hvitved/dataflow/non-hidden-succ-fast-tc
...
Data flow: Improve `fastTC` bound in `PathNodeImpl::getANonHiddenSuccessor`
2022-10-11 11:12:58 +02:00
Tom Hvitved
53abdb3fb5
Ruby: Move SummarizedCallableFromModel into ModelsAsData.qll
2022-10-11 11:06:35 +02:00
erik-krogh
4da0508dae
Merge branch 'main' into py-last-msg
2022-10-11 10:49:19 +02:00
erik-krogh
cdf9d65e44
bump typos
2022-10-11 10:44:34 +02:00
erik-krogh
f4e928eec4
Merge branch 'main' into ql-last-msg
2022-10-11 10:44:20 +02:00
erik-krogh
9a9d2a6fe1
Merge branch 'main' into rb-last-msg
2022-10-11 10:43:39 +02:00
Josh Soref
704aba8c1c
spelling: necessitates
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 03:59:17 -04:00
Josh Soref
22141e378e
spelling: necessary
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 03:59:17 -04:00
Josh Soref
4e220330a7
spelling: interface
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 03:59:17 -04:00
Josh Soref
8f7e76f0cb
spelling: initialization
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 03:59:08 -04:00
erik-krogh
9fe18e5d73
changes based on review
2022-10-11 09:30:18 +02:00
erik-krogh
186205bd4b
add a test for explicit shell invocations using Kernel.open
2022-10-11 09:23:29 +02:00
erik-krogh
de3b15ebe9
add a query flagging uses of Kernel.open that are not with a constant string
2022-10-11 09:23:29 +02:00
erik-krogh
708f6b51f3
move cwe-078 tests into subfolders
2022-10-11 09:23:29 +02:00
Asger F
b6e07c0cd5
Ruby: block API graph nodes from tracking through self-argument passing
2022-10-11 09:03:52 +02:00
Asger F
125761755a
Ruby: do not generate API graph edges from Attribute contents
...
Models should use Method[x] edges, not attribute edges
2022-10-11 09:03:52 +02:00
Asger F
6daa1c432b
Ruby: update test output
2022-10-11 09:03:51 +02:00
Asger F
38a3476d37
Ruby: add local field step to type tracking
...
fixup local field steps
2022-10-11 09:03:51 +02:00
Asger F
d55925d8d4
Ruby: support splat type-tracking step
2022-10-11 09:03:51 +02:00
Josh Soref
0a4c724b69
spelling: implementation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
f06c15b86a
spelling: genuinely
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
29da681bbb
spelling: functions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
86ee8c2d00
spelling: first
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
b5bed9cbf5
spelling: explicitly
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
e8754967ea
spelling: explaining
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
479a4fb4a2
spelling: expectations
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
cbea5ec40c
spelling: executables
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
3b9546f02e
spelling: deserialization
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
c08cfe23e0
spelling: dependencies
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
3e6477f878
spelling: currently
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
e6998d40c3
spelling: cryptographically
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
88408fbd59
spelling: ciphertext
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
9b372f3db4
spelling: characters
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
0581f2fe1c
spelling: can
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
879158a653
spelling: behavior
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
5755159f08
spelling: authentication
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:36 -04:00
Josh Soref
6db36616cd
spelling: arbitrary
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:35 -04:00
Josh Soref
c2a0dbe715
spelling: application
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:35 -04:00
Josh Soref
3358c5f664
spelling: apparent
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:35 -04:00
Josh Soref
b95af76dab
spelling: although
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:35 -04:00
Josh Soref
b1052992fe
spelling: against
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:35 -04:00
Josh Soref
21caa4b03f
spelling: across
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-11 00:23:35 -04:00
Tom Hvitved
6c2eee3eb8
Ruby: Restrict regexp taint flow to String summaries
2022-10-10 20:58:41 +02:00
Edward Minnix III
b6270ebe52
Apply suggestions from documentation review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-10-10 14:57:14 -04:00
Edward Minnix III
b94b78115e
Style fix.
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2022-10-10 14:52:17 -04:00
Ian Lynagh
591844f680
Kotlin: Add a numlines test
2022-10-10 19:04:11 +01:00
Ian Lynagh
bca2586903
Kotlin: Populate numfiles
2022-10-10 19:00:05 +01:00
Nora Dimitrijević
b7ad287cb1
Swift: rename stub parameters to match docs.
2022-10-10 18:46:39 +02:00
Geoffrey White
4258147edf
Swift: Test SQL injection via the SQLite.swift library.
2022-10-10 17:40:22 +01:00
Geoffrey White
964c92418c
Swift: Test SQL injection via the C API.
2022-10-10 17:40:22 +01:00
Geoffrey White
bcab9d8e7c
Swift: Add framework for SQL Injection query.
2022-10-10 17:25:08 +01:00
Asger F
9bbbece8a7
Merge pull request #10670 from tyage/property-stringify
...
JS: Improve detection of XSS when JSON.stringify()
2022-10-10 18:16:09 +02:00
Tamas Vajk
f2e2e3bc1d
Kotlin: extract protected modifier from java class files
2022-10-10 18:02:21 +02:00
Tamas Vajk
15aab711c7
Kotlin: Add test showing missing java modifier
2022-10-10 18:01:38 +02:00
Chris Smowton
5756a33604
Merge pull request #10737 from smowton/smowton/fix/type-instance-within-default-value-erasure
...
Kotlin: fix type variable erasure inside default function values
2022-10-10 16:31:07 +01:00
Tamás Vajk
70b8224a8b
Merge pull request #10723 from tamasvajk/kotlin-generated-files
...
Kotlin: Recognize generated files
2022-10-10 16:24:42 +02:00
Asger F
b1a165ee98
JS: Edit change note
2022-10-10 16:08:21 +02:00
Asger F
ecf7ed38e0
JS: Performance tweak
2022-10-10 16:08:21 +02:00
Asger F
67cef92f94
JS: Rewrite to use DataFlow::Node API and restrict context
2022-10-10 16:08:21 +02:00
Chris Smowton
dfdfd39bcc
Merge pull request #10732 from smowton/smowton/fix/kotlin-enum-corresponding-classes
...
Koltin: Extract the corresponding classes of enum entries
2022-10-10 15:04:02 +01:00
Arthur Baars
b597896bf2
Merge pull request #10753 from aibaars/fix-qhelp-job
...
CI: fix qhelp preview
2022-10-10 15:44:17 +02:00
Tom Hvitved
ffb2b1c15e
Data flow: Sync files
2022-10-10 15:39:13 +02:00
Tom Hvitved
85344bfb13
Data flow: Improved fastTC bound in PathNodeImpl::getANonHiddenSuccessor
...
Before
```
[2022-10-10 14:34:54] Evaluated non-recursive predicate __DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp__#higher_order_body@4bb14aoj in 262ms (size: 2418048).
Evaluated relational algebra for predicate __DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp__#higher_order_body@4bb14aoj with tuple counts:
4141389 ~75% {1} r1 = SCAN _DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp#__#shared OUTPUT In.1
return r1
[2022-10-10 14:34:57] Evaluated non-recursive predicate boundedFastTC:DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorIfHidden#0#dispred#ff:__DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp__#higher_order_body@fb66bb06 in 2754ms (size: 7448123).
[2022-10-10 14:35:09] Evaluated non-recursive predicate DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor#0#dispred#ff@77ff066b in 10892ms (size: 2830055).
Evaluated relational algebra for predicate DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor#0#dispred#ff@77ff066b with tuple counts:
4141389 ~0% {3} r1 = SCAN _DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp#__#shared OUTPUT In.0, In.1, In.1
2192551 ~4% {3} r2 = r1 AND NOT DataFlowImplForRegExp#43df744e::PathNodeImpl::isHidden#0#dispred#f(Lhs.2)
2192551 ~4% {2} r3 = SCAN r2 OUTPUT In.0, In.2
4141389 ~0% {2} r4 = SCAN _DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp#__#shared OUTPUT In.1, In.0
147138810 ~0% {3} r5 = JOIN r4 WITH boundedFastTC:DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorIfHidden#0#dispred#ff:__DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff_DataFlowImplForRegExp__#higher_order_body ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Rhs.1
637649 ~3% {3} r6 = r5 AND NOT DataFlowImplForRegExp#43df744e::PathNodeImpl::isHidden#0#dispred#f(Lhs.2)
637649 ~2% {2} r7 = SCAN r6 OUTPUT In.0, In.2
2830200 ~0% {2} r8 = r3 UNION r7
return r8
```
After
```
[2022-10-10 14:59:08] Evaluated non-recursive predicate boundedFastTC:DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorIfHidden#0#dispred#ff_10#higher_order_body:_DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorIfHidden#0#dispred#ff_DataFlowImplForReg__#higher_order_body@98a323ne in 384ms (size: 671076).
[2022-10-10 14:59:09] Evaluated non-recursive predicate DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor0#ff@69f158pf in 222ms (size: 2805795).
Evaluated relational algebra for predicate DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor0#ff@69f158pf with tuple counts:
2155019 ~0% {1} r1 = DataFlowImplForRegExp#43df744e::PathNodeImpl#class#f AND NOT DataFlowImplForRegExp#43df744e::PathNodeImpl::isHidden#0#dispred#f(Lhs.0)
2155019 ~0% {2} r2 = SCAN r1 OUTPUT In.0, In.0
650776 ~0% {2} r3 = boundedFastTC:DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorIfHidden#0#dispred#ff_10#higher_order_body:_DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorIfHidden#0#dispred#ff_DataFlowImplForReg__#higher_order_body AND NOT DataFlowImplForRegExp#43df744e::PathNodeImpl::isHidden#0#dispred#f(Lhs.0)
650776 ~0% {2} r4 = SCAN r3 OUTPUT In.1, In.0
2805795 ~0% {2} r5 = r2 UNION r4
return r5
[2022-10-10 14:59:09] Evaluated non-recursive predicate DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor#0#dispred#ff@5ae9fc5n in 445ms (size: 2830062).
Evaluated relational algebra for predicate DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor#0#dispred#ff@5ae9fc5n with tuple counts:
4141389 ~5% {2} r1 = DataFlowImplForRegExp#43df744e::PathNodeImpl::getASuccessorImpl#0#dispred#ff AND NOT DataFlowImplForRegExp#43df744e::PathNodeImpl::isHidden#0#dispred#f(Lhs.0)
4141389 ~0% {2} r2 = SCAN r1 OUTPUT In.1, In.0
2830200 ~0% {2} r3 = JOIN r2 WITH DataFlowImplForRegExp#43df744e::PathNodeImpl::getANonHiddenSuccessor0#ff ON FIRST 1 OUTPUT Lhs.1, Rhs.1
return r3
```
2022-10-10 15:36:58 +02:00
Arthur Baars
f7203bfcb8
CI: fix qhelp preview
...
The command to gather the changed files uses NULL character terminated "lines",
therefore we should supply the `-z` flag to `basename` as well. Otherwise we
end up calling `git grep -l "\n"` which would list all files containing a newline.
2022-10-10 15:27:48 +02:00
Rasmus Wriedt Larsen
13cb4f9241
Merge pull request #10750 from RasmusWL/pyhton-typo
...
Python: Fix typo in qldoc
2022-10-10 15:11:09 +02:00
Erik Krogh Kristensen
8cc52a4b55
Merge pull request #10704 from erik-krogh/rbMeta
...
RB: add some more meta queries for Ruby evaluations
2022-10-10 14:57:37 +02:00
Tamas Vajk
544e2e4107
Remove path based generated file classification
2022-10-10 14:42:15 +02:00
Geoffrey White
fd571538fb
Merge pull request #10706 from geoffw0/vaheuristic
...
C++: Tune cpp/unterminated-variadic-call
2022-10-10 13:39:40 +01:00
Rasmus Wriedt Larsen
dba42d6bb8
Python: Model executemany on PEP-249 DB APIs
...
Note: I kept the modeling using the old approach with type-trackers
instead of `DataFlow::MethodCallNode`.
I would like a meta query for DCA to show sinks before doing this, so I
can be absolutely sure we don't loose out on any important sinks on
this... so will postpone this work to a small one-off task (added to my
todo list).
2022-10-10 14:16:47 +02:00
Rasmus Wriedt Larsen
669f4f38b9
Python: Update QLDocs on PEP249Impl.qll
2022-10-10 14:13:01 +02:00
Nora Dimitrijević
ea3510e766
Swift: DX changes based on my new setup experience
2022-10-10 14:08:04 +02:00
Nora Dimitrijević
8664017fe4
Swift: Working tests
2022-10-10 14:08:04 +02:00
Nora Dimitrijević
8a08a3ecce
Merge branch 'main' into swift/cleartext-storage-nsuserdefaults
2022-10-10 14:06:32 +02:00
Rasmus Wriedt Larsen
4ee71ae4a1
Python: Add support for pymssql package
...
I also forgot to mention `PyMySQL` in frameworks.rst
2022-10-10 14:02:40 +02:00
Tom Hvitved
60fe370f2a
Merge pull request #10744 from hvitved/dataflow/has-flow-to-no-fast-tc
...
Data flow: Avoid call to `pathSuccPlus` in `Configuration::hasFlowTo(Expr)`
2022-10-10 14:02:39 +02:00
Tom Hvitved
099251a30a
Merge pull request #10741 from hvitved/ruby/no-full-fast-tc
...
Ruby: Avoid computing full `fastTC` for `AstNode::getParent`
2022-10-10 14:01:56 +02:00
Tamás Vajk
1cf2db1a0b
Merge pull request #10718 from tamasvajk/kotlin-internal-repr
...
Kotlin: ignore properties in `java/internal-representation-exposure` check
2022-10-10 13:58:55 +02:00
Tamás Vajk
87b971c78f
Merge pull request #10728 from tamasvajk/kotlin-missing-override-sam
...
Kotlin: Extract `override` modifier on SAM methods
2022-10-10 13:58:28 +02:00
Tamás Vajk
cd8ac1a835
Merge pull request #10720 from tamasvajk/kotlin-equals-fix
...
Kotlin: Consider `::class` type check in `java/unchecked-cast-in-equals`
2022-10-10 13:58:15 +02:00
Rasmus Wriedt Larsen
b1d33a404c
Python: Sort Frameworks.qll
2022-10-10 13:55:10 +02:00
Tamás Vajk
e060ac71bb
Change Kotlin stdlib identifier
2022-10-10 13:50:33 +02:00
Rasmus Wriedt Larsen
584ccf1992
Python: clean up Mysql.qll
2022-10-10 13:49:26 +02:00
Rasmus Wriedt Larsen
08d6b2f30a
Python: Fix typo in qldoc
2022-10-10 13:46:18 +02:00
Tom Hvitved
9f2f6ac491
Merge pull request #10745 from hvitved/ruby/cache-library-flow
...
Ruby: Cache use of `DataFlowImplFor(Pathname|HttpClientLibraries)`
2022-10-10 13:08:36 +02:00
erik-krogh
38c17c5d0c
Merge branch 'main' into rbMeta
2022-10-10 12:22:56 +02:00
Geoffrey White
059864587e
C++: Add 'mremap' to whitelist.
2022-10-10 11:00:18 +01:00
ihsinme
01b357e749
Update DivideByZeroUsingReturnValue.ql
2022-10-10 12:33:11 +03:00
Nick Rolfe
e38cfd5f7d
Ruby: add changenote for ActionMailer params
2022-10-10 10:25:19 +01:00
Nick Rolfe
d61f0559a0
Ruby: add ActionMailer#params as a RemoteFlowSource
2022-10-10 10:23:48 +01:00
Rasmus Wriedt Larsen
4b1f6f0865
Merge pull request #10629 from RasmusWL/fix-flask-source
...
Python: Fix flask request modeling
2022-10-10 09:56:22 +02:00
Alex Ford
d0bdbe65ef
Ruby: ActiveJob::Serializers.deserialize changenote
2022-10-09 22:47:52 +01:00
Alex Ford
ee77404006
Ruby: Add ActiveJob::Serializers.deserialize as a code execution sink
2022-10-09 22:28:22 +01:00
Alex Ford
4a39e4aac0
Ruby: Add new test case for rb/code-injection
2022-10-09 22:26:29 +01:00
Alex Ford
c4baf0b8fa
Ruby: add space for test case
2022-10-09 22:16:23 +01:00
Tom Hvitved
efa6b3c0c6
Ruby: Cache uses of DataFlowImplForHttpClientLibraries
2022-10-09 19:59:56 +02:00
Tom Hvitved
9f34bf80fd
Ruby: Cache use of DataFlowImplForPathname
2022-10-09 19:59:05 +02:00
Tom Hvitved
296ec94a2a
Data flow: Sync files
2022-10-09 19:48:45 +02:00
Tom Hvitved
d1c8c40c17
Data flow: Avoid call to pathSuccPlus in Configuration::hasFlowTo(Expr)
2022-10-09 19:48:44 +02:00
Alex Ford
43fec9dfc8
Revert "Ruby: switch rb/sensitive-get-query back to using local flow"
...
This reverts commit fa58c51810 .
2022-10-09 13:06:13 +01:00
Alex Ford
139d3868e5
Merge branch 'main' into rb/sensitive-get-query
2022-10-09 12:26:44 +01:00
Tom Hvitved
02192acd5f
Ruby: Avoid computing full fastTC for AstNode::getParent
...
DIL before
```
/* AST::AstNode */ AST#87953007::Cached::TAstNode result) =
fastTC(AST#a6718388::AstNode::getAChild#0#dispred#ff/2)
.
Synthesis#d9ff06b1::Desugared::getADescendant#0#dispred#ff(/* Synthesis::Desugared */ AST#87953007::Cached::TAstNode this,
/* AST::AstNode */ AST#87953007::Cached::TAstNode result)
:-
(
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
result = this
);
(
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
#AST#a6718388::AstNode::getAChild#0#dispredPlus#ff(this, result)
)
.
```
DIL after
```
incremental
Synthesis#d9ff06b1::Desugared::getADescendant#ff(/* Synthesis::Desugared */ AST#87953007::Cached::TAstNode this,
/* AST::AstNode */ AST#87953007::Cached::TAstNode result)
:-
(
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
result = this
);
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
rec Synthesis#d9ff06b1::Desugared::getADescendant#ff(this, call_result#2),
exists(cached dontcare string _ |
AST#a6718388::AstNode::getAChild#1#dispred(call_result#2, _, result)
)
)
| [base_case]
exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
result = this
| [delta_order]
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
delta previous rec Synthesis#d9ff06b1::Desugared::getADescendant#ff(this,
call_result#2),
project#AST#a6718388::AstNode::getAChild#1#dispred(call_result#2, result)
),
not(
previous rec Synthesis#d9ff06b1::Desugared::getADescendant#ff(this, result)
)
| [delta_order_up_to_500000]
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
delta previous rec Synthesis#d9ff06b1::Desugared::getADescendant#ff(this,
call_result#2),
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, this)
),
project#AST#a6718388::AstNode::getAChild#1#dispred(call_result#2, result)
),
not(
previous rec Synthesis#d9ff06b1::Desugared::getADescendant#ff(this, result)
)
.
```
2022-10-09 11:12:24 +02:00
Tom Hvitved
d39b0fd3f4
Ruby: Avoid computing full fastTC for AstNode::getParent
...
DIL before
```
/* AST::AstNode */ AST#87953007::Cached::TAstNode result) =
fastTC(AST#a6718388::AstNode::getAChild#0#dispred#ff/2)
.
Synthesis#d9ff06b1::isInDesugaredContext#1#f(/* AST::AstNode */ unique AST#87953007::Cached::TAstNode n)
:-
exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, n)
);
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
exists(int arg1,
/* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, call_result#2)
),
#AST#a6718388::AstNode::getAChild#0#dispredPlus#ff(call_result#2, n)
)
.
```
DIL after
```
incremental
Synthesis#d9ff06b1::isInDesugaredContext#1#f(/* AST::AstNode */ unique AST#87953007::Cached::TAstNode n)
:-
exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, n)
);
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode any#expr##2 |
rec Synthesis#d9ff06b1::isInDesugaredContext#1#f(any#expr##2),
exists(cached dontcare string _ |
AST#a6718388::AstNode::getAChild#1#dispred(any#expr##2, _, n)
)
)
| [base_case]
exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, n)
)
| [delta_order]
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode any#expr##2 |
delta previous rec Synthesis#d9ff06b1::isInDesugaredContext#1#f(any#expr##2),
project#AST#a6718388::AstNode::getAChild#1#dispred(any#expr##2, n)
),
not(previous rec Synthesis#d9ff06b1::isInDesugaredContext#1#f(n))
.
``
2022-10-09 11:11:48 +02:00
Tom Hvitved
262a74d03d
Ruby: Avoid computing full fastTC for AstNode::getParent
...
DIL before
```
/* AST::AstNode */ AST#87953007::Cached::TAstNode result) =
fastTC(AST#a6718388::AstNode::getAChild#0#dispred#ff/2)
.
Completion#445d5844::mayRaise#1#f(/* Call::Call */ unique AST#87953007::Cached::TAstNode c)
:-
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
exists(/* ControlFlowGraphImpl::Trees::BodyStmtTree */ AST#87953007::Cached::TAstNode bst |
(
(
project#Expr#6fb2af19::BodyStmt::getRescue#1#dispred#fff(bst),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst)
);
(
exists(/* Expr::StmtSequence */ dontcare AST#87953007::Cached::TAstNode _ |
Expr#6fb2af19::BodyStmt::getEnsure#0#dispred#ff(bst, _)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst)
)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst),
project#ControlFlowGraphImpl#288ae92e::Trees::StmtSequenceTree::getBodyChild#2#dispred#ffff(bst,
call_result#2)
),
(
(c = call_result#2, Call#841c84e8::Call#f(c));
(
#AST#a6718388::AstNode::getAChild#0#dispredPlus#ff(call_result#2, c),
Call#841c84e8::Call#f(c)
)
)
)
.
```
DIL after
```
incremental
Completion#445d5844::getARescuableBodyChild#0#f(/* AST::AstNode */ unique AST#87953007::Cached::TAstNode result)
:-
exists(/* ControlFlowGraphImpl::Trees::BodyStmtTree */ AST#87953007::Cached::TAstNode bst |
(
(
exists(dontcare int _,
/* Expr::RescueClause */ dontcare AST#87953007::Cached::TAstNode _1 |
Expr#6fb2af19::BodyStmt::getRescue#1#dispred#fff(bst, _, _1)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst)
);
(
exists(/* Expr::StmtSequence */ dontcare AST#87953007::Cached::TAstNode _ |
Expr#6fb2af19::BodyStmt::getEnsure#0#dispred#ff(bst, _)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst)
)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst),
exists(boolean arg2, dontcare int _ |
arg2 = true,
ControlFlowGraphImpl#288ae92e::Trees::StmtSequenceTree::getBodyChild#2#dispred#ffff(bst,
_,
arg2,
result)
)
);
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#5 |
rec Completion#445d5844::getARescuableBodyChild#0#f(call_result#5),
exists(cached dontcare string _ |
AST#a6718388::AstNode::getAChild#1#dispred(call_result#5, _, result)
)
)
| [base_case]
exists(/* ControlFlowGraphImpl::Trees::BodyStmtTree */ AST#87953007::Cached::TAstNode bst |
(
(
project#Expr#6fb2af19::BodyStmt::getRescue#1#dispred#fff(bst),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst)
);
(
exists(/* Expr::StmtSequence */ dontcare AST#87953007::Cached::TAstNode _ |
Expr#6fb2af19::BodyStmt::getEnsure#0#dispred#ff(bst, _)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst)
)
),
ControlFlowGraphImpl#288ae92e::Trees::BodyStmtTree#class#f(bst),
project#ControlFlowGraphImpl#288ae92e::Trees::StmtSequenceTree::getBodyChild#2#dispred#ffff(bst,
result)
)
| [delta_order]
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#5 |
delta previous rec Completion#445d5844::getARescuableBodyChild#0#f(call_result#5),
project#AST#a6718388::AstNode::getAChild#1#dispred(call_result#5, result)
),
not(previous rec Completion#445d5844::getARescuableBodyChild#0#f(result))
.
```
2022-10-09 11:10:39 +02:00
Tom Hvitved
d707c526e5
Ruby: Avoid computing full fastTC for AstNode::getParent
...
DIL before
```
/* AST::AstNode */ AST#87953007::Cached::TAstNode result) =
fastTC(Module#fe82a56b::parent#1#ff/2)
.
Module#fe82a56b::enclosingModule#1#ff(/* AST::AstNode */ AST#87953007::Cached::TAstNode node,
/* Module::ModuleBase */ AST#87953007::Cached::TAstNode result)
:-
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
Module#2a43f566::ModuleBase#f(result),
project#AST#a6718388::AstNode::getAChild#1#dispred(result, call_result#2),
(
node = call_result#2;
#Module#fe82a56b::parent#1Plus#ff(node, call_result#2)
)
)
.
```
DIL after
```
incremental
Module#fe82a56b::enclosingModule#1#ff(/* AST::AstNode */ AST#87953007::Cached::TAstNode node,
/* Module::ModuleBase */ AST#87953007::Cached::TAstNode result)
:-
(
Module#2a43f566::ModuleBase#f(result),
exists(cached dontcare string _ |
AST#a6718388::AstNode::getAChild#1#dispred(result, _, node)
)
);
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode mid |
Module#2a43f566::ModuleBase#f(result),
rec Module#fe82a56b::enclosingModule#1#ff(mid, result),
not(Module#2a43f566::ModuleBase#f(mid)),
not(Method#8b49e67f::Block#f(mid)),
exists(cached dontcare string _ |
AST#a6718388::AstNode::getAChild#1#dispred(mid, _, node)
)
)
| [base_case]
Module#2a43f566::ModuleBase#f(result),
project#AST#a6718388::AstNode::getAChild#1#dispred(result, node)
| [delta_order]
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode mid |
Module#2a43f566::ModuleBase#f(result),
delta previous rec Module#fe82a56b::enclosingModule#1#ff(mid, result),
not(Module#2a43f566::ModuleBase#f(mid)),
not(Method#8b49e67f::Block#f(mid)),
project#AST#a6718388::AstNode::getAChild#1#dispred(mid, node)
),
not(previous rec Module#fe82a56b::enclosingModule#1#ff(node, result))
| [delta_order_up_to_500000]
exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode mid |
delta previous rec Module#fe82a56b::enclosingModule#1#ff(mid, result),
Module#2a43f566::ModuleBase#f(result),
not(Module#2a43f566::ModuleBase#f(mid)),
not(Method#8b49e67f::Block#f(mid)),
project#AST#a6718388::AstNode::getAChild#1#dispred(mid, node)
),
not(previous rec Module#fe82a56b::enclosingModule#1#ff(node, result))
.
```
2022-10-09 11:10:33 +02:00
yo-h
213c5bdab6
Update frameworks.csv
2022-10-07 17:45:39 -04:00
erik-krogh
73f88fbdb6
changes based on review
2022-10-07 23:28:44 +02:00
erik-krogh
6fdfd40880
changes to address reviews
2022-10-07 22:31:00 +02:00
Chris Smowton
5cadd3c0e6
Merge pull request #10712 from smowton/smowton/admin/kotlin-allow-single-embeddable-version
...
Kotlin: allow building a single embeddable plugin version
2022-10-07 20:33:06 +01:00
Jami
bb0f2f7d36
Merge pull request #10368 from jcogs33/android-deeplink-analysis
...
Java: Android deeplink analysis
2022-10-07 14:32:05 -04:00
Dave Bartolomeo
5ee7986649
Merge pull request #10736 from github/post-release-prep/codeql-cli-2.11.1
...
Post-release preparation for codeql-cli-2.11.1
2022-10-07 14:23:31 -04:00
Chris Smowton
5dcb70e482
Make method private
2022-10-07 18:10:52 +01:00
Chris Smowton
9c0cdfde6b
Note store_true params default to False not None
2022-10-07 18:02:32 +01:00
Chris Smowton
68967c40bc
Remove whitespace
2022-10-07 17:49:51 +01:00
Chris Smowton
85f92ff80a
Require --single-version with --single-version-embeddable
2022-10-07 17:49:03 +01:00
Chris Smowton
bef4011947
Kotlin: fix type variable erasure inside default function values
...
Previously because extractClassInstance didn't use the declaration stack, we wouldn't notice that it was legal to refer to its type variable in the context of extracting a specialised method <-> method source-decl edge. This led to erasing the types of the source-decl, so that e.g. Map.put(...) would have signature (Object, Object) not (K, V)
as it should.
2022-10-07 17:31:38 +01:00
github-actions[bot]
b8ef9e0ddc
Post-release preparation for codeql-cli-2.11.1
2022-10-07 15:59:45 +00:00
Ian Lynagh
b4510200b4
Merge pull request #10734 from github/smowton/fix/move-overloads-together
...
Kotlin: keep method overloads together
2022-10-07 16:02:38 +01:00
Erik Krogh Kristensen
dd50fe3c10
Merge pull request #10726 from erik-krogh/go-last-msg
...
Go: fix some more style-guide violations in the alert-messages
2022-10-07 16:16:29 +02:00
Chris Smowton
115d4de0e0
Kotlin: keep method overloads together
2022-10-07 13:50:27 +01:00
Nick Rolfe
4d75d885cb
Merge pull request #10733 from github/nickrolfe/deprecated_paramscall_fix
...
Ruby: fix use of deprecated class
2022-10-07 13:45:07 +01:00
Mathias Vorreiter Pedersen
be95b91878
Merge pull request #10725 from erik-krogh/cpp-last-msg
...
C: fix some more style-guide violations in the alert-messages
2022-10-07 13:22:06 +01:00
Nick Rolfe
a6674a5313
Ruby: fix uses of deprecated class name
2022-10-07 13:17:05 +01:00
Erik Krogh Kristensen
e8b9dc2e83
Merge pull request #10724 from erik-krogh/csharp-last-msg
...
C#: fix some more style-guide violations in the alert-messages
2022-10-07 13:48:23 +02:00
erik-krogh
cbeefd418b
add change-note
2022-10-07 13:47:32 +02:00
erik-krogh
10a014f18c
add change-note
2022-10-07 13:46:48 +02:00
erik-krogh
3e06e201c9
add change-note
2022-10-07 13:45:30 +02:00
erik-krogh
99b7c77abc
add change-note
2022-10-07 13:44:36 +02:00
Tom Hvitved
b065d2d3ab
Merge pull request #10705 from hvitved/ruby/singleton-overrides
...
Ruby: Take overrides into account for singleton methods defined on modules
2022-10-07 13:33:59 +02:00
erik-krogh
1bdc2374e4
fix deprecation warning
2022-10-07 13:33:54 +02:00
Chris Smowton
2df1d63d1c
Extract the corresponding classes of enum entries, where they exist.
2022-10-07 12:23:08 +01:00
erik-krogh
5d9c68c962
remove the taint-steps meta query
2022-10-07 13:21:24 +02:00
erik-krogh
a0725fba71
fix some more style-guide violations in the alert-messages
2022-10-07 12:01:03 +02:00
Chris Smowton
bb6e575689
Kotlin: allow building a single embeddable plugin version
2022-10-07 10:56:33 +01:00
Chris Smowton
0d98eba604
Merge pull request #10683 from smowton/smowton/feature/kotlin-function-overloads
...
Kotlin: implement $default function synthesis
2022-10-07 10:27:24 +01:00
erik-krogh
f3f3b9417b
fix some more style-guide violations in the alert-messages
2022-10-07 11:24:29 +02:00
erik-krogh
944ca4a0da
fix some more style-guide violations in the alert-messages
2022-10-07 11:23:34 +02:00
Tamas Vajk
26c4216fef
Kotlin: Extract override modifier on SAM methods
2022-10-07 11:23:14 +02:00
erik-krogh
368f84785b
fix some more style-guide violations in the alert-messages
2022-10-07 11:22:22 +02:00
Tamas Vajk
9f6240b38c
Kotlin: Add test for missing override modifier on SAM methods
2022-10-07 11:22:15 +02:00
Harry Maclean
75cb0efecb
Merge pull request #10538 from hmac/hmac/actioncontroller-parameters
...
Ruby: Model flow through ActionController::Parameters
2022-10-07 22:21:40 +13:00
erik-krogh
d5c45056bd
fix some more style-guide violations in the alert-messages
2022-10-07 11:21:01 +02:00
erik-krogh
66c9705502
fix some more style-guide violations in the alert-messages
2022-10-07 11:19:46 +02:00
erik-krogh
a30b7120a7
fix some more style-guide violations in the alert-messages
2022-10-07 11:17:39 +02:00
Tony Torralba
5f740a5598
Merge pull request #10715 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2022-10-07 10:56:47 +02:00
Tom Hvitved
69fc59930f
Ruby: Add ql doc to lookupSingletonMethod
2022-10-07 10:55:30 +02:00
Tamas Vajk
f51c13f0c1
Kotlin: Recognize generated files
2022-10-07 09:32:00 +02:00
Tamas Vajk
51f9314a50
Kotlin: Consider ::class type check in equals
2022-10-07 09:23:01 +02:00
Tamas Vajk
f7f12076df
Kotlin: Add test case for ::class type check in equals
2022-10-07 09:22:10 +02:00
Tamas Vajk
cd64faf635
Kotlin: ignore properties in java/internal-representation-exposure check
2022-10-07 09:13:14 +02:00
Tamas Vajk
e9a304bad0
Kotlin: Add test for exposed internal representation
2022-10-07 09:12:36 +02:00
github-actions[bot]
47c461a241
Add changed framework coverage reports
2022-10-07 00:26:57 +00:00
Mathias Vorreiter Pedersen
e147a6032e
C++: Replace 'IRType' with 'Type' in dataflow. This means we're more compatible with the old AST library.
2022-10-06 17:26:56 +01:00
Mathias Vorreiter Pedersen
65a538ed41
C++: Exclude a few more operands from the dataflow graph. These aren't ever used for dataflow, and it should give us a slight speedup.
2022-10-06 17:22:09 +01:00
Mathias Vorreiter Pedersen
3fcb825e7f
C++: Change a few indirectionIndex ranges from '[0 .. n - 1]' to '[1 .. n]'. This simplifies some arithmetic in a few predicates.
2022-10-06 17:21:09 +01:00
Chris Smowton
289843eb83
Remove accidentally duplicated test
...
This was moved to a unit test, but the integration test version was somehow retained.
2022-10-06 16:00:56 +01:00
Tony Torralba
ceae5eef28
Revert "Decouple from #10177 "
...
This reverts commit 7b34b10cee .
2022-10-06 16:30:23 +02:00
Tony Torralba
21a0c446b4
Update java/ql/lib/semmle/code/java/security/UnsafeContentUriResolution.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2022-10-06 16:28:17 +02:00
Tony Torralba
015d48ef66
Fix select message
2022-10-06 16:28:17 +02:00
Tony Torralba
7b34b10cee
Decouple from #10177
2022-10-06 16:28:17 +02:00
Tony Torralba
1bf1349167
Test all sinks
2022-10-06 16:28:17 +02:00
Tony Torralba
39b5ebfd7b
Fix qhelp
2022-10-06 16:28:17 +02:00
Tony Torralba
76ea255277
Add security-severity
2022-10-06 16:28:17 +02:00
Tony Torralba
4a18892da9
Second query version
...
Remove sinks flowing to write operations requirement
2022-10-06 16:28:17 +02:00
Tony Torralba
153ec5368e
First query version requiring sinks to flow to write operations
2022-10-06 16:28:17 +02:00
erik-krogh
c1fae91a1f
have rb/meta/taint-steps print only one for each file, to limit the size of the output
2022-10-06 15:19:11 +02:00
Chris Smowton
fcf24f7671
Fix typo
2022-10-06 12:59:43 +01:00
Chris Smowton
1d8547d4c1
Avoid using count(...) = 0
2022-10-06 12:57:56 +01:00
Chris Smowton
0024e54e63
Make method private
2022-10-06 12:55:17 +01:00
Chris Smowton
86e5e4c4bc
Accept test changes
2022-10-06 12:40:04 +01:00
Chris Smowton
020f29a1ab
Add visibility tests
2022-10-06 12:40:03 +01:00
Chris Smowton
764c139e3e
Visibility consistency query: allow $default methods to have package-private (default) visibility
2022-10-06 12:40:03 +01:00
Chris Smowton
34b83f01d0
Fix naming of internal default methods
2022-10-06 12:40:03 +01:00
Chris Smowton
5e182755a5
Fix generated $default method visibilities
2022-10-06 12:40:03 +01:00
Chris Smowton
bec948682d
Fix calls to static methods defined in association with local functions
...
These are a bit weird since they involve static calls to unnamed synthetic class members, but while unwriteable as Java they ought to work as a database description.
2022-10-06 12:40:03 +01:00
Chris Smowton
b79d273de4
When calling a $default method, ensure the real method gets extracted
2022-10-06 12:40:02 +01:00
Chris Smowton
3452dcbced
Fix class type parameter erasure within $default methods
2022-10-06 12:40:02 +01:00
Chris Smowton
be655432d6
Use new terse extraction functions where applicable
2022-10-06 12:40:02 +01:00
Chris Smowton
03c895853b
Clarify test and accept test changes
2022-10-06 12:40:02 +01:00
Chris Smowton
6119670be8
Suppress use of function type parameters in the context of building a $defaults method
...
These methods have erased signatures and no type parameters, so anything that refers to one must itself be erased. For signatures this would be easy, but for potentially deep default expressions these types can occur in various places and need erasing at each occurence.
2022-10-06 12:40:02 +01:00
Chris Smowton
720cf5682b
Exclude enum constructor invocations from defaults handling
...
These seem to provide null arguments even though the constructor doesn't provide defaults, presumably for completion by a later compiler phase.
2022-10-06 12:40:01 +01:00
Chris Smowton
6cc74da004
Defaults function extraction: respect the extract-type-accesses flag
2022-10-06 12:39:57 +01:00
Chris Smowton
34a0a0d080
Implement $default method synthesis
...
This adds methods that fill in default parameters whenever a constructor or method uses default parameter values. I use as similar an approach to the real Kotlin compiler as possible both because this produces the desirable dataflow, and because it should merge cleanly with the same class file seen by the Java extractor, which will see and
extract the signatures of the default methods.
2022-10-06 12:38:55 +01:00
erik-krogh
169965cfb9
make rb/meta/taint-steps into a @kind problem query
2022-10-06 13:28:10 +02:00
Geoffrey White
c6b7bb436d
C++: Make the ql-for-ql checks happy.
2022-10-06 11:25:22 +01:00
Chris Smowton
6f3c9e4403
Split up extractRawMethodAccess
2022-10-06 11:05:27 +01:00
Tom Hvitved
48bdf13c89
Ruby: Take overrides into account for singleton methods defined on modules
2022-10-06 11:56:26 +02:00
tyage
ddc8f72ef7
accept test result Xss.qlref
2022-10-06 18:23:10 +09:00
Tom Hvitved
7608276397
Ruby: Add more call graph tests
2022-10-06 10:38:02 +02:00
erik-krogh
db056aae1b
add some more meta queries for Ruby evaluations
2022-10-06 10:14:28 +02:00
Geoffrey White
86756538f2
C++: Change note.
2022-10-06 09:14:25 +01:00
Geoffrey White
3f78a244b9
C++: Make the tests use more repetitions.
2022-10-06 09:14:24 +01:00
Geoffrey White
9a365d83cf
C++: Tighten up the heuristic in cpp/unterminated-variadic-call.
2022-10-06 09:14:16 +01:00
Tamas Vajk
0bbc7adca0
Accept test changes
2022-10-06 08:45:57 +02:00
Alex Ford
a28d7b64ea
Merge branch 'main' into rb/sensitive-get-query
2022-10-05 15:59:02 +01:00
Alex Ford
fa58c51810
Ruby: switch rb/sensitive-get-query back to using local flow
2022-10-05 15:58:05 +01:00
Tamas Vajk
46fb9865ac
Add lateinit test to print the extracted AST
2022-10-05 16:09:00 +02:00
Tamas Vajk
082544e88c
Kotlin: Extract lateinit modifier
2022-10-05 15:25:49 +02:00
Tamas Vajk
61a05c2b6c
Kotlin: add lateinit declarations to modifiers test
2022-10-05 15:25:15 +02:00
Nora Dimitrijević
29df69742c
Swift: Docs review response: consistent naming
2022-10-05 14:42:11 +02:00
Alex Ford
71670a4f75
Ruby: add RequestInputAccess#getKind predicate
2022-10-05 13:38:31 +01:00
Alex Ford
dea53d86c9
Ruby: remove some redundant imports of DataFlow
2022-10-05 13:22:19 +01:00
Alex Ford
f01670f663
Ruby: add a note to a test case
2022-10-05 13:06:49 +01:00
Alex Ford
d64f8c73be
Merge branch 'main' into rb/sensitive-get-query
2022-10-05 12:59:35 +01:00
Alex Ford
084efe062a
Ruby: limit rb/sensitive-get-query to data from query params
2022-10-05 12:57:57 +01:00
Alex Ford
977e8a8a6f
Ruby: add a test case for sensitive data from cookies for rb/sensitive-get-query (should not be flagged)
2022-10-05 12:57:07 +01:00
Alex Ford
880fb2b14a
Ruby: split out rb/sensitive-get-query using query/customizations pattern
2022-10-05 11:59:40 +01:00
Nora Dimitrijević
ba7d375c01
Swift: Fix QL-on-QL warnings.
2022-10-05 12:22:33 +02:00
Nora Dimitrijević
ec2549a38b
Merge branch 'main' into cpp/comma-before-misleading-indentation
2022-10-05 12:02:12 +02:00
ihsinme
392c948487
Update DivideByZeroUsingReturnValue.ql
2022-10-05 09:27:20 +03:00
Nora Dimitrijević
d8cfdc5e26
C++: Tag with CWE-1078, CWE-670
2022-10-05 00:04:56 +02:00
Nora Dimitrijević
75a980905c
Swift: Initial CleartextStoragePreferences impl.
...
Clearly based on CleartextStorageDatabase by @geoffw0.
2022-10-04 23:14:55 +02:00
Ed Minnix
3c7f5420db
Update metadata to match CWE-926
2022-10-04 10:48:05 -04:00
Ed Minnix
f888c4b279
Move files from CWE-276 to CWE-926
2022-10-04 10:40:34 -04:00
Alex Ford
703829c647
Ruby: use taint tracking for rb/sensitive-get-query
2022-10-04 15:04:41 +01:00
Michael Nebel
52d2dd71c0
Java: Make equivalent fix to the telemetry queries as made for C#.
2022-10-04 15:16:21 +02:00
Michael Nebel
6c6b4ce131
C#: Fix issue with TestLibraries not being excluded in the Telemetry queries and add Moq as a testlibrary.
2022-10-04 14:58:37 +02:00
Rasmus Wriedt Larsen
60527dfc17
Python: Fix py/meta/alerts/remote-flow-sources-reach
2022-10-04 14:42:51 +02:00
Michael Nebel
3455dd5e06
C#: Re-factor telemetry queries to avoid code duplication.
2022-10-04 14:13:50 +02:00
Michael Nebel
2bbfdcf598
C#: Use api info string ordering and results to avoid multiplicity issues.
2022-10-04 13:51:35 +02:00
Arthur Baars
ae7e6ef701
Ruby: update dependencies
2022-10-04 13:44:22 +02:00
Jami Cogswell
25cb3236a2
apply review suggestions
2022-10-04 12:33:24 +02:00
Jami Cogswell
91db1be399
update Intent file
2022-10-04 12:33:24 +02:00
Jami Cogswell
960e9db2fb
add missing expectation to tests
2022-10-04 12:33:24 +02:00
Tony Torralba
1857a5d311
Refactor Intent flow steps
2022-10-04 12:33:24 +02:00
Jami Cogswell
00b0a6bf38
update act tests
2022-10-04 12:33:23 +02:00
Jami Cogswell
834927c50b
update tests
2022-10-04 12:33:23 +02:00
Jami Cogswell
9a7cf7db65
simplify hasName usage
2022-10-04 12:33:23 +02:00
Jami Cogswell
c7e7e24cf8
clean up files
2022-10-04 12:33:23 +02:00
Jami Cogswell
012cfebd7a
resolve merge conflict
2022-10-04 12:33:23 +02:00
Jami Cogswell
da7f27a7f2
add change note
2022-10-04 12:33:23 +02:00
Jami Cogswell
66b3c4687d
resolve merge conflict
2022-10-04 12:33:23 +02:00
Jami Cogswell
0a135a7f21
resolve merge conflict
2022-10-04 12:33:23 +02:00
Jami Cogswell
0f64361065
remove simple query
2022-10-04 12:33:23 +02:00
Jami Cogswell
af812cf407
fix code scanning bot warnings
2022-10-04 12:33:23 +02:00
Jami Cogswell
47fcbdd4b4
resolve merge conflict
2022-10-04 12:33:23 +02:00
Jami Cogswell
d07babe3c5
add initial framework for service and receiver test cases
2022-10-04 12:33:23 +02:00
Jami Cogswell
6cf3898101
add experimental global flow config, and clean-up some code
2022-10-04 12:33:23 +02:00
Jami Cogswell
9947b32446
resolve merge conflict
2022-10-04 12:33:23 +02:00
Jami Cogswell
11ce910c38
resolved merge conflict in FlowSources
2022-10-04 12:33:23 +02:00
Jami Cogswell
7576047214
create simple query and initial experimentation
2022-10-04 12:33:23 +02:00
tyage
7205903a36
Using implicit this
2022-10-04 18:06:30 +09:00
tyage
f47c02431a
Merge branch 'main' into property-stringify
2022-10-04 09:57:54 +01:00
tyage
6ec2abbd2d
add change note
2022-10-04 17:57:08 +09:00
tyage
192c1f3d89
make test json.stringify
2022-10-04 17:40:52 +09:00
tyage
726cd2ca8a
refactor test
2022-10-04 17:11:37 +09:00
tyage
9df0720da9
refactoring
2022-10-04 17:05:49 +09:00
tyage
2006ae8332
rename file
2022-10-04 17:05:15 +09:00
tyage
8a7f23a8ea
support VarRef
2022-10-04 14:45:39 +09:00
tyage
33d204913c
add test for json stringify xss
2022-10-04 14:45:09 +09:00
Rasmus Wriedt Larsen
d7be27a1c0
Python: Fix experimental py/ip-address-spoofing
...
I realized the modeling was done in a non-recommended way, so I changed
the modeling. It was very nice that I could use API graphs for the flask
part, and a little sad when I couldn't for Django/Tornado.
2022-10-03 21:19:30 +02:00
Rasmus Wriedt Larsen
b01a0ae696
Python: Adjust .expected after flask source change
...
It's really hard to audit that this is all good.. I tried my best with
`icdiff` though -- and there is a problem with
ql/src/experimental/Security/CWE-348/ClientSuppliedIpUsedInSecurityCheck.ql
that needs to be fixed in the next commit
2022-10-03 20:35:49 +02:00
Ed Minnix
c6f91500f0
Update query description to better describe issue
2022-10-03 13:12:53 -04:00
Ed Minnix
52d519765a
Merge ContentProvider tests into one manifest
...
Merge the read-only, write-only, read-write, and full test cases into
one AndroidManifest.xml file.
Also added the not-exported test case.
2022-10-03 12:16:45 -04:00
Ed Minnix
09077935b1
Added query change note
2022-10-03 11:30:43 -04:00
Edward Minnix III
071f082b64
Add mention of content provider in query description
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-10-03 11:21:33 -04:00
Edward Minnix III
2970e8c76a
Remove redundant documentation
...
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com >
2022-10-03 11:21:02 -04:00
Edward Minnix III
cfc0bb595f
Documentation fix for hasIncompletePermissions
...
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com >
2022-10-03 11:20:15 -04:00
Ian Lynagh
01fe465bdf
Kotlin: Make MiniStdLib more closely match the real stdlib
2022-10-03 16:16:11 +01:00
Ed Minnix
28e7049722
Add exported requirement to ContentProvider permissions test
2022-10-03 10:52:42 -04:00
James Fletcher
e8f1e6fe8e
Update docs/codeql/writing-codeql-queries/about-codeql-queries.rst
2022-10-03 09:59:19 +01:00
Harry Maclean
eaf6eb009b
Update tests
2022-10-03 17:17:58 +13:00
Harry Maclean
236b628ee2
Ruby: Constrain parameters flow properly
2022-10-03 14:06:06 +13:00
Harry Maclean
32baf67b07
Fix change note month
2022-10-03 09:46:01 +13:00
Harry Maclean
5c20039e09
Ruby: Slightly improve class name
2022-10-03 09:46:01 +13:00
Harry Maclean
fa1ae26fab
Add change note
2022-10-03 09:46:01 +13:00
Harry Maclean
a5998fbe4d
Ruby: Model ActionController::Parameters
...
Add flow summaries for methods on ActionController::Parameters,
which mostly propagate taint from receiver to return value.
2022-10-03 09:45:59 +13:00
james
4fda17c1c0
remove mentions of lgtm.com from some docs
2022-09-30 15:42:34 +01:00
Nora Dimitrijević
28606c561d
C++: Simplify normalizeExpr
...
This has a comparable but different set of FPs as the previous version.
But arguably it's an improvement.
2022-09-30 14:35:54 +02:00
Nora Dimitrijević
9a94222dbe
C++: Exclude commas from SwitchStmt.getExpr()
2022-09-30 12:32:03 +02:00
Nora Dimitrijević
4938de9185
C++: Fix docstring per suggestion
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2022-09-30 12:28:18 +02:00
Nora Dimitrijević
c37c6a004e
Merge branch 'main' into cpp/comma-before-misleading-indentation
2022-09-30 00:28:33 +02:00
Nora Dimitrijević
818be2765e
C++: Add Change Note
2022-09-30 00:28:12 +02:00
Nora Dimitrijević
6eac4f52d9
C++: Accept Test Output
...
Some tricky FPs are preserved in there.
2022-09-30 00:13:23 +02:00
Nora Dimitrijević
a124dcf436
C++: Update QLDoc
...
Arguably warning, not just recommendation; it may be a logic error.
TODO: What CWE/CVEs should I tag this with?
2022-09-30 00:06:53 +02:00
Nora Dimitrijević
981a9798b8
C++: Update .qhelp with precision disclaimer.
2022-09-29 23:59:22 +02:00
Nora Dimitrijević
68b473377a
C++: Fix QL-on-QL Redundant Cast warning
2022-09-29 23:19:49 +02:00
Nora Dimitrijević
2a046352ce
C++: Simplify
2022-09-29 23:06:17 +02:00
Ed Minnix
2a2878fc7b
Move text into paragraph tag
2022-09-29 16:33:22 -04:00
Ed Minnix
e3c0e6f52a
Remove location link from alert message
...
Follow the style suggestion from the github-code-scanning bot and remove
provider element from alert link
2022-09-29 16:20:48 -04:00
Ed Minnix
90590429e3
Added change note for ContentProvider query
2022-09-29 16:17:52 -04:00
Ed Minnix
29e34ac970
ContentProvider Incomplete Permissions Test Cases
2022-09-29 16:07:54 -04:00
Ed Minnix
f2bda1525a
Revert "Android ContentProvider.openFile does not check mode initital commit"
...
This reverts commit e37f62bb5e .
The MisconfiguedContentProviderUse.ql file provided a sample query which
will be useful in future checks for CVE-2021-41166, but is not needed
for the current manifest-focused check
2022-09-29 14:43:18 -04:00
Ed Minnix
e72963986f
Moved Android manifest incomplete permission logic into library
2022-09-29 14:06:18 -04:00
Ed Minnix
dedd29e1b3
Incomplete Android content provider permissions documentation
2022-09-29 14:05:18 -04:00
Ian Lynagh
f1f205555a
Kotlin: Add a ministdlib test
...
This should make it easier to diagnose certain kinds of problems.
2022-09-29 18:19:50 +01:00
Nora Dimitrijević
891bc342be
C++: Fix another implicit/explicit this FP
2022-09-29 18:42:23 +02:00
Rasmus Wriedt Larsen
0cb8e121e9
Python: Fix flask request modeling
...
This takes us part of the way. We still get multiple paths for the same
alert, but that will be fixed in a different PR.
2022-09-29 17:41:21 +02:00
Nora Dimitrijević
28bd591107
C++: Fix explicit this-> FP.
2022-09-29 17:04:11 +02:00
Nora Dimitrijević
29d7c0e21b
C++: Exclude commas in if-conditions.
2022-09-29 16:29:57 +02:00
Nora Dimitrijević
64903336f7
C++: Exclude all parenthesized CommaExprs.
2022-09-29 15:49:29 +02:00
Nora Dimitrijević
909b36a078
C++: Fix implicit-this FP, uncovered non-funptr FP
2022-09-29 13:14:36 +02:00
tyage
b95566b02a
make json stringify tainted with arg's property
2022-09-29 17:46:09 +09:00
Nora Dimitrijević
19a9c5d7d3
C++: Identified another real-life FP
2022-09-28 21:19:45 +02:00
Nora Dimitrijević
96c73bcb19
C++: Fix FP: bad Location for FieldAccess exprs
2022-09-28 20:37:22 +02:00
Nora Dimitrijević
6d5df14547
C++: Remove arguable FPs re: sizeof/decltype
2022-09-28 20:01:14 +02:00
Nora Dimitrijević
592bc18a97
C++: Reduce FPs by excluding all commas in loop heads
...
This leads to a 50% reduction of alerts in MRVA 1000.
2022-09-28 19:38:41 +02:00
github-actions[bot]
67d12cdc7d
JS: Bump patch version of ML-powered library and query packs
2022-09-28 17:14:15 +00:00
Nora Dimitrijević
823b0109f0
C++: Mark FPs that are hard to solve w/o source code
2022-09-28 16:20:13 +02:00
Nora Dimitrijević
0128b1702e
C++: Fix "LHS-end = RHS-begin" FP
2022-09-28 15:36:01 +02:00
Nora Dimitrijević
e7c1fadd94
C++: Fix member-call- and C-cast-related FPs
2022-09-28 15:02:22 +02:00
Nora Dimitrijević
cacf78838c
C++: Tests (w/ FPs) from MRVA top 1000 run
2022-09-27 18:48:32 +02:00
Geoffrey White
d60a829569
C++: Remove ErrorExpr case.
2022-09-23 12:17:09 +01:00
Nora Dimitrijević
0e9b77e7c3
C++: Initial .qhelp file
2022-09-23 11:46:31 +02:00
Nora Dimitrijević
dca13f5c89
C++: Initial cpp/comma-before-misleading-indentation
...
MRVA top 1000 run at: https://github.com/github/semmle-code/actions/runs/3106828111
2022-09-22 17:44:18 +02:00
Nora Dimitrijević
f1efc76e8c
C++: Initial commit of cpp/comma-before-missing-indentation
2022-09-22 17:06:04 +02:00
erik-krogh
dcdff7a995
Merge branch 'main' into aliasFlow
2022-09-22 16:01:31 +02:00
erik-krogh
5fb44e9dd8
simplify and improve the example for getLaterBaseAccess
2022-09-22 15:57:54 +02:00
Erik Krogh Kristensen
fedf8fc575
correct the qldoc
...
Co-authored-by: Asger F <asgerf@github.com >
2022-09-22 15:49:29 +02:00
Geoffrey White
518b45bc8e
C++: Add two more test cases.
2022-09-21 15:41:27 +01:00
Geoffrey White
0584191b6c
C++: Add pragma[noinline].
2022-09-21 11:49:28 +01:00
Geoffrey White
1cdaaf7882
C++: Performance fix.
2022-09-21 11:11:11 +01:00
Geoffrey White
e319c1773e
C++: Change note.
2022-09-21 10:45:29 +01:00
Geoffrey White
2756c0e7af
C++: Don't report results in files with compilation errors.
2022-09-21 10:45:28 +01:00
Geoffrey White
c599b02e98
C++: Add test case.
2022-09-20 15:23:13 +01:00
Alex Ford
7720d85c98
Ruby: use camelcase verion of Http module
2022-09-20 08:58:35 +01:00
Alex Ford
be1ac17a60
Merge branch 'main' into rb/sensitive-get-query
2022-09-19 20:57:20 +01:00
Ed Minnix
e37f62bb5e
Android ContentProvider.openFile does not check mode initital commit
...
Initial commit for work on a query finding instances where the `mode`
parameter of an override of the `openFile` method of the
`android.content.ContentProvider` class
2022-09-19 10:32:02 -04:00
Ed Minnix
00891fa455
Android Manifest Incomplete provider permissions initial commit
...
Initial work on checking provider elements in Android manifests for
complete permissions.
2022-09-19 10:31:02 -04:00
Alex Ford
08c8db8937
Ruby: stop rb/sensitive-get-query from considering ID type data as sensitive
2022-09-16 15:40:13 +01:00
Alex Ford
79ad7d293f
Ruby: make SensitiveExpr a dataflow node rather than an Expr
2022-09-16 15:39:16 +01:00
ihsinme
50105c1f6d
create new branchihsinme-patch-111 in fork
2022-09-15 06:35:42 +00:00
erik-krogh
843fce4bcd
expand localFieldStep to use access-paths, and build access-paths in more cases
2022-09-13 21:43:06 +02:00
intrigus
894a0f1c3b
Add string to int sanitizer.
2022-09-12 21:02:18 +02:00
Alex Ford
0da367f6e5
Ruby: address QL4QL alerts for rb/sensitive-get-query
2022-09-12 08:56:17 +01:00
Alex Ford
f84035a65c
Ruby: add rb/sensitive-get-query query
2022-09-10 17:43:15 +01:00
erik-krogh
460eddd781
add ql/override-any
2022-08-24 09:26:34 +02:00
intrigus-lgtm
f978951cbe
Explain command substitution
2022-08-17 22:30:43 +02:00
intrigus-lgtm
45f708bb58
Fix typo.
2022-08-17 00:00:32 +02:00
intrigus
dabccd8686
Add query for tainted wordexp calls.
2022-08-16 23:56:50 +02:00
ihsinme
65c9a7b278
Update BufferAccessWithIncorrectLengthValue.ql
2022-06-26 13:49:44 +03:00
ihsinme
c1f0940b6a
Update cpp/ql/src/experimental/Security/CWE/CWE-805/BufferAccessWithIncorrectLengthValue.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-06-23 12:50:59 +03:00
ihsinme
5609d5200b
Update cpp/ql/src/experimental/Security/CWE/CWE-805/BufferAccessWithIncorrectLengthValue.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2022-05-30 20:41:39 +03:00
ihsinme
9499961a9c
Update BufferAccessWithIncorrectLengthValue.ql
2022-05-30 12:43:28 +03:00
ihsinme
d489c12014
Update BufferAccessWithIncorrectLengthValue.ql
2022-05-30 12:26:26 +03:00
ihsinme
475e36e6fc
Update BufferAccessWithIncorrectLengthValue.ql
2022-05-29 09:58:16 +03:00
ihsinme
df1ea5b679
Update BufferAccessWithIncorrectLengthValue.qhelp
2022-05-29 09:56:29 +03:00
ihsinme
5a9061e45b
create new branchihsinme-patch-102 in fork
2022-05-21 14:19:34 +00:00