Chris Smowton
e99d7db428
Merge pull request #17476 from github/release-prep/2.19.0
...
Release preparation for version 2.19.0
2024-09-16 14:29:09 +01:00
Chris Smowton
be02864281
Copyedit
2024-09-16 12:25:49 +01:00
Chris Smowton
8c92d92427
Copyedit
2024-09-16 12:23:10 +01:00
Chris Smowton
8f345f9618
Copyedit Java change note
2024-09-16 12:22:20 +01:00
github-actions[bot]
acdafd9646
Release preparation for version 2.19.0
2024-09-16 10:56:10 +00:00
Chris Smowton
030977003e
Merge pull request #17472 from github/dbartol/rc-3.15-mergeback
...
Mergeback from `rc/3.15`
2024-09-16 09:10:45 +01:00
Paolo Tranquilli
39ce3fbd33
Merge pull request #17463 from hvitved/swift/callable-ast-node
...
Swift: Make `Callable` a sub type of `AstNode`
2024-09-16 09:27:41 +02:00
Paolo Tranquilli
e1ac40e750
Merge pull request #17432 from github/aibaars/rust-doc-tests
...
Rust: AST: add docs with examples for qltest
2024-09-16 09:00:31 +02:00
Tom Hvitved
74440273f1
Swift: Add DB up/downgrade scripts
2024-09-16 08:47:49 +02:00
Dave Bartolomeo
d6a7c87696
Update test expectations after merge
2024-09-15 13:42:46 +00:00
Dave Bartolomeo
485fc04029
Initial merge from main
2024-09-15 08:55:31 -04:00
Arthur Baars
7f8bb7e859
Apply clippy fixes
2024-09-13 19:00:28 +02:00
Arthur Baars
90537f9132
Fix other QL code
...
This reverts commit 5c02fb4a2e .
2024-09-13 18:47:10 +02:00
Arthur Baars
3fdc49c4cb
Rename Literal, Type, and BinExpr
2024-09-13 18:33:55 +02:00
Arthur Baars
ebe1e5e0d2
Fix locations for Path and LiteralOrConstPat
2024-09-13 18:23:39 +02:00
Arthur Baars
661a4e07be
Merge remote-tracking branch 'upstream/main' into aibaars/rust-doc-tests
2024-09-13 17:31:38 +02:00
Paolo Tranquilli
5108799224
Merge pull request #17448 from github/redsun82/rust-std-files
...
Rust: integrate into standard files+location library
2024-09-13 16:23:25 +02:00
Paolo Tranquilli
c7be2ae08a
Merge pull request #17462 from github/redsun82/rust-codegen-codeql
...
Rust: fetch `codeql` prior to checking `codegen`
2024-09-13 15:45:36 +02:00
Tom Hvitved
4912ee8ab3
Swift: Make Callable a sub type of AstNode
2024-09-13 15:39:40 +02:00
Jeroen Ketema
087a8484aa
Merge pull request #17430 from jketema/fix-finally-inconsistency
...
C++: Fix `__finally` related inconsistencies
2024-09-13 15:27:56 +02:00
Geoffrey White
e1299143c6
Merge pull request #17442 from geoffw0/files
...
Rust: Extracted Files diagnostic query
2024-09-13 14:13:43 +01:00
Geoffrey White
40c5f10fea
Merge pull request #17450 from geoffw0/rustsuite
...
Rust: Add query suites
2024-09-13 14:13:07 +01:00
Paolo Tranquilli
5cd4d88d44
Rust: fetch codeql prior to checking codegen
2024-09-13 14:35:24 +02:00
Arthur Baars
d73d90dba2
Avoid use of plain 'None' in tests
...
For some reason the parser resolves the ambiguity between None as a PathPat or IdentPat
differently on the Action runners vs local machine.
2024-09-13 12:48:58 +02:00
Arthur Baars
e68229892e
Add some more QL docs
2024-09-13 11:48:36 +02:00
Arthur Baars
5c02fb4a2e
Fix CFG library
2024-09-13 11:41:21 +02:00
Arthur Baars
e46ad61bb8
Update test data
2024-09-13 11:16:25 +02:00
Arthur Baars
d99c2031ac
Workaround nameclash in dbscheme generator
2024-09-13 11:07:02 +02:00
Geoffrey White
587ebbffba
Rust: Edit test slightly to avoid DBCheck failure.
2024-09-13 10:02:28 +01:00
Arthur Baars
b0939cfffa
Update extractor
2024-09-13 10:58:01 +02:00
Arthur Baars
fa9cfc1104
Regenerate code
2024-09-13 10:52:43 +02:00
Arthur Baars
8dcf93d065
Make class names match rust.ungram
...
811905fce8/crates/syntax/rust.ungram
2024-09-13 10:51:11 +02:00
Arthur Baars
452424a0d2
Fix tests for Path and TypeRef
2024-09-13 10:25:36 +02:00
Arthur Baars
085aad3b3c
Update test data
2024-09-13 10:22:01 +02:00
Arthur Baars
c634b0a000
Don't extract non-source crates
2024-09-13 10:16:53 +02:00
Arthur Baars
197fb04184
Improve docs
2024-09-13 10:16:34 +02:00
Arthur Baars
c825ae4eab
Add some examples for some of the unimplemented nodes
2024-09-12 22:18:02 +02:00
Arthur Baars
8e378d86df
Update test data
2024-09-12 22:18:00 +02:00
Arthur Baars
7572546efa
Improve handling of unimplemented nodes
2024-09-12 22:17:39 +02:00
Arthur Baars
69761a2942
Rust: AST: add docs with examples for qltest
2024-09-12 19:54:37 +02:00
Arthur Baars
292c6b6159
Clear out unused comments
2024-09-12 17:58:17 +02:00
Arthur Baars
2a88086544
Rust: AST: add docs with examples for qltest
2024-09-12 17:58:15 +02:00
Geoffrey White
7907cbeae1
Rust: Add query suites (identical to the Swift ones apart from their names).
2024-09-12 15:55:06 +01:00
Paolo Tranquilli
0b850a2dff
Rust: add missing doc
2024-09-12 16:51:52 +02:00
Paolo Tranquilli
beb27bf5e3
Rust: fix QL compilation and schema includes ordering
2024-09-12 15:05:30 +02:00
Geoffrey White
f77c79593e
Rust: Updated expected for changes on main.
2024-09-12 12:46:04 +01:00
Geoffrey White
9d8b514b5c
Merge remote-tracking branch 'upstream/main' into files
2024-09-12 12:29:44 +01:00
Paolo Tranquilli
b4b680775c
Rust: integrate into standard files+location library
2024-09-12 13:17:10 +02:00
Tamás Vajk
9250c29bd5
Merge pull request #17439 from tamasvajk/feature/include-razor-files-in-fromSource
...
C#: Include `.razor` files in `File::fromSource`
2024-09-12 13:14:34 +02:00
Paolo Tranquilli
a4c1ec75db
Merge pull request #17445 from github/redsun82/rust-qltest
...
Rust: make ql tests extract files together
2024-09-12 12:53:16 +02:00
Paolo Tranquilli
ed0370b715
Rust: update rust/tools/qltest.sh
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2024-09-12 12:28:22 +02:00
Paolo Tranquilli
aeae922ef3
Rust: make ql tests extract files together
...
For the moment this removes the possibility to set custom flags or env
variables for the extractor via comments, but that can be added back
easily if needed with a different mechanism (like an `env` file).
2024-09-12 09:13:35 +02:00
Owen Mansel-Chan
076dd07cdc
Merge pull request #17429 from owen-mc/go/fix/multiple-anonymous-type-parameters
...
Go: fix multiple anonymous type parameters
2024-09-12 00:38:56 +01:00
Geoffrey White
c2e86423b9
Rust: Test the successfully extracted files diagnostic.
2024-09-11 17:10:08 +01:00
Geoffrey White
f1d281ffcc
Rust: Add test cases for diagnostics.
2024-09-11 17:10:07 +01:00
Geoffrey White
a933f0d695
Rust: Add diagnostic query for successfully extracted files.
2024-09-11 16:45:33 +01:00
Paolo Tranquilli
f9e4c0af13
Merge pull request #17435 from github/rust-experiment
...
Rust: merge current status of experimental extractor into main
2024-09-11 17:31:24 +02:00
Tamas Vajk
da3c5f44f2
C#: Include .razor files in File::fromSource
2024-09-11 16:13:42 +02:00
Asger F
07bd854868
Merge pull request #17401 from pwntester/js/actions/secrets-in-artifacts
...
Javascript: Query to detect GITHUB_TOKEN leaked in artifacts
2024-09-11 15:54:36 +02:00
Andrew Eisenberg
15cdc7210e
Merge pull request #17431 from github/aeisenberg/query-add-autofix
2024-09-11 06:34:08 -07:00
Owen Mansel-Chan
f46b4b344f
Merge pull request #17277 from github/owen-mc-patch-1
...
Docs: Give clearer example of multiple query predicates in one ql file
2024-09-11 14:22:33 +01:00
Simon Friis Vindum
fea6017688
Merge pull request #17415 from paldepind/rust-control-flow-graph
...
Rust: Basic control flow graph setup
2024-09-11 15:08:33 +02:00
Paolo Tranquilli
43984212a5
Merge branch 'main' into rust-experiment
2024-09-11 13:52:38 +02:00
Sid Shankar
983eb1924f
Merge pull request #17433 from github/sidshank/ts-5.6
2024-09-11 07:23:00 -04:00
Paolo Tranquilli
e4766b60c3
Rust: make QL test crates workspaces
2024-09-11 11:29:04 +02:00
Simon Friis Vindum
857edb791c
Rust: Fix control flow tree for function and block expression
2024-09-11 11:18:56 +02:00
Paolo Tranquilli
8bf3c42213
Merge branch 'main' into rust-experiment
2024-09-11 11:06:24 +02:00
Paolo Tranquilli
d8db0e43da
Ruby: update new cargo target directory in make and actions
2024-09-11 11:01:10 +02:00
Paolo Tranquilli
aa6726a401
Bazel: bump up rules_rust version
2024-09-11 10:43:49 +02:00
Geoffrey White
d374935008
Merge pull request #17384 from microsoft/brodes/overflow-buffer-fixes-upstream
...
Brodes/overflow buffer fixes upstream
2024-09-11 09:12:22 +01:00
Paolo Tranquilli
f624a1b7a7
Ruby: fix extractor pack script after workspace root change
2024-09-11 09:40:44 +02:00
Simon Friis Vindum
809d040528
Make more classes private and final
2024-09-11 09:37:39 +02:00
Paolo Tranquilli
2a7533c441
Rust: add to `labeler.yml
2024-09-11 09:33:43 +02:00
Paolo Tranquilli
304e68df30
Merge pull request #17426 from geoffw0/readme
...
Rust: Add a README.md
2024-09-11 09:26:27 +02:00
Paolo Tranquilli
f464759eb3
Merge pull request #17434 from github/redsun82/rust-experiment
...
Bazel: remove non-working fake `tree-sitter-extractor` workaround
2024-09-11 09:14:59 +02:00
Simon Friis Vindum
6d972bea2c
Rust: Add a few control flow tree classes
2024-09-11 09:08:54 +02:00
Simon Friis Vindum
91d5171d90
Add base setup for control flow graph construction
2024-09-11 09:08:53 +02:00
Paolo Tranquilli
f8c9d96882
Bazel: remove non-working fake tree-sitter-extractor workaround
...
The `.cargo/config.toml` override based workaround wasn't really
working, as while `cargo build|check` was reading that, `cargo metadata`
wasn't, ending up in a completely broken IDE experience.
For the moment, we just use a unified workspace `Cargo.toml` for all
extractors using the shared tree-sitter code, which has the downside of
making bazel pull in dependencies for all of them, and not being able to
do sparse checkouts for them. We should investigate and rivist this in
the future.
2024-09-11 08:17:11 +02:00
Sid Shankar
bc70d5ceb1
Adds change note
2024-09-11 00:52:21 +00:00
Sid Shankar
3436fc6177
Updates supported compiler docs
2024-09-11 00:46:09 +00:00
Sid Shankar
3516117215
Adds test for arbitrary specifiers in TS files
...
Adds test for arbitrary identifiers used in imports and exports
2024-09-11 00:37:49 +00:00
Sid Shankar
785af12f1c
Renames test file
2024-09-11 00:28:44 +00:00
Sid Shankar
aa787a9cb1
Handles arbitrary module identifiers
...
This commit enables support for arbitrary names for identifier and namespace imports and exports
2024-09-11 00:27:42 +00:00
Sid Shankar
2c74b5ee50
Updates TS extractor dependency to 5.6.2
2024-09-11 00:22:17 +00:00
Owen Mansel-Chan
13f8488148
Undo spurious test changes
...
The go libraries on my local computer seem to have
slightly different go libraries for some reason.
2024-09-10 23:50:33 +01:00
Alvaro Muñoz
061d58ae4a
Update javascript/ql/src/change-notes/2024-09-06-new-actions-artifact-leak-query.md
...
Co-authored-by: Asger F <asgerf@github.com >
2024-09-10 22:18:04 +02:00
Jeroen Ketema
ca10953761
C++: Update syntax zoo expected test results
2024-09-10 21:25:29 +02:00
Andrew Eisenberg
969c57c1c8
Update pull_request_template.md
...
Include a reminder about adding a query to autofix,
2024-09-10 11:42:14 -07:00
Jeroen Ketema
5754f8bac8
C++: Fix __finally related inconsistencies
2024-09-10 20:39:13 +02:00
Ben Rodes
58779e1b90
Merge branch 'main' into brodes/overflow-buffer-fixes-upstream
2024-09-10 13:46:24 -04:00
Jeroen Ketema
4c8aec0db5
Merge pull request #17421 from jketema/fix-except-inconsistency
...
C++: Fix IR inconsistency due to throwing `__except` block
2024-09-10 18:37:10 +02:00
Geoffrey White
7c95bb243e
Rust: Update example path.
2024-09-10 17:09:51 +01:00
Geoffrey White
6b0d7bcda8
Rust: Remove repo warning because we're merging into main real soon now...
2024-09-10 17:08:11 +01:00
Owen Mansel-Chan
270fa8d507
Add change note
2024-09-10 16:58:24 +01:00
Owen Mansel-Chan
84c41744c1
Include type parameter's index in its label
2024-09-10 16:52:44 +01:00
Owen Mansel-Chan
9aafcbc1e3
Add test for multiple anonymous type parameters
2024-09-10 16:40:53 +01:00
Paolo Tranquilli
4f90f5fb4c
Rust: accept test changes
2024-09-10 17:36:18 +02:00
Paolo Tranquilli
d04f0200e2
Rust: skip change note check for now
2024-09-10 17:35:53 +02:00
Arthur Baars
00bc40765c
Merge pull request #17427 from github/aibaars/rust-experiment
...
Fix definition of trap compression option
2024-09-10 17:15:04 +02:00
Arthur Baars
d6d52a97a2
Fix definition of trap compression option
...
unless the -Oextract_dependencies=true flag is supplied
2024-09-10 17:13:49 +02:00
Paolo Tranquilli
9c8f6145ab
Merge pull request #17408 from github/aibaars/rust-experiment
...
Rust: add partial extractor for Expr, Statement, Pattern
2024-09-10 17:09:47 +02:00
Geoffrey White
d9a37119f8
Update rust/README.md
...
Co-authored-by: Paolo Tranquilli <redsun82@github.com >
2024-09-10 16:04:22 +01:00
Geoffrey White
ac9afea75e
Rust: Add experimental warning and Bazelisk link.
2024-09-10 16:02:53 +01:00
Arthur Baars
bffdf2b179
Replace println with log statements
2024-09-10 16:59:32 +02:00
Arthur Baars
f37b4aebc2
Only extract function bodies for local crates,
...
unless the -Oextract_dependencies=true flag is supplied
2024-09-10 16:49:13 +02:00
Arthur Baars
43e54fb0ae
Use custom target folder
2024-09-10 16:49:12 +02:00
Geoffrey White
8213bbb14a
Rust: Add a README.md
2024-09-10 15:47:40 +01:00
Arthur Baars
1e830dad1a
Add ra_ap_paths dependency
2024-09-10 15:14:36 +02:00
Chuan-kai Lin
ba5218dfc0
Merge pull request #17420 from github/cklin/upgrade-properties-fix
...
C#: Fix trivial upgrade.properties errors
2024-09-10 06:11:23 -07:00
Paolo Tranquilli
26b9de3d63
Merge branch 'main' into rust-experiment
2024-09-10 15:00:20 +02:00
Jeroen Ketema
5f4fee0780
C++: Address review comments
2024-09-10 14:23:10 +02:00
Arthur Baars
a5d1d9e167
Make implementation more complete
...
Use Unimplemented to mark AstNodes that need implementing
2024-09-10 14:13:05 +02:00
Jeroen Ketema
500a2a0738
C++: Fix IR inconsistency due to throwing __except block
...
The fix consists of three parts:
* Ensure that an `Unwind` instruction is generated for functions that contain
a Microsoft `__try` statement, or a function that must throw.
* Do not manually introduce `Unwind` instructions for `__except` blocks, but
depend on the `Unwind` that we now insert in the function.
* Add missing `getExceptionSuccessorInstruction` predicate to
`TranslatedMicrosoftTryExceptHandler`
2024-09-10 12:41:43 +02:00
Arthur Baars
2ae725784c
Don't use _ to ignore things so rustc will show warnings for all the gaps in the implementation
2024-09-10 12:26:56 +02:00
Arthur Baars
b2451c6667
Improve schema
2024-09-10 12:26:54 +02:00
Arthur Baars
46bfefc99a
Address comments
2024-09-10 12:26:53 +02:00
Paolo Tranquilli
ef06b555c1
Rust: accept test changes
2024-09-10 11:29:54 +02:00
Jeroen Ketema
90f7b30997
Merge pull request #17418 from jketema/throw-inconsistent
...
C++: Add IR inconsistency test
2024-09-10 11:07:16 +02:00
Paolo Tranquilli
437b671035
Merge branch 'rust-experiment' into aibaars/rust-experiment
...
Also fixed conflicts and applied linting (can be done via
`rust/lint.py` or `pre-commit` configuration).
2024-09-10 10:24:49 +02:00
Paolo Tranquilli
38c25f96e5
Rust: add linting pre-commit hook
2024-09-10 10:22:45 +02:00
Paolo Tranquilli
37afad2f70
Merge pull request #17410 from github/redsun82/rust-ci
...
Rust: set up `codeql` CI
2024-09-10 10:04:24 +02:00
Dave Bartolomeo
ae3f3d0c25
Merge pull request #17419 from github/dbartol/cherry-pick-ruby
...
Fix upload in Ruby build
2024-09-09 16:49:57 -04:00
Dave Bartolomeo
78281168c2
Merge pull request #17417 from github/post-release-prep/codeql-cli-2.18.4
...
Post-release preparation for codeql-cli-2.18.4
2024-09-09 16:45:30 -04:00
Chuan-kai Lin
fae180f612
C#: Fix trivial upgrade.properties errors
2024-09-09 13:33:04 -07:00
Dave Bartolomeo
5961774f84
Include hidden files when uploading Ruby pack
2024-09-09 16:22:43 -04:00
Jeroen Ketema
dfa16423c0
C++: Add IR inconsistency test
2024-09-09 21:50:42 +02:00
github-actions[bot]
97edff3f70
Post-release preparation for codeql-cli-2.18.4
2024-09-09 18:45:46 +00:00
Dave Bartolomeo
561abced2d
Merge pull request #17416 from github/release-prep/2.18.4
...
Release preparation for version 2.18.4
2024-09-09 12:25:56 -04:00
Jeroen Ketema
6e0b5bcb63
Merge pull request #17414 from MathiasVP/add-more-try-except-testcases
...
C++: Add more IR inconsistency tests
2024-09-09 18:10:42 +02:00
github-actions[bot]
91537cdf9a
Release preparation for version 2.18.4
2024-09-09 16:08:48 +00:00
Mathias Vorreiter Pedersen
353cd8cc74
C++: Add more IR inconsistency tests.
2024-09-09 16:37:55 +01:00
Arthur Baars
42b1112be6
Rust: add default Element::toString
2024-09-09 15:05:04 +02:00
Arthur Baars
20ca8801e6
Revert "Rust: PrintAstNode: tolerate elements without toString"
...
This reverts commit 85e51bf0ec .
2024-09-09 15:01:32 +02:00
Arthur Baars
61592a3256
Rust: fix locations
...
In QL locations are 1-based inclusive ranges. The locations is rust are 0-based
and the end position is exclusive.
To patch things up, subtract 1 from the end offset and add 1 to all line and column numbers.
2024-09-09 14:56:37 +02:00
Jeroen Ketema
1250e72ebb
Merge pull request #17399 from jketema/simplify
...
C++: Re-introduce the original version of the `many_defs_per_use` IR test
2024-09-09 14:18:19 +02:00
Paolo Tranquilli
6f36ea9188
Merge branch 'main' into rust-experiment
...
Conflicts:
shared/tree-sitter-extractor/src/trap.rs
2024-09-09 14:15:34 +02:00
Paolo Tranquilli
f1cd9211e7
Merge pull request #17407 from github/redsun82/rust-extractor-generalize-location-cache
...
Tree-sitter: allow multiple sources per trap file
2024-09-09 14:12:33 +02:00
Michael B. Gale
6c8780a2f9
Merge pull request #17395 from github/mbg/go/1.23-changenote
...
Go: Add change note and update docs for Go 1.23
2024-09-09 13:06:46 +01:00
Arthur Baars
86215b4f02
Rename IfLet to IfStmt
2024-09-09 13:33:17 +02:00
Arthur Baars
85e51bf0ec
Rust: PrintAstNode: tolerate elements without toString
2024-09-09 13:29:49 +02:00
Arthur Baars
b40476423b
Rust: schema.py add '| child' markers
2024-09-09 13:29:45 +02:00
Arthur Baars
6acc107021
Prevent a panic on generated labels
2024-09-09 13:25:46 +02:00
Arthur Baars
6e6942b1d7
Rust: initial extractor for expressions and patterns
2024-09-09 13:25:45 +02:00
Arthur Baars
da8750e95e
Rust: extract each project only once
2024-09-09 13:25:44 +02:00
Arthur Baars
7c4383975f
Filter out trailing empty strings
2024-09-09 13:25:43 +02:00
Michael B. Gale
d69c1e9af6
Accept suggestion from review
...
Co-authored-by: Chris Smowton <smowton@github.com >
2024-09-09 12:19:30 +01:00
Paolo Tranquilli
45c9eb1b94
Merge pull request #17411 from github/redsun82/rust-ci-internal
...
Rust: add dummy integration test
2024-09-09 13:06:29 +02:00
Paolo Tranquilli
d6b8dd15a9
Rust: add dummy integration test
2024-09-09 12:57:47 +02:00
Paolo Tranquilli
b0ca7935d7
Rust: update generated list file
2024-09-09 12:32:54 +02:00
Paolo Tranquilli
573b8b9373
Merge branch 'rust-experiment' into redsun82/rust-ci
2024-09-09 12:32:02 +02:00
Paolo Tranquilli
56e127849f
Rust/Codegen: fix generated list files
2024-09-09 12:31:09 +02:00
Paolo Tranquilli
9d08d248fe
Merge pull request #17396 from github/redsun82/rust-doctest-gen
...
Rust: generate test code from schema docstrings
2024-09-09 12:21:22 +02:00
Paolo Tranquilli
10a23c0843
Merge branch 'rust-experiment' into redsun82/rust-doctest-gen
2024-09-09 12:20:55 +02:00
Paolo Tranquilli
c979a949e1
Rust: fix CI codegen check
2024-09-09 12:15:07 +02:00
Paolo Tranquilli
ee2a8b09f6
Rust: fix formatting
2024-09-09 12:11:50 +02:00
Paolo Tranquilli
4512e4280d
Rust: add CI
2024-09-09 12:05:31 +02:00
Paolo Tranquilli
d8f37cf1f9
Rust: add codegen pre commit hook
2024-09-09 12:05:28 +02:00
Paolo Tranquilli
2c472dd5b8
Tree-sitter: fix formatting
2024-09-09 11:59:17 +02:00
Joe Farebrother
d1cca13563
Merge pull request #17314 from joefarebrother/python-x509-cert
...
Python: Exclude certificate classification fo sensitive data queries
2024-09-09 10:48:36 +01:00
Arthur Baars
ef34d24e53
Merge pull request #17390 from github/aibaars/rust-experiment
...
Add Expr, Stmt, Pat to schema.py
2024-09-09 11:27:53 +02:00
Paolo Tranquilli
7637393f75
Rust: resolve clippy and rustc warnings
2024-09-09 10:28:50 +02:00
Paolo Tranquilli
4454566d8d
Tree-sitter: allow multiple sources per trap file
...
This generalizes the location cache to allow multiple sources to be
extracted in the same trap file, by adding `file_label` to `Location`,
and therefore to location cache keys. This will be used by the Rust
extractor.
2024-09-09 09:17:45 +02:00
Paolo Tranquilli
3cd8aaf4b0
Rust: simplify rust doc test annotation
2024-09-09 08:59:17 +02:00
Arthur Baars
c8f73587cc
Rust: codegen: fix generated code
2024-09-07 10:32:59 +02:00
Alvaro Muñoz
d34a0ba306
Add change note
2024-09-06 23:28:57 +02:00
Alvaro Muñoz
5d1da861a2
fix: Use YamlScalar for booleans
2024-09-06 23:21:41 +02:00
Alvaro Muñoz
5df3af2272
Fix alert message
2024-09-06 23:06:57 +02:00
Alvaro Muñoz
d9e8792d33
[javascript] Query to detect GITHUB_TOKEN leaked in artifacts
2024-09-06 22:55:58 +02:00
Michael B. Gale
e165fc77b5
Merge pull request #17386 from github/dependabot/go_modules/go/extractor/extractor-dependencies-cf6e4563c3
...
Bump golang.org/x/mod from 0.20.0 to 0.21.0 in /go/extractor in the extractor-dependencies group
2024-09-06 18:54:36 +01:00
Arthur Baars
1a9b2329f4
Add SlicePat::{slice, suffix}
2024-09-06 19:27:35 +02:00
Arthur Baars
406d03edfc
Rename IfLet::else_branch to IfLet::else_
2024-09-06 18:40:03 +02:00
Arthur Baars
e8277015ab
Add subclasses for Array
2024-09-06 18:23:01 +02:00
Arthur Baars
69b05e835c
Add fields for OffsetOf
2024-09-06 18:17:15 +02:00
Arthur Baars
75113367c9
Add InlineAsm::expr
2024-09-06 18:14:14 +02:00
Arthur Baars
bc6da117d2
Fix type of Closure::arg_types
2024-09-06 17:59:24 +02:00
Jeroen Ketema
915d24c62f
C++: Re-introduce the original version of the many_defs_per_use IR test
...
See: 28cff2ea20
2024-09-06 17:38:29 +02:00
Paolo Tranquilli
928f3f11f1
Rust: remove <> from function wrapper
2024-09-06 14:34:12 +02:00
Paolo Tranquilli
ac9e977baa
Rust: remove accidental test source file
2024-09-06 14:29:10 +02:00
Paolo Tranquilli
18c423eb55
Rust: fix formatting of code snippet in docstring
2024-09-06 14:27:57 +02:00
Paolo Tranquilli
6111a7497d
Rust: remove accidental schema annotation
2024-09-06 14:26:36 +02:00
Paolo Tranquilli
8c5cc2efdc
Rust: generate test code from schema docstrings
...
This generates test source files from code blocks in class docstrings.
By default the test code is generated as is, but it can optionally:
* be wrapped in a function providing an adequate context using
`@rust.doc_test_function(name, *, lifetimes=(), return_type="()", **kwargs)`,
with `kwargs` providing both generic and normal params depending on
capitalization
* be skipped altogether using `@rust.skip_doc_test`
So for example an annotation like
```python
@rust.doc_test_function("foo",
lifetimes=("a",),
T="Eq",
x="&'a T",
y="&'a T",
return_type="&'a T")
```
will result in the following wrapper:
```rust
fn foo<'a, T: Eq>(x: &'a T, y: &'a T) -> &'a T {
// example code here
}
```
2024-09-06 14:24:42 +02:00
Arthur Baars
a33c7703cd
Add Label class
2024-09-06 12:42:43 +02:00
Arthur Baars
e14b626917
Add 'BlockBase' class
2024-09-06 12:15:35 +02:00
Paolo Tranquilli
122e5a7598
Rust: remove accidental IDE files
2024-09-06 12:05:11 +02:00
Cornelius Riemenschneider
9b12df5ae4
Merge pull request #17389 from github/criemen/bzlmod-upgrades
...
CI: Upgrade bazel rules.
2024-09-06 12:02:13 +02:00
Michael B. Gale
c34fe9eda2
Go: Add change note for 1.23 support
2024-09-06 10:52:10 +01:00
Michael B. Gale
3f94ed19bd
Docs: Add Go 1.23 to supported range
2024-09-06 10:50:08 +01:00
Arthur Baars
ce2fdb3463
Address comments
2024-09-06 11:47:08 +02:00
Michael B. Gale
d1b311f11f
Merge pull request #17358 from github/mbg/go/1.23-transparent-aliases
...
Go: Support 1.23 (Transparent aliases)
2024-09-06 10:46:41 +01:00
Michael Nebel
a5b462292f
Merge pull request #17330 from michaelnebel/java/modelgenfieldbased
...
Java/C#: Field based model generator (Experimental).
2024-09-06 11:11:46 +02:00
Cornelius Riemenschneider
c75f55debf
Merge branch 'main' into criemen/bzlmod-upgrades
2024-09-06 10:41:52 +02:00
Jeroen Ketema
b73b8682b4
Merge pull request #17371 from jketema/correct-include
...
C++: Update expected test results after extractor changes
2024-09-06 09:38:06 +02:00
Paolo Tranquilli
8ecba44ea9
Rust: add experimental bazel target
2024-09-06 09:29:54 +02:00
dependabot[bot]
3c1e3b66ec
Bump golang.org/x/mod
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
Updates `golang.org/x/mod` from 0.20.0 to 0.21.0
- [Commits](https://github.com/golang/mod/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-06 03:21:50 +00:00
Michael B. Gale
1e32e84b1f
Merge pull request #17369 from smowton/smowton/admin/aliasing-tests
...
Go: add tests regarding type aliasing
2024-09-05 21:16:08 +01:00
Michael B. Gale
772bc9b5c8
Go: Bump everything to 1.23.1
2024-09-05 21:12:46 +01:00
Michael B. Gale
9aeaae6068
Go: Bump maxGoVersion to 1.23
2024-09-05 21:12:45 +01:00
Michael B. Gale
6ef5063ff0
Go: Format Aliases.ql
2024-09-05 21:12:44 +01:00
Michael B. Gale
195f37267e
Go: Accept new test results
2024-09-05 21:12:44 +01:00
Michael B. Gale
8380d71b01
Go: Add test for AliasType extraction
2024-09-05 21:12:43 +01:00
Michael B. Gale
1a9608a1f5
Go: Don't extract objects for type aliases
2024-09-05 21:12:42 +01:00
Michael B. Gale
97c3efccd1
Go: Factor out isAlias function
2024-09-05 21:12:42 +01:00
Michael B. Gale
c5b8163493
Go: Handle Alias types by extracting the underlying types
2024-09-05 21:12:41 +01:00
Michael B. Gale
c8e732468a
Go: Update frontend error messages for Go 1.23
2024-09-05 21:12:40 +01:00
Michael B. Gale
4dead2bd8d
Go: Use 1.23 for extractor
2024-09-05 21:12:40 +01:00
Michael B. Gale
ca796b0383
Go: Use 1.23 in tests
2024-09-05 21:12:39 +01:00
Michael B. Gale
d790d1ff08
Go: Use 1.23 in build process
2024-09-05 21:12:38 +01:00
REDMOND\brodes
1005a89007
Updating test cases.
2024-09-05 15:25:23 -04:00
Jeroen Ketema
a8b8eb42c0
Merge pull request #17391 from MathiasVP/add-unexpected-loop-inconsistency
...
C++: Add testcase with IR inconsistencies
2024-09-05 21:03:57 +02:00
Mathias Vorreiter Pedersen
25d7f17efc
C++: Add testcase with IR inconsistencies.
2024-09-05 19:32:53 +01:00
Jeroen Ketema
78c6c09912
Merge pull request #13560 from am0o0/amammad-cpp-bombs
...
C++: Decompression Bombs
2024-09-05 20:01:02 +02:00
Am
a226bdfbd3
Merge pull request #3 from jketema/amammad-cpp-bombs
...
C++: Fix expected test results
2024-09-05 21:31:03 +04:00
Michael Nebel
e1048cf8ea
Java/C#: Address review comments.
2024-09-05 19:23:05 +02:00
Jeroen Ketema
e891c5a882
C++: Fix expected test results
2024-09-05 17:48:11 +02:00
am0o0
401bb24fde
remove redundent zStreamAccess in flow steps
2024-09-05 17:09:26 +02:00
am0o0
faef6359dd
add '// BAD' comment for the zstd sink
2024-09-05 17:05:21 +02:00
Arthur Baars
679d81ab00
Rust: extract dummy Function body
2024-09-05 16:59:30 +02:00
Arthur Baars
46d6bbb458
Rust: update generated code
2024-09-05 16:59:29 +02:00
Arthur Baars
76c35bec93
Rust: add Expr, Pat, Stmt to schema
2024-09-05 16:59:28 +02:00
Arthur Baars
0516505033
Rust: update dependencies
2024-09-05 16:58:41 +02:00
Ben Rodes
8ab22feae1
Update cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/tests.cpp
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-09-05 10:07:19 -04:00
Jeroen Ketema
5b65f98e2c
C++: Update expected test results after extractor changes
...
The updated test results look more correct, as the documentation of
`#include_next` [1] that it should start looking in the next directory
in the search path. Before this update, the frontend was actually
looking in the current directory first, which is incorrect.
[1] https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html
2024-09-05 15:17:43 +02:00
Arthur Baars
6fd469c807
Rust: use autodiscovery for sysroot
...
This should make the rust-analyzer library look for a rust toolchain and
try to start the proc-macro server.
2024-09-05 14:49:37 +02:00
Arthur Baars
d93330bc4c
Rust: make printAst work
2024-09-05 14:49:36 +02:00
Arthur Baars
d8eb5d463d
Rust: run cargo fmt
2024-09-05 14:45:47 +02:00
Arthur Baars
60b349f7e5
Rust: remove 'take(1)' from crates iterator
2024-09-05 14:45:46 +02:00
Arthur Baars
be16954521
Rust: add autobuild.sh
2024-09-05 14:45:45 +02:00
Arthur Baars
52ef1e382a
Add 'version' field to generated Cargo.toml file
2024-09-05 14:45:44 +02:00
Owen Mansel-Chan
013ee34de7
Merge pull request #17381 from owen-mc/go/fix/qldoc/resultvariabledecl
...
Go: Fix QLDoc for ResultVariableDecl
2024-09-05 11:57:45 +01:00
Paolo Tranquilli
b23e482ed2
Merge branch 'main' into rust-experiment
2024-09-05 12:29:29 +02:00
Paolo Tranquilli
28a7fca7ed
Merge pull request #17387 from github/redsun82/bazel
...
Bazel: stub internal repo parts needed for building rust binaries
2024-09-05 12:28:18 +02:00
Owen Mansel-Chan
9786934d9a
Remove errant space at end of line
2024-09-05 11:27:20 +01:00
Cornelius Riemenschneider
f76a190ed1
CI: Upgrade bazel rules.
2024-09-05 11:40:06 +02:00
Simon Friis Vindum
5950af390d
Merge pull request #17351 from paldepind/swap-member-data-flow
...
C++: Make swap member functions data-flow functions
2024-09-05 11:39:16 +02:00
Owen Mansel-Chan
5bafa8ace2
Add comment about x, y int being a single ResultVariableDecl
2024-09-05 10:27:11 +01:00
Jeroen Ketema
b6e38ff862
Merge pull request #17342 from jketema/coroutine
...
C++: Fix coroutine IR inconsistencies
2024-09-05 10:15:16 +02:00
Paolo Tranquilli
57534599c8
Merge pull request #17352 from github/redsun82/swift
...
Swift: upgrade prebuilt toolchain to 5.10.1
2024-09-05 09:17:06 +02:00
Paolo Tranquilli
7c80b33a63
Bazel: add forgotten files
2024-09-05 08:26:41 +02:00
Paolo Tranquilli
913a9263d2
Bazel: stub internal repo parts needed for building rust binaries
...
This is another shot at https://github.com/github/codeql/pull/17382 ,
using a different and more lightweight approach.
This allows building the ruby and python (and in the future also rust)
packs from within the codeql repository. This will:
* skip defining the glibc symbols checking, which only makes sense when
building the release from the internal repository
* stub out our `universal_binary` rule, which we only need when building
the release.
2024-09-05 08:16:28 +02:00
Am
05bdce1cd3
Merge pull request #2 from jketema/amammad-cpp-bombs
...
C++: Fix zstd and clean up test
2024-09-05 07:53:00 +04:00
Joe Farebrother
959715ac8e
Merge pull request #16814 from porcupineyhairs/pyCors
...
WIP: Python: CORS Bypass
2024-09-05 02:43:02 +01:00
Chris Smowton
fe9d879e37
Prettify tests
2024-09-04 22:33:21 +01:00
Chris Smowton
4c5344d62a
Accept test suggestions
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-09-04 22:30:17 +01:00
Jeroen Ketema
3aa68b34bb
C++: Fix zstd and clean up test
2024-09-04 22:25:44 +02:00
Cornelius Riemenschneider
f9e956dc94
Merge pull request #17377 from github/criemen/csharp-move-jobs
...
C#: Delete jobs that moved to the internal repo.
2024-09-04 20:10:26 +02:00
Cornelius Riemenschneider
e542d66719
Merge pull request #17380 from github/mbg/backport/bazel/dependencies/rules_go-0.50.0
...
Backport "Bazel/Go: Bump rules_go to 0.50.0" to `rc/3.15`
2024-09-04 19:32:02 +02:00
Cornelius Riemenschneider
627c533e98
Fix typo.
2024-09-04 19:27:00 +02:00
REDMOND\brodes
78898955b6
Updating change log
2024-09-04 12:54:27 -04:00
Chris Smowton
cbd129fddd
Add test for aliasing interface method definitions
2024-09-04 17:53:45 +01:00
REDMOND\brodes
6f1aade8e0
Added change log
2024-09-04 12:51:37 -04:00
Jeroen Ketema
fd9a5ee453
Update cpp/downgrades/7ff6a6e53dbcff09d1b9b758b594bc6d17366863/coroutine.ql
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2024-09-04 18:45:33 +02:00
REDMOND\brodes
77b88afa9e
Removing commented out code and altering comments to explain why the code was removed.
2024-09-04 12:44:36 -04:00
Andrew Eisenberg
c86b5790ff
Merge pull request #17281 from github/aeisenberg/pr-template
...
Add a pull request template
2024-09-04 09:41:46 -07:00
REDMOND\brodes
cc953c87d9
Added test case to demonstrate type error corrected in this branch.
2024-09-04 12:41:05 -04:00
Pierre
9bd706a576
Merge pull request #17375 from github/changedocs-2.18.3-2
...
Add changelogs up to 2.18.3
2024-09-04 18:13:22 +02:00
REDMOND\brodes
e4d29905a9
Formatting and updating tests.
2024-09-04 11:16:24 -04:00
REDMOND\brodes
f0eeaaf44e
BufferAccess must be reachable. False positives observed where accesses occur in dead code.
2024-09-04 11:16:23 -04:00
REDMOND\brodes
abd0a076a8
Addressing false positive with strncpy.
2024-09-04 11:16:21 -04:00
REDMOND\brodes
9105375097
Addreessing false positive due to incorrect use of getType
2024-09-04 11:16:19 -04:00
Am
4fa462417f
Merge pull request #1 from jketema/amammad-cpp-bombs
...
Cleanup cpp bombs
2024-09-04 18:06:04 +04:00
Owen Mansel-Chan
351c50afc1
Fix QLDoc for ResultVariableDecl
2024-09-04 14:02:35 +01:00
Michael B. Gale
66af4fd337
Bazel: Bump rules_go to 0.50.0
2024-09-04 13:47:21 +01:00
Michael B. Gale
cd8a5d7707
Merge pull request #17378 from github/mbg/go/improve-typeparamtype
...
Go: Add `getParent` and `getIndex` for `TypeParamType`
2024-09-04 13:31:51 +01:00
Erik Krogh Kristensen
8508056e72
Merge pull request #17349 from erik-krogh/del-deps-sep-2024
...
All: delete outdated deprecations
2024-09-04 14:18:31 +02:00
Jeroen Ketema
9b905d5e84
C++: Set precision to low
...
There are no barriers, so the query as is will flag up any use of the
identified functions.
2024-09-04 14:13:43 +02:00
Jeroen Ketema
238895e677
C++: Fix formatting
2024-09-04 14:10:24 +02:00
Jeroen Ketema
92c6170a76
C++: Simplify QLhelp
...
One good and one bad example suffices to get the point across, and makes the
help more readable. The examples also do not have to be complete.
2024-09-04 14:06:12 +02:00
Simon Friis Vindum
f066f21751
C++: Make swap member functions data-flow functions
2024-09-04 13:55:19 +02:00
Tom Hvitved
ce2df04854
Merge pull request #17350 from hvitved/tree-sitter-0.23
...
Bump `tree-sitter` to `0.23.0`
2024-09-04 13:45:14 +02:00
Jeroen Ketema
2369b18ca6
C++: Make additional flow steps more uniform
2024-09-04 13:43:03 +02:00
Michael B. Gale
db72bd4f96
Go: Add getParent and getIndex for TypeParamType
2024-09-04 12:28:58 +01:00
Tamás Vajk
6c28abdad7
Merge pull request #17373 from tamasvajk/add-build-mode-none-change-note-2
...
C#: Add change note for `build-mode:none` GA
2024-09-04 13:24:17 +02:00
Jeroen Ketema
8fe0d0a045
C++: Improve query output
2024-09-04 13:22:02 +02:00
Jeroen Ketema
8d22d147b8
C++: Clean up QLDoc
2024-09-04 13:16:56 +02:00
Cornelius Riemenschneider
05ffb47711
Merge pull request #17334 from github/criemen/rename-java
...
Java: Rename integration test directories.
2024-09-04 12:51:51 +02:00
Erik Krogh Kristensen
4258119ba3
Merge branch 'main' into del-deps-sep-2024
2024-09-04 12:43:41 +02:00
Erik Krogh Kristensen
49aaf65f3f
fix mistake in the Python change-note
...
Co-authored-by: Taus <tausbn@github.com >
2024-09-04 12:43:01 +02:00
Cornelius Riemenschneider
b253b4ff49
C#: Delete jobs that moved to the internal repo.
...
All jobs that are deleted have been moved to the internal repo.
The unit tests are also run internally through bazel,
but keeping them here also tests the msbuild build.
2024-09-04 12:39:30 +02:00
Paolo Tranquilli
c38281528f
Merge branch 'main' into redsun82/swift
2024-09-04 12:14:34 +02:00
Jeroen Ketema
65fafbf4df
C++: Fix QL-for-QL warnings
2024-09-04 11:57:10 +02:00
Jeroen Ketema
084dbc4e12
C++: Rename qhelp file to match ql file
2024-09-04 11:48:42 +02:00
Jeroen Ketema
c048401ca7
C++: Clean up Brotli test
2024-09-04 11:40:32 +02:00
turbo
bd45c1fdbe
Add changelogs
2024-09-04 11:39:35 +02:00
Jeroen Ketema
0f98e292ed
C++: Cleanup minizip test
2024-09-04 11:19:22 +02:00
Tamas Vajk
d4947cc1a2
C#: Add change note for build-mode:none GA
2024-09-04 11:13:31 +02:00
Owen Mansel-Chan
27e9c1b885
Merge pull request #17266 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-09-04 10:05:20 +01:00
Jeroen Ketema
09f6576e6b
C++: Simplify libarchive test
2024-09-04 11:04:21 +02:00
Jeroen Ketema
078e63524c
C++: Remove code that is irrelevant for the zlib test
2024-09-04 10:48:25 +02:00
Anders Schack-Mulligen
7b8e707465
Merge pull request #17362 from aschackmull/dataflow/typofix
...
Dataflow: Fix minor typo.
2024-09-04 10:39:31 +02:00
Owen Mansel-Chan
1e225d7c44
Merge pull request #17366 from owen-mc/go/edit-release-change-notes
...
Go: Remove threat models change note from 1.15.md
2024-09-04 09:37:28 +01:00
Jeroen Ketema
ad3605c595
C++: Minor test clean up
2024-09-04 10:26:53 +02:00
Jeroen Ketema
d8a70d8d58
C++: Add test annotations
2024-09-04 10:23:51 +02:00
Jeroen Ketema
751e7e6bfb
C++: Remove useless function bodies from tests
2024-09-04 10:03:19 +02:00
Jeroen Ketema
d526f1d081
C++: Disentangle confusing test results by declaring only a single main
2024-09-04 09:51:03 +02:00
Tom Hvitved
eb1b2a5594
Bump tree-sitter to 0.23.0
2024-09-04 09:47:59 +02:00
Jeroen Ketema
50d9e77339
C++: Move experimental files into the correct locations
2024-09-04 09:33:27 +02:00
Simon Friis Vindum
04f4039adc
Merge pull request #17354 from paldepind/realloc-data-flow
...
C++: Make realloc a data-flow function
2024-09-04 09:04:12 +02:00
Michael Nebel
99400fe3d4
Merge pull request #17346 from michaelnebel/csharp/madsynthetics
...
C#: Support SyntheticField in MaD.
2024-09-04 08:28:07 +02:00
Simon Friis Vindum
75643043bc
Update change note for realloc
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2024-09-04 07:38:49 +02:00
github-actions[bot]
3eeb79c599
Add changed framework coverage reports
2024-09-04 00:19:10 +00:00
Andrew Eisenberg
3f5a146a1c
Reformulate bullet points
2024-09-03 15:25:43 -07:00
Chris Smowton
6ed0a37efd
Autoformat
2024-09-03 21:29:56 +01:00
Chris Smowton
bf2fb2f6e2
Add tests for interface implementation across aliasing
2024-09-03 21:18:20 +01:00
erik-krogh
e2b16bd8f9
add some change-notes
2024-09-03 22:06:07 +02:00
erik-krogh
e76dcf9df9
delete a test for a deleted file
2024-09-03 20:31:01 +02:00
erik-krogh
846882d22c
delete imports to a deleted file
2024-09-03 20:31:00 +02:00
erik-krogh
20dfdc9661
delete some deprecated files
2024-09-03 20:30:59 +02:00
erik-krogh
0fdd06fff5
use my script to delete outdated deprecations
2024-09-03 20:30:58 +02:00
Chris Smowton
73cc7460f3
Fix test; update expectations per autoformat changes
2024-09-03 18:44:30 +01:00
Chris Smowton
a94601c8c0
Add test checking for entity counts and def-use matches under aliasing
2024-09-03 17:58:09 +01:00
Dave Bartolomeo
ea0877769e
Merge pull request #17368 from github/dbartol/ruby-hidden
...
Include hidden files when uploading Ruby pack
2024-09-03 12:49:26 -04:00
Jeroen Ketema
8ca52f278a
C++: Fix coroutine IR inconsistencies
...
While here, remove some dead code related to fixed points from the database
scheme.
2024-09-03 18:12:36 +02:00
Dave Bartolomeo
36c71a9592
Include hidden files when uploading Ruby pack
2024-09-03 11:47:02 -04:00
Jeroen Ketema
62766f68fc
Merge pull request #17138 from jketema/generic
...
C++: Support C11 `_Generic` expressions
2024-09-03 17:26:50 +02:00
Owen Mansel-Chan
f5c195d830
Remove change note from 1.15.md
...
We will include this change note when there is documentation about how to use the functionality.
2024-09-03 16:24:55 +01:00
Jeroen Ketema
52819432c0
C++: Address review comment
2024-09-03 17:18:18 +02:00
Simon Friis Vindum
d5948d2d95
C++: Add change-note note for realloc as data-flow function
2024-09-03 16:15:05 +02:00
am0o0
386e45a11e
delete bzip2 as it is not updated for more than three years so it is not in the priority
2024-09-03 15:33:14 +02:00
am0o0
81283d59ab
remove more unused imports, add tests for zstd, add flow steps for zstd
...
zstd is not finilized
2024-09-03 15:26:38 +02:00
Michael B. Gale
5e390a3b01
Merge pull request #17359 from github/mbg/bazel/dependencies/rules_go-0.50.0
...
Bazel/Go: Bump `rules_go` to 0.50.0
2024-09-03 14:00:18 +01:00
am0o0
4fc971dbcb
remove xz(lzma)
2024-09-03 14:48:52 +02:00
Anders Schack-Mulligen
a0f0854fdb
Dataflow: Fix minor typo.
2024-09-03 14:26:02 +02:00
am0o0
6c97096642
remove unused imports, add tests for libarchive
2024-09-03 14:16:25 +02:00
Simon Friis Vindum
037912fd2d
C++: Add data-flow test for realloc
2024-09-03 14:02:03 +02:00
Michael B. Gale
c05c1d5087
Bazel: Bump rules_go to 0.50.0
2024-09-03 12:42:40 +01:00
am0o0
9531701129
delete miniz support because there is no good documents and i don't have enough time as the library is not popular enough. add tests for minizip lib
2024-09-03 13:08:00 +02:00
Michael Nebel
7bf7df2f99
C#/Java: Add model generator option for making content based summaries.
2024-09-03 12:58:13 +02:00
Michael Nebel
6e8941ea9d
C#: Add a couple more testcases.
2024-09-03 12:58:09 +02:00
Michael Nebel
4123876343
C#: Add content based summary generation test.
2024-09-03 12:58:06 +02:00
Michael Nebel
486246c82d
C#: Sync changes and make C# implementation.
2024-09-03 12:58:04 +02:00
Michael Nebel
5ddcb16cd6
Java: Add content based model generation test.
2024-09-03 12:58:01 +02:00
am0o0
e85ca79d77
add tests for brotli
2024-09-03 12:28:16 +02:00
Tom Hvitved
26c5e7b2d1
Merge pull request #17308 from hvitved/dataflow/flow-through-restriction
...
Data flow: Reduce non-linear recursion in `fwdFlow0`
2024-09-03 11:30:57 +02:00
Simon Friis Vindum
78068a488f
C++: Make realloc a data-flow function
2024-09-03 11:25:18 +02:00
Cornelius Riemenschneider
2dfca8ab20
Merge branch 'main' into criemen/rename-java
2024-09-03 11:04:29 +02:00
Paolo Tranquilli
59423c692f
Swift: upgrade prebuilt toolchain to 5.10.1
2024-09-03 10:38:58 +02:00
Tom Hvitved
07fcd81e7e
Address review comments
2024-09-03 10:13:09 +02:00
Michael Nebel
6365e5edff
Java: Initial implementation of content based model generation.
2024-09-03 09:45:11 +02:00
Michael Nebel
4bdf21b022
Java: Add Content Flow module.
2024-09-03 09:45:07 +02:00
am0o0
49eaaf55a5
Merge branch 'amammad-cpp-bombs' of https://github.com/am0o0/codeql into amammad-cpp-bombs
2024-09-03 09:13:08 +02:00
am0o0
8c1c537150
finilize tests for zlib
2024-09-03 09:12:54 +02:00
am0o0
89e842b147
finilize tests for zlib
2024-09-03 09:12:13 +02:00
Porcupiney Hairs
f86570f6e7
WIP: Python: CORS Bypass
...
This PR adds a query to detect a Cross Origin Resource Sharing(CORS) policy bypass due to an incorrect check.
This PR attempts to detect the vulnerability pattern found in CVE-2022-3457
```python
if request.method in ['POST', 'PUT', 'PATCH', 'DELETE']:
origin = request.headers.get('Origin', None)
if origin and not origin.startswith(request.base):
raise cherrypy.HTTPError(403, 'Unexpected Origin header')
```
In this case, a value obtained from a header is compared using `startswith` call. This comparision is easily bypassed resulting in a CORS bypass. Given that similar bugs have been found in other languages as well, I think this PR would be a great addition to the exisitng python query pack.
The databases for CVE-2022-3457 can be downloaded from
```
https://filetransfer.io/data-package/i4Mfepls#link
https://file.io/V67T4SSgmExF
```
2024-09-03 03:11:35 +05:30
Jeroen Ketema
ffab199ea8
Merge pull request #17348 from jketema/test-fix
...
C++: Update expected test results after #17347
2024-09-02 21:53:13 +02:00
Jeroen Ketema
ae7bf6c97d
C++: Update expected test results after #17347
2024-09-02 21:17:55 +02:00
Tom Hvitved
1057bb443f
Data flow: Simplify FwdFlowIn interface
2024-09-02 16:10:34 +02:00
Simon Friis Vindum
ee6c255a7c
Merge pull request #17328 from paldepind/tweak-unbounded-barrier
...
C++: Tweak the `bounded` barrier
2024-09-02 14:30:44 +02:00
Simon Friis Vindum
e294c8e68f
Merge pull request #17347 from paldepind/test-for-uninitialized-local
...
C++: Add test for cpp/uninitialized-local and va_copy
2024-09-02 14:00:34 +02:00
Geoffrey White
c082c256a2
Merge pull request #17244 from geoffw0/swiftdoc2
...
Swift: Work around some QHelp rendering issues.
2024-09-02 12:26:23 +01:00
Simon Friis Vindum
660869e834
C++: Add test for cpp/uninitialized-local and va_copy
2024-09-02 13:25:02 +02:00
Tamás Vajk
39a73303d1
Merge pull request #17333 from github/criemen/rename-csharp
...
C#: Rename integration test directories.
2024-09-02 13:04:58 +02:00
Henry Mercer
4ebfafbec2
Merge pull request #17336 from github/henrymercer/rc-3.15-mergeback
...
Merge `rc/3.15` back into `main`
2024-09-02 11:43:19 +01:00
Michael Nebel
4f4c7bfbb9
C#: Update expected test output.
2024-09-02 11:13:16 +02:00
Michael Nebel
6e81d74558
C#: Add support for synthetic fields in MaD for C#.
2024-09-02 11:13:11 +02:00
Michael Nebel
0d343c5ce1
C#: Add external flow tests for synthetic fields.
2024-09-02 11:13:06 +02:00
Paolo Tranquilli
885e89a927
Rust: first running tests
2024-08-30 17:45:51 +02:00
Tom Hvitved
642ec38589
Merge pull request #17340 from hvitved/csharp/ssa-exclude-enums
2024-08-30 16:31:38 +02:00
Paolo Tranquilli
7e1290aa74
Rust: reuse shared rust trap library
2024-08-30 16:08:37 +02:00
Joe Farebrother
ec7ad84cd1
Update formatting
2024-08-30 13:51:33 +01:00
Joe Farebrother
5360192a58
Apply review suggestions - change = to in
...
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com >
2024-08-30 13:25:59 +01:00
Jeroen Ketema
4945943732
C++: Support C11 _Generic expressions
2024-08-30 14:24:03 +02:00
Paolo Tranquilli
4f0fe1ce3a
Rust: bazel packaging
2024-08-30 13:05:46 +02:00
Tom Hvitved
4ef4ede0b1
C#: Do not calculate field-based SSA for enums
2024-08-30 11:19:07 +02:00
Tom Hvitved
a9b5faa6ab
C#: Add SSA test for enums
2024-08-30 11:19:06 +02:00
Jeroen Ketema
30335ab81e
C++: Add C11 _Generic IR tests
2024-08-30 10:50:49 +02:00
Paolo Tranquilli
3da6cee6ef
Merge branch 'main' into rust-experiment
2024-08-30 10:30:43 +02:00
Cornelius Riemenschneider
321820e758
Java: Rename integration test directories.
...
We are no longer bound to the platform-specific directories, so simplify the test organization.
If you don't want this change, just skip merging this PR. It's purely optional.
I kept the platform-specific directories around under `kotlin`,
but you could also easily merge all these together if you find them unhelpful.
I'll leave that change to you.
2024-08-30 10:28:25 +02:00
Paolo Tranquilli
04753b286f
Rust: tweak trap_key
2024-08-30 10:12:20 +02:00
Michael Nebel
89c387cf5c
Merge pull request #17326 from michaelnebel/shared/contentflowtaint
...
DataFlow: Bugfix in content flow state for value preservation.
2024-08-30 09:23:50 +02:00
Andrew Eisenberg
13705531b5
Update .github/pull_request_template.md
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2024-08-29 14:47:54 -07:00
Henry Mercer
3490067316
Merge branch 'main' into henrymercer/rc-3.15-mergeback
2024-08-29 19:48:01 +01:00
Henry Mercer
d5bccd5373
Reapply "C#: Add support for flow through side-effects on static fields"
...
This reverts commit ea6092ad3f .
2024-08-29 19:47:53 +01:00
Cornelius Riemenschneider
092ce01d93
C#: Rename integration test directories.
...
We are no longer bound to the platform-specific directories, so simplify the test organization.
If you don't want this change, just skip merging this PR. It's purely optional.
This is not very invasive for C#, I'm just dropping the `only`
suffix. You could also merge all the platform-specific test dirs,
or all test dirs into the top-level directory. I'll leave that up to you.
2024-08-29 19:06:56 +02:00
Cornelius Riemenschneider
72e2910d17
Merge pull request #17315 from github/criemen/pytest-java
...
Java: Port all integration tests to pytest
2024-08-29 18:05:52 +02:00
Paolo Tranquilli
590a146b49
Rust: some basic extraction of function names (with locations!)
2024-08-29 17:58:50 +02:00
Cornelius Riemenschneider
5ecc6f9dc8
Merge remote-tracking branch 'origin/main' into criemen/pytest-java
2024-08-29 16:43:46 +02:00
Cornelius Riemenschneider
dd7f757281
Address review.
2024-08-29 16:43:27 +02:00
Michael Nebel
ff31aa540c
Address review comments.
2024-08-29 15:54:04 +02:00
Michael Nebel
0df0d8a51f
Merge pull request #17236 from michaelnebel/java/viablecallableheuristic
...
Java: Make more finegrained dataflow dispatch viable callable heuristic.
2024-08-29 10:46:30 +02:00
Joe Farebrother
5494389c4b
Update changenote
...
Co-authored-by: Sid Shankar <sidshank@github.com >
2024-08-29 09:44:23 +01:00
Simon Friis Vindum
e7f059ae55
C++: Tweak the bounded barrier
2024-08-29 10:32:31 +02:00
Michael Nebel
53b2471c9d
Java: Update expected test output.
2024-08-29 09:03:46 +02:00
Cornelius Riemenschneider
047a655dec
Merge pull request #17324 from github/criemen/move-swift-int-tests
...
Swift: Move all integration tests.
2024-08-28 21:27:26 +02:00
Simon Friis Vindum
edeefe5bb6
Merge pull request #17298 from paldepind/model-functions-that-dont-throw
...
C++: Add basic modeling of functions that don't throw
2024-08-28 19:50:31 +02:00
Tom Hvitved
49a4f3a82f
Data flow: Reduce non-linear recursion in fwdFlow0
2024-08-28 17:29:23 +02:00
Paolo Tranquilli
f40901f391
Rust: archiving + skeleton def translator
2024-08-28 17:15:49 +02:00
Michael Nebel
fa5d6f12be
Java: Update logging test expected output.
2024-08-28 16:16:16 +02:00
Michael Nebel
bd5529cefa
Java: Update the Byte- and CharBuffer models and add models for set- and getParameters on LogRecord.
2024-08-28 16:15:09 +02:00
Michael Nebel
395656a1cf
Java: Extend the logging test with a test case for parameters.
2024-08-28 16:13:32 +02:00
Cornelius Riemenschneider
123c375d84
Merge pull request #17322 from github/criemen/move-js-int-tests
...
JS: Move all integration tests.
2024-08-28 16:04:39 +02:00
Jeroen Ketema
40fe39c288
Merge pull request #17311 from jketema/builtins
...
C++: Add support for more clang builtins
2024-08-28 16:00:08 +02:00
Simon Friis Vindum
d1fecd869b
C++: Make StringCchPrintf not extend NonThrowingFunction
2024-08-28 15:40:14 +02:00
Cornelius Riemenschneider
966c3a62dd
Merge pull request #17309 from github/criemen/bazel-prerelease
...
Bazel: switch to a 7.4.0 prerelease.
2024-08-28 15:28:06 +02:00
Jeroen Ketema
2b571cf450
C++: Address review comments
2024-08-28 15:11:42 +02:00
Michael Nebel
e8595e28e9
Update java/ql/lib/semmle/code/java/dataflow/internal/DataFlowDispatch.qll
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-08-28 15:04:38 +02:00
Anders Schack-Mulligen
dd49fc932d
Merge pull request #17325 from aschackmull/dataflow/state-in-summary
...
Dataflow: Include FlowState in SummaryCtx.
2024-08-28 15:03:18 +02:00
Cornelius Riemenschneider
ab56e63f96
Merge branch 'main' into criemen/pytest-java
2024-08-28 14:47:49 +02:00
Michael Nebel
6d346dbedd
DataFlow: Bugfix in flow state for value preservation.
2024-08-28 14:40:04 +02:00
Anders Schack-Mulligen
6a9bd0de1d
Dataflow: Include FlowState in SummaryCtx.
2024-08-28 14:13:28 +02:00
Jeroen Ketema
026969b6e9
C++: Add change note
2024-08-28 13:08:44 +02:00
Jeroen Ketema
9e861ce717
C++: Add support for more clang builtins
2024-08-28 13:08:42 +02:00
Tom Hvitved
7f8e6bf574
Merge pull request #16970 from hvitved/dataflow/local-big-step-stage
...
Data flow: Compute local big step relation as stage output
2024-08-28 12:28:16 +02:00
Tom Hvitved
27bc8ed6af
Address review comment
2024-08-28 11:38:29 +02:00
Chris Smowton
464b552cad
Merge pull request #17321 from github/criemen/move-go-int-tests
...
Go: Move all integration tests.
2024-08-28 10:30:55 +01:00
Cornelius Riemenschneider
d349ddba57
Merge pull request #17323 from github/criemen/move-ruby-int-tests
...
Ruby: Move all integration tests.
2024-08-28 11:18:05 +02:00
Simon Friis Vindum
d6049cd98b
C++: Add additional implementations of NonThrowingFunction and make minor fixes to docs
2024-08-28 10:54:16 +02:00
Cornelius Riemenschneider
a92a845719
Swift: Move all integration tests.
...
We are no longer bound to the platform-specific directories,
so simplify the test organization.
If you don't want this change, just skip merging this PR. It's purely optional.
2024-08-28 10:47:17 +02:00
Cornelius Riemenschneider
3326bc417c
Ruby: Move all integration tests.
...
We no longer need the platform-specific directories, so simplify the test organization.
If you don't want this change, just skip merging this PR. It's purely optional.
2024-08-28 10:45:05 +02:00
Cornelius Riemenschneider
b7b475d13b
JS: Move all integration tests.
...
We no longer need the platform-specific directories, so simplify the test organization.
If you don't want this change, just skip merging this PR.
It's purely optional.
The PR also deletes a spurious qlpack.yml that I missed when converting the tests to pytest.
2024-08-28 10:43:08 +02:00
Cornelius Riemenschneider
bfc6fee828
Go: Move all integration tests.
...
We no longer need the platform-specific directories,
so simplify the test organization.
If you want to retain the `linux` directory for two tests,
or not do this at all, just skip merging this PR.
It's purely optional.
2024-08-28 10:37:59 +02:00
Joe Farebrother
a8591c79c5
Update test
2024-08-28 09:11:34 +01:00
Joe Farebrother
f3dea1d647
Add changenote
2024-08-28 09:04:01 +01:00
Tom Hvitved
22e1921391
Merge pull request #17313 from hvitved/dataflow/to-normal-sink-node-ex
...
Data flow: Move `toNormalSinkNodeEx` into `PathNodeMid`
2024-08-28 09:06:41 +02:00
Henry Mercer
ea1870fbbd
Merge pull request #17318 from github/post-release-prep/codeql-cli-2.18.3
...
Post-release preparation for codeql-cli-2.18.3
2024-08-27 20:34:55 +01:00
Henry Mercer
21a0109ca2
Merge branch 'rc/3.15' into post-release-prep/codeql-cli-2.18.3
2024-08-27 19:53:46 +01:00
github-actions[bot]
3e774476c6
Post-release preparation for codeql-cli-2.18.3
2024-08-27 18:52:31 +00:00
Henry Mercer
f348b6cbf7
Merge pull request #17317 from github/release-prep/2.18.3
...
Release preparation for version 2.18.3
2024-08-27 18:53:04 +01:00
Henry Mercer
3d8c402b6f
C#: Add spaces around em dash in changelog note
2024-08-27 18:51:40 +01:00
github-actions[bot]
0db6379602
Release preparation for version 2.18.3
2024-08-27 17:50:22 +00:00
Henry Mercer
cf1f290b61
Merge pull request #17316 from github/revert-17279-release-prep/2.18.3
...
Revert "Release preparation for version 2.18.3"
2024-08-27 18:47:55 +01:00
Henry Mercer
0f44cd3f62
Revert "Release preparation for version 2.18.3"
2024-08-27 18:19:25 +01:00
Paolo Tranquilli
2a2b79e6df
Rust: skeleton trap file emission code
2024-08-27 17:50:53 +02:00
Paolo Tranquilli
927710017e
Rust: add some configuration and logging
2024-08-27 17:07:23 +02:00
Tom Hvitved
b589fcad11
Data flow: Tweak join-order in toNormalSinkNodeEx
2024-08-27 15:42:24 +02:00
Tom Hvitved
80b6135a64
Data flow: Move toNormalSinkNodeEx into PathNodeMid
2024-08-27 15:42:13 +02:00
Joe Farebrother
fc24ca304d
Update tests
2024-08-27 14:18:50 +01:00
Joe Farebrother
1cb23e7e86
Exclude certificates from being cinsidered sensitive data by cleartext-storage and cleartext-logging queries
2024-08-27 14:18:39 +01:00
Michael Nebel
15b06907dd
Java: Updated expected test output.
2024-08-27 14:48:14 +02:00
Michael Nebel
8f734ad1b2
Java: Tighten the criteria for when we disregard generated models.
2024-08-27 14:48:11 +02:00
Michael Nebel
021fd1450e
Java: Add some dispatch examples to the external flow step test.
2024-08-27 14:48:03 +02:00
Michael Nebel
43b52a0921
Java: Add change note.
2024-08-27 13:28:18 +02:00
Michael Nebel
7488cc0811
Java: Updated expected test output.
2024-08-27 13:28:13 +02:00
Michael Nebel
d79aa294ec
Java: Move some neutrals into the model.yml file (they have previosly been ignored due to wrong file extension).
2024-08-27 13:28:09 +02:00
Michael Nebel
db51604f46
Java: Promote some generated models and add some manual neutrals.
2024-08-27 13:28:05 +02:00
Michael Nebel
6cb5e13a23
Java: Re-factor tests and update expected test output.
2024-08-27 13:28:00 +02:00
Michael Nebel
68880b2056
Java: Update expected test output. Generated models are no longer applied as there exist a source implementation.
2024-08-27 13:27:55 +02:00
Michael Nebel
fe6693739a
Java: Make more finegrained dataflow dispatch viable callable heuristic.
2024-08-27 13:27:52 +02:00
Cornelius Riemenschneider
1c3b9f7031
Delete legacy test utils.
2024-08-27 13:14:24 +02:00
Cornelius Riemenschneider
c69df1a6e3
Port java integration tests to pytest.
...
Some notes:
* These tests rely on a variety of fixtures
* The previous maven-wrapper checks were checking for the version of maven installed by looking at the checked-in wrapper script. I dropped this behavior.
* I replaced a lot of test queries that queried for a (subset of) source archive files with the source_archive fixture. In particular, tests that excluded properties files from being listed in the expected output now include them.
It's much faster to generate this list via the fixture instead of using CodeQL for it.
2024-08-27 13:14:23 +02:00
Cornelius Riemenschneider
5fa30c33b8
Remove legacy java files.
2024-08-27 13:14:21 +02:00
Cornelius Riemenschneider
19606b1903
Add *.actual to the gitignore file.
...
This is also used by the integration tests.
2024-08-27 13:14:20 +02:00
Ian Lynagh
3a864d3de2
Merge pull request #17292 from igfoo/igfoo/open
...
Kotlin: Remove a redundant 'open'
2024-08-27 12:14:04 +01:00
Ian Lynagh
085bf2f662
Merge pull request #17293 from igfoo/igfoo/dtw
...
Kotlin: Restrict some TrapWriter types to DiagnosticTrapWriter
2024-08-27 12:13:59 +01:00
Cornelius Riemenschneider
123507e2dc
No need to disable the layering check anymore, this was fixed upstream.
2024-08-27 13:00:56 +02:00
Cornelius Riemenschneider
62219fae60
Bazel: switch to a 7.4.0 prerelease.
2024-08-27 12:27:53 +02:00
Henry Mercer
e0013eec1b
Merge pull request #17294 from github/codeql-cli-2.18.3
...
Merge `codeql-cli-2.18.3` back into `rc/3.15`
2024-08-27 10:46:05 +01:00
Michael Nebel
287857c5db
Merge pull request #17301 from michaelnebel/shared/contentflowbadjoin
...
Shared: Fix bad join in content flow.
2024-08-27 10:17:04 +02:00
Paolo Tranquilli
b79be718e1
Merge pull request #17306 from github/redsun82/bazel-lfs
...
Bazel: fix logging bug in `git_lfs_probe.py`
2024-08-27 09:42:39 +02:00
Anders Schack-Mulligen
b3fa4f3d9e
Merge pull request #17289 from aschackmull/dataflow/summaryctx
...
Dataflow: Simplify using a SummaryCtx type.
2024-08-27 09:32:43 +02:00
Paolo Tranquilli
0738e01e7e
Bazel: fix logging bug in git_lfs_probe.py
...
The case of an `HTTPError` was printed to stdout (and therefore globbed
by bazel).
While I'm at it, I also introduced a timeout to `urlopen` and improved
the `no endpoints found` error message.
2024-08-27 09:12:37 +02:00
Andrew Eisenberg
d19102c399
Separate into two groups
2024-08-26 14:38:32 -07:00
Michael Nebel
e81fdc951a
Merge pull request #17246 from michaelnebel/modelgendebug
...
C#/Java: Add some model generator summary debugging queries.
2024-08-26 16:13:03 +02:00
Michael Nebel
77bfe39ca7
Shared: Address review comments.
2024-08-26 15:24:56 +02:00
Michael Nebel
4381bae5d1
Shared: Fix bad join.
2024-08-26 15:24:54 +02:00
Anders Schack-Mulligen
d8c8bcd386
Dataflow: Tweak qldoc.
2024-08-26 15:12:37 +02:00
Anders Schack-Mulligen
cbb58d0041
Dataflow: Add a getLocation rootdef.
2024-08-26 15:05:30 +02:00
Michael Nebel
34d83a6b0d
C#/Java: Address review comments.
2024-08-26 15:02:27 +02:00
Simon Friis Vindum
d9dbcdba34
C++: Fix imports
2024-08-26 12:42:44 +02:00
Asger F
4e3440aad0
Merge pull request #17275 from asgerf/cpp/taint-test-case-false-negative
...
C++: Reveal false negative in test case
2024-08-26 12:36:03 +02:00
Asger F
16c2cf24b3
C++: use inline annotation for missing flow
2024-08-26 11:53:31 +02:00
Asger F
592e2eafb6
Merge pull request #17262 from asgerf/shared/implicit-read
...
Shared: restrict flow after using implicit read
2024-08-26 11:48:50 +02:00
Tom Hvitved
e5d626f907
Data flow: Only recompute local big step in stage 6
2024-08-26 09:58:29 +02:00
Simon Friis Vindum
128053e214
C++: Add basic modeling of functions that don't throw
2024-08-26 09:37:44 +02:00
Tom Hvitved
c92c96fa78
Data flow: Compute local big step relation per stage
2024-08-26 09:15:27 +02:00
Chris Smowton
92910f961a
Merge pull request #17296 from smowton/smowton/admin/revert-mad-sink-conversion
...
Go: Revert problematic conversion from QL-specified sink nodes to models-as-data; add change note for one correct but undocumented fix
2024-08-25 15:10:49 +01:00
Chris Smowton
7cb67a50be
Add change note for ioutil fix
2024-08-24 17:49:26 +01:00
Chris Smowton
a832730a11
Revert "Convert squirrel sql-injection sinks to MaD (non-existent methods removed)"
...
This reverts commit 06f86dd22f .
2024-08-24 17:44:40 +01:00
Chris Smowton
ab88b9b136
Revert "Upgrade and convert gorqlite sql-injection sinks to MaD"
...
This reverts commit ce0cb12c29 .
2024-08-24 17:43:15 +01:00
Chris Smowton
8fc3b00fb9
Revert "Convert gogf/gf sql-injection sinks to MaD"
...
This reverts commit db559f75b6 .
2024-08-24 17:43:12 +01:00
Chris Smowton
e7f788ae35
Revert "Convert sqlx sql-injection sinks to MaD"
...
This reverts commit 7ad63fc3e6 .
2024-08-24 17:43:09 +01:00
Chris Smowton
4e6d7fcb29
Revert "Convert Gorm sql-injection sinks to MaD"
...
This reverts commit ba310417a8 .
2024-08-24 17:43:06 +01:00
Chris Smowton
d8a2c08f12
Revert "Convert Xorm sql-injection sinks to MaD"
...
This reverts commit 3b2b7d7d1c .
2024-08-24 17:43:03 +01:00
Chris Smowton
59bb142e8b
Revert "Convert Bun sql-injection sinks to MaD"
...
This reverts commit 3eb5b2669b .
2024-08-24 17:43:00 +01:00
Chris Smowton
ec59492866
Revert "Convert Beego orm sql-injection sinks to MaD"
...
This reverts commit ad213579a1 .
2024-08-24 17:42:57 +01:00
Chris Smowton
fa07f16bcc
Revert "Convert database/sql sql-injection sinks to MaD"
...
This reverts commit 501bb3eb56 .
2024-08-24 17:42:55 +01:00
Chris Smowton
b3326babba
Revert "Convert database/sql/driver sql-injection sinks to MaD"
...
This reverts commit 652dd88c36 .
2024-08-24 17:42:52 +01:00
Chris Smowton
c33568b602
Revert "Convert mongodb nosql-injection sinks to MaD"
...
This reverts commit ec9d88b364 .
2024-08-24 17:42:49 +01:00
Chris Smowton
437df5c2a5
Revert "Convert gocb nosql-injection sinks to MaD"
...
This reverts commit 2d2afb17ad .
2024-08-24 17:42:45 +01:00
Chris Smowton
a6e3b913d0
Revert "Convert logging sinks to use MaD"
...
This reverts commit fa472f5e18 .
2024-08-24 17:39:24 +01:00
Chris Smowton
686f47af98
Revert "Fix typo in package path"
...
This reverts commit 6f5a045437 .
2024-08-24 17:34:34 +01:00
Paolo Tranquilli
c4c8c9ddc1
Merge pull request #17291 from github/criemen/ripunzip
...
Make ripunzip installer accessible from outside this repo.
2024-08-23 20:14:44 +02:00
Cornelius Riemenschneider
3ac8108c4a
Address review.
2024-08-23 17:26:05 +02:00
Ian Lynagh
6a7d8b5301
Kotlin: Restrict some TrapWriter types to DiagnosticTrapWriter
...
We never use the greater generality, so this makes it easier to see
what's happening.
2024-08-23 15:41:21 +01:00
Ian Lynagh
7d500cf58c
Kotlin: Remove a redundant 'open'
2024-08-23 15:08:10 +01:00
Tom Hvitved
b6f1024114
Merge pull request #17290 from hvitved/csharp/revert-hotfix
...
Revert "C#: Add support for flow through side-effects on static fields"
2024-08-23 15:00:00 +02:00
Tamás Vajk
d710c1e89d
Merge pull request #17287 from tamasvajk/message-count-telemetry
...
C#: Add aggregated compiler and extractor message counts to extractio…
2024-08-23 14:41:27 +02:00
Cornelius Riemenschneider
d84e745ce9
Make ripunzip installer accessible from outside this repo.
...
* The relative path to misc doesn't work when running from another repo
* The buildifier dependency is not available from other repos,
therefore we can't pull in //misc/bazel without further refactoring.
Therefore, inline the runfiles snippet here.
2024-08-23 14:24:51 +02:00
Anders Schack-Mulligen
65189e09f5
Dataflow: Simplify using a SummaryCtx type.
2024-08-23 14:18:46 +02:00
Tom Hvitved
ea6092ad3f
Revert "C#: Add support for flow through side-effects on static fields"
...
This reverts commit 1bcac50db1 .
2024-08-23 14:10:56 +02:00
Asger F
8df7fbf6d6
Swift: update test output
...
The 'first' field is seen as a TaintInheritingContent, which means any read step for 'first' becomes a taint step too.
This type of taint step does not permit an implicit read before it, because it wasn't contributed by a configuration.
So there is no way for the taint to get out of the collection content before the taint step through '.first'.
The test previously passed because an implicit read at once of the earlier sinks could follow use-use flow down to the receiver of .first,
allowing it to escape the collection content.
2024-08-23 11:30:50 +02:00
Asger F
d27b28d371
C++: update test output
...
This reveals that some tests were passing for the wrong reasons.
See https://github.com/github/codeql/pull/17275
2024-08-23 11:29:24 +02:00
Asger F
9703f67794
Test output updates that only affect nodes/edges
2024-08-23 11:03:26 +02:00
Asger F
6bc8407bd6
Java: Update test output
2024-08-23 11:02:29 +02:00
Asger F
c3b36325b2
Shared: prevent use-use flow through implicit reads (part 1)
2024-08-23 11:02:28 +02:00
Michael Nebel
20d9fd11ac
Merge pull request #17288 from michaelnebel/shared/contentflow
...
Shared: ContentFlow.
2024-08-23 09:52:27 +02:00
Michael Nebel
19c2eb17c4
C#: Remove redundant imports.
2024-08-23 09:04:13 +02:00
Andrew Eisenberg
c1c9ef2c1f
Add a pull request template
2024-08-22 12:36:24 -07:00
Chris Smowton
67d94376e8
Merge pull request #17227 from smowton/smowton/fix/baseline-vs-nonroot-vendor-dirs
...
Go / configure-baseline: account for multiple vendor directories and the `CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS` setting
2024-08-22 15:00:51 +01:00
Michael Nebel
d935c47231
C#: Use the shared content flow implementation.
2024-08-22 15:46:01 +02:00
Michael Nebel
e6424f0f45
Shared: Make ContentDataFlow reusable.
2024-08-22 15:45:58 +02:00
Owen Mansel-Chan
18b99ffecc
Merge pull request #17284 from owen-mc/go/fix-frameworks-coverage
...
Go: Try to fix packages in frameworks coverage
2024-08-22 14:43:52 +01:00
Tamas Vajk
6827bedaa7
C#: Add aggregated compiler and extractor message counts to extraction telemetry query
2024-08-22 15:14:33 +02:00
Tamás Vajk
3dce56b0b1
Merge pull request #17276 from tamasvajk/impr/change-partial-method-location
...
C#: Change reporting location of partial methods
2024-08-22 15:10:21 +02:00
Michael Nebel
4cd34531c6
Shared: Add a copy of the existing C# Content Dataflow implementation.
2024-08-22 15:07:45 +02:00
Felicity Chapman
28c333a327
Merge pull request #17272 from github/redirect-dataflow-cpp
...
Add basic redirect for renamed article on dataflow analysis for C/C++
2024-08-22 12:24:36 +01:00
Owen Mansel-Chan
2edadbf423
Try to fix packages in frameworks coverage
2024-08-22 11:44:34 +01:00
Asger F
a1688f6a1a
Merge pull request #17240 from knewbury01/knewbury01/fix-helmetrequiredsetting-model
...
Update JS helmet model structure
2024-08-22 11:59:28 +02:00
Asger F
81239dcd95
Java: add test case
2024-08-22 11:26:05 +02:00
Michael Nebel
bd69b96752
Merge pull request #17273 from michaelnebel/csharp/sqlinject
...
C#: ASP.NET Controller is allowed to be abstract.
2024-08-22 11:18:48 +02:00
Asger F
43f54db4db
Merge pull request #17274 from asgerf/java/implicit-pending-intents-implicit-read
...
Java: Reveal false negative in test
2024-08-22 11:00:07 +02:00
Tom Hvitved
d41d7c8246
Merge pull request #17207 from hvitved/csharp/content-set
...
C#: Implement `ContentSet`
2024-08-22 10:55:11 +02:00
Tom Hvitved
a213982b48
Merge pull request #17222 from hvitved/ruby/hash-splat-param-arg-matching
...
Ruby: Rework (hash) splat argument/parameter matching
2024-08-22 10:54:52 +02:00
Asger F
09aca6b47e
Merge pull request #17212 from mbaluda/main
...
Add support for importing NPM modules in XSJS sources
2024-08-22 10:54:33 +02:00
Anders Schack-Mulligen
d97a301fef
Merge pull request #17105 from aschackmull/dataflow/stage6
...
Dataflow: Refactor stage 6 to use shared stage code.
2024-08-22 09:46:49 +02:00
Tom Hvitved
e94fabcc19
Address review comment
2024-08-22 08:27:15 +02:00
Henry Mercer
55d325148d
Merge pull request #17280 from github/post-release-prep/codeql-cli-2.18.3
...
Post-release preparation for codeql-cli-2.18.3
2024-08-21 21:34:50 +01:00
github-actions[bot]
0724fd7ce2
Post-release preparation for codeql-cli-2.18.3
2024-08-21 18:25:54 +00:00
Henry Mercer
ecb1428198
Merge pull request #17279 from github/release-prep/2.18.3
...
Release preparation for version 2.18.3
2024-08-21 18:31:17 +01:00
Henry Mercer
c4d37ebec7
C#: Add spaces around em dash in changelog note
2024-08-21 18:17:51 +01:00
github-actions[bot]
17cd9624fb
Release preparation for version 2.18.3
2024-08-21 17:13:52 +00:00
Tom Hvitved
cb1b1da422
Ruby: Add another array flow test
2024-08-21 19:06:53 +02:00
Tom Hvitved
b0003c0453
Ruby: Remove two redundant checks
2024-08-21 19:06:29 +02:00
Edward Minnix III
2f3ebfb81f
Merge pull request #17205 from egregius313/egregius313/go/dataflow/models/environment
...
Go: Add models for environment variables
2024-08-21 12:27:33 -04:00
Tamas Vajk
f7bf5e89be
Add change note
2024-08-21 15:58:05 +02:00
Ed Minnix
c2fa721966
Fix stub
2024-08-21 09:56:42 -04:00
Ed Minnix
6fdff977e5
Fix test cases
2024-08-21 09:47:46 -04:00
Edward Minnix III
2aa3e1f7a2
Alphabetize models
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-08-21 09:44:20 -04:00
Edward Minnix III
210ea5be79
Add model from older versions of caarlos0/env
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-08-21 09:43:58 -04:00
Edward Minnix III
7ae52425ce
Update package list in change note
2024-08-21 09:43:24 -04:00
Edward Minnix III
318a376a78
Remove ProcAttr models
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-08-21 09:43:04 -04:00
Owen Mansel-Chan
113ab755d9
Give clearer example of multiple query predicates in one ql file
...
The new names aren't great, so feel free to change them, but I think we do need an explicit example of updating two relations using one ql file.
2024-08-21 14:18:11 +01:00
Chris Smowton
15989ce213
Merge pull request #14089 from am0o0/amammad-java-JWT
...
Java: JWT decoding without verification
2024-08-21 14:14:08 +01:00
Tamas Vajk
7c4733e88f
C#: Change reporting location of partial methods
2024-08-21 15:13:14 +02:00
Michael Nebel
7049499e95
C#: Add change-note.
2024-08-21 14:38:55 +02:00
Asger F
3aa32e4aff
Java: use MISSING inline annotation
2024-08-21 13:40:40 +02:00
Asger F
f7ea8a1563
Java: trivial result set re-order
2024-08-21 13:37:38 +02:00
Asger F
5751fc2d3a
Java: Reveal false negative in test
...
One of the sinks was flagged for the wrong reason in the test case.
The flow into the 'startActivities' sink isn't working properly, but this was not revealed by the test since an alternate, spurious path exists. The spurious path goes through the implicit read at the prior sink and takes a use-use step to the 'startActivities' sink. Swapping the order of the two sinks reveals the false negative.
2024-08-21 13:36:47 +02:00
Felicity Chapman
771992ca9f
Add missing attributes
2024-08-21 12:18:12 +01:00
Michael Nebel
45d4d5138a
C#: Update expected test output.
2024-08-21 13:14:12 +02:00
Michael Nebel
79718f1cd6
C#: Remove requirement that a controller is not allowed to be abstract.
2024-08-21 13:00:15 +02:00
Michael Nebel
75772c5832
C#: Add abstract controller remote flow source example.
2024-08-21 13:00:10 +02:00
Michael Nebel
5d14307ea2
C#: Add a SQL injection test case for ASP.NET.
2024-08-21 12:14:30 +02:00
Owen Mansel-Chan
a1a6fe45f1
Merge pull request #17245 from owen-mc/go/update-frameworks
...
Go: Update frameworks.csv
2024-08-21 10:52:21 +01:00
Felicity Chapman
88cd77e459
Define redirect for renamed article
2024-08-21 10:49:38 +01:00
Tamás Vajk
b91ad04e6a
Merge pull request #17257 from tamasvajk/buildless/temp-locations
...
C#: Change random temp folder names to hash values
2024-08-21 11:39:40 +02:00
Tamás Vajk
b6255571d8
Merge pull request #17253 from tamasvajk/impr/add-retry-logic-to-file-download
...
C#: Add retry logic to file (nuget.exe, dotnet-install.sh) downloads
2024-08-21 11:39:14 +02:00
Chris Smowton
f13f19d5dc
Fix typo
2024-08-21 10:22:42 +01:00
Chris Smowton
2939cefc68
Use platform path separators for file testing, and forward-slashes for reporting to CodeQL
2024-08-21 10:15:44 +01:00
Chris Smowton
c99a84689b
Switch test expectations to use unix-style paths
2024-08-21 09:56:08 +01:00
Anders Schack-Mulligen
525b6f30e3
C++/C#/Java: Accept test changes.
2024-08-21 10:51:28 +02:00
Anders Schack-Mulligen
5fbdd83a23
Dataflow: Rename StagePathNode to PathNode.
2024-08-21 10:51:28 +02:00
Anders Schack-Mulligen
273c0bd121
Dataflow: Delete dead code.
2024-08-21 10:51:28 +02:00
Anders Schack-Mulligen
1787bcb05a
Dataflow: Replace PathNode with Stage implementation.
2024-08-21 10:51:24 +02:00
Anders Schack-Mulligen
74739bedfc
Dataflow: Add Stage 6 instantiation.
2024-08-21 10:44:46 +02:00
Anders Schack-Mulligen
831a66d812
Dataflow: Add getANonHiddenSuccessor to StagePathNodeImpl.
2024-08-21 10:44:45 +02:00
Anders Schack-Mulligen
e594e7283d
Dataflow: Check stateful in/out-barriers in each stage.
2024-08-21 10:44:45 +02:00
Anders Schack-Mulligen
c2b25c7f2b
Dataflow: Check clearsContent on store targets in StagePathGraph.
2024-08-21 10:44:44 +02:00
Anders Schack-Mulligen
b8d0b691da
Dataflow: Introduce sink projection and add successor as member predicate.
2024-08-21 10:44:44 +02:00
Anders Schack-Mulligen
bc1dd45d4f
Dataflow: Make private
2024-08-21 10:44:43 +02:00
Anders Schack-Mulligen
9429e5ccba
Dataflow: Update StagePathNode.toString.
2024-08-21 10:44:43 +02:00
Anders Schack-Mulligen
81a815c343
Dataflow: Add StagePathNode.getState.
2024-08-21 10:44:43 +02:00
Anders Schack-Mulligen
bdcc5e7b67
Dataflow: Refactor getLocation
2024-08-21 10:44:42 +02:00
Anders Schack-Mulligen
bc0ae4cd1e
Dataflow: Replace StagePathNode.getNode with getNodeEx.
2024-08-21 10:44:42 +02:00
Anders Schack-Mulligen
9bd3f3dee0
Dataflow: Rename StagePathNode to StagePathNodeImpl.
2024-08-21 10:44:41 +02:00
Simon Friis Vindum
68dfca49f5
Merge pull request #17269 from paldepind/fix-error-in-test
...
C++: Fix tests and add an actual true negative
2024-08-21 10:21:56 +02:00
Simon Friis Vindum
e4ce003e87
C++: Fix tests and add an actual true negative
2024-08-21 09:44:45 +02:00
Ed Minnix
0eddaa0664
syscall environment variables
2024-08-21 00:36:48 -04:00
Ed Minnix
9f00a0060d
gobuffalo/envy
2024-08-21 00:30:36 -04:00
Ed Minnix
cf3b3d75d0
Fix caarlos0 test
2024-08-21 00:29:17 -04:00
Ed Minnix
8a7e378b40
caarlos0/env
2024-08-21 00:06:10 -04:00
Ed Minnix
f0f535b0e4
Fix frontend errors
2024-08-21 00:06:06 -04:00
Ed Minnix
257436a49d
Convert test to inline expectation test
2024-08-21 00:06:02 -04:00
Edward Minnix III
47974914a5
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-08-21 00:05:53 -04:00
Ed Minnix
ed36aaa570
Fix some minor issues
2024-08-21 00:03:36 -04:00
Ed Minnix
69679dec1d
Add defer statement
2024-08-21 00:03:32 -04:00
Ed Minnix
69f02293f5
Add change note
2024-08-21 00:03:29 -04:00
Ed Minnix
65a6fa7bc3
Go Environment variable (parsing) models and tests
2024-08-21 00:03:18 -04:00
Edward Minnix III
6103749188
Merge pull request #16710 from egregius313/egregius313/go/dataflow/file-sources
...
Go: Add `file` sources
2024-08-20 23:45:17 -04:00
Owen Mansel-Chan
f0fe3a3388
Merge pull request #17260 from owen-mc/go/mad/convert-sink-5
...
Go: Allow MaD models for XSS sinks using "html-injection" or "js-injection"
2024-08-20 22:40:44 +01:00
Ed Minnix
b14c58445a
Fix formatting
2024-08-20 16:47:19 -04:00
am0o0
b001c24dfc
update tests to pass the github actions
2024-08-20 20:57:11 +02:00
Ed Minnix
06f73e76b8
Add additional test cases
2024-08-20 12:44:23 -04:00
Edward Minnix III
e066c52ac6
Update change note
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-08-20 12:33:38 -04:00
Chris Smowton
fc301206d1
Change note
2024-08-20 17:11:58 +01:00
Chris Smowton
3acab640b2
Add configure-baseline integration test
2024-08-20 17:07:09 +01:00
Chris Smowton
15b5bcc67c
Output to stdout, not stderr
2024-08-20 17:01:54 +01:00
Chris Smowton
8b9617cd38
Update bazel build files
2024-08-20 15:56:28 +01:00
Chris Smowton
ea3e5c8a99
Clarify comment
2024-08-20 15:56:27 +01:00
Chris Smowton
f1f6f9b580
Share vendor-dir extraction logic between extractor and configure-baseline script
2024-08-20 15:56:26 +01:00
Chris Smowton
22802fd41f
Improve struct naming
2024-08-20 15:56:25 +01:00
Chris Smowton
5d34dbf2c2
Remove unnecessary batch script flag
2024-08-20 15:56:24 +01:00
Chris Smowton
624d2b83c0
Tidy comments
2024-08-20 15:56:23 +01:00
Chris Smowton
21366dd502
Go / configure-baseline: account for multiple vendor directories and the CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS setting
...
Our existing configure-baseline scripts would give the wrong result if a `vendor` directory wasn't at the root of the repository, or if the `CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS` variable was set to `true` indicating the user wants their vendored code scanned.
Here I replace the shell scripts that implemented the very simplest behaviour with a small Go program.
2024-08-20 15:56:22 +01:00
Tamas Vajk
73674e72e6
Use cancallation token in download stream copying
2024-08-20 16:51:32 +02:00
Tamas Vajk
658326d7f2
Work around some instability on Windows
2024-08-20 16:42:49 +02:00
Felicity Chapman
8b4e060934
Merge pull request #17199 from github/8456-remove-old-references
...
Remove references to a deprecated data flow library for C/C++
2024-08-20 15:42:13 +01:00
Michael Nebel
6ea01b81bb
C#: Add some summary debugging queries.
2024-08-20 16:28:18 +02:00
Michael Nebel
fd311d5143
Java: Add some summary debugging queries.
2024-08-20 16:28:15 +02:00
Tom Hvitved
d15e1b5598
Ruby: Prevent synthetic splat matching for actual splats at same positions
2024-08-20 16:21:59 +02:00
Tom Hvitved
c4b0f81883
Ruby: Prevent positional matching when preceded by a splat
2024-08-20 16:21:58 +02:00
Tom Hvitved
20dc242830
Ruby: Rework hash splat argument/parameter matching
2024-08-20 16:21:57 +02:00
Tom Hvitved
6d4f3bd014
Ruby: Rework splat argument/parameter matching
2024-08-20 16:21:56 +02:00
Owen Mansel-Chan
30f8d6e4ff
Allow MaD models for XSS sinks using "html-injection" or "js-injection"
2024-08-20 14:04:23 +01:00
Anders Schack-Mulligen
993bfee096
Merge pull request #17259 from aschackmull/dataflow/remove-srcsink-grouping
...
Dataflow: Remove src/sink grouping feature
2024-08-20 14:42:33 +02:00
Tamas Vajk
07a5c20309
Fix/add doc comments
2024-08-20 14:35:31 +02:00
Tamas Vajk
a0dc20caef
Fix hashed value on Windows
2024-08-20 14:33:33 +02:00
Chris Smowton
f0327732ef
Merge pull request #17247 from smowton/smowton/admin/add-spring-component-scan-test
...
Java: add a test exercising Spring component liveness detection
2024-08-20 12:56:26 +01:00
Tamas Vajk
0037ad406d
C#: Adjust buildless source generator folders
2024-08-20 13:43:10 +02:00
Cornelius Riemenschneider
ff242dc6cf
Merge pull request #17252 from github/criemen/pytest-java
...
kotlin: Move integration tests to pytest
2024-08-20 13:17:22 +02:00
Owen Mansel-Chan
38f4f4c724
Merge pull request #17242 from owen-mc/go/mad/convert-sink-4
...
Go: convert sql-injection and nosql-injection sinks to use models-as-data
2024-08-20 12:01:40 +01:00
Tamas Vajk
79bd81fa12
C#: Adjust buildless package restore folders and tests
2024-08-20 12:12:23 +02:00
Cornelius Riemenschneider
932c07a0f4
Address review.
2024-08-20 11:46:28 +02:00
Anders Schack-Mulligen
e73fc94354
Dataflow: Add change note.
2024-08-20 10:12:01 +02:00
Anders Schack-Mulligen
8470e91c16
Legacy Dataflow: Sync.
2024-08-20 10:07:57 +02:00
Anders Schack-Mulligen
4afdb0927e
Dataflow: Remove src/sink grouping feature.
2024-08-20 10:07:36 +02:00
Ed Minnix
0361b5c342
Fix AllocationSizeOverflow expectations
2024-08-19 22:31:29 -04:00
Ed Minnix
bb1cf4f51f
Fix tests
2024-08-19 20:14:23 -04:00
Ed Minnix
e3ffbbe3b7
Fix extensible name in io/fs models
2024-08-19 19:02:07 -04:00
Ed Minnix
442026cc9d
Fix test results
2024-08-19 17:23:32 -04:00
Ed Minnix
2629e09b67
Add io/ioutil and io/fs models
2024-08-19 17:22:46 -04:00
Ed Minnix
a308bdb75d
Modify UnhandledCloseWritableHandle to use post processing
2024-08-19 12:59:34 -04:00
Geoffrey White
4c5c6c6968
Merge pull request #17148 from geoffw0/hardkey
...
Swift: Additional test cases for swift/hardcoded-key
2024-08-19 17:45:34 +01:00
Ed Minnix
5e8185ac4f
Port test to inline expectations test
2024-08-19 12:44:30 -04:00
Ed Minnix
704cd8aee3
Update change note
2024-08-19 12:28:55 -04:00
Edward Minnix III
fc38476e42
Fix models
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-08-19 12:25:55 -04:00
Ed Minnix
f89174a6f3
CI changes (provenance)
2024-08-19 12:25:52 -04:00
Ed Minnix
0f7ad98a23
Change note
2024-08-19 12:25:48 -04:00
Ed Minnix
eb8c785c6b
Fix formatting
2024-08-19 12:25:43 -04:00
Ed Minnix
3f640a99d3
Tests for file models
2024-08-19 12:25:37 -04:00
Ed Minnix
383e27c2bd
Add file sources
2024-08-19 12:25:27 -04:00
Chris Smowton
80e03c3c51
Improve ql/doc style
2024-08-19 16:25:06 +01:00
Chris Smowton
27522a2781
Remove redundant imports
2024-08-19 16:23:06 +01:00
Tamas Vajk
9d7314febb
C#: Change random temp folder names to hash values
2024-08-19 15:56:56 +02:00
Cornelius Riemenschneider
35ff4d69b7
Merge branch 'main' into impr/add-retry-logic-to-file-download
2024-08-19 12:46:29 +02:00
Tamas Vajk
8b6c293b5c
C#: Add retry logic to file (nuget.exe, dotnet-install.sh) downloads
2024-08-19 12:19:51 +02:00
Cornelius Riemenschneider
33f87c0c46
Port linux/kotlin tests to pytest.
2024-08-19 11:33:25 +02:00
Cornelius Riemenschneider
ccd90f25ba
Port posix/kotlin tests to pytest.
2024-08-19 11:33:24 +02:00
Cornelius Riemenschneider
c2aff1ea97
Port all-platforms/kotlin tests to pytest.
2024-08-19 11:33:23 +02:00
Asger F
3be219c79d
Merge pull request #17243 from asgerf/js/post-message-source-client-side
...
JS: Classify post-message events as client side taint sources
2024-08-19 11:09:26 +02:00
Cornelius Riemenschneider
ed7f3305d9
Move legacy marker only to java tests.
2024-08-19 10:47:15 +02:00
Felicity Chapman
dc0832c3d8
Update docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp.rst
2024-08-19 09:42:04 +01:00
Geoffrey White
a25d9c7397
Merge pull request #17220 from paldepind/reuse-unbounded-in-tainted-allocation-size
...
C++: Reuse bounded predicate in TaintedAllocationSize query
2024-08-19 09:37:55 +01:00
Cornelius Riemenschneider
2933a3be9c
Merge pull request #17088 from github/criemen/modext-isolation
...
`crate_universe`: Enable modext isolation.
2024-08-19 10:22:55 +02:00
Cornelius Riemenschneider
675e920667
Fix formatting.
2024-08-19 09:00:08 +02:00
Cornelius Riemenschneider
1faad979ad
Address review.
2024-08-19 08:54:56 +02:00
Michael Nebel
ec9f533325
Merge pull request #17248 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-08-19 08:26:47 +02:00
Simon Friis Vindum
1665badc83
C++: Add change note for cpp/uncontrolled-allocation-size
2024-08-19 08:23:40 +02:00
Simon Friis Vindum
1959e1929e
C++: Reuse bounded predicate in TaintedAllocationSize query
2024-08-19 08:23:32 +02:00
github-actions[bot]
9279bebf07
Add changed framework coverage reports
2024-08-19 00:19:04 +00:00
Cornelius Riemenschneider
f9bc97b2a1
crate_universe: Enable modext isolation.
...
This should allow us to build our python and ruby
code independently - in particular, we can now do shallow
checkouts of one without the other.
Previously, the modext introduced cross-dependency.
This also reduces the amount of work we do in the
crate universe processing for the other language, even
though it's unused.
This does need renaming the module, as otherwise
the generated paths from rules_rust get too long
for Windows :(
2024-08-18 21:00:30 +02:00
Geoffrey White
b001f47c17
Merge pull request #17211 from paldepind/uncontrolled-allocation-size-docs
...
C++: Update documentation for cpp/uncontrolled-allocation-size to clarify its scope
2024-08-16 16:36:22 +01:00
Chris Smowton
9c0bdbb20a
Java: add a test exercising Spring component liveness detection
...
The existing Spring stubs are expanded sufficiently to support the needed annotations and a few referenced classes and exceptions.
2024-08-16 16:36:08 +01:00
Geoffrey White
e3b9b0a9bd
Merge pull request #17210 from geoffw0/mailto
...
Swift: Fix false positives in the swift/cleartext-transmission query
2024-08-16 16:23:09 +01:00
am0o0
f4764378c9
update tests to contain the new source, delete query with local sources
2024-08-16 16:15:46 +02:00
Simon Friis Vindum
5504799d44
Merge branch 'main' into uncontrolled-allocation-size-docs
2024-08-16 16:15:14 +02:00
am0o0
d88b310b0e
add getCredentials method of AuthenticationToken as a remote source
2024-08-16 15:41:19 +02:00
Anders Schack-Mulligen
3a9610795b
Merge pull request #16808 from JLLeitschuh/patch-8
...
Align Java CommandInjectionRuntimeExec.ql Severity
2024-08-16 15:14:48 +02:00
Asger F
7a7ab457a9
JS: Delete unneeded test code (and shift line numbers)
2024-08-16 14:38:54 +02:00
Asger F
9ee7599aeb
JS: Move AngularJSTemplateUrlSink to ClientSideUrlRedirection query
...
This is not perfect but at least we can be consistent about keeping URLs-that-lead-to-xss in the same query
2024-08-16 14:37:13 +02:00
Geoffrey White
0088ece3ea
Revert "Swift: Fix two of the qhelps by slightly modifying the sample code instead."
...
This reverts commit 2d19d6f61e .
2024-08-16 13:24:03 +01:00
Asger F
699d3a0a0a
JS: Update a RegExp injection test
...
RegExpInjection does not use client-side sources, but one of its tests was using postMessage events
as the taint source. Updating the test to use a different taint source.
2024-08-16 14:20:34 +02:00
Geoffrey White
2d19d6f61e
Swift: Fix two of the qhelps by slightly modifying the sample code instead.
2024-08-16 12:57:32 +01:00
Simon Friis Vindum
07800ea7ef
Merge branch 'main' into uncontrolled-allocation-size-docs
2024-08-16 13:10:08 +02:00
Simon Friis Vindum
5548304432
C++: Grammar improvements to query help text
2024-08-16 13:08:34 +02:00
Owen Mansel-Chan
2d2afb17ad
Convert gocb nosql-injection sinks to MaD
2024-08-16 11:19:15 +01:00
Owen Mansel-Chan
ec9d88b364
Convert mongodb nosql-injection sinks to MaD
2024-08-16 11:19:13 +01:00
Owen Mansel-Chan
86e9f15929
Accept MaD sinks with kind nosql-injection
2024-08-16 11:19:12 +01:00
Owen Mansel-Chan
ced000ae46
Add Argument.getACorrespondingSyntacticArgument
2024-08-16 11:19:09 +01:00
Owen Mansel-Chan
652dd88c36
Convert database/sql/driver sql-injection sinks to MaD
2024-08-16 11:19:06 +01:00
Owen Mansel-Chan
c7859ecebf
Improve SQL tests
...
Separate the tests for Squirrel and database/sql. Add tests for
database/sql/driver.
2024-08-16 11:19:04 +01:00
Owen Mansel-Chan
501bb3eb56
Convert database/sql sql-injection sinks to MaD
2024-08-16 11:19:03 +01:00
Owen Mansel-Chan
ad213579a1
Convert Beego orm sql-injection sinks to MaD
2024-08-16 11:19:01 +01:00
Owen Mansel-Chan
e1bdc7f5a7
Update Beego orm tests
2024-08-16 11:19:00 +01:00
Owen Mansel-Chan
3eb5b2669b
Convert Bun sql-injection sinks to MaD
2024-08-16 11:18:58 +01:00
Owen Mansel-Chan
3b2b7d7d1c
Convert Xorm sql-injection sinks to MaD
2024-08-16 11:18:57 +01:00
Owen Mansel-Chan
ba310417a8
Convert Gorm sql-injection sinks to MaD
2024-08-16 11:18:55 +01:00
Owen Mansel-Chan
7ad63fc3e6
Convert sqlx sql-injection sinks to MaD
2024-08-16 11:18:54 +01:00
Owen Mansel-Chan
db559f75b6
Convert gogf/gf sql-injection sinks to MaD
2024-08-16 11:18:52 +01:00
Owen Mansel-Chan
ce0cb12c29
Upgrade and convert gorqlite sql-injection sinks to MaD
2024-08-16 11:18:51 +01:00
Owen Mansel-Chan
06f86dd22f
Convert squirrel sql-injection sinks to MaD (non-existent methods removed)
...
Various non-existent methods were modeled, and I couldn't find any
evidence that they used to exist. They aren't in the stubs or tests. I
have removed them.
2024-08-16 11:18:49 +01:00
Owen Mansel-Chan
0acb29d3dd
Update frameworks.csv
2024-08-16 11:15:13 +01:00
Chris Smowton
f7d8c210e5
Merge pull request #17239 from smowton/smowton/admin/camel-test
...
Java: add test for Apache Camel dead-code analysis
2024-08-16 11:00:30 +01:00
Geoffrey White
0126fbcb8f
Swift: Clear the language for Swift code snippets that are rendering incorrectly.
2024-08-16 10:56:46 +01:00
Rasmus Wriedt Larsen
d6af999c2d
Merge pull request #17234 from github/felicitymay-patch-1
...
Update CookieInjection.ql to remove period from @name
2024-08-16 11:26:16 +02:00
Asger F
467256d465
JS: Add change note
2024-08-16 11:06:59 +02:00
Asger F
2d264052b3
JS: Treat browser message events as client-side sources
2024-08-16 11:02:12 +02:00
Rasmus Wriedt Larsen
25fc5f3803
Merge pull request #17209 from RasmusWL/threat-models-stdin
...
ThreatModels: Add `stdin` kind
2024-08-16 11:01:33 +02:00
Paolo Tranquilli
0e3c867cb9
Toy rust program listing definitions of a cargo project
2024-08-16 10:37:49 +02:00
Rasmus Wriedt Larsen
c3d8efc43d
Merge branch 'main' into stdin3
2024-08-16 09:54:45 +02:00
Asger F
7dcdad066f
Update javascript/ql/lib/semmle/javascript/frameworks/helmet/Helmet.qll
2024-08-16 09:44:53 +02:00
Anders Schack-Mulligen
ae013ba01a
Merge pull request #17235 from aschackmull/dataflow/fix-missing-subpaths
...
Dataflow: Fix missing subpaths due to type strengthening.
2024-08-16 08:41:35 +02:00
Anders Schack-Mulligen
51c43a7440
Java: Accept expected changes.
2024-08-16 07:01:35 +02:00
Kristen Newbury
81787a159e
Add QL docs to helmet model
2024-08-15 16:32:37 -04:00
Kristen Newbury
e84dda4fa6
Update JS helmet model structure
2024-08-15 16:08:48 -04:00
Anders Schack-Mulligen
86708c9ff8
Dataflow: Fix missing subpaths due to type strengthening.
2024-08-15 18:57:10 +02:00
Chris Smowton
0b56bf98f3
Java: add test for Apache Camel dead-code analysis
...
This exercises code that detects Camel entry-points and marks them as live.
2024-08-15 17:26:38 +01:00
Tom Hvitved
fb7b89f309
Merge pull request #17237 from aschackmull/java/fix-merge-conflict
...
Java: Fix expected files following semantic merge conflict.
2024-08-15 17:25:03 +02:00
Rasmus Wriedt Larsen
7a446231b6
C#: Accept benign test changes
2024-08-15 16:20:00 +02:00
Anders Schack-Mulligen
e77c3dfda1
Java: Fix expected files following https://github.com/github/codeql/pull/17233 and https://github.com/github/codeql/pull/17224 .
2024-08-15 15:45:37 +02:00
Rasmus Wriedt Larsen
78770bcd1b
Docs: Mention new stdin threat-model
2024-08-15 15:45:21 +02:00
Rasmus Wriedt Larsen
1e7eae58f4
Java: Add change-note
2024-08-15 15:45:20 +02:00
Rasmus Wriedt Larsen
ebafe65ac2
C#: Fixup test expectations from using stdin
2024-08-15 15:45:20 +02:00
Rasmus Wriedt Larsen
43b61dd2aa
C#: Support stdin in LocalFlowSource
2024-08-15 15:45:20 +02:00
Rasmus Wriedt Larsen
fee38b3781
Java: Fixup test
2024-08-15 15:37:35 +02:00
Rasmus Wriedt Larsen
1e12c11adc
Java: Model System.in as stdin threat-model
2024-08-15 15:37:35 +02:00
Rasmus Wriedt Larsen
7395223410
C#: Model System.Console reads as stdin threat-model
2024-08-15 15:36:28 +02:00
Rasmus Wriedt Larsen
157d0b7f37
ThreatModels: Add stdin kind
...
None of the current local subgroups precisely captures stdin, so
although it's much like both commandargs and file, a separate kind seems
better.
2024-08-15 15:36:28 +02:00
Anders Schack-Mulligen
7d61d9282c
Merge pull request #17233 from aschackmull/dataflow/match-summarylabel
...
Dataflow: Fix missing join on summaryLabel.
2024-08-15 14:55:38 +02:00
Felicity Chapman
fcb2b5730f
Update CookieInjection.ql to remove period
2024-08-15 13:17:13 +01:00
Anders Schack-Mulligen
6f23e8dcf3
Merge pull request #17224 from aschackmull/java/inlineflow-pathgraph
...
Java: Add PathGraph to test output for default inline flow tests.
2024-08-15 13:35:24 +02:00
Anders Schack-Mulligen
a85f8a2fbd
Java/C#: Accept expected changes.
2024-08-15 13:24:31 +02:00
Paolo Tranquilli
f0de9f9276
Merge pull request #17232 from github/redsun82/kotlin
...
Kotlin: fix wrapper on windows and use `os.execv` on POSIX
2024-08-15 12:50:46 +02:00
Chris Smowton
3450e509fe
Merge pull request #17228 from smowton/smowton/admin/missing-change-notes
...
Java: add change notes for three recent buildless fixes
2024-08-15 10:56:22 +01:00
Anders Schack-Mulligen
2c591f5420
Dataflow: Fix missing join on summaryLabel.
2024-08-15 11:05:08 +02:00
Michael Nebel
4b3cc5bd0e
Merge pull request #17219 from michaelnebel/shared/neutralsourcesink
...
C#/Java: Fix source- and sink callable provenance overlap.
2024-08-15 11:02:18 +02:00
Anders Schack-Mulligen
fb1dfd4217
Java: Accept test changes.
2024-08-15 10:32:12 +02:00
Paolo Tranquilli
beba032ba5
Kotlin: fix wrapper on windows
2024-08-15 10:31:32 +02:00
Anders Schack-Mulligen
3cdc8d5eca
Java: Add PathGraph to test output for default inline flow tests.
2024-08-15 10:17:31 +02:00
Michael Nebel
b16dc20bbd
Merge pull request #17230 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-08-15 09:31:16 +02:00
github-actions[bot]
4c0f31d77b
Add changed framework coverage reports
2024-08-15 00:18:12 +00:00
Chris Smowton
b4a42de7f4
Java: add change notes for three recent buildless fixes
2024-08-14 18:34:25 +01:00
Anders Schack-Mulligen
c1d03acd45
Merge pull request #17221 from aschackmull/dataflow/qltest-missing-subpath
...
Dataflow: Add test highlighting missing subpath.
2024-08-14 15:46:32 +02:00
Michael Nebel
27e9cb5384
Merge pull request #16872 from michaelnebel/csharp/updatedotnetmodels
...
C#: Update .NET 8 Runtime models.
2024-08-14 15:42:02 +02:00
Anders Schack-Mulligen
79dec723b0
Dataflow: Add test highlighting missing subpath.
2024-08-14 13:30:13 +02:00
Michael Nebel
c8d301ed43
C#: Add change note.
2024-08-14 13:13:29 +02:00
Michael Nebel
d5f8adbfee
C#: Update test expected output.
2024-08-14 13:13:27 +02:00
Owen Mansel-Chan
0c525972a2
Merge pull request #17193 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-08-14 11:06:15 +01:00
Michael Nebel
4b0427c732
C#: Update .NET 8 runtime models.
2024-08-14 11:24:54 +02:00
Michael Nebel
35ec9db23a
C#: Add some manual source neutrals.
2024-08-14 11:24:50 +02:00
Michael Nebel
094c98db5e
C#: Update .NET 8 Runtime models.
2024-08-14 11:24:46 +02:00
Michael Nebel
3425efe421
Merge pull request #17208 from michaelnebel/csharp/prettyprintmodels
...
C#: Pretty print models in tests.
2024-08-14 11:23:01 +02:00
Owen Mansel-Chan
005ffd4f64
Merge branch 'main' into workflow/coverage/update
2024-08-14 09:45:17 +01:00
Tamás Vajk
4e02e34fd5
Merge pull request #17214 from tamasvajk/fix/message-limit
...
C#: Minor adjustment to limiting the number of extractor messages
2024-08-14 10:05:27 +02:00
Michael Nebel
eaf4f5eeab
C#/Java: Update model generation expected output.
2024-08-14 09:57:49 +02:00
Michael Nebel
f0817dc07c
C#/Java: Use a parameterized module for making the source and sink callable classes.
2024-08-14 09:50:38 +02:00
Michael Nebel
046018fa25
Java: Add example of missing sink generation.
2024-08-14 09:50:34 +02:00
Michael Nebel
6f79480b40
C#: Add example of missing sink generation.
2024-08-14 09:50:13 +02:00
github-actions[bot]
86ab941acd
Add changed framework coverage reports
2024-08-14 00:18:29 +00:00
Tamas Vajk
5f74ead99b
C#: Store extractor message in DB for limit reached
2024-08-13 17:24:43 +02:00
Simon Friis Vindum
5e8ac5ef0d
C++: Update documentation for cpp/uncontrolled-allocation-size to clarify its scope
2024-08-13 16:27:04 +02:00
Tamas Vajk
05500568c9
C#: Minor adjustment to limiting the number of extractor messages
2024-08-13 16:22:19 +02:00
Michael Nebel
c5343fb829
C#: Make language specific ShowProvenance module and update tests.
2024-08-13 16:10:11 +02:00
Michael Nebel
97f9340a0a
C#: Update security related tests and expected output to pretty print MaD.
2024-08-13 16:10:04 +02:00
Michael Nebel
ddbca5aee9
C#: Add PrettyPrintModel post process query and migrate existing test case.
2024-08-13 16:09:59 +02:00
Tom Hvitved
d638b5c7d4
Sync shared file
2024-08-13 15:27:38 +02:00
Tom Hvitved
f6ec56a977
C#: Implement ContentSet
2024-08-13 15:27:36 +02:00
Anders Schack-Mulligen
a782952969
Merge pull request #17202 from aschackmull/dataflow/stagepathgraph-strengthen
...
Dataflow: bugfix add missing typeStrengthen in StagePathGraph throughflow.
2024-08-13 14:59:47 +02:00
Mauro Baluda
be0a60a7f6
Add support for importing NPM modules in XSJS sources
2024-08-13 14:45:03 +02:00
Tom Hvitved
3395dc9e71
Merge pull request #16576 from hvitved/csharp/static-field-side-effect
...
C#: Add support for flow through side-effects on static fields
2024-08-13 14:16:28 +02:00
Tom Hvitved
aeabee3e34
Merge pull request #17179 from hvitved/shared/pretty-print-models
...
Go/Java: Share more `PrettyPrintModels.ql` logic
2024-08-13 14:15:40 +02:00
Tom Hvitved
51077ce2e7
Merge pull request #17173 from hvitved/shared/inline-flow-provenance
...
Shared: Apply `ShowProvenance` in `InlineFlowTest.qll`
2024-08-13 14:15:08 +02:00
Tom Hvitved
69b581cc4d
C#: Update expected test output
2024-08-13 13:34:47 +02:00
Tom Hvitved
c9aaba677d
Ruby: Update expected test output
2024-08-13 13:34:46 +02:00
Tom Hvitved
0fcfb47423
Sync shared files
2024-08-13 13:34:45 +02:00
Tom Hvitved
f83df76928
Shared: Apply ShowProvenance in InlineFlowTest.qll
2024-08-13 13:34:43 +02:00
Tom Hvitved
d5a0df3f87
Go/Java: Share more PrettyPrintModels.ql logic
2024-08-13 12:48:22 +02:00
Geoffrey White
8646643f0e
Swift: Change note.
2024-08-13 11:23:41 +01:00
Geoffrey White
446c992181
Swift: Exclude tel:, mailto: and similar URLs from the query.
2024-08-13 11:23:40 +01:00
Geoffrey White
897bfb5517
Swift: Convert URL sinks for swift/cleartext-transmission to be defined in QL.
2024-08-13 11:23:39 +01:00
Tom Hvitved
fbcb4498fe
Merge pull request #16817 from hvitved/csharp/multi-body-dataflow-dispatch
...
C#: Restrict multi-body dataflow dispatch based on file-system distance
2024-08-13 12:15:22 +02:00
Rasmus Wriedt Larsen
6dd52e45e4
Merge pull request #17154 from RasmusWL/poetry-update
...
Python: Upgrade lockfile for extractor tests
2024-08-13 11:54:15 +02:00
Geoffrey White
345e1840f2
Swift: Add more test cases for swift/cleartext-transmission.
2024-08-13 09:28:23 +01:00
Owen Mansel-Chan
0dfdee775b
Merge pull request #17177 from owen-mc/go/mad/convert-sink-3
...
Go: convert regex-use, url-redirection sinks to use models-as-data
2024-08-12 16:21:48 +01:00
Joe Farebrother
c98110306b
Merge pull request #16807 from JLLeitschuh/patch-7
...
Align Ruby NonConstantKernelOpen.ql Severity
2024-08-12 16:07:29 +01:00
Owen Mansel-Chan
6b6e773ce1
Merge pull request #17196 from owen-mc/go/tidy-up-test-go-mod-2
...
Go: Remove unneeded dependency from test go.mod
2024-08-12 15:48:05 +01:00
Owen Mansel-Chan
e6873cfb2e
Merge pull request #17195 from owen-mc/go/tidy-up-test-go-mod
...
Go: Remove unneeded dependencies from test go.mod
2024-08-12 15:45:32 +01:00
Tamás Vajk
8bc9e497eb
Merge pull request #17200 from tamasvajk/fix/logging
...
C#: Fix logging in assets file parsing
2024-08-12 16:18:31 +02:00
Joe Farebrother
d08713f66c
Merge branch 'main' into patch-7
2024-08-12 15:12:33 +01:00
Anders Schack-Mulligen
75aa439132
Merge pull request #17201 from aschackmull/dataflow/pathgraphsig1
...
Dataflow: Reduce duplication, define PathGraphSig only once.
2024-08-12 16:10:07 +02:00
Anders Schack-Mulligen
757fdf567d
Dataflow: bugfix add missing typeStrengthen in StagePathGraph throughflow.
2024-08-12 15:53:58 +02:00
Tamas Vajk
bfaafcf88c
Address review findings
2024-08-12 15:49:09 +02:00
Anders Schack-Mulligen
3d5d270dfb
Dataflow: Reduce duplication, define PathGraphSig only once.
2024-08-12 15:22:17 +02:00
Tamas Vajk
089999dd3c
C#: Fix logging in assets file parsing
2024-08-12 14:06:28 +02:00
Michael Nebel
4a5c9f0ec4
Merge pull request #17007 from michaelnebel/shared/neutralimplementation
...
C#/Java/Go: Neutrals are split into separate classes.
2024-08-12 13:58:12 +02:00
Anders Schack-Mulligen
3c6459e65a
Merge pull request #17029 from aschackmull/dataflow/stagepathgraph-provenance
...
Dataflow: Add provenance to StagePathGraph.
2024-08-12 13:30:03 +02:00
Anders Schack-Mulligen
f28f42bcba
Merge pull request #17049 from aschackmull/dataflow/bugfix-flowfeature-sinkctx
...
Dataflow: Fix bug causing spurious flow for FeatureHasSinkCallContext
2024-08-12 13:29:42 +02:00
Tamás Vajk
c514d36d90
Merge pull request #17197 from tamasvajk/fix/missing-xmldoc
...
C#: Exclude `System.Runtime.CompilerServices` attributes from XML doc…
2024-08-12 13:12:46 +02:00
Tamás Vajk
5248c8e3a2
Merge pull request #17198 from tamasvajk/remove-unstable-telemetry
...
C#: Remove timing values from extractor telemetry query
2024-08-12 13:10:45 +02:00
Felicity Chapman
f0bc55e8d7
Update references and remove unwanted reusable
2024-08-12 12:08:44 +01:00
Felicity Chapman
36e32f43ef
Rename new article
2024-08-12 12:08:03 +01:00
Felicity Chapman
5b5d8fe04d
Remove legacy article
2024-08-12 12:07:24 +01:00
Felicity Chapman
ae51668147
Update info on data flow new/legacylibrary
2024-08-12 11:54:11 +01:00
Tamas Vajk
fa3b65fc4e
C#: Remove timing values from extractor telemetry query
2024-08-12 11:59:53 +02:00
Tamas Vajk
63d07a933a
C#: Exclude System.Runtime.CompilerServices attributes from XML documentation needed check
2024-08-12 11:48:57 +02:00
Owen Mansel-Chan
600c84505f
Remove unneeded dependency from test go.mod
2024-08-12 10:15:36 +01:00
Owen Mansel-Chan
30dc2289a3
Remove unneeded dependencies from test go.mod
2024-08-12 10:14:09 +01:00
Tom Hvitved
1bcac50db1
C#: Add support for flow through side-effects on static fields
2024-08-12 10:01:51 +02:00
Tom Hvitved
29c204bc61
C#: Add a data flow test for side effects on static fields
2024-08-12 10:01:48 +02:00
Owen Mansel-Chan
1df81dbfb6
Use regex-use[receiver] instead of regex-use[-1]
2024-08-11 00:37:25 +01:00
Owen Mansel-Chan
2fe74a8554
Update model validation
2024-08-11 00:29:58 +01:00
Owen Mansel-Chan
49f3959405
Convert url-redirection sinks to MaD
2024-08-11 00:29:53 +01:00
Owen Mansel-Chan
3a285f500e
Convert regex-use sinks to use MaD
2024-08-11 00:21:31 +01:00
Owen Mansel-Chan
a5a999f7d6
Merge pull request #17162 from owen-mc/go/mad/convert-sink-2
...
Go: Convert log-injection, path-injection and command-injection sinks to use models-as-data
2024-08-11 00:20:42 +01:00
Owen Mansel-Chan
f851f2120f
Merge pull request #17186 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-08-10 12:55:44 +01:00
github-actions[bot]
8b51f9865d
Add changed framework coverage reports
2024-08-10 00:18:17 +00:00
Cornelius Riemenschneider
974868cf9c
Merge pull request #17178 from github/criemen/pytest-swift
...
Port Swift integration tests to pytest.
2024-08-09 20:06:20 +02:00
Cornelius Riemenschneider
0b60bfecd1
Merge branch 'main' into criemen/pytest-swift
2024-08-09 18:16:46 +02:00
Cornelius Riemenschneider
d82f66cc63
Merge pull request #17149 from github/criemen/pytest-go
...
Port the go integration tests to pytest framework
2024-08-09 18:13:46 +02:00
Chris Smowton
d97f6572c2
Merge pull request #17189 from smowton/smowton/admin/executable-war-fetch-test
...
Java: Add test for buildless fetching an executable war file
2024-08-09 16:10:12 +01:00
Owen Mansel-Chan
6f5a045437
Fix typo in package path
...
Co-authored-by: Edward Minnix III <egregius313@github.com >
2024-08-09 14:27:58 +01:00
Chris Smowton
00efebe8b0
Add test for buildless fetching an executable war file
2024-08-09 12:32:43 +01:00
Cornelius Riemenschneider
1689e60445
Merge remote-tracking branch 'origin/main' into criemen/pytest-swift
2024-08-09 11:22:41 +02:00
Cornelius Riemenschneider
cdf067703b
Merge remote-tracking branch 'origin/main' into criemen/pytest-go
2024-08-09 09:59:29 +02:00
Cornelius Riemenschneider
ae96111848
Revert "Simplify test."
...
This reverts commit 2310bd94a4 .
2024-08-09 09:48:38 +02:00
Chris Smowton
4de0d10dce
Merge pull request #17111 from smowton/smowton/admin/gradle-classifier-test
...
Java: Add test for Gradle fetching a jar with a classifier
2024-08-08 17:50:50 +01:00
Michael B. Gale
267ee3dce9
Merge pull request #17168 from github/dependabot/go_modules/go/extractor/extractor-dependencies-d889f6e8ba
2024-08-08 17:16:23 +01:00
Owen Mansel-Chan
32958e9625
Pretty print models in stored command test
2024-08-08 17:06:06 +01:00
Owen Mansel-Chan
d066faf212
Update test expectatations
2024-08-08 17:06:01 +01:00
Owen Mansel-Chan
5ef37c4501
Converting command-injection sinks to use MaD
2024-08-08 17:03:57 +01:00
Owen Mansel-Chan
8536e7eb02
Convert path-injection sinks to use MaD
2024-08-08 17:03:53 +01:00
Owen Mansel-Chan
fa472f5e18
Convert logging sinks to use MaD
2024-08-08 17:01:49 +01:00
Owen Mansel-Chan
d240951da0
Merge pull request #17157 from owen-mc/go/mad/change-provenance-for-package-grouping
...
Go: Change provenance for MaD models that use package grouping
2024-08-08 16:57:31 +01:00
Alexander Eyers-Taylor
ffd811a55d
Merge pull request #17182 from github/post-release-prep/codeql-cli-2.18.2
...
Post-release preparation for codeql-cli-2.18.2
2024-08-08 16:28:03 +01:00
Chris Smowton
84f3b7322e
Add test for Gradle fetching a jar with a classifier
2024-08-08 15:49:11 +01:00
Michael B. Gale
2109bba928
Go: Bump Go version in ExternalValueFlow test
2024-08-08 15:34:47 +01:00
Cornelius Riemenschneider
9ce8018093
Autobuilder test/unsupported os: Promote to Windows and Linux test.
...
This way, we have at least one Windows test, which makes our internal testing easier.
2024-08-08 15:41:48 +02:00
Owen Mansel-Chan
c0a69f197d
Merge pull request #17180 from owen-mc/go/update-framework-csv
...
Go: Fix mistake in frameworks.csv
2024-08-08 14:25:56 +01:00
github-actions[bot]
cc6d87c276
Post-release preparation for codeql-cli-2.18.2
2024-08-08 12:56:21 +00:00
Cornelius Riemenschneider
448da89519
Merge remote-tracking branch 'origin/main' into criemen/pytest-go
2024-08-08 13:52:22 +02:00
Cornelius Riemenschneider
2310bd94a4
Simplify test.
2024-08-08 13:51:38 +02:00
Owen Mansel-Chan
55de3511b0
Fix frameworks.csv
2024-08-08 10:31:00 +01:00
Paolo Tranquilli
875d1d3be4
Merge pull request #17172 from github/redsun82/bazel-lfs
...
Bazel: make `git_lfs_probe.py` try all available endpoints
2024-08-08 11:06:19 +02:00
Cornelius Riemenschneider
081b8759d4
Merge remote-tracking branch 'origin/main' into criemen/pytest-swift
2024-08-08 10:33:05 +02:00
Cornelius Riemenschneider
de40dfdc17
Merge pull request #17167 from github/criemen/pytest-csharp
...
Port C# tests to pytest.
2024-08-08 10:32:30 +02:00
Cornelius Riemenschneider
2b0ff17884
Fix test expectations.
2024-08-08 10:28:42 +02:00
Erik Krogh Kristensen
41506fbfef
Merge pull request #14666 from am0o0/amammad-js-hardcodedJWTKey
...
JS: Extends CredentialsNode class mostly related to JWT authentication packages
2024-08-08 10:20:45 +02:00
Cornelius Riemenschneider
718d46ed2f
Merge remote-tracking branch 'origin/main' into criemen/pytest-csharp
2024-08-08 09:27:19 +02:00
Cornelius Riemenschneider
e5261f8bfc
Port Swift integration tests to pytest.
2024-08-08 08:47:49 +02:00
Erik Krogh Kristensen
2d3d46e0e2
Merge pull request #17166 from erik-krogh/arbitarySpecifiers
...
JS: Parse arbitary module specifiers
2024-08-08 08:29:13 +02:00
dependabot[bot]
c1e242ecda
Bump golang.org/x/tools
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/tools` from 0.23.0 to 0.24.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.23.0...v0.24.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-08 03:50:32 +00:00
Tamás Vajk
ef21ee53a5
Merge pull request #17169 from tamasvajk/buildless/db-quality-query
...
C#: Add diagnostic query indicating low database quality
2024-08-07 21:36:37 +02:00
Paolo Tranquilli
e451f2b343
Bazel: fix typo
2024-08-07 20:54:40 +02:00
am0o0
b64cb4da09
remove a part of code related to debugging :)
2024-08-07 20:37:20 +02:00
Cornelius Riemenschneider
16e19a6b04
Port missing test.
2024-08-07 18:43:41 +02:00
Cornelius Riemenschneider
a38b6abdbe
Merge branch 'main' into criemen/pytest-csharp
2024-08-07 18:34:46 +02:00
Paolo Tranquilli
58088b62df
Bazel: make git_lfs_probe.py a bit more backward compatible
2024-08-07 16:46:31 +02:00
Alexander Eyers-Taylor
a1b3ea53f6
Merge pull request #17176 from github/release-prep/2.18.2
...
Release preparation for version 2.18.2
2024-08-07 15:11:31 +01:00
github-actions[bot]
019da8c287
Release preparation for version 2.18.2
2024-08-07 14:02:38 +00:00
Alexander Eyers-Taylor
eea9df894a
Merge pull request #17174 from github/revert-17159-release-prep/2.18.2
...
Revert "Release preparation for version 2.18.2"
2024-08-07 15:00:23 +01:00
Tamas Vajk
0263cc1609
Improve code quality
2024-08-07 15:27:14 +02:00
Alexander Eyers-Taylor
46577b585e
Revert "Release preparation for version 2.18.2"
2024-08-07 14:24:37 +01:00
Alexander Eyers-Taylor
26444cb0cd
Merge pull request #17165 from github/dbartol/csharp-test-hotfix
...
C#: Update expected test output
2024-08-07 14:23:08 +01:00
Cornelius Riemenschneider
67331fb810
Accept test output changes.
...
These test expectations change, as the test is now
run in a temp directory that's not located in our checkout.
Previously, `dotnet build` was picking up files from the repository,
like the editor config and the sourcelink (which requires a git repository
in a parent directory).
2024-08-07 12:53:06 +02:00
Cornelius Riemenschneider
59922e5c46
Port C# tests to pytest.
2024-08-07 12:53:05 +02:00
Tom Hvitved
d9ff4ef567
Merge pull request #17155 from hvitved/java/array-ref-bad-join
...
Java: Fix bad join
2024-08-07 12:39:40 +02:00
Paolo Tranquilli
c576a116f5
Bazel: make git_lfs_probe.py try all available endpoints
2024-08-07 12:38:43 +02:00
Owen Mansel-Chan
40282daeb5
Merge pull request #17152 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-08-07 11:04:02 +01:00
Paolo Tranquilli
b63bd2ad14
Bazel: format git_lfs_probe.py
2024-08-07 11:57:35 +02:00
Owen Mansel-Chan
5fe3d17a26
Merge branch 'main' into workflow/coverage/update
2024-08-07 10:52:55 +01:00
Tamás Vajk
42be9e98c8
Merge pull request #16938 from tamasvajk/feature/extract-files-multiple
...
C#: Do not skip extraction of already seen source files
2024-08-07 11:23:48 +02:00
Tamas Vajk
2a2b371244
Add change note
2024-08-07 11:15:10 +02:00
Tamas Vajk
7388c6db24
Downgrade buildless TSP warnings to notes
2024-08-07 11:14:16 +02:00
Tamas Vajk
139e09d5d3
C#: Add diagnostic query indicating low database quality
2024-08-07 10:49:12 +02:00
erik-krogh
bef4fe627d
make sure the new identifiers have end-locations
2024-08-07 10:25:22 +02:00
Joe Farebrother
62c2fe6b17
Merge pull request #16933 from joefarebrother/python-cookie-concept-promote
...
Python: Promote the insecure cookie query from experimental
2024-08-07 09:06:05 +01:00
github-actions[bot]
d88b25c243
Add changed framework coverage reports
2024-08-07 00:18:15 +00:00
Joe Farebrother
24df54804a
Review suggestion - Add link to qldoc
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-08-06 22:59:14 +01:00
erik-krogh
b8187ed294
support arbitary export specifiers
2024-08-06 20:45:57 +02:00
erik-krogh
5f7f37f6c8
support arbitary import specifiers
2024-08-06 20:45:53 +02:00
Dave Bartolomeo
e5911c90d4
Merge branch 'codeql-cli-2.18.2' into dbartol/csharp-test-hotfix
2024-08-06 13:32:08 -04:00
Tom Hvitved
78cd3d8332
C#: Update expected test output
2024-08-06 13:29:43 -04:00
Dave Bartolomeo
e222b49258
Merge pull request #17160 from hvitved/csharp/update-expected
...
C#: Update expected test output
2024-08-06 13:27:49 -04:00
Dave Bartolomeo
a5d671a1ca
Merge pull request #17163 from github/dbartol/cpp-test-hotfix
...
C++: Accept test changes caused by new CLI version.
2024-08-06 12:56:37 -04:00
Geoffrey White
d704fd9682
C++: Accept test changes caused by new CLI version.
2024-08-06 12:27:49 -04:00
Dave Bartolomeo
b2d20f1fed
Merge pull request #17161 from geoffw0/madfix
...
C++: Accept test changes caused by new CLI version.
2024-08-06 12:25:27 -04:00
Angela P Wen
1f37662e3b
Merge pull request #17158 from github/angelapwen/update-codeql-docs
...
Docs: remove `ubuntu-18.04`, indicate Swift requires macOS
2024-08-06 18:17:15 +02:00
Cornelius Riemenschneider
b4db86491d
Merge remote-tracking branch 'origin/main' into criemen/pytest-go
2024-08-06 18:09:55 +02:00
Cornelius Riemenschneider
c88ed68766
Merge pull request #17151 from github/criemen/pytest-ruby
...
Ruby: Port integration tests to pytest.
2024-08-06 18:09:34 +02:00
Cornelius Riemenschneider
46cf779062
Address review.
2024-08-06 18:08:25 +02:00
Geoffrey White
bf66a787ab
C++: Accept test changes caused by new CLI version.
2024-08-06 16:45:48 +01:00
Cornelius Riemenschneider
ffde68aaec
Merge remote-tracking branch 'origin/main' into criemen/pytest-go
2024-08-06 17:03:16 +02:00
Cornelius Riemenschneider
def662d641
Merge branch 'main' into criemen/pytest-ruby
2024-08-06 16:41:23 +02:00
Tom Hvitved
00d447ba4b
C#: Update expected test output
2024-08-06 15:43:08 +02:00
Alexander Eyers-Taylor
01ff7e1f26
Merge pull request #17159 from github/release-prep/2.18.2
...
Release preparation for version 2.18.2
2024-08-06 13:59:14 +01:00
Owen Mansel-Chan
f0d1740ff8
Update text expectations
2024-08-06 13:48:45 +01:00
github-actions[bot]
c14ba0e4bd
Release preparation for version 2.18.2
2024-08-06 12:46:15 +00:00
Angela P Wen
4489749ce4
Docs: indicate Swift support requires macOS
2024-08-06 14:33:03 +02:00
Angela P Wen
14977a7917
Docs: remove deprecated ubuntu-18.04
2024-08-06 14:30:40 +02:00
Owen Mansel-Chan
572c773345
Change provenance for MaD models that use package grouping
2024-08-06 13:13:39 +01:00
Dave Bartolomeo
32b3924548
Merge pull request #17156 from hvitved/ruby/update-expected
2024-08-06 08:07:07 -04:00
Tom Hvitved
0f1b5327ef
Ruby: Update expected test output
2024-08-06 13:58:05 +02:00
Tom Hvitved
a7410e4a16
Java: Fix bad join
...
Before
```
[2024-08-06 10:37:59] Evaluated non-recursive predicate BoundingChecks::arrayReference/1#754911ba@0628dahn in 20981ms (size: 2009682526).
Evaluated relational algebra for predicate BoundingChecks::arrayReference/1#754911ba@0628dahn with tuple counts:
94480 ~0% {2} r1 = SCAN `Expr::ArrayAccess.getArray/0#dispred#b90c658a` OUTPUT In.1, In.0
32 ~0% {2} r2 = JOIN r1 WITH `Expr::MethodCall.getMethod/0#dispred#41989dc9` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
1013 ~1% {2} | JOIN WITH `Expr::MethodCall.getMethod/0#dispred#41989dc9_10#join_rhs` ON FIRST 1 OUTPUT Lhs.1, Rhs.1
92091 ~4% {2} r3 = JOIN r1 WITH variableBinding ON FIRST 1 OUTPUT Rhs.1, Lhs.1
2009681513 ~0% {2} | JOIN WITH variableBinding_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
2009682526 ~0% {2} r4 = r2 UNION r3
return r4
[2024-08-06 10:38:02] Evaluated non-recursive predicate BoundingChecks::lessthanLength/1#48b5e1b7@2885308n in 0ms (size: 108).
Evaluated relational algebra for predicate BoundingChecks::lessthanLength/1#48b5e1b7@2885308n with tuple counts:
1518 ~0% {2} r1 = JOIN `Expr::ComparisonExpr.isStrict/0#dispred#fd8c6ddb` WITH `Expr::ComparisonExpr.getGreaterOperand/0#dispred#e8df4b14` ON FIRST 1 OUTPUT Rhs.1, Lhs.0
455 ~2% {2} | JOIN WITH Expr::FieldAccess#2b664c37 ON FIRST 1 OUTPUT Lhs.1, Lhs.0
455 ~1% {3} | JOIN WITH `Expr::ComparisonExpr.getLesserOperand/0#dispred#d7744bc2` ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Rhs.1
455 ~0% {5} | JOIN WITH `Expr::FieldAccess.getField/0#dispred#29ef4aa0` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.0, Lhs.2
455 ~0% {5} | REWRITE WITH Out.1 := "length"
116 ~0% {3} | JOIN WITH `Element::Element.hasName/1#dispred#8acbbbde` ON FIRST 2 OUTPUT Lhs.4, Lhs.2, Lhs.3
93 ~0% {3} | JOIN WITH variableBinding ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
93 ~1% {3} | JOIN WITH `Expr::VarAccess.getQualifier/0#dispred#2b0f1cd1` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
484 ~2% {3} | JOIN WITH variableBinding_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.2
277 ~3% {2} | JOIN WITH `BoundingChecks::conditionHolds/2#fa0354b9#bb` ON FIRST 2 OUTPUT Lhs.1, Lhs.2
166 ~5% {2} | JOIN WITH `Expr::ArrayAccess.getIndexExpr/0#dispred#345f6cf4_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
110 ~0% {1} | JOIN WITH `BoundingChecks::arrayReference/1#754911ba` ON FIRST 2 OUTPUT Lhs.0
return r1
```
After
```
[2024-08-06 13:29:50] Evaluated non-recursive predicate BoundingChecks::lengthAccess/2#54b10eff@719e68tb in 0ms (size: 309).
Evaluated relational algebra for predicate BoundingChecks::lengthAccess/2#54b10eff@719e68tb with tuple counts:
6241 ~0% {2} r1 = JOIN `BoundingChecks::getAnAccess/1#152ad44e_10#join_rhs` WITH `Expr::VarAccess.getQualifier/0#dispred#2b0f1cd1_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
6240 ~0% {4} | JOIN WITH `Expr::FieldAccess.getField/0#dispred#29ef4aa0` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.0
6240 ~0% {4} | REWRITE WITH Out.1 := "length"
309 ~2% {2} | JOIN WITH `Element::Element.hasName/1#dispred#8acbbbde` ON FIRST 2 OUTPUT Lhs.3, Lhs.2
return r1
[2024-08-06 13:29:50] Evaluated non-recursive predicate BoundingChecks::lessthanLength/1#48b5e1b7@0fcac509 in 1ms (size: 108).
Evaluated relational algebra for predicate BoundingChecks::lessthanLength/1#48b5e1b7@0fcac509 with tuple counts:
94480 ~0% {3} r1 = JOIN `Expr::ArrayAccess.getArray/0#dispred#b90c658a` WITH `Expr::ArrayAccess.getIndexExpr/0#dispred#345f6cf4` ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Lhs.1
648 ~4% {4} | JOIN WITH variableBinding ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0, Rhs.1
621 ~1% {4} | JOIN WITH `BoundingChecks::getAnAccess/1#152ad44e_10#join_rhs` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.3, Rhs.1
344 ~0% {4} | JOIN WITH `BoundingChecks::conditionHolds/2#fa0354b9#bb_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
341 ~0% {4} | JOIN WITH `Expr::ComparisonExpr.isStrict/0#dispred#fd8c6ddb` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3
341 ~0% {5} | JOIN WITH `Expr::ComparisonExpr.getGreaterOperand/0#dispred#e8df4b14` ON FIRST 1 OUTPUT Rhs.1, Lhs.3, Lhs.1, Lhs.2, Lhs.0
110 ~2% {3} | JOIN WITH `BoundingChecks::lengthAccess/2#54b10eff` ON FIRST 2 OUTPUT Lhs.4, Lhs.2, Lhs.3
110 ~0% {3} | JOIN WITH `Expr::ComparisonExpr.getLesserOperand/0#dispred#d7744bc2` ON FIRST 1 OUTPUT Rhs.1, Lhs.2, Lhs.1
110 ~0% {1} | JOIN WITH variableBinding ON FIRST 2 OUTPUT Lhs.2
return r1
```
2024-08-06 13:30:19 +02:00
Cornelius Riemenschneider
2377546240
Merge pull request #17150 from github/criemen/upgrade-rules-rust
...
Bazel: Upgrade rules_rust.
2024-08-06 12:53:07 +02:00
Cornelius Riemenschneider
4e013af530
Merge branch 'main' into criemen/upgrade-rules-rust
2024-08-06 12:40:39 +02:00
Rasmus Wriedt Larsen
d50898e114
Python: Downgrade packaging for Python 3.7 support
2024-08-06 11:15:48 +02:00
Joe Farebrother
e47d4ccb79
Merge pull request #17002 from Flying-Tom/add-get-response
...
Ruby: Add get_response for Net::HTTP
2024-08-06 09:44:21 +01:00
Tom Hvitved
87c5627024
Merge pull request #16937 from hvitved/ruby/ssa-integration
...
Ruby: Adopt shared SSA data-flow integration
2024-08-06 10:39:41 +02:00
Paolo Tranquilli
79740ed72b
Merge pull request #17145 from github/redsun82/go
...
Go/Bazel: fix gazelle invocation to use bundled bazel go
2024-08-06 10:36:40 +02:00
Dave Bartolomeo
f08f17511e
Merge pull request #17139 from github/dbartol/provenance/qltest
...
Update test expectations after extension numbering fix
2024-08-05 18:17:26 -04:00
Cornelius Riemenschneider
d42e424289
Port integration tests to pytest.
2024-08-05 22:07:42 +02:00
Dave Bartolomeo
7e82986e7c
Update Go test expectations
2024-08-05 13:20:12 -04:00
Dave Bartolomeo
a6e2fbb241
Merge remote-tracking branch 'origin/main' into dbartol/provenance/qltest
2024-08-05 13:16:31 -04:00
Chris Smowton
59572e5633
Merge pull request #16708 from am0o0/am0o0-java-PathInjection
...
Java: new path injection sinks
2024-08-05 17:23:09 +01:00
Chris Smowton
e88bf31270
Merge branch 'main' into am0o0-java-PathInjection
2024-08-05 16:35:35 +01:00
Dave Bartolomeo
aea13b46ce
Merge remote-tracking branch 'origin/main' into dbartol/provenance/qltest
2024-08-05 10:33:31 -04:00
Tamas Vajk
a4e357e46d
Remove unused FileIsUpToDate
2024-08-05 15:56:12 +02:00
Tamas Vajk
ec9de41fea
Add change note
2024-08-05 15:55:32 +02:00
Tamas Vajk
968c279fd7
Add DB upgrade/downgrade scripts
2024-08-05 15:55:29 +02:00
Tamas Vajk
a31d90897d
C#: Do not skip extraction of already seen source files
2024-08-05 15:55:26 +02:00
Alexandre Boulgakov
6f23819f60
Merge pull request #17140 from github/jketema/generic-broken
...
C++ Add IR test for `_Generic`s
2024-08-05 14:36:40 +01:00
am0o0
e4deb7d304
apply autoformating for HardcodedCredentials.ql
2024-08-05 14:58:37 +02:00
Paolo Tranquilli
841f317cbd
Merge branch 'main' into redsun82/go
2024-08-05 14:30:28 +02:00
Cornelius Riemenschneider
3721e346c6
Bazel: Upgrade rules_rust.
2024-08-05 14:29:25 +02:00
am0o0
fce183c7cb
apply autoformat to HardcodedCredentialsCustomizations.qll
2024-08-05 14:25:15 +02:00
Rasmus Wriedt Larsen
4eb6afa880
Python: Update poetry.lock
2024-08-05 14:14:41 +02:00
Cornelius Riemenschneider
133a0914b5
Delete old go integration test library.
2024-08-05 13:31:33 +02:00
Cornelius Riemenschneider
6cb6aeffbb
Rename build-environment.expected to build_environment.expected.
...
This follows the convention of our other expected files.
2024-08-05 13:30:23 +02:00
Cornelius Riemenschneider
aec06c8100
Port go tests.
2024-08-05 13:22:03 +02:00
Geoffrey White
4225774a3a
Swift: Add test cases for swift/hardcoded-key.
2024-08-05 11:42:18 +01:00
Chris Smowton
95e504a5ff
Merge branch 'main' into am0o0-java-PathInjection
2024-08-05 11:41:25 +01:00
Geoffrey White
0f7598786c
Swift: Test spacing.
2024-08-05 11:23:38 +01:00
Michael B. Gale
fe00dbc96c
Merge pull request #17143 from github/dependabot/go_modules/go/extractor/extractor-dependencies-fbcabf3719
2024-08-05 10:33:21 +01:00
Jeroen Ketema
28702046aa
C++: Rename function to match what is actually being tested
2024-08-05 10:32:54 +01:00
Jeroen Ketema
bfae86e9e8
C++: Update test after extractor fix
2024-08-05 10:32:54 +01:00
Jeroen Ketema
59db802fa4
C++ Add test showing incorrect value categories for _Generics
2024-08-05 10:32:54 +01:00
Paolo Tranquilli
ccec347b0a
Go/Bazel: fix gazelle invocation to use bundled bazel go
2024-08-05 10:13:14 +02:00
dependabot[bot]
74596ef000
Bump golang.org/x/mod
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/mod](https://github.com/golang/mod ).
Updates `golang.org/x/mod` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/mod/compare/v0.19.0...v0.20.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/mod
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-05 03:18:38 +00:00
Owen Mansel-Chan
6273bb60a3
Merge pull request #17112 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-08-04 22:37:50 +01:00
github-actions[bot]
f5394c9ee9
Add changed framework coverage reports
2024-08-04 00:19:56 +00:00
am0o0
4169cfac9f
use the current slf4j stubs instead of new one
2024-08-03 14:12:18 +02:00
Chris Smowton
62046fa3a8
Merge pull request #17137 from smowton/smowton/admin/ecj-annotations-bug-test
...
Java: Add test for ECJ compiling an enum with a constructor parameter annotation
2024-08-02 22:11:14 +01:00
Dave Bartolomeo
6596705811
Update test expectations after extension numbering fix
2024-08-02 16:55:02 -04:00
Chris Smowton
f891423810
Run Maven integration tests sequentially due to conflicts over ~/.m2
2024-08-02 20:13:41 +01:00
Chris Smowton
1ee87670c6
Switch to measuring just diagnostics
2024-08-02 20:13:40 +01:00
Chris Smowton
ee11307751
Add test for ECJ compiling an enum with a constructor parameter annotation
2024-08-02 20:13:39 +01:00
Jeroen Ketema
08bb794f76
Merge pull request #17125 from jketema/explicit-bool
...
C++: Expose `explicit` and `explicit(bool)` function specifiers
2024-08-02 20:05:44 +02:00
Geoffrey White
9794309d2e
Merge pull request #17127 from geoffw0/swiftsql
...
Swift: Improve doc for swift/sql-injection
2024-08-02 16:14:57 +01:00
Andrew Eisenberg
6a49647a28
Merge pull request #17132 from github/aeisenberg-patch-1
...
Update CHANGELOG.md
2024-08-02 07:55:06 -07:00
Owen Mansel-Chan
41373538d6
Merge pull request #17114 from owen-mc/go/gokogiri/update-import-paths
...
Go: Add import path for Gokogiri
2024-08-02 15:12:51 +01:00
Jeroen Ketema
742922c719
Update cpp/ql/lib/semmle/code/cpp/Function.qll
...
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com >
2024-08-02 15:59:30 +02:00
Jeroen Ketema
9744c06933
C++: Expose explicit and explicit(bool) function specifiers
2024-08-02 15:39:18 +02:00
Jeroen Ketema
12261e6d08
Merge pull request #17118 from jketema/ctad
...
C++: Add `getTemplateClass` to `DeductionGuide`
2024-08-02 15:29:21 +02:00
Geoffrey White
0525e9c6ee
Merge pull request #17128 from geoffw0/swiftcmdline
...
Swift: Disable some FileManager models
2024-08-02 13:59:59 +01:00
Geoffrey White
b87d832fcb
Merge pull request #17129 from geoffw0/swiftconstsalt
...
Swift: Fixes for swift/constant-salt
2024-08-02 13:57:05 +01:00
Geoffrey White
49335e5b63
Merge pull request #17126 from geoffw0/swiftcleartext
...
Swift: Improve documentation and examples that use encryption
2024-08-02 13:55:00 +01:00
Geoffrey White
e66cd05f96
Swift: Improve phrasing around robust escape functions.
2024-08-02 13:35:33 +01:00
Jeroen Ketema
972d9ca2b8
C++: Add more deduction guide tests
2024-08-02 14:12:56 +02:00
Geoffrey White
fa898b8489
Update swift/ql/src/queries/Security/CWE-089/SqlInjection.qhelp
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-08-02 13:11:01 +01:00
Geoffrey White
aae19ab9f5
Swift: Remove quotes from the message.
2024-08-02 12:19:14 +01:00
Geoffrey White
927c65e8ed
Merge pull request #17130 from geoffw0/oddsends3
...
Swift: Odds and ends
2024-08-02 12:15:19 +01:00
Geoffrey White
5a5fdb2f6b
Swift: I missed the commas.
2024-08-02 12:11:35 +01:00
Geoffrey White
d3cdffef61
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-08-02 12:07:31 +01:00
Chris Smowton
be945f14f6
Merge pull request #17135 from github/smowton/admin/build-mode-none-ga
...
Announce Java build-mode: none GA
2024-08-02 12:05:39 +01:00
Anders Schack-Mulligen
4d023f14a6
Merge pull request #17075 from RobbingDaHood/17052-second-try-do-not-expose-error-message
...
Java: 17052 Second try: do not expose error message
2024-08-02 12:44:27 +02:00
Chris Smowton
c299d8ddc1
Move change note to lib directory
2024-08-02 11:22:10 +01:00
Chris Smowton
2c85511af1
Announce Java build-mode: none GA
2024-08-02 11:05:24 +01:00
Owen Mansel-Chan
4d75832c9a
Update go/ql/test/query-tests/Security/CWE-643/XPathInjection.expected
2024-08-02 07:41:26 +01:00
Andrew Eisenberg
c8994003c1
Update CHANGELOG.md
...
Drive-by fix of a typo.
2024-08-01 16:16:17 -07:00
am0o0
a645e01b4b
delete wrong stubs
2024-08-02 01:03:47 +02:00
am0o0
d52826879b
delete wrong stubs
2024-08-02 01:02:49 +02:00
am0o0
ee9f134828
update current springframework core stub and use this instead of creating a new stubs
2024-08-02 01:00:34 +02:00
am0o0
af43178602
move slf4j to a separate dir
2024-08-02 00:35:20 +02:00
am0o0
1551cf0093
move java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams into a separate dir
2024-08-02 00:06:02 +02:00
Jeroen Ketema
4dcf67940c
C++: Add getTemplateClass to DeductionGuide
2024-08-01 20:54:53 +02:00
am0o0
354fcbe7fe
apply changes from @erik-krogh
2024-08-01 20:14:36 +02:00
Geoffrey White
39411b0780
Swift: Add some test of taint through 'as'.
2024-08-01 17:33:35 +01:00
Geoffrey White
e313fdb392
Swift: Correct a comment in ECBEncryptionQuery.qll.
2024-08-01 17:28:09 +01:00
Geoffrey White
2486c8423b
Swift: Correct mistakes.
2024-08-01 17:02:03 +01:00
Owen Mansel-Chan
b95189d132
Merge branch 'main' into go/gokogiri/update-import-paths
2024-08-01 16:30:52 +01:00
Owen Mansel-Chan
c23938d119
Merge pull request #17113 from owen-mc/go/xmlpath/add-more-package-paths
...
Go: add more import paths for `xmlpath`
2024-08-01 16:26:33 +01:00
Geoffrey White
14763f3bb5
Swift: Change note.
2024-08-01 16:24:53 +01:00
Geoffrey White
8e68e0dfba
Swift: Change note.
2024-08-01 16:17:55 +01:00
Geoffrey White
3f26250967
Swift: Remove the sources instead (more general solution).
2024-08-01 16:14:30 +01:00
Geoffrey White
2b7b1c624d
Swift: Use a barrier as a simple fix.
2024-08-01 15:58:43 +01:00
Geoffrey White
7bf61d1d7e
Swift: Add test cases.
2024-08-01 15:49:33 +01:00
Geoffrey White
683ca2d578
Swift: Test spacing.
2024-08-01 15:32:45 +01:00
Owen Mansel-Chan
9167057dfd
Update test expectations
2024-08-01 15:22:08 +01:00
Owen Mansel-Chan
c75db669ed
Add import path for gokogiri
2024-08-01 15:21:24 +01:00
Owen Mansel-Chan
1a697fe993
Merge pull request #17115 from owen-mc/go/update-frameworks
...
Go: add newly modeled packages to frameworks.csv
2024-08-01 15:13:12 +01:00
Owen Mansel-Chan
3ccdce291a
Update test expectations
2024-08-01 15:12:08 +01:00
Owen Mansel-Chan
62adb31ca6
Add more import paths for xmlpath
2024-08-01 14:52:19 +01:00
Owen Mansel-Chan
9d866192a6
Add paths from QL models to MaD models
2024-08-01 14:52:18 +01:00
Owen Mansel-Chan
e051815d96
Merge pull request #17119 from owen-mc/go/finish-converting-tests-to-model-pretty-printing
...
Go: finish converting tests to model pretty printing
2024-08-01 14:04:02 +01:00
Owen Mansel-Chan
8325c4c69c
Updated .expected files
2024-08-01 13:12:21 +01:00
Owen Mansel-Chan
cbe54717f6
Revert "Revert post-processing for 6 queries pending bug fix"
...
This reverts commit a8236e1545 .
2024-08-01 13:10:06 +01:00
Anders Schack-Mulligen
776c01aa8d
Merge pull request #17117 from aschackmull/dataflow/qltest-provenance-workaround
...
Dataflow: Allow printing multiple models for one MaDId.
2024-08-01 13:52:58 +02:00
Anders Schack-Mulligen
90272ddbfa
Dataflow: Allow printing multiple models for one MaDId.
2024-08-01 13:04:24 +02:00
Geoffrey White
2ed2a76866
Swift: Add a note about escaping as an alternative way to fix these issues.
2024-08-01 11:52:08 +01:00
Geoffrey White
2fd4b57d74
Swift: Expand the swift/sql-injection qhelp examples by labelling the API that's used, adding SQLite3 C API examples, and adding an example of using a prepared statement incorrectly.
2024-08-01 11:52:06 +01:00
Geoffrey White
9f6a5d9e13
Swift: Fix typo in example.
2024-08-01 11:52:05 +01:00
Geoffrey White
61eb5cd55c
Swift: Put a barrier on the qualifiers as well.
2024-08-01 11:49:10 +01:00
Geoffrey White
0c3e8ced4b
Swift: Make append methods and string interpolation barriers for swift/constant-salt.
2024-08-01 11:49:09 +01:00
Geoffrey White
2543f3ecfb
Swift: Make + a barrier for swift/constant-salt.
2024-08-01 11:49:08 +01:00
Geoffrey White
c8438c38f2
Swift: Tests for string appending with swift/constant-salt.
2024-08-01 11:49:07 +01:00
Geoffrey White
69c18f9cd2
Swift: Use in swift/constant-salt so that the source node is clickable + visible to autofix.
2024-08-01 11:49:06 +01:00
Geoffrey White
b944d47f58
Swift: Fix the example for swift/constant-salt.
2024-08-01 11:49:05 +01:00
Owen Mansel-Chan
d5dc95f1e6
Update frameworks.csv
2024-08-01 11:03:50 +01:00
Anders Schack-Mulligen
377301a55a
Merge pull request #17108 from aschackmull/dataflow/flowthrough-provenance
...
Dataflow: Propagate provenance correctly for flow-through wrappers.
2024-08-01 09:35:56 +02:00
Owen Mansel-Chan
97c9207595
Merge pull request #17104 from owen-mc/go/add-extra-go-jose-package-path
...
Go: Fix missing `go-jose` package path
2024-08-01 00:14:46 +01:00
yoff
251036c6b4
Merge pull request #17080 from sylwia-budzynska/streamlit
...
Python: Add Streamlit models
2024-07-31 18:20:11 +02:00
Jami
f9f57e9122
Merge pull request #17023 from jcogs33/jcogs33/java/add-apache-ant-path-inj-sinks
...
Java: add apache-ant `Property` path injection sinks
2024-07-31 11:04:13 -04:00
Geoffrey White
20672acb74
Merge pull request #17110 from geoffw0/memfree
...
C++: Improve cpp/memory-may-not-be-freed
2024-07-31 15:59:42 +01:00
Mathias Vorreiter Pedersen
06a4f907ef
Merge pull request #17109 from MathiasVP/constexpr-if-unevaluated
...
C++: Mark `constexpr if` as unevaluated
2024-07-31 15:34:29 +01:00
Owen Mansel-Chan
6280ed2a6b
Merge pull request #13555 from am0o0/amammad-java-bombs
...
Java: Decompression Bombs
2024-07-31 14:55:28 +01:00
Geoffrey White
c172b946a1
C++: Change note.
2024-07-31 14:55:15 +01:00
Geoffrey White
4aea4c0323
C++: Simple fix.
2024-07-31 14:46:25 +01:00
Geoffrey White
c04428dedc
C++: Add test cases for the memory freed queries.
2024-07-31 14:03:56 +01:00
Anders Schack-Mulligen
9724516c84
C#/Go/Java/Python/Ruby: Accept qltest .expected changes.
2024-07-31 14:45:10 +02:00
Anders Schack-Mulligen
af06763c42
Dataflow: Propagate provenance correctly for flow-through wrappers.
2024-07-31 14:37:13 +02:00
Jami
4fb29c4473
Merge branch 'main' into jcogs33/java/add-apache-ant-path-inj-sinks
2024-07-31 08:15:07 -04:00
Mathias Vorreiter Pedersen
61eda0df9d
C++: Add change note.
2024-07-31 13:13:19 +01:00
Jami
05b0a3f41c
Merge pull request #17093 from jcogs33/jcogs33/java/provenance-postprocess-qltest-remaining-lib-tests
...
Java: Add support for post-process provenance pretty-printing in `.ql` library-tests
2024-07-31 08:11:15 -04:00
Mathias Vorreiter Pedersen
fe575df325
C++: Mark constexpr if as unevalauted.
2024-07-31 13:09:12 +01:00
Mathias Vorreiter Pedersen
4e62dc81d2
C++: Add constexpr if testcase.
2024-07-31 13:08:49 +01:00
yoff
123dcc75d1
Merge pull request #16971 from RasmusWL/mad-dict-source
...
Python: Add MaD support for DictionaryElement/DictionaryElementAny for sources
2024-07-31 13:40:07 +02:00
Sylwia Budzynska
9bd00c9e1e
Change Gradio rfs test to use shared rfs test module
2024-07-31 13:25:32 +02:00
Sylwia Budzynska
2a6ad00a2f
Fix typo
2024-07-31 13:22:27 +02:00
Sylwia Budzynska
72e7b6c872
Update python/ql/lib/semmle/python/frameworks/Streamlit.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-07-31 13:20:01 +02:00
Owen Mansel-Chan
01c6dbaa27
Accept provenance numbering changes
2024-07-31 12:19:18 +01:00
Owen Mansel-Chan
8901b1fd14
Merge pull request #17100 from owen-mc/java/sensitive-log/ignore-tokenizer
...
Java: whitelist variable names containing "tokenizer" for `java/sensitive-log`
2024-07-31 12:16:03 +01:00
Owen Mansel-Chan
59e22f6cd9
Merge pull request #17101 from owen-mc/java/dead-ref-types-junit-4-5
...
Java: Fix FPs in `java/unused-reference-type` for JUnit 4-style tests
2024-07-31 11:11:35 +01:00
Owen Mansel-Chan
e4cd29efc6
Fix missing go-jose package path
2024-07-31 11:09:53 +01:00
Cornelius Riemenschneider
d75da82528
Merge pull request #17102 from github/criemen/installer-ripunzip
...
Bazel installer: Retry ripunzip step.
2024-07-31 12:04:20 +02:00
Owen Mansel-Chan
f953249692
Merge pull request #17103 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-07-31 10:47:08 +01:00
Cornelius Riemenschneider
de47838c36
Remove unused exception class.
2024-07-31 11:31:11 +02:00
am0o0
d560c1ea0f
fix formatting
2024-07-31 11:08:06 +02:00
Owen Mansel-Chan
f8e8b362ab
Merge branch 'main' into workflow/coverage/update
2024-07-31 10:07:35 +01:00
am0o0
9110df6e80
Merge branch 'amammad-java-JWT' of https://github.com/am0o0/codeql into amammad-java-JWT
2024-07-31 11:04:24 +02:00
am0o0
c6814fcf47
merge duplicate module into a module file
2024-07-31 11:04:03 +02:00
am0o0
701e3d7e53
add same query but with local source support to comply with the CVE-2021-37580
2024-07-31 10:58:22 +02:00
Owen Mansel-Chan
3ece3ec50f
Merge pull request #17092 from owen-mc/go/provenance-postprocess-qltest
...
Go: Add support for provenance pretty-printing
2024-07-31 09:54:28 +01:00
Cornelius Riemenschneider
1ce15ae2fd
Fix exit code when ripunzip isn't called.
2024-07-31 08:09:53 +02:00
github-actions[bot]
d0c2b4a60f
Add changed framework coverage reports
2024-07-31 00:15:22 +00:00
Edward Minnix III
bae0ea5599
Merge pull request #17042 from github/workflow/coverage/update
...
Update CSV framework coverage reports
2024-07-30 20:04:23 -04:00
Cornelius Riemenschneider
fa6d61809e
Fix hang for targets without ripunzip.
2024-07-31 00:38:50 +02:00
Jami
d04dc9afe0
Merge pull request #17087 from jcogs33/jcogs33/java/provenance-postprocess-qltest
...
Java: Add support for provenance pretty-printing as a qltest postprocess step
2024-07-30 16:55:26 -04:00
Jeroen Ketema
f986484813
Merge pull request #17098 from jketema/deduction
...
C++: Update tests after extractor changes
2024-07-30 21:08:40 +02:00
Cornelius Riemenschneider
674a5bb9b4
Bazel installer: Retry ripunzip step.
...
Ripunzip is great, but occasionally bugs out due to a parallelism issue.
As we don't want this to fail CI, retry the entire ripunzip/installation step
up to 3 times.
We need to clean up the working directory as ripunzip doesn't support overwriting
files. I've not been able to test this with the original issue (it doesn't seem
to reproduce locally for me), but I injected another error and got 3 retries
of installation.
2024-07-30 18:20:19 +02:00
Jami Cogswell
2db07bdbf3
Java: add missing models to experimental expected files
2024-07-30 12:13:18 -04:00
am0o0
40eef25133
use more specefic Classes instead of Call
2024-07-30 18:07:03 +02:00
Geoffrey White
3d6a889d24
Swift: Make use of CBC blockmode in examples and tests mode accurate.
2024-07-30 16:59:11 +01:00
am0o0
591b1b4f07
use $ SPURIOUS: instead of "this test gives a FP"
2024-07-30 17:53:23 +02:00
am0o0
f97b1039cd
update test files, add one more additional flow step for inflate function, fix gzopen additional flow step thanks to @jketema
2024-07-30 17:49:34 +02:00
Sylwia Budzynska
81f3609c4b
Formatting
2024-07-30 17:49:20 +02:00
Sylwia Budzynska
dfc51922ba
Change regex
2024-07-30 17:39:34 +02:00
Sylwia Budzynska
ef2b225144
Fix PascalCase
2024-07-30 17:36:55 +02:00
Owen Mansel-Chan
1cb5f35c56
Add change note
2024-07-30 16:29:38 +01:00
Owen Mansel-Chan
cd0af0fc57
Ignore types with methods which have annotations
...
The motivation is test classes in JUnit 4 and 5 are currently FPs for this. They have methods with `@Test`, so this should fix the FPs.
2024-07-30 16:29:35 +01:00
Owen Mansel-Chan
050dcb1370
Add some tests for java/unused-reference-type
2024-07-30 16:29:11 +01:00
Sylwia Budzynska
f796efe470
Add Streamlit SQLAlchemy models
2024-07-30 17:20:52 +02:00
Sylwia Budzynska
9741ddb926
Add remoteflowsoucre test
2024-07-30 17:20:14 +02:00
Mathias Vorreiter Pedersen
31f68d2da8
Merge pull request #17095 from MathiasVP/mad-free-functions
...
C++: Proper MaD support for free functions
2024-07-30 16:00:31 +01:00
Jami
2c8f3a58b3
Merge branch 'main' into jcogs33/java/provenance-postprocess-qltest
2024-07-30 10:53:52 -04:00
Owen Mansel-Chan
44b6309e07
Add change note
2024-07-30 15:44:00 +01:00
Owen Mansel-Chan
e259b25428
Add "tokenizer" to sensitive variable name FPs
2024-07-30 15:38:32 +01:00
Owen Mansel-Chan
0704946324
Factor out matching sensitive variable name FPs
2024-07-30 15:37:54 +01:00
Owen Mansel-Chan
bdff0fdcc5
Add test for "tokenizer"
2024-07-30 15:37:46 +01:00
Owen Mansel-Chan
0d71072f94
Make test more compact
2024-07-30 15:36:59 +01:00
Mathias Vorreiter Pedersen
6d8a83fc1f
C++: Take out the 'Element' content from std::format model.
2024-07-30 15:31:18 +01:00
Arthur Baars
0d469536ae
Merge pull request #17065 from github/aibaars/proxy-tests
...
Java: integration tests with proxy server
2024-07-30 15:53:45 +02:00
Mathias Vorreiter Pedersen
ef0370b64e
C++: Respond to review comments.
2024-07-30 13:19:02 +01:00
Owen Mansel-Chan
a8236e1545
Revert post-processing for 6 queries pending bug fix
...
This commit will be reverted when a bug is fixed which is currently
stopping these tests from working with post-processing.
2024-07-30 12:58:01 +01:00
Owen Mansel-Chan
ffeb86c1f5
Update .expected files
2024-07-30 12:54:42 +01:00
Jeroen Ketema
5455a365d1
C++: Update tests after extractor changes
2024-07-30 13:52:23 +02:00
Anders Schack-Mulligen
5073f4f7dd
Merge pull request #17096 from aschackmull/java/pp-experimental-models
...
Java: Pretty-print experimental models for qltest.
2024-07-30 13:31:15 +02:00
am0o0
9662950405
add comments for FPs
2024-07-30 13:24:46 +02:00
Chris Smowton
8f52b2cd95
Fix link
2024-07-30 12:23:38 +01:00
Chris Smowton
a781522ca0
Copyedit documentation
2024-07-30 12:19:16 +01:00
Sylwia Budzynska
bfd2e4350b
Add StreamlitConnection model
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-07-30 12:58:49 +02:00
Mathias Vorreiter Pedersen
afc0d0a078
C++: Accept test changes.
2024-07-30 11:54:20 +01:00
Owen Mansel-Chan
5c8f21d596
Use post-process provenance pretty-printing in ql tests
2024-07-30 11:35:10 +01:00
Owen Mansel-Chan
94f290411f
Use post-process provenance pretty-printing in qlref tests
2024-07-30 11:35:09 +01:00
Owen Mansel-Chan
1347f55d89
Merge pull request #17072 from owen-mc/go/mad/convert-sinks
...
Go: convert request-forgery, xpath-injection and credentials sinks to MaD
2024-07-30 11:18:37 +01:00
Mathias Vorreiter Pedersen
42ee501b96
C++: Use the name without args
2024-07-30 11:18:24 +01:00
Mathias Vorreiter Pedersen
f932e515a7
C++: Accept test changes.
2024-07-30 11:11:38 +01:00
Mathias Vorreiter Pedersen
68a972d578
C++: Delete code that's now dead.
2024-07-30 11:11:37 +01:00
Mathias Vorreiter Pedersen
6b37cb0718
C++: Use the same 'template expansion mechanism' for free functions that we use for member functions.
2024-07-30 11:11:36 +01:00
Anders Schack-Mulligen
da5250d3a7
Java: Pretty-print experimental models for qltest.
2024-07-30 11:43:44 +02:00
Mathias Vorreiter Pedersen
8edf19adc0
C++: Add MaD model for 'std::format'.
2024-07-30 10:15:39 +01:00
Mathias Vorreiter Pedersen
ff788c93c0
C++: Add a model for 'std::format' and a failing test.
2024-07-30 10:13:39 +01:00
Owen Mansel-Chan
9cb01d4573
Merge branch 'main' into go/mad/convert-sinks
2024-07-30 08:03:18 +01:00
github-actions[bot]
d39609254c
Add changed framework coverage reports
2024-07-30 00:18:23 +00:00
Joe Farebrother
e68ef87662
update inline tests for rest_framework tests
2024-07-29 23:35:36 +01:00
Joe Farebrother
82da8b95a7
Fix typo
2024-07-29 23:29:19 +01:00
Joe Farebrother
f10d007496
Add additional test for kwargs case
2024-07-29 23:27:22 +01:00
Alexandre Boulgakov
c989e01197
Merge pull request #17091 from github/sashabu/packs
...
C++: Update MaD tests with correct template parameter counting in the presence of packs.
2024-07-29 21:06:00 +01:00
Geoffrey White
41c3d1b833
Swift: Mention key management in the .qhelp + add a reference about key management.
2024-07-29 17:23:14 +01:00
am0o0
4dc1a10f71
update tests for zip4j, add aditional flow steps for zip4j, remove BombTypeInputStream class since we don't need it anymore, add a predicate which was for testing porpose and was junk
2024-07-29 18:10:04 +02:00
Geoffrey White
d66e407c3e
Swift: Improve the encryption in examples for swift/cleartext-* queries.
2024-07-29 17:02:57 +01:00
Jami Cogswell
e226da4f04
Java: use post-process provenance pretty-printing in .ql library-tests
2024-07-29 11:46:28 -04:00
Jeroen Ketema
46b92f372b
Merge pull request #17090 from jketema/macos-unsupported
...
Remove EOL macOS versions from the supported platforms list
2024-07-29 17:41:28 +02:00
RobbingDaHood
1cb58922a2
Minor changes to formulations for java/error-message-exposure
...
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com >
2024-07-29 16:48:15 +02:00
Alexandre Boulgakov
2396c3c798
C++: Update MaD tests with correct template parameter counting in the presence of packs.
2024-07-29 14:59:49 +01:00
Ian Lynagh
1530037eae
Merge pull request #17071 from igfoo/igfoo/dep_env
...
Java/Kotlin: Remove support for deprecated SOURCE_ARCHIVE and TRAP_FOLDER
2024-07-29 14:55:50 +01:00
Jeroen Ketema
9dff666cb3
Remove EOL macOS versions from the supported platforms list
2024-07-29 15:28:44 +02:00
Joe Farebrother
68512eea14
Remove remaining files from experimental tests
2024-07-29 11:19:33 +01:00
Joe Farebrother
ef3bbeacd6
Add check for kwargs in cookie attribute predicates
2024-07-29 11:17:42 +01:00
Joe Farebrother
90e87a1752
Factor each framework implementation of the cookie parameters to a common concept
2024-07-29 10:51:24 +01:00
Joe Farebrother
c7f9095739
Apply similar changes to httponly
2024-07-29 10:29:59 +01:00
Joe Farebrother
1127b08635
Merge branch 'main' into python-cookie-concept-promote
2024-07-29 10:26:03 +01:00
Joe Farebrother
d997eee6e6
Code review suggestions - make definitions clearer
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-07-29 10:22:33 +01:00
Joe Farebrother
58689c90fb
Merge pull request #16893 from joefarebrother/python-cookie-injectio-promote
...
Python: Promote cookie injection query from experimental
2024-07-29 10:17:01 +01:00
Owen Mansel-Chan
0a7772d8a7
Merge pull request #17014 from owen-mc/go/provenance-postprocess-qltest
...
Go: Add support for provenance pretty-printing as a qltest postprocess step
2024-07-29 10:09:05 +01:00
yoff
d23d138e7d
Merge pull request #16923 from RasmusWL/impossible-isinstance
...
Python: Add test for impossible isinstance flow
2024-07-29 09:33:30 +02:00
Jami Cogswell
bab89c46b6
Java: use post-process provenance pretty-printing in library-tests
2024-07-28 18:13:58 -04:00
Jami Cogswell
0a382bf0cf
Java: use post-process provenance pretty-printing in experimental/query-tests
2024-07-28 18:13:20 -04:00
Jami Cogswell
c70d39539e
Java: use post-process provenance pretty-printing in query-tests
2024-07-28 18:12:17 -04:00
Owen Mansel-Chan
f307f272d5
Go: Use provenance pretty-printing as a qltest post-process step
2024-07-28 21:31:50 +01:00
Owen Mansel-Chan
6960c5232b
Go: Add support for provenance pretty-printing as a qltest post-process step
2024-07-28 21:31:50 +01:00
Am
6f8eec2bf9
Merge branch 'github:main' into amammad-cpp-bombs
2024-07-28 18:49:15 +03:30
am0o0
c8749ff82e
Merge branch 'amammad-java-bombs' of https://github.com/am0o0/codeql into amammad-java-bombs
2024-07-28 12:15:23 +02:00
am0o0
209fa1a10a
update tests
2024-07-28 12:15:07 +02:00
am0o0
0593eaad52
we don't need ConstructorCall for ZipFile anymore since we have a more accurate sink for this
2024-07-28 12:12:07 +02:00
am0o0
cc752113af
we don't need TypeInputStreamConstructorArgumentSink anymore
2024-07-28 12:09:52 +02:00
am0o0
7689db7d42
change apache commons sink
2024-07-28 12:09:33 +02:00
am0o0
1b97804f45
update tests
2024-07-28 11:45:48 +02:00
Am
96c142bf0a
Merge branch 'main' into amammad-java-JWT
2024-07-28 13:03:23 +03:30
am0o0
6538a06f29
update tests
2024-07-28 11:30:59 +02:00
am0o0
b5e7716579
remove flow states, remove string as sources
2024-07-28 11:26:18 +02:00
am0o0
46ddddc8cf
Merge tag 'codeql-cli/v2.18.1' into amammad-java-JWT
...
Compatible with CodeQL CLI 2.18.1
2024-07-28 11:23:20 +02:00
am0o0
85b02b1399
use MethodCall instead of MethodAccess, change query id
2024-07-28 10:42:44 +02:00
am0o0
494f0b709e
Merge branch 'main' into amammad-java-JWT
2024-07-28 10:37:26 +02:00
am0o0
14cf47b906
comply with PascalCase/camelCase, remove redundant import
2024-07-28 10:28:28 +02:00
Chris Smowton
e3559d8f93
Adjust test expectations
2024-07-28 10:27:11 +02:00
Chris Smowton
142d7ae005
Make test compatible with Servlet 2.5; use old Servlet stubs
2024-07-28 10:26:58 +02:00
Jeroen Ketema
e1329dff72
Merge pull request #16947 from github/calumgrant/attributes
...
C++: Update attributes test output
2024-07-26 21:05:46 +02:00
Florin Coada
b6aea3cde1
Merge pull request #17083 from github/changedocs/2.18.1
...
Update codeql changelog to version 2.18.1
2024-07-26 18:23:16 +01:00
Florin Coada
d189526283
Update docs/codeql/codeql-overview/codeql-changelog/codeql-cli-2.18.1.rst
...
Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com >
2024-07-26 18:16:12 +01:00
Florin Coada
707acdef08
Update codeql-cli-2.18.1.rst
2024-07-26 17:25:58 +01:00
Florin Coada
450137d2cf
Update codeql changelog to version 2.18.1
2024-07-26 17:15:23 +01:00
Jami
0ba5a74f6a
Merge pull request #17074 from jcogs33/jcogs33/java/fix-regex-use-comments
...
Java: fix comments about use of sink kind `regex-use`
2024-07-26 08:57:39 -04:00
Sylwia Budzynska
a05266c236
Formatting
2024-07-26 14:55:58 +02:00
Jami
ff9093f2de
Merge branch 'main' into jcogs33/java/add-apache-ant-path-inj-sinks
2024-07-26 08:54:27 -04:00
Sylwia Budzynska
358a1b3a20
Fix tests
2024-07-26 14:19:06 +02:00
Sylwia Budzynska
6d1c00742f
Add tests and change note
2024-07-26 14:15:43 +02:00
Sylwia Budzynska
221c18934c
Add models
2024-07-26 13:23:39 +02:00
Florin Coada
8eb3b31ee2
Merge pull request #17060 from github/changedocs/2.18.0
...
Update unified changelog for 2.17.6 and 2.18.0
2024-07-26 11:35:41 +01:00
Florin Coada
72e05c952e
Merge branch 'main' into changedocs/2.18.0
2024-07-26 11:27:41 +01:00
Mathias Vorreiter Pedersen
c0263bef5a
Merge pull request #17062 from MathiasVP/speed-up-alias-analysis-4
...
C++: Speed up alias analysis
2024-07-26 10:02:02 +01:00
Mathias Vorreiter Pedersen
6b68cf6bdc
Merge pull request #17076 from MathiasVP/add-missing-write-side-effect-to-remquo
...
C++: Add missing write side effect to `std::remquo`
2024-07-26 09:56:57 +01:00
Jeroen Ketema
06a3bf8808
Merge pull request #17077 from jketema/explicit-bool2
...
C++: Add more `explicit(bool)` tests
2024-07-26 10:55:54 +02:00
Anders Schack-Mulligen
822f8b06f0
Merge pull request #17011 from aschackmull/dataflow/provenance-postprocess-qltest
...
Shared: Add support for provenance pretty-printing as a qltest postprocess step.
2024-07-26 10:51:59 +02:00
Jeroen Ketema
a944922c97
C++: Add more explicit(bool) tests
2024-07-26 09:47:01 +02:00
Arthur Baars
b34b589005
Merge branch 'main' into aibaars/proxy-tests
2024-07-26 09:24:54 +02:00
Owen Mansel-Chan
c051d33cc7
Merge branch 'main' into dataflow/provenance-postprocess-qltest
2024-07-26 08:04:05 +01:00
Joe Farebrother
ebeb187fd9
Remove unneeded experimental file
2024-07-25 23:16:48 +01:00
Geoffrey White
52020f7e5b
Merge pull request #17028 from geoffw0/cryptodoc
...
C++: Improve query doc advice for using encryption
2024-07-25 21:46:16 +01:00
RobbingDaHood
feb31d2006
Merge branch 'main' into 17052-second-try-do-not-expose-error-message
2024-07-25 18:13:49 +02:00
Mathias Vorreiter Pedersen
91edf82c8a
C++: Add more missing overrides.
2024-07-25 17:13:26 +01:00
Mathias Vorreiter Pedersen
b640bdccdc
C++: Accept test changes.
2024-07-25 17:13:10 +01:00
Mathias Vorreiter Pedersen
52f8f04e9d
C++: Add write side effect to 'remquo'.
2024-07-25 17:12:56 +01:00
Daniel Winther Petersen
1c1ba7734f
Now alerts about exposing exception.getMessage() in servlet responses are split out of java/stack-trace-exposure into its own alert java/error-message-exposure because this is a better fit.
2024-07-25 18:12:45 +02:00
Jami
91f5f086fb
Merge pull request #17025 from jcogs33/jcogs33/java/adjust-url-syntheticfield
...
Java: add TaintInheritingContent for URL synthetic fields
2024-07-25 12:11:39 -04:00
Mathias Vorreiter Pedersen
d2f5734ac5
C++: Add FP.
2024-07-25 17:08:47 +01:00
Arthur Baars
9d6260b334
Copy os.environment
...
Prevents cryptic "OSError: [WinError 10106] The requested service provider could not be loaded or initialized" error from Python subprocess call
2024-07-25 17:59:11 +02:00
Mathias Vorreiter Pedersen
30abc958a8
Merge pull request #16982 from MathiasVP/promote-unsigned-difference-expression-compared-zero-to-code-scanning
...
C++: Promote `cpp/unsigned-difference-expression-compared-zero` to Code Scanning
2024-07-25 16:18:39 +01:00
Jami Cogswell
eea3e82cca
Java: fix 'regex-use' comments
2024-07-25 10:39:03 -04:00
Geoffrey White
27314aac16
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2024-07-25 15:17:21 +01:00
Owen Mansel-Chan
1aa63c3f2e
Accept model numbering changes
2024-07-25 14:55:50 +01:00
Jeroen Ketema
9d75782c44
Merge pull request #17073 from jketema/explicit-bool
...
C++: Add additional test cases for `explict` and `explicit(bool)` specifiers
2024-07-25 15:40:38 +02:00
Mathias Vorreiter Pedersen
087b0dac1d
C++: Fix QLDoc.
2024-07-25 14:38:26 +01:00
Alex Ford
9fb657c4c4
Merge pull request #16781 from alexrford/rb/weak-sensitive-data-hashing
...
Add `rb/weak-sensitive-data-hashing` query port
2024-07-25 14:11:42 +01:00
Mathias Vorreiter Pedersen
4d3377b116
Merge branch 'main' into promote-unsigned-difference-expression-compared-zero-to-code-scanning
2024-07-25 14:00:05 +01:00
Jeroen Ketema
3e7a60c1a6
C++: Add additional test cases for explict and explicit(bool) specifiers
...
Note that the `explict(bool)` specifiers currently do not end up in the
database.
2024-07-25 14:41:44 +02:00
Anders Schack-Mulligen
c693f03462
Merge pull request #17070 from aschackmull/dataflow/pptype-refactor
...
Dataflow: Replace `ppReprType` with `DataFlowType.toString`.
2024-07-25 14:30:08 +02:00
Geoffrey White
245f43dd58
Merge pull request #17064 from geoffw0/swiftbobs
...
Swift: Minor fixes
2024-07-25 13:05:19 +01:00
Owen Mansel-Chan
a6cb511ed7
Convert XPath injection sinks to MaD
2024-07-25 12:56:06 +01:00
Owen Mansel-Chan
f3069c8fbb
Improve XPath injection test (incl extra sinks)
...
Currently the extra sinks are not detected. This will be fixed in the
next commit.
2024-07-25 12:55:05 +01:00
Owen Mansel-Chan
78b66abad3
Convert existing credentials sinks to MaD
...
I checked that the tests failed when I removed the classes and passed
again when I add the MaD models.
2024-07-25 12:53:16 +01:00
Owen Mansel-Chan
93c9910e6f
Convert go/request-forgery sinks to MaD
2024-07-25 12:53:15 +01:00
Owen Mansel-Chan
f7d681516a
Allow MaD sinks for go/request-forgery
...
Request forgery sinks which have `getRequest` different from the sink
itself cannot be modeled using models-as-data.
2024-07-25 12:53:14 +01:00
Ian Lynagh
225d2915e5
Java/Kotlin: Add changenote for dropping SOURCE_ARCHIVE/TRAP_FOLDER
2024-07-25 12:48:55 +01:00
Ian Lynagh
e4b9335ce0
Kotlin: Remove support for deprecated SOURCE_ARCHIVE and TRAP_FOLDER
2024-07-25 12:46:13 +01:00
Mathias Vorreiter Pedersen
099c282277
C++: Move large function to its own file.
2024-07-25 12:11:09 +01:00
Anders Schack-Mulligen
7a48fe1102
Dataflow: Replace ppReprType with DataFlowType.toString.
2024-07-25 13:08:47 +02:00
Mathias Vorreiter Pedersen
c5da43e691
Merge pull request #16981 from MathiasVP/phi-escape-5-follow-up-2
...
C++: Alias analysis follow-up to #16907
2024-07-25 11:59:44 +01:00
Mathias Vorreiter Pedersen
34ad211900
C++: Add change note.
2024-07-25 10:50:28 +01:00
Mathias Vorreiter Pedersen
032ae9e1e7
Merge pull request #17034 from MathiasVP/more-alias-and-side-effect-models
...
C++: Add more alias and side effect models
2024-07-25 10:40:32 +01:00
Arthur Baars
8e7e7c0188
Update exepected output
2024-07-25 10:50:18 +02:00
Arthur Baars
9478139390
Java: buildless: proxy test with gradle
2024-07-25 08:34:11 +02:00
Arthur Baars
5a1adc51c1
Java: buildless: proxy test with maven
2024-07-25 08:32:48 +02:00
Arthur Baars
a35be08d18
Java: buildess proxy tests: add mitm_proxy.py
...
A mock implementation of an https man-in-the-middle proxy
2024-07-25 08:32:02 +02:00
Joe Farebrother
8f714c631f
Code reveiw suggestions. correction in changenote + style in example
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2024-07-24 21:37:12 +01:00
Owen Mansel-Chan
5a39610ba7
Merge pull request #17053 from owen-mc/java/fix/regex-use-sink-kind
...
Java: Add comments about use of sink kind `regex-use`
2024-07-24 21:08:52 +01:00
Jami Cogswell
5854e88f63
Java: add change note
2024-07-24 16:00:38 -04:00
Geoffrey White
d77d7c533b
Swift: Change note.
2024-07-24 18:25:06 +01:00
Geoffrey White
ecefa3e383
Swift: Fix a corrupted model.
2024-07-24 18:16:24 +01:00
Mathias Vorreiter Pedersen
3f5b4a81cf
C++: Fix more inconsistencies.
2024-07-24 17:53:28 +01:00
Geoffrey White
44e33c7be7
Swift: Fill out the empty comment for SsaDefinitionNode (contents stolen from JS).
2024-07-24 17:51:12 +01:00
Calum Grant
d8cc92068a
C++: Update attributes test output
2024-07-24 17:48:35 +01:00
Mathias Vorreiter Pedersen
4a34dc125b
C++: Expand the macro manually to work around an extractor bug.
2024-07-24 15:51:54 +01:00
Mathias Vorreiter Pedersen
b3bffb6826
Merge branch 'main' into phi-escape-5-follow-up-2
2024-07-24 15:22:40 +01:00
Mathias Vorreiter Pedersen
7ec3162583
C++: Sync identical files.
2024-07-24 15:20:00 +01:00
Mathias Vorreiter Pedersen
a5efe9fa09
C++: Respond to review comments.
2024-07-24 15:18:26 +01:00
Mathias Vorreiter Pedersen
90b25a6696
Merge pull request #17057 from MathiasVP/avoid-expensive-negation
...
C++: Avoid expensive negation
2024-07-24 15:09:52 +01:00
Mathias Vorreiter Pedersen
5e484e4006
C++: Accept test changes.
2024-07-24 14:29:42 +01:00
Mathias Vorreiter Pedersen
b1bea31720
C++: Speed up alias analysis.
2024-07-24 14:29:41 +01:00
Mathias Vorreiter Pedersen
28cff2ea20
C++: Add a testcase with many def/use pairs in alias analysis.
2024-07-24 13:46:31 +01:00
Florin Coada
1de91b4cd5
Update unified changelog for 2.17.6 and 2.18.0
2024-07-24 12:55:51 +01:00
Mathias Vorreiter Pedersen
ff60d9647f
C++: Sync identical files.
2024-07-24 11:53:14 +01:00
Mathias Vorreiter Pedersen
ec134927d8
C++: Avoid expensive negation.
2024-07-24 11:53:11 +01:00
Anders Schack-Mulligen
9f79a39deb
Merge pull request #17026 from Marcono1234/patch-1
...
Java: Update `Annotation` predicate examples in language guide
2024-07-24 12:43:50 +02:00
Mathias Vorreiter Pedersen
854a277ab5
Merge branch 'main' into more-alias-and-side-effect-models
2024-07-24 10:53:27 +01:00
Mathias Vorreiter Pedersen
b7542ee575
C++: Fix more inconsistencies (and delete unnecessary override).
2024-07-24 10:52:35 +01:00
Geoffrey White
eaf2949857
Merge pull request #17054 from geoffw0/scanf
...
C++: Fix false positives in cpp/incorrectly-checked-scanf
2024-07-24 10:51:25 +01:00
Geoffrey White
741a3289a1
Merge pull request #17055 from geoffw0/usefree
...
C++: More tests for cpp/use-after-free
2024-07-24 10:35:32 +01:00
Jeroen Ketema
4cbc3349f6
Merge pull request #17050 from jketema/destroying-deletes
...
C++: Support destroying deletes
2024-07-24 09:29:55 +02:00
Jeroen Ketema
acbca9c108
C++: Support destroying deletes
2024-07-24 08:21:01 +02:00
Owen Mansel-Chan
3edeb82d5b
Add comment by models using regex-use sink kind
2024-07-23 21:40:45 +01:00
Owen Mansel-Chan
89f958105a
Mention regex-use sink kind in QLDoc for regexSinkKindInfo
2024-07-23 21:38:30 +01:00
Geoffrey White
1456012b54
C++: Additional test cases for cpp/use-after-free.
2024-07-23 18:02:14 +01:00
Geoffrey White
4920039a00
C++: Test spacing.
2024-07-23 18:01:30 +01:00
Geoffrey White
a98fac0d7d
C++: Change note.
2024-07-23 17:27:42 +01:00
Geoffrey White
6026f65f8b
C++: Fix FPs in cpp/incorrectly-checked-scanf.
2024-07-23 17:27:37 +01:00
Mathias Vorreiter Pedersen
43df4a9393
C++: Fix inconsistencies.
2024-07-23 17:22:04 +01:00
Geoffrey White
c3f2faff76
C++: Add another pattern I found in the wild.
2024-07-23 17:19:01 +01:00
Geoffrey White
a9f6b2110e
C++: Add new test cases for cpp/incorrectly-checked-scanf.
2024-07-23 15:27:22 +01:00
Owen Mansel-Chan
4c8da54b64
Merge pull request #17036 from chmodxxx/sbaddou/fix
...
Java: Move SensitiveLoggerConfig source to extensible format
2024-07-23 14:55:26 +01:00
Chuan-kai Lin
67dac96e80
Merge pull request #17041 from github/post-release-prep/codeql-cli-2.18.1
...
Post-release preparation for codeql-cli-2.18.1
2024-07-23 06:48:30 -07:00
Geoffrey White
e467cc033e
Merge pull request #17037 from geoffw0/sizecheck
...
C++: Fix issue with cpp/suspicious-allocation-size
2024-07-23 14:47:17 +01:00
Geoffrey White
1ed5af1d6a
Merge pull request #17035 from geoffw0/allocerr
...
C++: Fix issue with cpp/incorrect-allocation-error-handling
2024-07-23 14:36:05 +01:00
Alexandre Boulgakov
db53be39fe
Merge pull request #17047 from github/sashabu/using-enum
...
C++: Add `UsingEnumDeclarationEntry` changenote.
2024-07-23 14:19:18 +01:00
Alexandre Boulgakov
37ceb0118a
Merge pull request #17048 from github/sashabu/ame
...
Docs: Document preference for American English in change notes.
2024-07-23 14:05:57 +01:00
Anders Schack-Mulligen
86c63dbedf
Dataflow: Fix bug causing spurious flow for FeatureHasSinkCallContext.
2024-07-23 14:59:24 +02:00
Alexandre Boulgakov
e461691c85
C++: Move UsingEnumDeclarationEntry change note.
2024-07-23 13:57:07 +01:00
Alexandre Boulgakov
5e6c9fb661
Docs: Document preference for American English in change notes.
2024-07-23 13:49:30 +01:00
Alexandre Boulgakov
5a5c5d1012
C++: Translate change note to American English.
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2024-07-23 13:47:44 +01:00
Alexandre Boulgakov
29bda5a805
C++: Add UsingEnumDeclarationEntry changenote.
2024-07-23 13:43:57 +01:00
Anders Schack-Mulligen
f598a0b607
Dataflow: Add test highlighting bug.
2024-07-23 14:34:33 +02:00
Joe Farebrother
db27fd934a
Add tests for tornado and twisted
2024-07-23 13:21:37 +01:00
Geoffrey White
c1bd892a13
Update cpp/ql/src/Security/CWE/CWE-311/CleartextStorage.inc.qhelp
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2024-07-23 13:14:07 +01:00
Salah Baddou
4f80ae2190
Merge branch 'main' into sbaddou/fix
2024-07-23 12:03:13 +01:00
Salah Baddou
092de640fe
add change-notes
2024-07-23 11:04:56 +01:00
Joe Farebrother
44271813a5
Add change note
2024-07-23 10:15:28 +01:00
Joe Farebrother
93f70b3ad9
Add unit tests
2024-07-23 10:15:23 +01:00
Joe Farebrother
b28d79960b
Update ConceptsTests and make a fix
2024-07-23 10:15:09 +01:00
Joe Farebrother
be87eb50d4
Add cookie models to each framework
2024-07-23 10:15:02 +01:00
Joe Farebrother
a73d675e6e
Remove experimental query versions
2024-07-23 10:14:55 +01:00
Joe Farebrother
226e4eb8a5
Use a 3-valued newtype for hasSameSiteAttribute
2024-07-23 10:14:45 +01:00
Joe Farebrother
df5569fda9
Add documentation
2024-07-23 10:14:40 +01:00
Joe Farebrother
32fbe52f0f
Model cookie attributes for Django and Flask
2024-07-23 10:14:33 +01:00
Joe Farebrother
6a7bdaf284
Fix experimental query compilation
2024-07-23 10:14:29 +01:00
Joe Farebrother
033dd9f8a6
Promote insecure cookie query
2024-07-23 10:14:22 +01:00
Joe Farebrother
9ad6c8c5eb
Implement cookie attributes for cases in which a raw header is set
2024-07-23 10:14:16 +01:00
Joe Farebrother
2df09f6194
Change flag predicates to boolean parameters rather than boolean results
2024-07-23 10:14:08 +01:00
Joe Farebrother
6f7b2a2d20
Add cookie flags to cookie write concept, and alter experimental queries to use them
2024-07-23 10:14:00 +01:00
Owen Mansel-Chan
ff8bb2b1f8
Merge pull request #16760 from owen-mc/java/reverse-dns-separate-threat-model-kind
...
Java: make a separate threat model kind for reverse DNS sources
2024-07-23 10:08:52 +01:00
Jeroen Ketema
d2573310c6
Merge pull request #17006 from github/sashabu/using-enum
...
C++: Support `using enum` declarations.
2024-07-23 10:25:06 +02:00
Anders Schack-Mulligen
b5b9c4d931
Update java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll
...
Java: Make class private
2024-07-23 10:07:51 +02:00
Anders Schack-Mulligen
bb86a07a93
Update java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll
...
fix typo
2024-07-23 10:03:07 +02:00
Anders Schack-Mulligen
5912a17ab4
Update java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll
...
Autoformat
2024-07-23 10:01:49 +02:00
github-actions[bot]
49cc8f8ff8
Post-release preparation for codeql-cli-2.18.1
2024-07-22 22:00:48 +00:00
Edward Minnix III
8038796207
Merge pull request #16993 from egregius313/egregius313/java/model-lastaflute-framework
...
Add models for the `lastaflute` framework
2024-07-22 16:40:16 -04:00
Alexandre Boulgakov
3defc8b5de
C++: Fix typo - remove unbound and unused variable in downgrade script.
2024-07-22 18:27:39 +01:00
Geoffrey White
437c679266
C++: Switch to using the Buffer.qll implementation directly.
2024-07-22 18:09:08 +01:00
Alexandre Boulgakov
af562f15f3
C++: Handle using_container in using-enum downgrade script.
2024-07-22 18:02:14 +01:00
Geoffrey White
e8718f9d2f
C++: Change note.
2024-07-22 18:01:47 +01:00
Geoffrey White
7b03f3268f
C++: Fix false positives.
2024-07-22 18:00:15 +01:00
Alexandre Boulgakov
06a9599906
C++: Update stats for using enum.
2024-07-22 17:42:31 +01:00
Alexandre Boulgakov
11f5663afc
C++: Add using enum upgrade and downgrade scripts.
2024-07-22 17:42:28 +01:00
Alexandre Boulgakov
a0954f15c0
C++: Support using enum declarations.
2024-07-22 17:42:25 +01:00
Geoffrey White
45e92cec6a
C++: Extend tests for cpp/suspicious-allocation-size.
2024-07-22 17:34:49 +01:00
Salah Baddou
2ad70cbee2
Move SensitiveLoggerConfig source to extensible format
2024-07-22 17:34:00 +01:00
Mathias Vorreiter Pedersen
db9cd1f612
C++: Fix QLDoc copy-paste fails.
2024-07-22 17:08:01 +01:00
Geoffrey White
b1608d815b
C++: Change note.
2024-07-22 16:34:41 +01:00
Geoffrey White
b4fa23d731
C++: Address false positive results in template instantiations.
2024-07-22 16:34:39 +01:00
Mathias Vorreiter Pedersen
c256c87a7e
Update cpp/ql/lib/semmle/code/cpp/models/implementations/Iterator.qll
2024-07-22 16:34:23 +01:00
Mathias Vorreiter Pedersen
281212a22c
C++: Accept test changes.
2024-07-22 16:23:26 +01:00
Mathias Vorreiter Pedersen
999fb07931
C++: Add more alias models.
2024-07-22 16:19:19 +01:00
Anders Schack-Mulligen
272e523323
Dataflow: Add provenance to StagePathGraph.
2024-07-22 15:02:13 +02:00
Geoffrey White
8262330e4d
C++: Extend the placement new test cases for cpp/incorrect-allocation-error-handling.
2024-07-22 12:38:19 +01:00
Geoffrey White
b00e312569
C++: Replace placeholder key in the example for cpp/cleartext-storage-database.
2024-07-22 11:17:34 +01:00
Geoffrey White
f931dab14a
C++: Improve the cpp/cleartext-* query examples by using libsodium rather than pseudocode.
2024-07-22 11:17:33 +01:00
Geoffrey White
ffc61ae1bb
C++: Make memset_s a clearer recommendation in the .qhelp for cpp/memset-may-be-deleted.
2024-07-22 09:51:22 +01:00
Marcono1234
6d468c1bae
Java: Update Annotation predicate examples in language guide
2024-07-21 19:31:55 +02:00
Jami Cogswell
4790656b79
Java: add TaintInheritingContent for URL synthetic fields
2024-07-20 23:03:32 -04:00
Owen Mansel-Chan
2a5144d9d9
Improve tests for reverse DNS sources
2024-07-20 21:40:02 +01:00
Owen Mansel-Chan
a64eafca2b
Do not mention subcategories of remote
...
They are not in use by any language yet.
2024-07-20 21:31:08 +01:00
Jami Cogswell
d6d2a213e7
Java: add change note
2024-07-19 18:19:37 -04:00
Jami Cogswell
f3e5b55cc4
Java: add path injection sinks for Property.setFile and Property.setResource
2024-07-19 18:04:17 -04:00
Joe Farebrother
661a4126ac
Add change note
2024-07-19 09:23:33 +01:00
Joe Farebrother
baf51334e4
Update documentation
2024-07-19 09:13:30 +01:00
Michael Nebel
2796597d1a
Code quality improvements.
2024-07-19 09:36:17 +02:00
Ed Minnix
ad4bca9975
Fix provenance in tests
2024-07-18 18:18:24 -04:00
Ed Minnix
0990a370c7
Convert QL classes for Lastaflute to MaD
2024-07-18 17:41:06 -04:00
Ed Minnix
9713551448
Missing QLDoc
2024-07-18 17:41:05 -04:00
Ed Minnix
4fa45bb81c
Change note
2024-07-18 17:41:03 -04:00
Ed Minnix
62944ee473
Add tests for lastaflute framework
2024-07-18 17:41:02 -04:00
Ed Minnix
3bd330423d
Add some models for the org.lastaflute.web library
...
Methods annotated `@Execute` are handlers for URLs. Therefore, the
parameters of the methods annotated with the
`org.lastaflute.web.Execute` annotation are likely either URL parameters
or forms.
2024-07-18 17:41:00 -04:00
Owen Mansel-Chan
9a66e66d66
Merge branch 'main' into amammad-java-bombs
2024-07-18 21:28:23 +01:00
am0o0
7bb7d83b26
remove duplicate sinks
...
replace some RefType with DecompressionBomb::BombTypeInputStream
2024-07-18 20:55:59 +02:00
am0o0
aef0a03ab6
remove favorites.json
2024-07-18 20:46:40 +02:00
Michael Nebel
0bf1ed1d96
C#/Java: Update model generator expected output.
2024-07-18 16:35:40 +02:00
Michael Nebel
ca4bd0c606
C#/Java/Go: Neutrals are split into seperate classes.
2024-07-18 16:29:38 +02:00
Michael Nebel
c9832df3c0
C#/Java: Add test for missing neutral summary generation.
2024-07-18 16:29:34 +02:00
Anders Schack-Mulligen
94078e851c
Shared: Add support for provenance pretty-printing as a qltest postprocess step.
2024-07-18 15:34:30 +02:00
Mathias Vorreiter Pedersen
7b8301ac7a
C++: Accept more test changes.
2024-07-17 15:44:52 +01:00
Mathias Vorreiter Pedersen
1c8e0c453c
C++: Fix more inconsistencies.
2024-07-17 15:44:50 +01:00
Mathias Vorreiter Pedersen
5f70c44270
C++: Add change note.
2024-07-17 11:44:38 +01:00
Mathias Vorreiter Pedersen
9dd43d8e6f
C++: Promote 'cpp/unsigned-difference-expression-compared-zero' to Code Scanning.
2024-07-17 11:44:37 +01:00
Tom
f09010e79c
Update NetHttp.qll
2024-07-17 16:39:11 +08:00
Joe Farebrother
070d67816d
Remove experimental version
2024-07-16 16:50:10 +01:00
Joe Farebrother
8d93c3a852
Move to cwe-20
2024-07-16 16:50:08 +01:00
Joe Farebrother
e885f1f8c4
Add documentation
2024-07-16 16:50:05 +01:00
Joe Farebrother
983bdb92a1
Add test cases + remove redundant import
2024-07-16 16:50:00 +01:00
Joe Farebrother
123214cb2b
Promoto cookie injection query
2024-07-16 16:49:56 +01:00
am0o0
a10b5021b4
fix tests, it is not fixed 100%
2024-07-15 10:13:57 +02:00
am0o0
87b6495c91
add zlib tests with stubs :)
2024-07-14 21:10:56 +02:00
am0o0
bf506f8a9e
remove redundent stubs
2024-07-13 18:06:02 +02:00
am0o0
71e1d63953
finilize tests
2024-07-13 18:00:50 +02:00
am0o0
d8e2d355df
categorize the new stubs
2024-07-13 17:25:38 +02:00
am0o0
8f7c690529
revert some mistakes
2024-07-13 17:03:24 +02:00
am0o0
1d1c476674
update tests and use TaintFlowTestArgString
...
add stubs
add missed sink models
2024-07-13 16:58:51 +02:00
Chris Smowton
1cb9f6370f
Use hasTaintFlow marker
2024-07-13 13:09:43 +02:00
Chris Smowton
059a1389c6
Run TaintedPath query on experimental tests
2024-07-13 13:09:26 +02:00
Chris Smowton
4e9a528df9
Move experimental tests
2024-07-13 13:09:08 +02:00
am0o0
025aa77e79
add the snappy missed sink
2024-07-13 11:15:45 +02:00
am0o0
8c106964ec
remove duplicate parts thanks to @owen-mc
2024-07-13 11:11:07 +02:00
am0o0
3868b386f3
update inline tests
2024-07-13 10:47:42 +02:00
am0o0
0165696a1e
update tests
2024-07-13 10:33:35 +02:00
am0o0
8ba48e801a
fix examples
2024-07-13 10:28:19 +02:00
am0o0
dd3cc33298
move DecompressionBombsFlow::PathGraph to DecompressionBomb.ql
2024-07-13 10:24:07 +02:00
am0o0
c824aa4e45
delete pom.xml
2024-07-13 10:21:53 +02:00
Am
a3b5d2a28d
Update java/ql/src/experimental/Security/CWE/CWE-522-DecompressionBombs/DecompressionBomb.qhelp
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-07-13 10:20:43 +02:00
Am
4fbf76008e
Update java/ql/src/experimental/Security/CWE/CWE-522-DecompressionBombs/DecompressionBomb.qhelp
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2024-07-13 10:20:25 +02:00
Rasmus Wriedt Larsen
efcd4e297e
Add change-note
2024-07-12 15:21:51 +02:00
Rasmus Wriedt Larsen
db8a5306cf
Python: Add MaD support for DictionaryElement/DictionaryElementAny for sources
2024-07-12 15:19:40 +02:00
Rasmus Wriedt Larsen
eed8b3e87b
Python: Add more tests for MaD sources
2024-07-12 15:10:23 +02:00
Tom Hvitved
9263977329
Ruby: Adopt shared SSA data-flow integration
2024-07-12 14:23:24 +02:00
Tom Hvitved
0459422a6c
C#: Restrict multi-body dataflow dispatch based on file-system distance
2024-07-11 16:52:20 +02:00
Tom Hvitved
35bf990f23
C#: Add data flow test for multi-body dispatch
2024-07-11 16:52:18 +02:00
am0o0
dd4bce8e30
finilize tests
2024-07-09 19:48:58 +02:00
am0o0
7a5838f1a2
MethodAccess => MethodCall
2024-07-09 19:43:22 +02:00
am0o0
e87d2fe922
remove redundent imports
2024-07-09 19:41:06 +02:00
Owen Mansel-Chan
d4bfab4735
Accept minor copy-editing suggestions.
2024-07-09 07:00:01 +01:00
Owen Mansel-Chan
b83147fa44
Add links on threat models to change note
2024-07-08 15:39:27 +01:00
Owen Mansel-Chan
8241d0b7ef
Update QLDoc for ReverseDnsUserInput
2024-07-08 15:33:39 +01:00
Owen Mansel-Chan
07a25a233d
Update threat model documentation
2024-07-08 15:32:47 +01:00
Owen Mansel-Chan
64432215a9
Make "reverse-dns" pass validation
2024-07-08 15:16:14 +01:00
Owen Mansel-Chan
8526510783
Add ungrouped threat models to threat-model-grouping.model.yml
2024-07-08 15:15:40 +01:00
Rasmus Wriedt Larsen
173cd13ded
Python: Add test for impossible isinstance flow
2024-07-08 12:06:53 +02:00
am0o0
fe1103d997
add stubs, upgrade test to inline test, update test files
2024-07-04 15:25:36 +02:00
am0o0
7e5f2e2a48
experimentalSinkModel to sinkModel, remove one path injection sink that already exist before
2024-07-03 08:55:12 +02:00
am0o0
7df59ffe6c
update tests, is not completed yet :)
2024-07-01 18:22:27 +02:00
am0o0
a6833945c1
remove additional taint steps and flow states
2024-07-01 16:07:44 +02:00
am0o0
d31711bd89
merge all ne flow sources into one by extending current abstract class
2024-07-01 15:16:44 +02:00
am0o0
f1324a413a
update qlhelp
2024-07-01 15:09:56 +02:00
am0o0
b360c8adb8
Update hardcodedCredentials query file to only exclude 'jwt key' kind from with the isTestFile predicate.
...
According to expected test results, with a new query, the jwt sinks of __test__/ dir have been exluded from query results.
2024-07-01 15:00:08 +02:00
am0o0
5a1877547f
update test cases of __tests__/ dir
...
since we want to check if a jwt related sink is in this dir or not
2024-07-01 14:50:07 +02:00
am0o0
6ecd8b7ee8
add new default cred kind
2024-07-01 14:42:34 +02:00
am0o0
fa8c457015
move the TextEncoder and Buffer jose.base64url taint steps to a local query taint step
2024-07-01 12:11:53 +02:00
am0o0
60aa711005
implement TextEncoderStep taint step with globalVarRef predicate
2024-07-01 11:59:05 +02:00
am0o0
65fdb8ccce
move jose SharedTaintStep to a local taint step, add more additional steps with test cases, update test cases and expected test results
2024-07-01 11:38:17 +02:00
Owen Mansel-Chan
60b9d19d72
Add explicit relation between "reverse-dns" and "all"
2024-06-29 21:29:21 +01:00
am0o0
361ad6be6a
use abstract class for decompression flow steps
2024-06-26 12:45:31 +02:00
am0o0
656dc4e276
use abstract class for decompression sinks
2024-06-25 18:09:27 +02:00
am0o0
13f697c056
relocate the query
2024-06-25 17:31:40 +02:00
Owen Mansel-Chan
8458bde51e
Add comment that "reverse-dns" is an ungrouped threat model
2024-06-24 21:23:52 +01:00
Owen Mansel-Chan
9e25279cb8
Change category in change note to "majorAnalysis"
2024-06-24 21:23:51 +01:00
Owen Mansel-Chan
162245fb9a
Fix unrelated test using reverse DNS as source
2024-06-24 21:23:50 +01:00
Owen Mansel-Chan
059ef42f41
Add change note
2024-06-24 21:23:49 +01:00
Owen Mansel-Chan
878867205e
Fix taintsources test
2024-06-24 21:23:47 +01:00
Owen Mansel-Chan
91db2b6c9c
Make new threat model kind "reverse-dns"
2024-06-24 21:23:46 +01:00
Jonathan Leitschuh
472cca9221
Align Java CommandInjectionRuntimeExec.ql Severity
...
Align severity with other command injection vulnerabilities:
- 4a448f445e/cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql (L8)
- 4a448f445e/go/ql/src/Security/CWE-078/CommandInjection.ql (L7)
- 4a448f445e/swift/ql/src/queries/Security/CWE-078/CommandInjection.ql (L7)
- 4a448f445e/javascript/ql/src/Security/CWE-078/CommandInjection.ql (L7)
2024-06-21 10:29:27 -04:00
Jonathan Leitschuh
1728e5dfd5
Align Ruby NonConstantKernelOpen.ql Severity
...
Align severity with other command injection vulnerabilities:
- 4a448f445e/cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql (L8)
- 4a448f445e/go/ql/src/Security/CWE-078/CommandInjection.ql (L7)
- 4a448f445e/swift/ql/src/queries/Security/CWE-078/CommandInjection.ql (L7)
- 4a448f445e/javascript/ql/src/Security/CWE-078/CommandInjection.ql (L7)
2024-06-21 10:27:47 -04:00
Alex Ford
51f3f15e42
Ruby: remove outdated test comment
2024-06-18 17:51:49 +01:00
Alex Ford
d79a253c20
Ruby: remove unused import
2024-06-18 17:49:14 +01:00
Alex Ford
7380e29774
Ruby: changenote for rb/weak-sensitive-data-hashing
2024-06-18 17:48:51 +01:00
Alex Ford
d994959720
Ruby: add tests for rb/weak-sensitive-data-hashing
2024-06-18 17:47:32 +01:00
Alex Ford
81ec6861f9
Ruby: fix some SensitiveDataSource definitions
2024-06-18 17:46:52 +01:00
Alex Ford
f217de9623
Ruby: Move SensitiveDataSource logic into a private module
2024-06-18 16:58:30 +01:00
Alex Ford
6a46fb54c5
Ruby: Add SensitiveDataSource abstract class
2024-06-18 12:11:28 +01:00
Alex Ford
f017821062
Ruby: rb/weak-sensitive-data-hashing qhelp
2024-06-17 15:29:53 +01:00
Alex Ford
d4203d9286
Ruby: minimal port of py/weak-sensitive-data-hashing
2024-06-17 15:27:00 +01:00
am0o0
11a416ea7c
add FlowSources as a common source for all sinks, so we don't need States anymore
2024-06-13 03:30:07 +02:00
am0o0
412472e9a4
add zip4j
2024-06-08 01:14:04 +02:00
am0o0
240b4cd696
update tests
2024-06-08 01:05:55 +02:00
am0o0
ceea475c45
add new s3 and spring IO path injection sinks
2024-06-08 01:04:20 +02:00
am0o0
5a69bbf6b0
use isTestFile from ClassifyFiles module file instead previous where condition, update tests accordingly
2024-06-07 06:11:48 +02:00
am0o0
273848c879
remove old comments
2024-06-07 05:40:17 +02:00
am0o0
a5363286f1
add implicit this
2024-06-07 05:37:58 +02:00
am0o0
184aa0480e
Merge branch 'amammad-cpp-bombs' of https://github.com/amammad/codeql into amammad-cpp-bombs
2024-06-07 05:27:12 +02:00
Am
a5c9dc74bf
Merge branch 'github:main' into amammad-cpp-bombs
2024-06-07 05:27:08 +02:00
am0o0
e37ceac3b1
merge all query files into one query file
2024-06-07 05:26:51 +02:00
am0o0
e4ffdb848e
add tests for new where condition, update expected test results
2024-06-06 14:30:06 +02:00
am0o0
ee05ec0386
remove sanitnzer and add a where condition instead
...
use a simpler where condition(the former sanitizer) for overcoming performance problems
2024-06-06 14:16:41 +02:00
am0o0
61a11c6512
Or to or in docs
2024-06-06 14:10:15 +02:00
am0o0
71dfdfaa92
remove the debug query
2024-05-27 09:33:10 +02:00
am0o0
c2f96a1352
fix a document
2024-05-25 19:35:20 +02:00
am0o0
5d98ec33ab
stash: add debug query
2024-05-25 13:06:41 +02:00
am0o0
d77513579f
update tests
2024-05-25 12:15:25 +02:00
Am
2226f5126b
Merge branch 'main' into amammad-js-hardcodedJWTKey
2024-05-25 13:40:46 +03:30
am0o0
4e365e242c
fix conflict
2024-05-25 12:08:05 +02:00
am0o0
20c087ce39
update tests
2024-05-25 12:06:07 +02:00
am0o0
c299b5657a
Revert "stash"
...
This reverts commit bdee99ae88 .
2024-05-25 12:03:00 +02:00
am0o0
1860af075d
fix conflict
2024-05-25 12:01:12 +02:00
amammad
bdee99ae88
stash
2024-05-13 14:37:05 +02:00
am0o0
02b0b402d6
remove useless predicate
...
add missed FlowState
2024-05-12 19:29:37 +02:00
am0o0
484923e706
update test files
2024-05-12 18:21:17 +02:00
am0o0
be03e582c6
remove isBarrier
2024-05-12 18:17:47 +02:00
am0o0
9fffd7846a
remove empty predicates, fix FP for zipFile
2024-05-12 18:16:57 +02:00
am0o0
c9daf914cb
remove unused predicate
2024-05-12 14:09:55 +02:00
am0o0
3eb5778543
upgrade FlowState to new DecompressionState
2024-05-12 14:08:52 +02:00
am0o0
e23cbeda24
update to MethodCall
2024-05-12 13:54:21 +02:00
am0o0
4b68dd2315
add new additional taint steps, fix some comments
2024-05-12 13:51:08 +02:00
Am
9946e07f36
Merge branch 'github:main' into amammad-java-bombs
2024-05-12 13:17:02 +02:00
amammad
0d0dc5158c
stash
2023-12-01 15:03:03 +01:00
amammad
97eb7b7b72
update example to include more logical vulnerable pattern, add documentations for ql classes
2023-11-22 09:27:55 +01:00
amammad
01fb29e8dc
remove my Hardcoded secret key query in favor of CWE-798:HardcodedCredentials
2023-11-02 16:29:36 +01:00
amammad
e1d42fad2c
move new secret key sinks to existing CredentialsNode class,
...
add new additional global taint and dataflow steps
update tests of CWE-798
add a new sanitizer for `semmle.javascript.security.dataflow.HardcodedCredentialsQuery`
2023-11-02 16:09:01 +01:00
amammad
8e0f52cebc
remove noverification query
2023-10-19 11:57:06 +02:00
amammad
59fb479895
update tests
2023-10-14 12:28:58 +02:00
amammad
e34cc42441
fix a mistake
2023-10-14 12:18:13 +02:00
amammad
7fcf39277d
modularize
2023-10-14 12:04:25 +02:00
amammad
863fa364e2
remove CLI sources Library file & unused file system sinks
2023-09-30 20:11:14 +10:00
amammad
bb8063c0f4
remove CLI sources & unused imports
2023-09-30 06:07:44 +10:00
amammad
2ab10262fc
V3: better sinks, replace sinks arguments to sinks method accesses
2023-09-30 06:06:34 +10:00
amammad
83cffea1a1
v3
2023-09-30 05:56:39 +10:00
amammad
3e9c3e6987
remove inputStream and its subclasses module which has no impact on query now!
2023-09-30 04:28:37 +10:00
amammad
c1b9310ec2
add comments for modules & remote local sources
2023-09-30 04:28:02 +10:00
amammad
9877294b1c
V2, this version is really better than V1
2023-09-06 07:08:01 +10:00
amammad
193693565c
add Inflater
2023-08-31 23:21:33 +10:00
amammad
664890ab33
V1
2023-08-29 22:40:11 +10:00
amammad
e0798b29da
stash: change sinks to zip handles and sources to the zip handle initializers
2023-07-04 18:28:00 +10:00
amammad
065c527615
update Miniz
2023-07-04 07:19:33 +10:00
amammad
16be908cb3
add Miniz
2023-07-04 06:56:30 +10:00
amammad
56bc32ff91
add libarchive
2023-07-04 01:17:22 +10:00
amammad
d4d505d7af
complete the minizip query
2023-07-03 20:39:08 +10:00
amammad
042133a991
add queries for more popular libs
2023-07-03 09:12:37 +10:00
amammad
45499b03d2
change qury file name same as qhelp name
2023-06-26 21:23:22 +10:00
amammad
f715a3437b
better examples
2023-06-26 05:29:16 +10:00
amammad
3ddc9a8b31
fix warnings, more sinks,sources,comments
2023-06-26 05:26:30 +10:00
amammad
ae98510f77
add more source and sinks and sanitizers
2023-06-26 00:21:55 +10:00
amammad
430375e2f0
fix a commit mistake
2023-06-25 20:28:45 +10:00
amammad
4a37da3593
V1
2023-06-25 20:26:21 +10:00
amammad
21b5571bff
V1.1 add additional steps for read methods which I can summarize every single declared sanitizer on the sink whitin isSink predicate
2023-06-25 00:35:37 +10:00
amammad
7354db873a
V1 Bombs
2023-06-24 08:57:57 +10:00