github-actions[bot]
4ec2601976
Post-release preparation for codeql-cli-2.15.4
2023-12-13 15:15:21 +00:00
Florin Coada
e637eb720b
Merge pull request #15076 from github/changedocs/2.15.4
...
Release change notes for 2.15.4
2023-12-12 16:51:28 +00:00
Florin Coada
062a85e77b
Removed local preview dox-out
2023-12-12 14:32:46 +00:00
Florin Coada
c78dfea3db
Release changenotes for 2.15.4
2023-12-12 13:46:32 +00:00
Chuan-kai Lin
ff0c1ca2d6
Merge pull request #15031 from github/release-prep/2.15.4
...
Release preparation for version 2.15.4
2023-12-06 13:35:26 -08:00
github-actions[bot]
c04457e9e7
Release preparation for version 2.15.4
2023-12-06 21:11:50 +00:00
Chuan-kai Lin
4a7e816a30
Merge pull request #15029 from github/copy-alexdenisov/update-docs
...
docs: update supported Swift version
2023-12-06 13:08:54 -08:00
Alex Denisov
7923c33a7b
docs: update supported Swift version
2023-12-06 12:25:31 -08:00
Sarita Iyer
5a4ea7781e
Merge pull request #14976 from github/saritai/docs-update-12431
...
Document threat models
2023-12-04 10:10:00 -05:00
Sarita Iyer
c4b6f44dff
fix punctuation
2023-12-04 09:47:09 -05:00
Sarita Iyer
52a0a8333f
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-04 09:21:22 -05:00
Sarita Iyer
5bf93d096b
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-12-04 09:13:33 -05:00
Tony Torralba
649dc9d1d4
Merge pull request #14993 from github/shati-patel/fix-cwe-tags
...
Update inconsistent CWE tags
2023-12-04 14:30:32 +01:00
Harry Maclean
d630773575
Merge pull request #14627 from alexrford/rb/update_all_sink
...
Ruby: refine `ActiveRecord` `update_all` as an SQL sink
2023-12-04 13:02:14 +00:00
Chris Smowton
78e0f69d1e
Merge pull request #14988 from github/smowton/admin/report-more-files-extracted
...
Java: report any extracted file as successfully extracted
2023-12-04 12:48:12 +00:00
Chris Smowton
97266c252e
Remove mention of TSP
2023-12-04 12:36:04 +00:00
Shati Patel
6284781a9b
Update inconsistent CWE tags
...
Most tags use the "external/cwe/cwe-xxx" format, except for these few queries. Updating them for consistency.
2023-12-04 11:52:31 +00:00
Rasmus Wriedt Larsen
2fed0adde7
Merge pull request #8457 from RasmusWL/add-dataflow-consistency-query
...
Python: Add dataflow consistency query
2023-12-04 12:50:46 +01:00
Chris Smowton
6d5a493e2d
Add change note
2023-12-04 11:48:51 +00:00
Tom Hvitved
4c8861a60f
Merge pull request #14832 from hvitved/csharp/callback-heuristics
...
C#: Strengthen call-back heuristics by considering body-less methods
2023-12-04 12:27:37 +01:00
Michael Nebel
e028c59a07
Merge pull request #14982 from michaelnebel/csharp/fixmissingpackageprinting
...
C#: Fix problem with logging unused packages.
2023-12-04 12:10:21 +01:00
Tamás Vajk
44be7dfdd5
Merge pull request #14957 from tamasvajk/standalone/prefer-framework-assemblies
...
C#: Prefer framework assemblies over arbitrary nuget equivalents
2023-12-04 11:03:03 +01:00
Tom Hvitved
23d09ed7c6
Address review comment
2023-12-04 10:47:52 +01:00
Paolo Tranquilli
d9ca9123e4
Merge pull request #14979 from github/criemen/prepare-bazel-upgrade
...
Prepare for the bazel 7 upgrade.
2023-12-04 10:24:51 +01:00
Tamas Vajk
31c1caf518
Code quality improvements
2023-12-04 10:20:55 +01:00
Mathias Vorreiter Pedersen
6c7e809187
Merge pull request #14961 from MathiasVP/unique-in-operand
...
C++: Replace a `strictcount(...)` with `unique(...)`
2023-12-04 09:13:58 +00:00
Jeroen Ketema
71347e4cf1
Merge pull request #14987 from jketema/unneeded-imports
...
C++: Remove unneeded dataflow imports
2023-12-04 09:15:23 +01:00
Chris Smowton
ad713a7a93
Java: report any extracted file as successfully extracted
2023-12-01 22:35:00 +00:00
Jeroen Ketema
b185efa9e4
C++: Remove unneeded dataflow imports
2023-12-01 21:11:22 +01:00
Sarita Iyer
05c67756ef
fix beta note problem
2023-12-01 15:00:44 -05:00
Sarita Iyer
54daf8cacc
Apply suggestions from code review
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2023-12-01 12:06:43 -05:00
Sarita Iyer
b5084ccf7f
move beta ntoe
2023-12-01 11:59:57 -05:00
Sarita Iyer
6f87b1d622
test
2023-12-01 11:44:06 -05:00
Sarita Iyer
9e69e02d04
fix error
2023-12-01 11:32:13 -05:00
Sarita Iyer
2ab960428a
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-01 10:26:42 -05:00
Sarita Iyer
d96d71384d
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-01 09:57:11 -05:00
Sarita Iyer
848293470a
Update customizing-library-models-for-java-and-kotlin.rst
2023-12-01 09:41:03 -05:00
Michael Nebel
aec070f918
C#: Fix problem with logging unused packages. The dependencies only contains the paths relative to the package directory.
2023-12-01 15:24:33 +01:00
Cornelius Riemenschneider
13acec135d
Prepare for the bazel 7 upgrade.
2023-12-01 12:19:53 +01:00
james
7f3ff7f9a5
update threat models section
2023-12-01 11:19:00 +00:00
james
fe126c450b
threat model suggestions
2023-12-01 10:54:11 +00:00
Sarita Iyer
e1b5530602
Merge branch 'main' into saritai/docs-update-12431
2023-11-30 17:40:25 -05:00
Sarita Iyer
2bea328a5b
Update customizing-library-models-for-java-and-kotlin.rst
2023-11-30 17:39:55 -05:00
Sarita Iyer
849ec72728
Update customizing-library-models-for-java-and-kotlin.rst
2023-11-30 17:21:59 -05:00
Sarita Iyer
48e23e68c1
add info
2023-11-30 17:17:18 -05:00
Taus
4ef1fe49e3
Merge pull request #14918 from github/tausbn/python-support-tarslip-extraction-filters
...
Python: Add support for extraction filters
2023-11-30 22:55:09 +01:00
Felicity Chapman
30e62d3d28
Merge pull request #14969 from github/felicitymay-patch-1
...
Remove unwanted period from query name
2023-11-30 17:05:35 +00:00
Felicity Chapman
e9c4ddb399
Merge pull request #14898 from github/fc-codeql-vs-code-12574
...
Update CodeQL model editor info for revised UI
2023-11-30 16:21:51 +00:00
Mathias Vorreiter Pedersen
175a8a6fb5
Merge pull request #14865 from rdmarsh2/rdmarsh2/swift/correct-keypath-node-steps
...
Swift: move keypath dataflow writes to fix types
2023-11-30 15:09:55 +00:00
Felicity Chapman
4cb2f53223
Remove unwanted period from query name
...
Our style guide states that names should not end in a period. I'm updating this now to allow us to automate a process for GitHub docs, see: https://github.com/github/codeql/blob/main/docs/query-metadata-style-guide.md#query-name-name
2023-11-30 14:31:17 +00:00
Chris Smowton
971ced09ad
Merge pull request #14671 from smowton/smowton/feature/jdk21-switch-pattern-matching
...
Java: Add support for Java 21 language features
2023-11-30 14:11:28 +00:00
Jeroen Ketema
eccc373a2b
Merge pull request #14958 from jketema/dialects
...
Add documentation note on not supporting Objective-C(++), C++/CLI, and C++/CX
2023-11-30 13:03:59 +01:00
Chris Smowton
aa8f798853
Move condition into isNonFallThroughPredecessor
2023-11-30 11:24:07 +00:00
Chris Smowton
94819e37c4
More StmtParent -> SwitchBlock
2023-11-30 11:24:07 +00:00
Chris Smowton
e93fe8d614
Update change note
2023-11-30 11:24:07 +00:00
Chris Smowton
53ca8e5fe9
autoformat
2023-11-30 11:24:07 +00:00
Chris Smowton
633b92da62
Introduce and use SwitchBlock instead of StmtParent for switch-statement-or-expression
2023-11-30 11:24:07 +00:00
Chris Smowton
e50a0eee59
Remove duplicate of expr exception propagation logic
2023-11-30 11:24:07 +00:00
Chris Smowton
6f3bff19cc
Expose getFirstPatternCase, not getPatternCase/2
2023-11-30 11:24:07 +00:00
Chris Smowton
40464ed1f9
Eliminate duplicate predicate
2023-11-30 11:24:07 +00:00
Chris Smowton
3971817c92
Fix: ensure is a switch block
2023-11-30 11:24:07 +00:00
Chris Smowton
cc68169f43
Update test expectations re: record-pattern type accesses
2023-11-30 11:24:07 +00:00
Chris Smowton
b1cea1d91e
autoformat
2023-11-30 11:24:07 +00:00
Chris Smowton
561f06a4bd
Remove unused predicate
2023-11-30 11:24:06 +00:00
Chris Smowton
e9603f0aba
Factor out isNonFallThroughPredecessor
2023-11-30 11:24:06 +00:00
Chris Smowton
84ec453a80
Explicitly rule out switchCaseControls for PatternCase
2023-11-30 11:24:06 +00:00
Chris Smowton
77b1721542
Move TypeTestGuard's logic into Guard.appliesTypeTest
2023-11-30 11:24:06 +00:00
Chris Smowton
b33dc38a65
Fix hasBranchEdge for switch exprs with an internal CFG and incoming edges from a passing case guard
2023-11-30 11:24:06 +00:00
Chris Smowton
9b5b496462
Avoid quadratic switch case intermediate
2023-11-30 11:24:06 +00:00
Chris Smowton
d1e16ada4c
Tidy up pattern case CFG logic
2023-11-30 11:24:06 +00:00
Chris Smowton
beb827b1d0
Remove unused predicate
2023-11-30 11:24:06 +00:00
Chris Smowton
1cb5efa1ec
Simplify last nodes of rule cases
2023-11-30 11:24:06 +00:00
Chris Smowton
aa5f7352e2
Remove fall-through CFG edge for exhaustive switch statements
2023-11-30 11:24:06 +00:00
Chris Smowton
1047a89613
Improve complexity class of getASuccessorSwitchCase
2023-11-30 11:24:06 +00:00
Chris Smowton
d99a005b42
Fix pretty-printing case null, default
2023-11-30 11:24:06 +00:00
Chris Smowton
4bff7953fc
Fix record pattern and pretty-printing
2023-11-30 11:24:05 +00:00
Chris Smowton
419d530a06
Add test ensuring read steps via record patterns lead to type filtering
2023-11-30 11:24:05 +00:00
Chris Smowton
087be2cca8
Adjust test expectations
2023-11-30 11:24:05 +00:00
Chris Smowton
a11c5c7257
Fixup pretty-printer and add test
2023-11-30 11:24:05 +00:00
Chris Smowton
3bde66adfb
Pretty-print 'var' statements
2023-11-30 11:24:05 +00:00
Chris Smowton
07d2ce7a41
Change pretty-printing of PatternCase
2023-11-30 11:24:05 +00:00
Chris Smowton
5511955b60
Simplify getCaseIndex
2023-11-30 11:24:05 +00:00
Chris Smowton
bbc0f29f16
Restrict getCheckedType to unrestricted records, introduce getSyntacticCheckedType and use that where appropriate
2023-11-30 11:24:05 +00:00
Chris Smowton
29fdd04eb0
Include switch and instanceof binding in Variable.getAnAssignedValue, and test via endsInQuote
2023-11-30 11:24:05 +00:00
Chris Smowton
ef6ea71e43
Revert unnecessary exists statement
2023-11-30 11:24:05 +00:00
Chris Smowton
47e3d7d8a5
Cast back to Object in advance of returning, to ensure the test doesn't mask a shortcoming of type pruning by pruning at the return site
2023-11-30 11:24:05 +00:00
Chris Smowton
f0144d6a3d
Expose that case guard test controls its case body
2023-11-30 11:24:04 +00:00
Chris Smowton
da62a04653
Note that binding variables may be casting nodes
2023-11-30 11:24:04 +00:00
Chris Smowton
c11a260369
Note we can't prove certain unreachable callables when 'case null' is present
2023-11-30 11:24:04 +00:00
Chris Smowton
89f7e7f76a
autoformat
2023-11-30 11:24:04 +00:00
Chris Smowton
dd41f50fbf
Fix uses of ConditionBlock that require a condition expression (not a switch case statement)
2023-11-30 11:24:04 +00:00
Chris Smowton
68fe7efd9e
autoformat
2023-11-30 11:24:04 +00:00
Chris Smowton
6b3080ae92
Allow case null, default to be the first switch case
...
This is consistent with existing treatment of `case null: default:`
2023-11-30 11:24:04 +00:00
Chris Smowton
0b08507033
Document testedBranch
2023-11-30 11:24:04 +00:00
Chris Smowton
ba0a05c804
Add pretty-printing for patterns
2023-11-30 11:24:04 +00:00
Chris Smowton
668f445fb4
Fix switchCaseControls and hasBranchEdge to account for mixed patterns and constant cases
2023-11-30 11:24:04 +00:00
Chris Smowton
c1814408f0
Fix guard basic block for switch cases
2023-11-30 11:24:04 +00:00
Chris Smowton
6583c72c5d
Restrict pattern type guards to account for nested record matching failures
2023-11-30 11:24:03 +00:00
Chris Smowton
d40311efe9
Spelling
2023-11-30 11:24:03 +00:00
Chris Smowton
6e868d21bd
Make DefaultCase include NullDefaultCase
2023-11-30 11:24:03 +00:00
Chris Smowton
d2ff1baff0
Replace getDefaultOrNullDefaultCase with getDefaultCase
2023-11-30 11:24:03 +00:00
Chris Smowton
0bb051e08c
First stab at implementing negative type-test logic for pattern-case
2023-11-30 11:24:03 +00:00
Chris Smowton
8fd4f99a39
Fix autoformat comment translocation
2023-11-30 11:24:03 +00:00
Chris Smowton
b11a17db21
Improve change note
2023-11-30 11:24:03 +00:00
Chris Smowton
d7a517a989
Remove needless test options
2023-11-30 11:24:03 +00:00
Chris Smowton
ab9f2a77e4
Move comments
2023-11-30 11:24:03 +00:00
Chris Smowton
cc373e322f
Engineer join order for getLexicallyOrderedRecordField
2023-11-30 11:24:03 +00:00
Chris Smowton
6fb33e0bde
Re-re-factor instanceOfGuarded et al
2023-11-30 11:24:03 +00:00
Chris Smowton
06d5233523
Use SwitchCase.getSelectorExpr
2023-11-30 11:24:03 +00:00
Chris Smowton
b731b8d30a
Simplify PatternExpr definition
2023-11-30 11:24:02 +00:00
Chris Smowton
3d980b1684
Switch to using VariableAssign for instanceof and switch dataflow
2023-11-30 11:24:02 +00:00
Chris Smowton
176adf4376
Move PatternExpr to correct file
2023-11-30 11:24:02 +00:00
Chris Smowton
8f10d29f68
Typo
2023-11-30 11:24:02 +00:00
Chris Smowton
de2b98f4a1
Fix hasNullCase
2023-11-30 11:24:02 +00:00
Chris Smowton
480781b049
autoformat
2023-11-30 11:24:02 +00:00
Chris Smowton
158f4bff7a
Note specific switch bugfix
2023-11-30 11:24:02 +00:00
Chris Smowton
011eb2201e
Add test for ObjFlow over binding patterns
2023-11-30 11:24:02 +00:00
Chris Smowton
4cf511e26a
Add test for virtual-dispatch flow through binding patterns
2023-11-30 11:24:02 +00:00
Chris Smowton
43c935024a
Add test for typeflow propagation through instanceof and pattern-case
2023-11-30 11:24:02 +00:00
Chris Smowton
fa09be0459
Ensure pattern-case and binding-instanceof are covered in all of type, dispatch and object flow
2023-11-30 11:24:02 +00:00
Chris Smowton
88d9caff8c
Unused local query: exclude mandatory declarations
2023-11-30 11:24:02 +00:00
Chris Smowton
91774099fa
Write-only container query: account for implicitly-initialised variables
2023-11-30 11:24:01 +00:00
Chris Smowton
bb6e04456a
Boxed variable query: account for implicit-init variables
2023-11-30 11:24:01 +00:00
Chris Smowton
0e3f6f7873
autoformat
2023-11-30 11:24:01 +00:00
Chris Smowton
9035ba1f30
Fix isImplicitInit; use it in empty-container query
2023-11-30 11:24:01 +00:00
Chris Smowton
7106ec77bc
Fix change note
2023-11-30 11:24:01 +00:00
Chris Smowton
2a6e86633d
Improve qldoc
2023-11-30 11:24:01 +00:00
Chris Smowton
e5fdf4dd50
Update test expectation
2023-11-30 11:24:01 +00:00
Chris Smowton
a335109a20
Note that instanceof with a record pattern doesn't have a type access
2023-11-30 11:24:01 +00:00
Chris Smowton
11444a3ae7
Rename Pattern to PatternExpr to avoid clashing with Regex::Pattern
2023-11-30 11:24:01 +00:00
Chris Smowton
023615386b
Add change note
2023-11-30 11:24:01 +00:00
Chris Smowton
ded8deceaa
Add missing qldoc
2023-11-30 11:24:01 +00:00
Chris Smowton
db5979f1ac
Autoformat upgrade/downgrade scripts
2023-11-30 11:24:01 +00:00
Chris Smowton
1d82756dc8
Fix downgrade script
2023-11-30 11:24:00 +00:00
Chris Smowton
04c9f60d96
Make up some stats for new expressions, setting canonical constructors as common as records and new expression kinds initially rare
2023-11-30 11:24:00 +00:00
Chris Smowton
3cdb1d29f1
Add upgrade and downgrade scripts for latest dbscheme
2023-11-30 11:24:00 +00:00
Chris Smowton
330a5b8c6c
autoformat ql
2023-11-30 11:24:00 +00:00
Chris Smowton
32416f0fdc
Add test for record-pattern instanceof
2023-11-30 11:24:00 +00:00
Chris Smowton
e41da3b10a
Add missing test Java files
2023-11-30 11:24:00 +00:00
Chris Smowton
5b734fe937
Pretty-print AST: handle instanceof with record pattern
2023-11-30 11:24:00 +00:00
Chris Smowton
f037030c26
Adapt instanceof CFG and DFG to general patterns
2023-11-30 11:24:00 +00:00
Chris Smowton
20b97af02f
Implement dataflow for record patterns
...
Strategy: there is now a regular flow step from an instance-of LHS / switch expr to the pattern, 0 or more read steps corresponding to record pattern destructors, and then finally a normal SSA def/use step connecting the binding patterns to their first uses.
2023-11-30 11:24:00 +00:00
Chris Smowton
05addde957
Adapt control-flow graph to record patterns
2023-11-30 11:24:00 +00:00
Chris Smowton
556feb31f0
Autoformat
2023-11-30 11:24:00 +00:00
Chris Smowton
936c0206ea
Adapt ancillary analyses to record patterns
2023-11-30 11:23:59 +00:00
Chris Smowton
daccd04087
Basic extraction of record patterns
2023-11-30 11:23:59 +00:00
Chris Smowton
293cc67494
Fix stringifying record fields
2023-11-30 11:23:59 +00:00
Chris Smowton
3cb01002dc
Add test for usage of qualified enum constants in switch
2023-11-30 11:23:59 +00:00
Chris Smowton
8406ee7ed5
Add test for a pattern-switch guard acting as a data-flow guard
2023-11-30 11:23:59 +00:00
Chris Smowton
144218e2f7
Implement switch CFG when there are mixed constant and pattern cases
2023-11-30 11:23:59 +00:00
Chris Smowton
54a89d6fef
Handle 'case null, default:'
2023-11-30 11:23:59 +00:00
Chris Smowton
9a450b09be
Account for pattern-cases in more places
2023-11-30 11:23:59 +00:00
Chris Smowton
2b16121638
CFG: Support guarded patterns
2023-11-30 11:23:59 +00:00
Chris Smowton
ba0f3cf718
Add basic support for case guards
2023-11-30 11:23:59 +00:00
Chris Smowton
e94c5a772c
Check nullness pass knows pattern case variables can't be null
2023-11-30 11:23:59 +00:00
Chris Smowton
ca43b9603a
Fixup typeflow test
2023-11-30 11:23:59 +00:00
Chris Smowton
6b9aed21df
Nullness library: recognise switches with null checks
2023-11-30 11:23:58 +00:00
Chris Smowton
79b77ae805
Add AST test for switch with null case
2023-11-30 11:23:58 +00:00
Chris Smowton
05caffc189
Update printast expectation
2023-11-30 11:23:58 +00:00
Chris Smowton
30c5885966
Fix constant cases relating to enum types
2023-11-30 11:23:58 +00:00
Chris Smowton
b21aaa75bc
Type-flow: treat pattern-switch on an array index similar to instanceof
2023-11-30 11:23:58 +00:00
Chris Smowton
7dd4030f51
Pattern cases: support type-flow
2023-11-30 11:23:58 +00:00
Chris Smowton
a06ac42512
PrintAst: report pattern-cases similar to pattern-instanceof
2023-11-30 11:23:58 +00:00
Chris Smowton
b6622d2f5b
usesType: support pattern cases
2023-11-30 11:23:58 +00:00
Chris Smowton
0f434e7f08
Add test for dataflow vs. pattern-switch
2023-11-30 11:23:58 +00:00
Chris Smowton
6c990c2cf6
Add pattern-case support and generally debug switch CFGs
...
These were reasonably broken beforehand, due to not taking switch rules into account in enough places, and confusing the expression/statement switch rule distinction with the distinction between switch statements and expressions.
(For example, `switch(x) { 1 -> System.out.println("Hello world") ... }` is a statement, but has a rule expression).
2023-11-30 11:23:58 +00:00
Chris Smowton
f4b45fa511
Support switch cases with binding patterns
2023-11-30 11:23:58 +00:00
Mathias Vorreiter Pedersen
a7ef84f2d1
C++: Replace 'strictcount(...) = 1' with 'unique(...)'.
2023-11-30 11:20:00 +00:00
Jeroen Ketema
6d74743915
Add documentation note on not supporting Objective-C(++), C++/CLI, and C++/CX
2023-11-30 10:57:47 +01:00
Tamas Vajk
0cc94b3a46
C#: Prefer framework assemblies over arbitrary nuget equivalents
2023-11-30 10:54:19 +01:00
Robert Marsh
9ac46d4f9c
Swift: autoformat
2023-11-29 21:07:06 +00:00
Robert Marsh
f7e4fb0c65
Swift: respond to comments on keypath reordering
2023-11-29 20:31:48 +00:00
Chris Smowton
fefc02d650
Merge pull request #14950 from smowton/smowton/admin/empty-argfile-test
...
Java: Add test for empty argfile
2023-11-29 14:05:39 +00:00
Taus
754deda03e
Merge pull request #14946 from github/RasmusWL/list-python-3.12
...
Docs: List Python 3.12 as supported
2023-11-29 15:05:11 +01:00
Chris Smowton
e110db58f8
Add test for empty argfile
2023-11-29 12:51:22 +00:00
Rasmus Wriedt Larsen
76a6fb563d
Docs: List Python 3.12 as supported
...
Support was added in https://github.com/github/codeql/pull/14636
2023-11-29 11:22:27 +01:00
Mathias Vorreiter Pedersen
1f9e2c71ce
Merge pull request #14928 from MathiasVP/surprising-lifetimes-c_str
...
C++: Add a new query for calling `c_str` on temporary objects
2023-11-29 10:15:11 +00:00
Erik Krogh Kristensen
399872b719
Merge pull request #14943 from rafaelurben/patch-1
...
JS: Add django template urls as "save urls"
2023-11-29 11:10:16 +01:00
Mathias Vorreiter Pedersen
351caaccfe
C++: Add GOOD and BAD comments to qhelp examples.
2023-11-29 09:44:54 +00:00
Mathias Vorreiter Pedersen
8afd9288cb
Apply suggestions from code review
...
Co-authored-by: Felicity Chapman <felicitymay@github.com >
2023-11-29 09:36:29 +00:00
Rafael
1a05c2e704
Added Django test
2023-11-29 08:26:49 +01:00
Rafael
0a74a3a765
Update javascript/ql/src/change-notes/2023-11-28-django-urls.md
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com >
2023-11-29 08:23:02 +01:00
Rafael
0b0c9e3e48
Create 2023-11-28-django-urls.md
2023-11-28 22:29:53 +01:00
Rafael
286e3951bf
Detect Django template URLs
...
Django URLs are currently not detected, but flask and nunjucks URL are. (See https://github.com/github/codeql/issues/12267 )
2023-11-28 22:22:07 +01:00
Felicity Chapman
d299ade765
Merge branch 'main' into fc-codeql-vs-code-12574
2023-11-28 20:42:20 +00:00
Felicity Chapman
298c6b5295
Merge pull request #14942 from github/codeql-cli-2.15.3
...
Mergeback post release changes from the `codeql-cli-2.15.3` branch to `main`
2023-11-28 20:41:43 +00:00
Felicity Chapman
47d00d1311
Update multiple models section for feedback
2023-11-28 19:59:31 +00:00
Felicity Chapman
9e74f64c5a
Update screenshot for feedback
2023-11-28 19:59:31 +00:00
Felicity Chapman
a041a508ac
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-28 19:59:31 +00:00
Felicity Chapman
2ede709308
Add a few missing details
2023-11-28 19:59:31 +00:00
Felicity Chapman
824fd75d74
Update after self-review
2023-11-28 19:59:31 +00:00
Pierre
568bcfd038
Fix changelog docs based on latest generator version
2023-11-28 19:59:31 +00:00
Felicity Chapman
ed5e28162f
Draft docs for revised UI
2023-11-28 19:59:31 +00:00
Pierre
cedb91ba0d
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-28 19:59:31 +00:00
Jeroen Ketema
483f4c3ce9
Merge pull request #14921 from jketema/kr-style-function-parameters
...
C++: Expose whether a function was prototyped or not
2023-11-28 17:43:22 +01:00
Robert Marsh
4df25f4f7f
Merge pull request #14797 from geoffw0/sqlsinks
...
Swift: Heuristic sinks for swift/sql-injection
2023-11-28 11:18:10 -05:00
Tom Hvitved
e79ad3b738
Merge pull request #14937 from hvitved/csharp/stubvisitor-recursion-guard
...
C#: Prevent infinite recursion in `EqualsModuloTupleElementNames`
2023-11-28 16:25:52 +01:00
Jeroen Ketema
28ac46a73f
C++: Add change note
2023-11-28 14:57:02 +01:00
Taus
6e279183d9
Python: Remove unused unsafeFilter predicates
2023-11-28 13:54:17 +00:00
Taus
91643ad08f
Python: Update hasUnsafeFilter to use API graph
...
This will probably break the tests in the short run. I'll fix the remaining issues in a follow-up commit.
Co-authored-by: Rasmus Wriedt Larsen <rasmuswl@github.com >
2023-11-28 14:48:26 +01:00
Rasmus Wriedt Larsen
2c10160ad4
Python: Highlight we actually want post-update nodes for *args and **kwargs arguments
2023-11-28 14:07:03 +01:00
Rasmus Wriedt Larsen
02f2031239
Python: Ensure other call for super().foo
2023-11-28 14:04:51 +01:00
Mathias Vorreiter Pedersen
2b36ba33f0
C++: Add support for 'data' in the query.
2023-11-28 12:57:59 +00:00
Michael B. Gale
e349611f86
Merge pull request #14932 from github/dependabot/go_modules/go/extractor/extractor-dependencies-29c4186f99
...
Bump the extractor-dependencies group in /go/extractor with 1 update
2023-11-28 12:57:24 +00:00
Mathias Vorreiter Pedersen
7b8d164692
C++: Add more good test cases.
2023-11-28 11:58:33 +00:00
Mathias Vorreiter Pedersen
62c432f3c7
C++: Tabs -> Spaces.
2023-11-28 11:52:17 +00:00
Tom Hvitved
fea2bf9217
C#: Prevent infinite recursion in EqualsModuloTupleElementNames
2023-11-28 11:45:09 +01:00
Rasmus Wriedt Larsen
c12053287e
Merge pull request #14936 from RasmusWL/star-args-kwargs-missing-flow
...
Python: Highlight missing post-update flow for `*args` and `**kwargs`
2023-11-28 11:34:51 +01:00
Rasmus Wriedt Larsen
3c82653b63
Python: Highlight missing post-update flow for *args and **kwargs
2023-11-28 10:59:48 +01:00
Jeroen Ketema
7dec819151
C++: Expose whether a function was prototyped or not
2023-11-28 10:24:43 +01:00
Mathias Vorreiter Pedersen
ff4c63f696
C++: Add change note.
2023-11-28 09:16:49 +00:00
Mathias Vorreiter Pedersen
e10caa68f6
C++: Add tests.
2023-11-28 09:06:24 +00:00
Mathias Vorreiter Pedersen
e94cde9b4b
C++: Move the use-after-free tests to subdirectory.
2023-11-28 09:06:24 +00:00
Mathias Vorreiter Pedersen
71ad7696c3
C++: Add qhelp.
2023-11-28 09:06:24 +00:00
Mathias Vorreiter Pedersen
204acbacc5
C++: Add a new query for detecting calls to 'c_str' on temporary objects.
2023-11-28 09:06:24 +00:00
dependabot[bot]
d2cad03e28
Bump the extractor-dependencies group in /go/extractor with 1 update
...
Bumps the extractor-dependencies group in /go/extractor with 1 update: [golang.org/x/tools](https://github.com/golang/tools ).
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: extractor-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-28 03:58:15 +00:00
Mathias Vorreiter Pedersen
22a91d18b8
C++: Make the sequence container classes public.
2023-11-27 21:32:49 +00:00
Tom Hvitved
ccb9d9b8fa
C#: Strengthen call-back heuristics by considering body-less methods
2023-11-27 21:15:06 +01:00
Taus
ad1a86879e
Python: Add change note
2023-11-27 14:39:32 +00:00
Taus
95e9284d08
Python: Add support for extraction filters
...
Adds support for extraction filters as defined in
https://peps.python.org/pep-0706/
and implemented in Python 3.12.
By my reading, setting the filter to `'data'` or `'tar'` is probably
safe, whereas `'fully_trusted'` or the default (which is the same as
`None`) is not.
For now, I have just added this modelling to the tarslip query. We could
also share it with the modelling of `shutil.unpack_archive` (which has also
gained a `filter` argument), but it was unclear to me where we should put
this modelling in that case. Perhaps the best solution would be to merge
the experimental `py/tarslip-extended` query into the existing query (in
which case the current location is perhaps not too bad).
2023-11-27 14:11:17 +00:00
Michael Nebel
f05c86239f
Merge pull request #14878 from michaelnebel/csharp/pindotnetinintegrationtests
...
C#: Pin integration tests to a specific .NET version.
2023-11-27 13:22:02 +01:00
Ian Lynagh
7560573b89
Merge pull request #14906 from igfoo/igfoo/locs
...
Kotlin 2: Accept some location changes in test-kotlin2/library-tests/stmts
2023-11-27 11:42:47 +00:00
Mathias Vorreiter Pedersen
70e0b33ce6
Merge pull request #14807 from geoffw0/formatsinks
...
Swift: More sinks for swift/uncontrolled-format-string
2023-11-27 11:10:04 +00:00
Michael Nebel
d1c4e772f0
C#: Pin integration tests to a specific .NET version.
2023-11-27 10:51:04 +01:00
Stephan Brandauer
68a7734e08
Merge pull request #14849 from github/kaeluka/automodel-extraction-skip-primitive-types-candidates
...
Java Automodel extraction: remove primitives in framework mode
2023-11-27 09:52:48 +01:00
AlexDenisov
59ee3e16b4
Merge pull request #14800 from github/alexdenisov/more-extractions
...
Swift: final 5.8/5.9 extractions
2023-11-27 08:41:37 +01:00
Mathias Vorreiter Pedersen
865cbab242
Merge pull request #14911 from MathiasVP/remove-duplication-workaround-in-sources
2023-11-24 20:00:57 +00:00
Geoffrey White
dfdc502525
Merge pull request #14908 from geoffw0/setmodels
...
Swift: Flow models for Set
2023-11-24 19:16:16 +00:00
Geoffrey White
2e93c1d7b6
Merge pull request #14879 from geoffw0/contentsof
...
Swift: "contentsOf" sources
2023-11-24 17:47:57 +00:00
Mathias Vorreiter Pedersen
73138f1913
C++: No need to exclude ExprNodes as sources now that #14903 is merged.
2023-11-24 16:58:30 +00:00
Mathias Vorreiter Pedersen
e89d8e2967
Merge pull request #14907 from MathiasVP/remove-workaround-in-authentication-bypass
...
C++: Remove workaround for negated conditions in `cpp/user-controlled-bypass`
2023-11-24 16:54:37 +00:00
Jeroen Ketema
04338215cd
Merge pull request #14903 from jketema/ret-val
...
C++: Do not use `isReturnValue` in `getenv`, `gets`, and `fgets` models
2023-11-24 17:51:11 +01:00
Geoffrey White
06ae374206
Swift: Add a predicate for common code.
2023-11-24 16:06:35 +00:00
Geoffrey White
1638796173
Swift: Add change note.
2023-11-24 15:41:49 +00:00
Geoffrey White
2b481bbb48
Swift: Model Sequence.enumerated() as well.
2023-11-24 15:41:49 +00:00
Jeroen Ketema
ee35bfb290
C++: Do not use isReturnValue in getenv, gets, and fgets models
2023-11-24 16:38:15 +01:00
Mathias Vorreiter Pedersen
a7d820ce62
C++: Remove workaround for negated conditions in 'cpp/user-controlled-bypass'.
2023-11-24 15:17:45 +00:00
Geoffrey White
14031bf351
Swift: Model Sequence.forEach as well.
2023-11-24 14:58:13 +00:00
Geoffrey White
60b27a4e69
Swift: Expand and improve models of Set and Sequence.
2023-11-24 14:43:19 +00:00
Mathias Vorreiter Pedersen
e438671846
Merge pull request #14896 from MathiasVP/no-dtt-in-user-controlled-bypass
...
C++: Rewrite `cpp/user-controlled-bypass` away from `DefaultTaintTracking`
2023-11-24 14:43:10 +00:00
Mathias Vorreiter Pedersen
631dc98d72
Merge pull request #14904 from MathiasVP/taint-through-int-to-bool-casts
...
C++: Add Taint through int -> bool casts
2023-11-24 14:30:19 +00:00
Stephan Brandauer
2e5971bb57
Java automodel: also drop boxed types and number types from endpoints
2023-11-24 15:04:13 +01:00
Tom Hvitved
9eaebfcf60
Merge pull request #14859 from hvitved/ruby/missing-flow-tests
...
Ruby: Add tests illustrating missing flow
2023-11-24 14:57:15 +01:00
Harry Maclean
d239a30866
Merge pull request #14874 from hmac/hmac-missing-flow-test
...
Ruby: Add test for missing block flow
2023-11-24 13:44:55 +00:00
Ian Lynagh
fc2142feb4
Merge pull request #14887 from igfoo/igfoo/kloc
...
Kotlin: Add LighterAST support to numlines extraction
2023-11-24 13:43:34 +00:00
Geoffrey White
04c90a684c
Swift: Add taint tests for 'Set'.
2023-11-24 13:38:31 +00:00
Ian Lynagh
b33fcf3719
Kotlin: Accept some location changes in test-kotlin2/library-tests/stmts
2023-11-24 13:34:44 +00:00
Tom Hvitved
8ccce5891d
Ruby: Add tests illustrating missing flow
2023-11-24 14:28:04 +01:00
Mathias Vorreiter Pedersen
6b48b3643e
Merge branch 'main' into no-dtt-in-user-controlled-bypass
2023-11-24 12:50:45 +00:00
Mathias Vorreiter Pedersen
2681617f28
C++: Undo the workaround in 'cpp/tainted-permissions-check'.
2023-11-24 10:56:11 +00:00
Mathias Vorreiter Pedersen
0c924c2b27
C++: Taint-flow through integer to boolean casts.
2023-11-24 10:55:50 +00:00
Mathias Vorreiter Pedersen
e1c326642c
Merge pull request #14894 from MathiasVP/dont-short-circuit-negation-in-conditions
...
C++: Don't short circuit logical negation in conditions
2023-11-24 10:50:42 +00:00
Owen Mansel-Chan
6f9a70475d
Merge pull request #14882 from owen-mc/go/minor-fixes
...
Go: improve CallNode documentation
2023-11-24 10:36:07 +00:00
Erik Krogh Kristensen
22bdcad0c6
Merge pull request #14302 from amammad/amammad-js-SQLI
...
JS: extend DatabaseAccess by `TypeORM` and `sqlite` and `better-sqlite3` packages
2023-11-24 11:18:47 +01:00
Alex Denisov
2783c6dcd0
Swift: add change note
2023-11-24 10:11:51 +01:00
Alex Denisov
7676ad316c
Swift: database downgrade script
2023-11-24 10:08:16 +01:00
Alex Denisov
a4da1a0748
Swift: database upgrade script
2023-11-24 10:08:16 +01:00
Alex Denisov
20e95137f4
Swift: remove MaterizliePackExpr tests as they are only working on macOS 14
2023-11-24 09:55:10 +01:00
Alex Denisov
d7d546e97f
Swift: skip TypeJoinExpr
2023-11-24 09:46:04 +01:00
Alex Denisov
6a673e700b
Swift: extract DiscardStmt
2023-11-24 09:46:01 +01:00
Alex Denisov
5cd74213cc
Swift: extract MaterizliePackExpr
2023-11-24 09:45:01 +01:00
AlexDenisov
cca05e0a82
Merge pull request #14902 from github/redsun82/swift-qldocs
...
Codegen: allow marking properties as internal
2023-11-24 09:26:50 +01:00
Paolo Tranquilli
ba098c3b1b
Swift: make kind and macro_syntax in MacroRole internal
2023-11-24 07:04:03 +01:00
Paolo Tranquilli
6045f59721
Merge branch 'main' into redsun82/swift-qldocs
2023-11-24 07:02:49 +01:00
Paolo Tranquilli
b514bd8d1c
Merge pull request #14796 from github/alexdenisov/macros
...
Swift: extract `MacroDecl`
2023-11-24 07:02:28 +01:00
Paolo Tranquilli
cc6da2829c
Swift: make PoundDiagnostics::getKind internal
2023-11-24 06:56:55 +01:00
Paolo Tranquilli
0b57ecf0c7
Codegen: add internal QLdoc to property templates
2023-11-24 06:56:55 +01:00
Paolo Tranquilli
2d34fec0a2
Codegen: remove unneeded has_description property
2023-11-24 06:56:55 +01:00
Paolo Tranquilli
9264b2a6d6
Codegen: add internal to properties, rename ql_internal->internal
2023-11-24 06:56:55 +01:00
erik-krogh
abb8d65483
Merge branch 'main' into amammad-js-SQLI
2023-11-23 21:17:58 +01:00
erik-krogh
43c76468c9
add change-note
2023-11-23 21:17:33 +01:00
Alex Denisov
0d0152f892
Swift: fix docs again
2023-11-23 19:06:32 +01:00
Alex Denisov
1b615e25d8
Merge branch 'main' into alexdenisov/macros
2023-11-23 19:05:12 +01:00
AlexDenisov
a8fcfd154f
Merge pull request #14893 from github/redsun82/swift-qldocs
...
Codegen: fix bug where stub rewriting globbles too much code
2023-11-23 19:04:49 +01:00
Mathias Vorreiter Pedersen
5604fd7d80
C++: Rewrite 'cpp/user-controlled-bypass' away from 'DefaultTaintTracking'.
2023-11-23 17:35:54 +00:00
Mathias Vorreiter Pedersen
97319854e2
C++: Accept test changes.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
6f5cfca84c
C++: Sync identical files.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
cc261bfabb
C++: Recurse through 'LogicalNotInstruction' in 'getConstantValue'.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
98bf748e64
C++: Accept test changes.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
7364634a6b
C++: No need to special-case negations in IRGuards.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
3af3a72161
C++: Don't short-circuit negations in conditions.
2023-11-23 16:53:57 +00:00
Mathias Vorreiter Pedersen
257d94be20
Merge pull request #14886 from jketema/rewrite-tainted-condition
...
C++: Rewrite `cpp/tainted-permissions-check` to not use `DefaultTaintTracking`
2023-11-23 16:18:03 +00:00
Paolo Tranquilli
a18f1ef7cd
Codegen: fix bug where stub rewriting globbles too much code
2023-11-23 17:14:32 +01:00
Alex Denisov
f5ea133067
Swift: trick codegen into not breaking my code
2023-11-23 16:37:09 +01:00
Alex Denisov
f6f6c98306
Swift: use multiline comments for docs
2023-11-23 16:33:15 +01:00
Alex Denisov
f77fd812a9
Swift: add predicates to MacroRole
2023-11-23 16:23:25 +01:00
Pierre
6e4ad58a80
Merge pull request #14889 from github/changedocs/2.15.3
...
Fix changelog docs based on latest generator version
2023-11-23 15:43:02 +01:00
Mathias Vorreiter Pedersen
149fb7bbc2
Merge pull request #14881 from MathiasVP/no-dtt-in-user-controlled-null-termination-tainted
...
C++: Rewrite `cpp/user-controlled-null-termination-tainted` away from `DefaultTaintTracking`
2023-11-23 14:41:33 +00:00
Ian Lynagh
c4d3d505ca
Kotlin: Accept changes in Kotlin2 ExtractorInformation test
2023-11-23 14:30:50 +00:00
Owen Mansel-Chan
2c99e70e2b
Merge pull request #14890 from owen-mc/go/fix-change-note-query-reference
...
Go: Change how we refer to a query in a change note
2023-11-23 14:15:05 +00:00
Mathias Vorreiter Pedersen
401a378598
C++: Accept test changes.
2023-11-23 14:12:16 +00:00
Mathias Vorreiter Pedersen
b774ae07c8
Update cpp/ql/src/Security/CWE/CWE-170/ImproperNullTerminationTainted.ql
...
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com >
2023-11-23 14:10:57 +00:00
Jeroen Ketema
7834626e26
C++: Rewrite cpp/tainted-permissions-check to not use DefaultTaintTracking
2023-11-23 14:52:53 +01:00
Owen Mansel-Chan
436fd9e736
Merge pull request #14775 from aydinnyunus/main
...
Golang: Web Cache Deception Vulnerability
2023-11-23 13:50:10 +00:00
Alex Denisov
197e5d0267
Swift: regenerate QL after merging main
2023-11-23 14:44:39 +01:00
Owen Mansel-Chan
25a2aef623
Update library name in change note
2023-11-23 13:42:21 +00:00
Alex Denisov
79adc9bfe9
Merge branch 'main' into alexdenisov/macros
2023-11-23 14:42:07 +01:00
Owen Mansel-Chan
25d5104468
Change how we refer to a query in a change note
2023-11-23 13:22:05 +00:00
Joe Farebrother
561b769a79
Merge pull request #14343 from joefarebrother/csharp-xss-flow-step
...
C#: Add flow steps for View calls refering to Razor pages
2023-11-23 13:05:02 +00:00
Rasmus Wriedt Larsen
4e0cca9a41
Merge pull request #14353 from GeekMasher/py-restframework
...
Python: support `*args` and `**kwargs` in request handlers
2023-11-23 14:04:36 +01:00
amammad
60b422a35c
fix second round of code review. improve documents, fix better-sqlite3 method
2023-11-23 14:01:38 +01:00
Pierre
bff86ed210
Fix changelog docs based on latest generator version
2023-11-23 13:53:14 +01:00
Paolo Tranquilli
7588813864
Merge pull request #14864 from github/redsun82/swift-qldocs
...
Swift: generate more QLdocs
2023-11-23 13:42:46 +01:00
Ian Lynagh
69cfc79561
Kotlin: Add LighterAST support to numlines extraction
2023-11-23 12:02:27 +00:00
Joe Farebrother
befb1ccd84
Fix integration tests for windows
2023-11-23 10:56:45 +00:00
Joe Farebrother
e4edb19f43
Update to hasFullyQualifiedName
2023-11-23 10:56:45 +00:00
Joe Farebrother
f24c042d04
Rename Razor Page class to Razor View class
2023-11-23 10:56:45 +00:00
Joe Farebrother
aa3fd6add0
Fix standalone tests
2023-11-23 10:56:45 +00:00
Joe Farebrother
33186ac797
Add integration tests
2023-11-23 10:56:45 +00:00
Joe Farebrother
82fbae3e5a
Handle standalone extraction case in which generated files list absolute paths
2023-11-23 10:56:45 +00:00
Joe Farebrother
26c048a650
Minor refactoring
2023-11-23 10:56:44 +00:00
Joe Farebrother
e2e4642037
Remove redundant import
2023-11-23 10:56:44 +00:00
Joe Farebrother
7a098dde50
Remove AdditionalTaintStep (redundant with NonLocalJumpNode)
2023-11-23 10:56:44 +00:00
Joe Farebrother
9af44ed0a2
Convert flow steps to value steps
2023-11-23 10:56:44 +00:00
Joe Farebrother
052166f17e
Fix issue in genfiles.py + add help text
2023-11-23 10:56:44 +00:00
Joe Farebrother
96bddde7c1
Review suggestions - Remove unneeded import in tests, rename RazorPage to RazorPageClass
2023-11-23 10:56:44 +00:00
Joe Farebrother
ef15980bb6
Remove unnecessary check for the name parameter as parameter 1
2023-11-23 10:56:43 +00:00
Joe Farebrother
2416040854
Review suggestions - make import private and update change note
2023-11-23 10:56:43 +00:00
Joe Farebrother
047f8e485a
Make the additional flow steps generally applicible to all queries
2023-11-23 10:56:43 +00:00
Joe Farebrother
0ed7b3c3ad
Update qldoc
2023-11-23 10:56:43 +00:00
Joe Farebrother
7371751801
Add change note
2023-11-23 10:56:43 +00:00
Joe Farebrother
826111dc08
Separate area view discovery list for increased precision
2023-11-23 10:56:42 +00:00
Joe Farebrother
f2c3d83d9e
Add tests for area cases
2023-11-23 10:56:42 +00:00
Joe Farebrother
7bd7cc5dbe
Fix tests
2023-11-23 10:56:42 +00:00
Joe Farebrother
f1b0f1a35d
Use shared filepath normalization libary
2023-11-23 10:56:42 +00:00
Joe Farebrother
7194113a64
Add areas
2023-11-23 10:56:42 +00:00
Joe Farebrother
7691cbce87
Add additional test cases
2023-11-23 10:56:42 +00:00
Joe Farebrother
f84b2a96af
Add support for view locations defined in code through RazoeViewEngineOptions
2023-11-23 10:56:42 +00:00
Joe Farebrother
4f5ecb899b
Add unit tests + fix issue in stubs
2023-11-23 10:56:41 +00:00
Joe Farebrother
ac3f642b45
Unit tests - Write script to aid generating necessary code from .cshtml files.
2023-11-23 10:56:41 +00:00
Joe Farebrother
12a579e0aa
Add relative filepath lookup
2023-11-23 10:56:41 +00:00
Joe Farebrother
40a7223620
Implement xss flow step for absolute filepath case
2023-11-23 10:56:41 +00:00
Rasmus Wriedt Larsen
d056706af5
Merge pull request #14725 from RasmusWL/re-modeling
...
Python: Add taint-flow modeling for `re` module
2023-11-23 11:35:36 +01:00
Erik Krogh Kristensen
ef8d38e9e0
Merge pull request #14885 from erik-krogh/update-changenotes
...
JS: update the JS change notes to mention security severity instead of just severity
2023-11-23 11:17:53 +01:00
Rasmus Wriedt Larsen
3d46129bbf
Python: Remove intermediary steps from taint-test
...
These were leftovers from old way of propagating taint
2023-11-23 10:40:25 +01:00
erik-krogh
dd1e71ace9
update the JS change notes to mention security severity instead of just severity
2023-11-23 10:28:22 +01:00
Paolo Tranquilli
ff529c34b4
Codegen: use re.escape
2023-11-23 09:37:44 +01:00
Yunus AYDIN
ca56b0157d
Merge branch 'github:main' into main
2023-11-22 22:56:23 +03:00
Jeroen Ketema
257fe1ad6b
Merge pull request #14801 from jketema/rewrite-tainted-format-string
...
C++: Rewrite `cpp/tainted-format-string` away from `DefaultTaintTracking`
2023-11-22 17:55:36 +01:00
Owen Mansel-Chan
a130c0f6b3
Merge branch 'main' into main
2023-11-22 16:50:41 +00:00
Owen Mansel-Chan
dd8fb29a65
Improve QLDocs of CallNode and MethodCallNode
...
When a function is assigned to a variable and called through that
variable then we can't always tell it was a method.
2023-11-22 16:32:10 +00:00
Pierre
98ddbe0d83
Merge pull request #14880 from github/geoffw0-patch-2
2023-11-22 17:31:44 +01:00
Geoffrey White
bcf76b1ac0
Update change note 0.3.3.md
...
Update original change note in line with the change here: https://github.com/github/codeql/pull/14876#discussion_r1402142306
2023-11-22 16:20:05 +00:00
Jeroen Ketema
1fbe23228e
C++: Update test to reflect updated test results
2023-11-22 16:49:13 +01:00
Jeroen Ketema
bb1945f899
C++: Rewrite cpp/tainted-format-string away from DefaultTaintTracking
2023-11-22 16:49:13 +01:00
Mathias Vorreiter Pedersen
640e2f56d5
C++: Accept test changes.
2023-11-22 15:43:24 +00:00
Mathias Vorreiter Pedersen
306440ce6e
C++: Convert 'cpp/user-controlled-null-termination-tainted' away from 'DefaultTaintTracking'.
2023-11-22 15:43:24 +00:00
Arthur Baars
29c950035d
Merge pull request #14877 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-22 16:39:09 +01:00
Geoffrey White
012dc59bf3
Swift: Change note.
2023-11-22 15:24:19 +00:00
Geoffrey White
5723a75f3c
Swift: Add heuristic model for init(contentsOfFile) and similar.
2023-11-22 15:24:19 +00:00
Pierre
60ebe3b179
Merge pull request #14876 from github/changedocs/2.15.3
...
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-22 16:22:56 +01:00
Ian Lynagh
1f2d9dc95c
Merge pull request #14862 from igfoo/igfoo/test-kotlin1
...
Kotlin: Move tests from test/kotlin to test-kotlin1
2023-11-22 14:45:13 +00:00
github-actions[bot]
0783758bd1
Post-release preparation for codeql-cli-2.15.3
2023-11-22 14:20:26 +00:00
Pierre
9b9a78851d
Add combined changelogs for 2.15.3 and backfill historic versions
2023-11-22 15:05:17 +01:00
Rasmus Wriedt Larsen
4a98ed903e
Python: Fix consistency for bound-methods used in list-comp
2023-11-22 14:07:40 +01:00
Tom Hvitved
979bcf4ef3
Merge pull request #14868 from hvitved/ssa/locations
...
SSA: Add locations to ease debugging
2023-11-22 13:26:41 +01:00
Geoffrey White
94cb09e539
Swift: Add test cases.
2023-11-22 11:39:27 +00:00
Ian Lynagh
3dee16c50c
Merge pull request #14860 from igfoo/igfoo/isFake
...
Kotlin 2: isFake is currently broken, so assume not fake for now
2023-11-22 11:07:04 +00:00
Rasmus Wriedt Larsen
67b1414177
Python: Highlight even more cases for multipleArgumentCallExclude
2023-11-22 11:25:23 +01:00
Harry Maclean
288fbfd2ec
Ruby: Add test for missing block flow
2023-11-22 09:59:55 +00:00
Paolo Tranquilli
369431125e
Codegen: insert doc explaining _patch_class_qldoc
2023-11-22 10:26:04 +01:00
Paolo Tranquilli
f5633be837
Codegen: rename has_doc to has_qldoc
2023-11-22 10:19:36 +01:00
Paolo Tranquilli
418118fc89
Codegen: use more robust regex to patch qldocs
2023-11-22 10:11:05 +01:00
Rasmus Wriedt Larsen
30891ca4aa
Merge pull request #14861 from yoff/python/demonstrate-def-use-explosion
...
Python: test demonstrating the need for phi nodes
2023-11-22 09:57:10 +01:00
Tamás Vajk
ace633cb1d
Merge pull request #14855 from tamasvajk/standalone/logMessageSink
...
C#: Tolerate missing call targets in LogMessageSink
2023-11-22 08:37:53 +01:00
Tom Hvitved
1a6886cf99
SSA: Add locations to ease debugging
2023-11-22 08:37:02 +01:00
amammad
eb552b7c93
add failingPositiveTests to inlinetests
2023-11-22 08:00:38 +01:00
amammad
0328a2986d
move TypeORM library file and tests to experimental
...
add inline tests :)
Fix TypeORM fuzzy method according to Review
2023-11-21 19:59:06 +01:00
amammad
999ec7053e
fix Query class docstring
2023-11-21 18:56:05 +01:00
Ian Lynagh
45bbcccd1a
Kotlin: Copy TestUtilities into the kotlin testsuites
2023-11-21 17:16:54 +00:00
Robert Marsh
396b9e38c5
Swift: move keypath dataflow writes to fix types
2023-11-21 17:06:21 +00:00
Paolo Tranquilli
30161b0f12
Codegen: patch customized stubs with QLdoc
2023-11-21 17:51:27 +01:00
Paolo Tranquilli
d659709695
Codegen: add render_str
2023-11-21 17:28:12 +01:00
Paolo Tranquilli
e40c53a340
Swift: add full docs to stub classes
2023-11-21 17:27:30 +01:00
Ian Lynagh
7ba199a8c3
Kotlin: Update CODEOWNERS
2023-11-21 16:19:09 +00:00
Rasmus Lerchedahl Petersen
d288c4a709
Python: rename folder
2023-11-21 16:48:41 +01:00
yoff
4f7fde7b87
Merge pull request #14858 from yoff/python/demonstrate-use-use-explosion
...
Python: Test demonstrating the need for phi-read-nodes
2023-11-21 16:44:11 +01:00
Ian Lynagh
1fb19191ba
Kotlin: Add a qlpack.yml to the test-kotlin1 tests
2023-11-21 15:31:18 +00:00
Ian Lynagh
f48cc1a526
Kotlin: Move tests from test/kotlin to test-kotlin1
...
Matches test-kotlin2
2023-11-21 15:28:12 +00:00
Paolo Tranquilli
b4fd95bd6a
Swift: move stub QLdocs to separate templates
2023-11-21 16:25:21 +01:00
Paolo Tranquilli
5b724a7aaf
Swift: add QLdoc for Generated modules
2023-11-21 16:18:28 +01:00
Alex Denisov
dd6c5ba383
Swift: update docs
2023-11-21 16:03:18 +01:00
Alex Denisov
7b74478e47
Swift: update tests
2023-11-21 16:03:06 +01:00
Rasmus Wriedt Larsen
63fcaca82f
Python: add change-note
2023-11-21 16:02:41 +01:00
Rasmus Wriedt Larsen
a0867b4f66
Python: More HTTP request handler *args/**kwargs modeling
...
I looked through all `override Parameter getARoutedParameter() {` in our
codebase, and we now modeling *args/**kwargs for all of them 👍
2023-11-21 16:02:40 +01:00
Rasmus Wriedt Larsen
f9d7becd04
Python: Make multipleArgumentCallExclude more specific
2023-11-21 15:57:12 +01:00
Rasmus Lerchedahl Petersen
c552bc5eb1
Python: fix test output
2023-11-21 15:48:22 +01:00
Rasmus Lerchedahl Petersen
077e51c6c6
Python: fix test output
2023-11-21 15:47:18 +01:00
Rasmus Lerchedahl Petersen
4857960f72
Python: test demonstrating the need for phi nodes
...
or a dataflow node playing that role, at least.
2023-11-21 15:40:05 +01:00
Ian Lynagh
1998e29639
Kotlin 2: isFake is currently broken, so assume not fake for now
...
We'll want to find a Kotlin-2-compatible replacement for this.
2023-11-21 14:37:53 +00:00
Ian Lynagh
6bd269502f
Kotlin: Pull out a tryIsHiddenToOvercomeSignatureClash method
2023-11-21 14:36:10 +00:00
Stephan Brandauer
f2de449ce4
Merge branch 'main' into kaeluka/automodel-extraction-skip-primitive-types-candidates
2023-11-21 14:57:24 +01:00
Alex Denisov
b9952618ff
Swift: fix and update change note date
2023-11-21 14:52:28 +01:00
Alex Denisov
b269b79bb3
Merge branch 'main' into alexdenisov/macros
2023-11-21 14:51:00 +01:00
Max Schaefer
2c5ce3216e
Merge pull request #14846 from github/max-schaefer/js/path-injection
...
Update qhelp for js/path-injection.
2023-11-21 13:50:41 +00:00
Alex Denisov
dde2ad1290
Swift: do not print MacroRole as part of AST
2023-11-21 14:49:55 +01:00
Rasmus Lerchedahl Petersen
f138fc0d2d
Python: Test demonstrating need for phi-read-nodes
...
Or for a data flow node filling that role, at least.
2023-11-21 13:54:02 +01:00
Rasmus Wriedt Larsen
37d03ee0f3
Python: Accept .expected changes
...
Note that in this case, since there is a known `django.urls.path`
route-setup, we know that the request-handler will only be passed
keyword arguments, so it is not a mistake that `*args` is not considered
a routed-parameter here (although it certainly wouldn't have hurt us if
we did consider it a routed-parameter either).
2023-11-21 13:46:55 +01:00
Rasmus Wriedt Larsen
1bc8a6de61
Python: Fixup mistaken modelling
2023-11-21 13:46:23 +01:00
Ian Lynagh
08383eaea5
Merge pull request #14837 from igfoo/igfoo/owners
...
Kotlin: Add more CODEOWNERS entries
2023-11-21 12:25:17 +00:00
Ian Lynagh
2c2dccabe9
Merge pull request #14833 from igfoo/igfoo/kot2tests
...
Kotlin: Add a kotlin2 copy of the testsuite
2023-11-21 12:24:49 +00:00
Rasmus Wriedt Larsen
36a846ee32
Python: Fix django regex path handling
2023-11-21 13:08:45 +01:00
Rasmus Wriedt Larsen
c51c15ae74
Python: Add test of routed parameters to *args
...
Also move the **kwargs and *args test to a more appropriate file
2023-11-21 13:01:01 +01:00
Owen Mansel-Chan
d26dc68baa
Merge pull request #14798 from owen-mc/go/improve-value-flow-through-slice-exprs
...
Go: model value flow with array content through slice expressions
2023-11-21 11:50:08 +00:00
Rasmus Wriedt Larsen
2ec1822e9c
Python: Accept consistency-errors in django-orm
2023-11-21 12:44:42 +01:00
Rasmus Wriedt Larsen
5f26790b90
Merge branch 'main' into py-restframework
2023-11-21 11:57:48 +01:00
Rasmus Wriedt Larsen
df9fb141b8
Python: Remove old manual consistency query tests
2023-11-21 11:50:23 +01:00
Ian Lynagh
0668b71538
Merge pull request #14831 from igfoo/igfoo/kot2
...
Kotlin: Add 2.0.0-Beta1
2023-11-21 10:35:12 +00:00
Rasmus Wriedt Larsen
b6df6b7c99
Python: Add dataflow consistency query
2023-11-21 11:33:28 +01:00
Max Schaefer
dfffa1e237
Apply suggestions from code review
...
Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com >
2023-11-21 10:07:11 +00:00
Michael Nebel
d8e7c9c986
Merge pull request #14767 from michaelnebel/csharp/projectframeworkassets
...
C#: Framework dependency detection.
2023-11-21 10:55:30 +01:00
Tamas Vajk
253c658ad2
C#: Tolerate missing call targets in LogMessageSink
2023-11-21 10:13:18 +01:00
Tamas Vajk
f0e20fa69e
C#: Add test case for missing log message sinks with ambiguous types
2023-11-21 10:09:05 +01:00
Rasmus Wriedt Larsen
71c017f053
Python: Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-11-21 10:07:42 +01:00
Erik Krogh Kristensen
7263d4d650
Merge pull request #14510 from aibaars/ts53-ts
...
JS: update typescript extractor to use 5.3 .
2023-11-21 09:10:43 +01:00
erik-krogh
5611a3e417
use exact version
2023-11-20 20:48:51 +01:00
erik-krogh
10b3efa667
update to the stable version of TypeScript 5.3
2023-11-20 20:32:24 +01:00
erik-krogh
dde9a7cd7e
Merge branch 'main' into ts53-ts
2023-11-20 20:31:00 +01:00
Mathias Vorreiter Pedersen
75f860595a
Merge pull request #14838 from MathiasVP/no-dtt-in-arithmetic-with-extreme-values
...
C++: Convert `cpp/arithmetic-with-extreme-values` away from `DefaultTaintTracking`
2023-11-20 16:39:58 +00:00
Rasmus Wriedt Larsen
c8301fc5f0
Merge pull request #14851 from RasmusWL/variable-caputre-list-comprehension
...
Python: Add test for variable reference in list comprehension
2023-11-20 17:10:34 +01:00
Ian Lynagh
95de7495d1
Kotlin: Fix build with 2.0.0-Beta1
2023-11-20 16:08:02 +00:00
Ian Lynagh
72bafd86df
Kotlin: Tweak the regex we use to find the installed Kotlin version
2023-11-20 16:08:02 +00:00
Ian Lynagh
452b68c0ca
Kotlin: Add 2.0.0-Beta1 to versions
2023-11-20 16:08:02 +00:00
Rasmus Wriedt Larsen
db1499d5b0
Python: Add test for variable reference in list comprehension
2023-11-20 16:41:34 +01:00
Max Schaefer
b5c92408f4
Merge pull request #14845 from github/max-schaefer/minor
...
Automodel: Fix a few nits.
2023-11-20 15:24:45 +00:00
Tom Hvitved
620e8dcb37
Merge pull request #14787 from hvitved/ruby/prune-dataflow-nodes
...
Ruby: Prune irrelevant data flow nodes and edges
2023-11-20 16:03:00 +01:00
Taus
5b4a8884b4
Merge pull request #14636 from github/tausbn/python-add-support-for-python-3.12-type-syntax
...
Python: Add support for Python 3.12 type syntax
2023-11-20 15:52:48 +01:00
Stephan Brandauer
737aab66f5
Java automodel: drop primitive parameters from endpoints
2023-11-20 15:09:05 +01:00
Mathias Vorreiter Pedersen
ab6260600e
Merge pull request #14822 from MathiasVP/fix-global-variable-flow-for-arrays
...
C++: Fix global-variable flow for array types
2023-11-20 13:46:05 +00:00
Taus
10b72a0c39
Python: Fix scope of type parameters
...
This takes care of scoping for type parameters on functions, but not
type aliases or classes.
For classes, the _type parameters_ now have the correct `Class` as scope,
but all their child nodes do not (e.g. the `Name` inside a `TypeParameter`).
This has to do with how the `py_scopes` relation is emitted by the extractor,
since `Name`s are expressions.
2023-11-20 13:31:21 +00:00
Taus
36201105b9
Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax
2023-11-20 13:27:54 +00:00
Stephan Brandauer
e34a9de008
Java Automodel: drop return values of primitive return type methods from consideration for extraction in framework mode
2023-11-20 14:11:14 +01:00
Rasmus Wriedt Larsen
9bdc2d1c02
Merge pull request #14847 from ctcampbell/main
...
Update cryptography bill of materials queries
2023-11-20 14:08:11 +01:00
Stephan Brandauer
212a515fa9
Java Automodel: drop return values void methods other than ctors from consideration for extraction in framework mode
2023-11-20 14:00:59 +01:00
Stephan Brandauer
d84501d65c
Java automodel extraction: test case for framework mode extraction showing how primitives are currently candidates
2023-11-20 13:36:41 +01:00
Mathias Vorreiter Pedersen
dcba8e5408
C++: Fix global variable flow for array types.
2023-11-20 12:15:55 +00:00
Mathias Vorreiter Pedersen
8039e117ba
C++: Add more global-variable flow tests.
2023-11-20 12:15:52 +00:00
Chris Campbell
27a2781954
Merge branch 'github:main' into main
2023-11-20 12:15:45 +00:00
Ian Lynagh
b8a2716ced
Merge pull request #14835 from igfoo/igfoo/findTopLevelFunctionOrWarn
...
Kotlin: Fix findTopLevelFunctionOrWarn for Kotlin 2
2023-11-20 12:11:58 +00:00
Max Schaefer
d147faba4e
Update qhelp for js/path-injection.
2023-11-20 11:58:00 +00:00
Max Schaefer
1bed9f9003
Automodel: Fix a few nits.
2023-11-20 11:06:02 +00:00
Tom Hvitved
fab6813a49
Merge pull request #14815 from hvitved/type-tracking/param-consistency-checks
...
Type tracking: Parameterize consistency checks
2023-11-20 11:05:06 +01:00
Michael Nebel
cf696f2639
Merge pull request #14843 from michaelnebel/csharp/postreviewcomments
...
C#: In Assets parser let TryReadAllText return null on read error.
2023-11-20 10:18:34 +01:00
Michael Nebel
a9a55dfcd6
C#: In Assets parser let TryReadAllText return null on read error.
2023-11-20 08:35:50 +01:00
Michael Nebel
d3e047f078
Merge pull request #14834 from michaelnebel/csharp/robustassetsfileread
...
C#: Make assets file reading more robust.
2023-11-20 08:28:07 +01:00
Arthur Baars
db180d9872
Merge pull request #14823 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-19 12:13:42 +01:00
Mathias Vorreiter Pedersen
c65c2489cf
C++: Rewrite 'cpp/arithmetic-with-extreme-values' away from 'DefaultTaintTracking'.
2023-11-17 16:38:35 +00:00
Ian Lynagh
db76681744
Kotlin: Add more CODEOWNERS entries
2023-11-17 16:05:30 +00:00
Ian Lynagh
5c36e63dfe
Kotlin: Fix findTopLevelFunctionOrWarn for Kotlin 2
...
The AST when the parent class is a file class is different in
Kotlin 2 mode.
2023-11-17 15:25:53 +00:00
Michael Nebel
7531852ea6
C#: Log information about asset file read errors.
2023-11-17 15:40:58 +01:00
Michael Nebel
cd9786a952
C#: Assets paths should contain at least one character.
2023-11-17 15:36:15 +01:00
github-actions[bot]
bad499e360
Post-release preparation for codeql-cli-2.15.3
2023-11-17 14:35:41 +00:00
Tamás Vajk
7c3122aade
Merge pull request #14828 from tamasvajk/docs/insecure-randomness
...
C#: Update insecure randomness query description to match implementation
2023-11-17 15:31:33 +01:00
Ian Lynagh
007f181ff5
K2: library-tests/properties: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
90ba3812fe
K2: library-tests/private-anonymous-types: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
e63ddd2071
K2: library-tests/operator-overloads: Accept changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
8f8f5f8826
K2: library-tests/methods-mixed-java-and-kotlin: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
584ba80ec7
K2: library-tests/literals: Accept changes
...
Some literals that were negative are now unaryMiunus applied to a
positive literal.
2023-11-17 14:07:15 +00:00
Ian Lynagh
4ad874a089
K2: library-tests/lateinit: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
a3ed965032
K2: library-tests/jvmstatic-annotation: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
2bd18ab41d
K2: library-tests/jvmoverloads_flow: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
713695f8f9
K2: library-tests/jvmoverloads-annotation: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
bb1d5d3c8c
K2: library-tests/java_and_kotlin_internal: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
737e9d8844
K2: library-tests/java-lang-number-conversions: Accept changes
...
With
fun f(b: kotlin.Byte) {
val x = b.describeConstable()
}
and -language-version 1.9 we get
test.kt:2:15: warning: 'describeConstable(): Optional<DynamicConstantDesc<Byte!>!>!' is deprecated. This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version
and with 2.0
test.kt:2:15: error: unresolved reference 'describeConstable'.
2023-11-17 14:07:15 +00:00
Ian Lynagh
02ed6e03e2
K2: library-tests/internal-public-alias: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
0a4ba8e8c7
K2: library-tests/interface-delegate: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
081a4ad021
K2: library-tests/inherited-default-value: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
23d881baa4
K2: library-tests/generics: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
91a48856c5
K2: library-tests/generic-instance-methods: Accept loc changes
2023-11-17 14:07:15 +00:00
Ian Lynagh
b97f4401c0
K2: library-tests/exprs_typeaccess: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
11a664d707
K2: library-tests/dataflow/notnullexpr: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
46e155d327
K2: library-tests/controlflow/dominance: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
5ab2e30ba3
K2: library-tests/controlflow/basic: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
b4534fe9ff
K2: library-tests/classes: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
8099a8c851
K2: library-tests/annotations/jvmName: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
0f9afca2ab
K2: library-tests/annotation_classes: Accept changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
2151b6d8c5
K2: library-tests/extensions: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
ad1906e871
K2: library-tests/companion_objects: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
400f892376
K2: library-tests/no-when-branch-found: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
5db6afa84a
K2: library-tests/trap: Accept location changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
da606dd77b
K2: library-tests/underscore-parameters: Accept p0 -> _ parameter name change
2023-11-17 14:07:14 +00:00
Ian Lynagh
fc59b7f3a7
K2: library-tests/generic-inner-classes: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
4fafed2542
K2: library-tests/generic-selective-extraction: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
366b919107
K2: library-tests/methods/methods: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
2b24298d7f
K2: library-tests/methods/parameters: Accept loc changes
2023-11-17 14:07:14 +00:00
Ian Lynagh
7a49d6e9bd
K2: query-tests/UselessNullCheck: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
cb088c3ee1
K2: library-tests/variables: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
3a0c4c4d6f
K2: library-tests/jvmoverloads_generics: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
d52f2e510b
K2: library-tests/lazy-val-multiple-constructors: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
ed8e105452
K2: library-tests/java_and_kotlin: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
f1cfc5d1b8
K2: library-tests/properties: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
e3f4bb84d4
K2: library-tests/modifiers: Accept location changes
2023-11-17 14:07:13 +00:00
Ian Lynagh
905583e00a
Kotlin: Add a Kotlin 2 copy of the testsuite
2023-11-17 14:07:13 +00:00
Ian Lynagh
e6f31c965e
Kotlin: Add qlpack for the Kotlin 2 tests
2023-11-17 14:07:12 +00:00
Tamás Vajk
b2c8049a77
Merge branch 'main' into docs/insecure-randomness
2023-11-17 13:37:27 +01:00
Yunus AYDIN
9e5a80ac59
update select clause and expected file
2023-11-17 13:37:17 +03:00
Arthur Baars
ff65ffafb0
Merge pull request #14830 from aibaars/csharp/fixintegrationtests
...
C# fix integration tests
2023-11-17 11:17:31 +01:00
Yunus AYDIN
7bf7e59017
update expected file
2023-11-17 13:06:46 +03:00
Michael B. Gale
97402fdf36
C#: Fix dotnet_test_mstest
2023-11-17 10:35:14 +01:00
Michael Nebel
2662a4c651
C#: Fix the dotnet pack integration test.
2023-11-17 10:35:14 +01:00
Ian Lynagh
8a8031df0e
Merge pull request #14814 from igfoo/igfoo/build_ver
...
Kotlin: Build: Refactor version handling
2023-11-17 09:32:06 +00:00
Michael Nebel
b7b10ce549
C#: Address review comments.
2023-11-17 09:47:36 +01:00
Michael Nebel
49b2209c62
C#: Update and more assets unit tests.
2023-11-17 09:39:51 +01:00
Michael Nebel
890cba6e95
C#: Disregard _._ dependencies and only default to use an entire framework in case the compile section is empty.
2023-11-17 09:39:51 +01:00
Michael Nebel
e89fe8ddde
C#: Re-factor the hardcoded package names into a separate class.
2023-11-17 09:39:51 +01:00
Michael Nebel
98dbbe907e
C#: Update unit tests.
2023-11-17 09:39:51 +01:00
Michael Nebel
7b75a30851
C#: Add framework detection to the assets.json parser.
2023-11-17 09:39:51 +01:00
Michael Nebel
20b31d0b4e
Merge pull request #14825 from michaelnebel/csharp/fixintegrationtests
...
C#: Fix integration test failures after dotnet upgrade on runners.
2023-11-17 08:53:42 +01:00
Yunus AYDIN
4f6421946c
update the rule and select clause
2023-11-17 10:49:02 +03:00
Tamas Vajk
9a8ad7d590
C#: Update insecure randomness query description to match implementation
2023-11-17 08:48:38 +01:00
Yunus AYDIN
43f100fd69
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-17 10:40:42 +03:00
Yunus AYDIN
96646abab9
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-17 10:40:32 +03:00
Yunus AYDIN
0091b83258
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-17 10:40:18 +03:00
Yunus AYDIN
8ff38321a3
update rule and expected file
2023-11-17 00:08:01 +03:00
Michael B. Gale
d7760de4c6
C#: Fix dotnet_test_mstest
2023-11-16 19:56:01 +00:00
Michael Nebel
cca78ca190
C#: Fix the dotnet pack integration test.
2023-11-16 19:05:59 +01:00
Arthur Baars
dce03569e5
Merge pull request #14813 from github/release-prep/2.15.3
...
Release preparation for version 2.15.3
2023-11-16 18:42:17 +01:00
Arthur Baars
93eaeaec75
Merge pull request #14816 from github/post-release-prep/codeql-cli-2.15.3
...
Post-release preparation for codeql-cli-2.15.3
2023-11-16 18:20:48 +01:00
Paolo Tranquilli
9b840aa20c
Merge pull request #14820 from github/redsun82/rename-cc_binary_add_features
...
Bazel/CMake: small compatibility fix
2023-11-16 17:47:27 +01:00
Shati Patel
8b6a9180dc
Merge pull request #14819 from p-/p--fix-doc-vscode-ext-property
...
Doc: Fix name of VS Code settings property to use extension packs
2023-11-16 16:23:54 +00:00
Stephan Brandauer
cb7213d87a
Merge pull request #14818 from github/kaeluka/application-mode-erase-type-signatures-of-generic-types
...
Java Automodel extraction: fix extracted meta information by using Object for the type of generic parameters
2023-11-16 17:17:47 +01:00
Paolo Tranquilli
9a4b56162e
Bazel/CMake: small compatibility fix
2023-11-16 17:16:14 +01:00
Paolo Tranquilli
f3482684a6
Merge pull request #14805 from github/redsun82/rename-cc_binary_add_features
...
Bazel/CMake: support new internal transition rules
2023-11-16 17:10:40 +01:00
Mathias Vorreiter Pedersen
a10f94af81
Merge pull request #14810 from MathiasVP/fix-ref-deref-duplication
...
C++: Fix dataflow duplication from `ReferenceDereference` expressions
2023-11-16 16:10:07 +00:00
Peter Stöckli
de3d15b277
Doc: Fix name of VS Code settings property to use extension packs
2023-11-16 16:53:12 +01:00
Chris Campbell
114b694553
Remove @precision values, correct missing tags
2023-11-16 15:50:41 +00:00
Taus
216cd88225
Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax
2023-11-16 15:25:06 +00:00
Mathias Vorreiter Pedersen
c5d2866948
Merge pull request #14812 from MathiasVP/no-dtt-in-Integer-overflow-tainted
...
C++: Convert `cpp/integer-overflow-tainted` away from DefaultTaintTracking
2023-11-16 15:24:13 +00:00
Taus
635bcd4fa2
Python: Add change note
2023-11-16 15:14:30 +00:00
Stephan Brandauer
74a195b4f4
Java Automodel extraction: fix extracted meta information by using Object for the type of generic parameters
2023-11-16 16:08:04 +01:00
Ian Lynagh
e9800d11b6
Kotlin: Build: Refactor version handling
...
We now have a proper class to represent versions, rather than using
tuples. The version is passed deeper down, so we can now have
version-dependent compilation flags.
2023-11-16 14:25:41 +00:00
Tom Hvitved
40a07de566
Type tracking: Parameterize consistency checks
2023-11-16 15:23:23 +01:00
Max Schaefer
ca334021ad
Merge pull request #14793 from github/max-schaefer/tainted-path-qhelp
...
Java: Improve QHelp for `java/path-injection` to mention less disruptive fixes.
2023-11-16 14:09:55 +00:00
Stephan Brandauer
69ab389d9f
Merge pull request #14795 from github/kaeluka/skip-this-qualifier-ctor-candidates
...
Java: Automodel Extraction: Remove Qualifier Endpoints of Constructors
2023-11-16 14:54:19 +01:00
Mathias Vorreiter Pedersen
da2215e7e5
C++: Accept test changes.
2023-11-16 13:54:13 +00:00
Mathias Vorreiter Pedersen
30f0b8ab2b
Merge pull request #14808 from jketema/jketema/del-fmt-global
...
C++: Delete `cpp/tainted-format-string-through-global`
2023-11-16 13:44:21 +00:00
github-actions[bot]
6ec9b95072
Release preparation for version 2.15.3
2023-11-16 13:07:16 +00:00
Arthur Baars
641646ac08
Rename change note
2023-11-16 14:04:25 +01:00
Tom Hvitved
b2f1022e5c
Ruby: Prune irrelevant data flow nodes and edges
2023-11-16 13:52:07 +01:00
Tom Hvitved
75f42f4614
Merge pull request #14783 from hvitved/ruby/hash-array-literal
...
Ruby: Include more nodes in `{Hash,Array}LiteralCfgNode`
2023-11-16 13:51:35 +01:00
Henry Mercer
0c1fb8c881
Merge pull request #14811 from github/henrymercer/remove-lines-of-non-user-code-from-summary
...
Remove LoC metrics from the analysis summary
2023-11-16 12:30:55 +00:00
Rasmus Wriedt Larsen
4f9303eb02
Merge pull request #14790 from RasmusWL/clean-tests
...
Python: Accept new ordering of query predicates in `.expected`
2023-11-16 13:23:35 +01:00
Mathias Vorreiter Pedersen
078f223052
C++: Rewrite 'cpp/cpp/integer-overflow-tainted' away from DefaultTaintTracking.
2023-11-16 12:01:38 +00:00
Tom Hvitved
2c23dacca1
Ruby: Add more hash/array literal tests
2023-11-16 12:58:53 +01:00
Max Schaefer
a5e7ef424e
Revert "Add additional example."
...
This reverts commit 947b094387 .
2023-11-16 11:54:16 +00:00
Stephan Brandauer
84e58b77aa
Java Automodel: remove Qualifiers of constructors from endpoints
2023-11-16 12:44:53 +01:00
Stephan Brandauer
3092640115
Java Automodel: make test case for Argument[this] sink candidates in ctors in framework mode
2023-11-16 12:42:50 +01:00
Max Schaefer
143e1680bd
Apply suggestions from code review
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-16 11:42:35 +00:00
Henry Mercer
de83929a60
Remove LoC metrics from the analysis summary
2023-11-16 11:36:44 +00:00
Stephan Brandauer
d7c97d9d92
Java Automodel: remove constructor instance arguments from endpoints and update test expectations
2023-11-16 12:27:23 +01:00
Stephan Brandauer
30925da7d9
Java Automodel: tests that demonstrate that there is no sink candidate of an object being constructed in app mode
2023-11-16 12:24:41 +01:00
Mathias Vorreiter Pedersen
d25c24b64d
C++: Reduce code duplication by moving shared code into a module.
2023-11-16 10:52:46 +00:00
Mathias Vorreiter Pedersen
5a7cb8f25a
C++: Fix duplication on reference dereference expressions.
2023-11-16 10:52:35 +00:00
Mathias Vorreiter Pedersen
799873113f
C++: Add a test that demonstrates reference dereference duplication.
2023-11-16 10:52:14 +00:00
Mathias Vorreiter Pedersen
f8feb84958
C++: Accept test changes from refactoring QL files.
2023-11-16 10:52:10 +00:00
Mathias Vorreiter Pedersen
6a1504b91c
C++: Slightly refactor test QL files so that we can add a test which tests the nodes being selected.
2023-11-16 10:50:56 +00:00
Stephan Brandauer
f1001374fd
Merge pull request #14642 from github/kaeluka/publish-automodel-querypack-007
...
Java: Publish Automodel query pack 0.0.7
2023-11-16 11:50:32 +01:00
Rasmus Wriedt Larsen
25d3af9236
Merge branch 'main' into clean-tests
2023-11-16 11:21:01 +01:00
Jeroen Ketema
1f3f1b5ec4
Merge pull request #14809 from MathiasVP/move-change-note
...
C++: Move change note
2023-11-16 11:14:14 +01:00
Max Schaefer
947b094387
Add additional example.
2023-11-16 10:06:19 +00:00
Max Schaefer
009d58034f
Address suggestions from review.
2023-11-16 10:05:54 +00:00
Taus
fd750a3bf0
Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax
2023-11-16 09:59:44 +00:00
Mathias Vorreiter Pedersen
5c0fb2030d
C++: Move change note.
2023-11-16 09:57:08 +00:00
Jeroen Ketema
2eb67549e6
C++: Tweak change note slightly
2023-11-16 10:56:47 +01:00
Jeroen Ketema
afe318edbe
C++: Delete cpp/tainted-format-string-through-global
2023-11-16 10:52:05 +01:00
Rasmus Wriedt Larsen
71ef98584d
Merge pull request #14791 from RasmusWL/python-3.12
...
Python: Update `.expected` to support Python 3.12
2023-11-16 10:42:48 +01:00
Tom Hvitved
6bba191407
Merge pull request #14710 from hvitved/type-tracking/prepare-ruby
...
Prepare shared type tracking library for adoption by Ruby
2023-11-16 10:34:32 +01:00
Rasmus Wriedt Larsen
df144f3a1e
Merge pull request #14406 from amammad/amammad-python-FileSystemAccess
...
Python: New FileSystem Access
2023-11-16 10:25:34 +01:00
Geoffrey White
8b628e3ad3
Swift: Change note.
2023-11-16 09:04:52 +00:00
Geoffrey White
c49f05aa2b
Swift: Fix false positive / result overlap.
2023-11-16 09:00:35 +00:00
Geoffrey White
96b4a12af7
Swift: Add heuristic sinks.
2023-11-16 09:00:35 +00:00
Geoffrey White
697c3df74a
Swift: Model C printf variants.
2023-11-16 09:00:34 +00:00
Geoffrey White
1040561ec1
Swift: Model formatting append methods.
2023-11-16 09:00:34 +00:00
Rasmus Wriedt Larsen
a46dc55e84
Merge branch 'main' into python-3.12
2023-11-16 09:34:06 +01:00
Paolo Tranquilli
615a128770
Bazel/CMake: support new internal transition rules
2023-11-16 09:04:58 +01:00
Tamás Vajk
14268f3c63
Merge pull request #14792 from tamasvajk/standalone/assembly-attribute
...
C#: Fix assembly attribute extraction in standalone mode
2023-11-16 08:09:14 +01:00
Sam Browning
408ba517e5
Merge pull request #14776 from github/sabrowning1/queries-panel-language-selector
...
Add content for the queries panel and language selector
2023-11-15 17:30:21 -05:00
Mathias Vorreiter Pedersen
4d4ca6b948
Merge pull request #14794 from MathiasVP/catch-more-return-stack-allocated-memory
...
C++: Catch more returns of stack-allocated memory
2023-11-15 19:23:24 +00:00
Geoffrey White
a6fe620bcb
Swift: Fix Swift warnings in the test.
2023-11-15 18:06:38 +00:00
Geoffrey White
3a38f3b947
Swift: Add test cases.
2023-11-15 18:06:37 +00:00
Geoffrey White
0ae04de7f0
Swift: Test stubs / classes.
2023-11-15 17:23:22 +00:00
Yunus AYDIN
8a24daf293
modify tests and rule
2023-11-15 19:38:16 +03:00
Sam Browning
d443354651
Apply feedback and fix syntax
2023-11-15 11:35:33 -05:00
Ian Lynagh
72af41b196
Kotlin: Prepare for a Kotlin2 copy of the testsuite
2023-11-15 16:14:34 +00:00
Tom Hvitved
57f6859ddc
Shared: Update type tracking consistency checks
2023-11-15 17:08:05 +01:00
Tom Hvitved
5f087f0084
Shared: Port features from Ruby's type tracking library to the shared library
...
- Cache relevant predicates.
- Expose some predicates and classes (only exposed internally).
- Make some top-level `inline_late` predicates member predicates.
- Actually eliminate type check in `flowsTo`.
- Fix bug in `getACompatibleTypeTracker`.
- Adopt the `CallGraphConstruction` module.
2023-11-15 17:08:05 +01:00
Tom Hvitved
f66f7ce8d7
Shared: Split up TypeTracking.qll into two files
2023-11-15 17:07:27 +01:00
Owen Mansel-Chan
64bf6cc62b
Update existing test (extra nodes, no extra alerts)
2023-11-15 15:33:09 +00:00
Owen Mansel-Chan
1ac3a9e8d3
Add change note
2023-11-15 15:12:58 +00:00
Owen Mansel-Chan
e0879969c9
Update tests
2023-11-15 15:08:48 +00:00
Jeroen Ketema
f22979f4b6
Merge pull request #14561 from jketema/rewrite-uncontrolled-process-operation
...
C++: Rewrite `cpp/uncontrolled-process-operation` to not use `DefaultTaintTracking`
2023-11-15 16:03:58 +01:00
Owen Mansel-Chan
aaa8f9c41f
Add read and store steps for SliceElementNode
2023-11-15 14:58:23 +00:00
Owen Mansel-Chan
2b897a9825
Add synthetic SliceElementNode
2023-11-15 14:58:21 +00:00
Owen Mansel-Chan
5af3e119a6
Test value flow through SliceExpr with array content
2023-11-15 14:57:53 +00:00
Geoffrey White
0b82f8a6e6
Swift: Make QL-for-QL happy.
2023-11-15 14:32:07 +00:00
Jeroen Ketema
46e6e72593
C++: Address review comments
2023-11-15 14:57:53 +01:00
Jeroen Ketema
92c18960c5
C++: Rewrite cpp/uncontrolled-process-operation to not use DefaultTaintTracking
2023-11-15 14:57:53 +01:00
Geoffrey White
4afcbb1bc4
Swift: Autoformat.
2023-11-15 13:38:07 +00:00
Rasmus Wriedt Larsen
e349891cff
Python: Apply suggestions from code review
2023-11-15 14:35:52 +01:00
Geoffrey White
3a13759f10
Swift: Clean up the test.
2023-11-15 13:35:18 +00:00
Rasmus Wriedt Larsen
e02c32f3d4
Python: options file was not enough, split into 2/3
...
I reckon this is due to the Python 3 version used by the Python 2 tests
is different from 3.12, so even with --lang=3 the tests are still using
an incompatible version :(
2023-11-15 14:24:11 +01:00
Geoffrey White
17dd119545
Swift: Fix performance.
2023-11-15 13:18:09 +00:00
Yunus AYDIN
7877082869
fix tests code issues and expected file
2023-11-15 16:08:20 +03:00
Alex Denisov
7129ffc199
Swift: add database migration scripts
2023-11-15 14:07:45 +01:00
Alex Denisov
1f5be03137
Swift: add change note
2023-11-15 14:07:45 +01:00
Alex Denisov
423c85377b
Swift: skip MacroExpansionExpr/MacroExpansionDecl
...
They only appear in an intermediate AST and disappear as soon as the
macro is expanded.
The only way to get these in is to construct an "incorrect" AST, e.g.:
```
let x = #does_not_exist() // MacroExpansionExpr
struct S {
#does_not_exist() // MacroExpansionDecl
}
```
2023-11-15 14:07:45 +01:00
Alex Denisov
8b126fe51a
Swift: extract MacroDecl
2023-11-15 14:07:45 +01:00
Yunus AYDIN
1ed4d2ada7
remove database
2023-11-15 15:49:31 +03:00
Yunus AYDIN
1e915720e9
fix the rule issues
2023-11-15 15:49:09 +03:00
Rasmus Wriedt Larsen
0f1dc9b2d9
Python: Add missing options file
2023-11-15 13:24:08 +01:00
Rasmus Wriedt Larsen
ae6c95ff95
Python: Fix asyncio.coroutine deprecation
...
Was removed in 3.11, see https://docs.python.org/3.10/library/asyncio-task.html#asyncio.coroutine
I couldn't make the __awwait__ actually give the result to the agen function...
I also tried looking into
https://docs.python.org/3/library/types.html#types.coroutine , but also
failed to make that work.
Without the Future, such as doing `yield SOURCE` inside `__await__` it
complains `RuntimeError: Task got bad yield: 'source'`
2023-11-15 13:24:08 +01:00
Yunus AYDIN
d5f254781e
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-15 15:11:02 +03:00
Yunus AYDIN
fa1fa0d19d
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-15 15:08:29 +03:00
Yunus AYDIN
74f1344ac5
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-11-15 15:08:14 +03:00
Mathias Vorreiter Pedersen
bae7e10e46
C++: Also add MSVC-related 'alloca'-like functions.
2023-11-15 12:07:17 +00:00
Mathias Vorreiter Pedersen
ec63099c54
C++: Add change note.
2023-11-15 11:57:09 +00:00
Mathias Vorreiter Pedersen
2b8b5cf1b8
C++: Accept test changes.
2023-11-15 11:52:14 +00:00
Mathias Vorreiter Pedersen
6730f57d5c
C++: Also flag up 'alloca' and friends.
2023-11-15 11:51:57 +00:00
Mathias Vorreiter Pedersen
118d50236f
C++: Add failing tests.
2023-11-15 11:48:37 +00:00
Max Schaefer
a46a7fadb2
Java: Improve QHelp for java/path-injection to mention less disruptive fixes.
2023-11-15 11:25:13 +00:00
Tamas Vajk
7a001f4905
C#: Fix assembly attribute extraction in standalone mode
2023-11-15 12:21:03 +01:00
Owen Mansel-Chan
803ed20962
Merge pull request #14778 from owen-mc/go/improve-value-flow-through-arrays
...
Go: improve value flow through arrays
2023-11-15 11:13:15 +00:00
Rasmus Wriedt Larsen
4256fbf11a
Python: Accept changes from Python 3.12
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
f3dd002ba9
Python: Copy tests to Python 3
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
f9e9ae91f7
Python: Move tests that would change under Python 3.12 to lang specific directory
...
This moves the tests to Python 2, next we copy them to Python 3.
2023-11-15 11:42:38 +01:00
Rasmus Wriedt Larsen
23419ee634
Python: Update .expected to support Python 3.12
...
You might wonder why the number of lines changed, but it's due to `tty`
module receiving its' first update since 2001, so the actual number of
lines DID change :phew:
https://github.com/python/cpython/commits/3.12/Lib/tty.py
Since there is now a difference between Python 2 and Python 3, we need to restrict the lines of code test to only run as Python 3.
2023-11-15 11:42:38 +01:00
Mathias Vorreiter Pedersen
b8f0f85840
Merge pull request #14784 from MathiasVP/no-dtt-in-tainted-arithmetic
...
C++: Rewrite `cpp/tainted-arithmetic` away from `DefaultTaintTracking`
2023-11-15 10:19:25 +00:00
Rasmus Wriedt Larsen
69453aa144
Python: Fix missing newline in .expected
2023-11-15 10:10:23 +01:00
Rasmus Wriedt Larsen
55f5b26ba6
Python: Accept new ordering of query predicates in .expected
2023-11-15 10:09:54 +01:00
Rasmus Wriedt Larsen
721bde1ce8
Python: Delete orphaned .expected files
2023-11-15 09:59:26 +01:00
Rasmus Wriedt Larsen
2e9d548083
Merge pull request #14706 from RasmusWL/class-attribute-flow
...
Python: Add basic flow for class attributes
2023-11-15 09:06:25 +01:00
Yunus AYDIN
fdefcd6a84
Merge branch 'main' of github.com:aydinnyunus/codeql
2023-11-15 09:34:06 +03:00
Yunus AYDIN
9178cec0e6
fix test errors
2023-11-15 09:33:52 +03:00
Owen Mansel-Chan
83d1fc33e1
Add change note
2023-11-14 23:16:32 +00:00
Erik Krogh Kristensen
14e51627c5
Merge pull request #14419 from rvermeulen/rvermeulen/javascript-adjust-security-severity
...
JavaScript: Adjust XSS and log injection query severities
2023-11-14 21:34:25 +01:00
Yunus AYDIN
b1702ab87e
Merge branch 'main' into main
2023-11-14 23:17:49 +03:00
Remco Vermeulen
52540b42fc
Merge branch 'main' into rvermeulen/javascript-adjust-security-severity
2023-11-14 11:21:38 -08:00
Remco Vermeulen
6bd7047e41
Restore XssThroughDom.ql's severity
2023-11-14 11:20:51 -08:00
AlexDenisov
57f1f5b829
Merge pull request #14768 from github/alexdenisov/move-semantics
...
Swift: extract AST nodes related to move semantics
2023-11-14 19:13:27 +01:00
Yunus AYDIN
9548a0e8fb
Merge branch 'main' into main
2023-11-14 20:25:28 +03:00
Yunus AYDIN
ba672e5b35
Merge branch 'main' of github.com:aydinnyunus/codeql
2023-11-14 20:20:28 +03:00
Yunus AYDIN
2cea720f6e
remove wcd directory
2023-11-14 20:19:49 +03:00
Yunus AYDIN
dbdf9e1a4f
remove change-notes and fix build error
2023-11-14 20:19:28 +03:00
Mathias Vorreiter Pedersen
bff93c4484
Merge branch 'main' into no-dtt-in-tainted-arithmetic
2023-11-14 17:12:34 +00:00
Geoffrey White
0342b3eba2
Merge pull request #14772 from geoffw0/webview
...
Swift: Use TaintInheritingContent in WebView.qll
2023-11-14 16:29:32 +00:00
Geoffrey White
d28e7920b3
Merge pull request #14773 from geoffw0/fixmodel
...
Swift: Fix odds and ends
2023-11-14 16:28:33 +00:00
Yunus AYDIN
ec7309c735
Merge branch 'main' into main
2023-11-14 19:19:09 +03:00
Tamás Vajk
331ca61be9
Merge pull request #14789 from tamasvajk/autobuild/arm-nuget-restore
...
C#: Do not call nuget.exe on Apple Silicon
2023-11-14 17:13:42 +01:00
Alex Denisov
559b965e74
Swift: add change note
2023-11-14 16:11:28 +01:00
Yunus AYDIN
9f63613cf8
Merge branch 'main' into main
2023-11-14 17:29:57 +03:00
Yunus AYDIN
e576650293
remove qhelp file and add qlref
2023-11-14 17:23:42 +03:00
Felicity Chapman
6299b844f8
Merge pull request #14785 from github/felicitymay-security-severity
...
Update metadata-for-codeql-queries.rst
2023-11-14 14:13:53 +00:00
Sam Browning
4385b316c0
Apply feedback from code review
2023-11-14 09:10:07 -05:00
Sam Browning
b1dc6099ff
Apply feedback from code review
2023-11-14 09:01:54 -05:00
Sam Browning
15099b3db0
Update docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst
...
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com >
2023-11-14 08:57:52 -05:00
Tamas Vajk
8334c6db91
C#: Do not call nuget.exe on Apple Silicon
2023-11-14 14:50:29 +01:00
Alex Denisov
1c75e5b2a6
Swift: add database migration scripts for move semantics
2023-11-14 14:35:58 +01:00
Mathias Vorreiter Pedersen
1623bba18a
Merge branch 'main' into no-dtt-in-tainted-arithmetic
2023-11-14 13:35:15 +00:00
Tom Hvitved
475d8da342
Ruby: Include more nodes in {Hash,Array}LiteralCfgNode
2023-11-14 13:50:46 +01:00
Tom Hvitved
ae09499905
Merge pull request #14781 from hvitved/ruby/ssa-unitialized-to-string
...
Ruby: Include name of variable in `UninitializedDefinition.toString`
2023-11-14 13:49:27 +01:00
Mathias Vorreiter Pedersen
c950e26b3e
C++: Rewrite 'cpp/cpp/tainted-arithmetic' away from DefaultTaintTracking.
2023-11-14 12:19:12 +00:00
Felicity Chapman
f75c062949
Update metadata-for-codeql-queries.rst
...
Replace link to blog with trackable GH.io link
2023-11-14 12:06:44 +00:00
Mathias Vorreiter Pedersen
f22d87b7c7
Merge pull request #14771 from MathiasVP/fix-missing-unbounded-write-results
...
C++: Fix missing results in `cpp/unbounded-write`
2023-11-14 12:03:13 +00:00
Tamás Vajk
e11a68803e
Merge pull request #14782 from github/criemen/disable-int-test
...
Disable the nuget standalone dependencies test on ARM-osx.
2023-11-14 12:32:48 +01:00
Owen Mansel-Chan
45faed057c
Improve SliceExpr documentation
2023-11-14 11:25:16 +00:00
Tom Hvitved
f1b67ade9b
Ruby: Include name of variable in UninitializedDefinition.toString
2023-11-14 11:33:59 +01:00
Cornelius Riemenschneider
f9ae7c5454
Disable the nuget standalone dependencies test on ARM-osx.
...
The test is failing currently, and that needs further investigation.
This is a temporary workaround to allow us to continue to work on
some necessary infrastructure investments around these tests.
2023-11-14 11:13:55 +01:00
Geoffrey White
4bfdb769a0
Swift: Change note.
2023-11-14 10:10:04 +00:00
Geoffrey White
6783707e2c
Swift: Add heuristic sink. We don't catch everything, but the simple heuristic was better than anything else I tried.
2023-11-14 10:07:12 +00:00
Geoffrey White
80cfb934ce
Swift: Add some tests.
2023-11-14 09:52:53 +00:00
Geoffrey White
296dee90dd
Merge remote-tracking branch 'upstream/main' into fixmodel
2023-11-14 09:38:14 +00:00
Mathias Vorreiter Pedersen
967bbbc1a7
C++: Block flow out of sinks that are qualifiers. This removes the new result duplication and keeps the new result.
2023-11-14 09:29:47 +00:00
Tamás Vajk
28a5a1d507
Merge pull request #14760 from tamasvajk/apple-silicon-check
...
C#: Change IsARM to Apple silicon check
2023-11-14 10:27:42 +01:00
Tamas Vajk
5b38ba87df
Code quality improvement
2023-11-14 08:08:46 +01:00
Erik Krogh Kristensen
db42b60015
Merge pull request #14779 from github/dependabot/cargo/ql/tracing-subscriber-0.3.18
...
Bump tracing-subscriber from 0.3.17 to 0.3.18 in /ql
2023-11-14 07:57:55 +01:00
Yunus AYDIN
47ef123601
Fix Pull Requests Problems
2023-11-14 09:26:37 +03:00
dependabot[bot]
f8c8d59cb5
Bump tracing-subscriber from 0.3.17 to 0.3.18 in /ql
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-14 03:56:51 +00:00
Owen Mansel-Chan
c8779d0d0b
Fix another test
...
No change in alerts, just 3 extra nodes.
2023-11-13 23:56:25 +00:00
Owen Mansel-Chan
28160e418c
Update tests
2023-11-13 23:26:30 +00:00
Owen Mansel-Chan
ed349f7d6b
Improve value flow through arrays
2023-11-13 23:26:16 +00:00
Sam Browning
fa569dcef4
Delete requirements.txt
2023-11-13 17:28:14 -05:00
Sam Browning
040d971588
Merge branch 'main' into sabrowning1/queries-panel-language-selector
2023-11-13 17:27:35 -05:00
Sam Browning
e95bfc816e
Clarify that queries run against selected database
2023-11-13 17:15:41 -05:00
Sam Browning
44935cef63
Tweak for style
2023-11-13 17:08:31 -05:00
Sam Browning
190050f577
Tweak formatting and styling
2023-11-13 16:52:33 -05:00
Yunus AYDIN
bf59c94d24
fix changelog pipeline error
2023-11-14 00:11:27 +03:00
Yunus AYDIN
2f50618e62
Merge branch 'main' of github.com:aydinnyunus/codeql
2023-11-14 00:09:36 +03:00
Yunus AYDIN
5468767fa0
fix changelog pipeline error
2023-11-14 00:09:05 +03:00
Yunus AYDIN
a007d6edb0
Merge branch 'github:main' into main
2023-11-14 00:03:25 +03:00
Yunus AYDIN
1c0aa679a6
Add Changelog for the Pull Request
2023-11-14 00:02:56 +03:00
Sam Browning
458baeff32
Add content on queries panel and language selector
2023-11-13 15:59:51 -05:00
Yunus AYDIN
4317e58414
Add Web Cache Deception QHelp and Example Code Snippet for Vulnerable and Fixed Version
2023-11-13 23:54:29 +03:00
Yunus AYDIN
78a6522190
Rename Folder
2023-11-13 23:40:51 +03:00
Yunus AYDIN
95395322a8
Format Document
2023-11-13 23:39:58 +03:00
Yunus AYDIN
1eb1293230
Add Web Cache Deception Query and Example Code Snippet
2023-11-13 23:35:17 +03:00
Geoffrey White
c14d4042e0
Merge pull request #14748 from geoffw0/pathinjectionsinks
...
Swift: Add more path injection sinks
2023-11-13 20:15:16 +00:00
Geoffrey White
5a451e964d
Swift: Model mainDocumentURL.
2023-11-13 19:51:51 +00:00
Geoffrey White
b157d73c10
Swift: Make the URLRequest test more accurate.
2023-11-13 19:36:03 +00:00
Geoffrey White
985d1990eb
Swift: Fix typo.
2023-11-13 18:55:11 +00:00
Geoffrey White
463096e4be
Swift: Modernize tainted content in WebView.qll.
2023-11-13 18:30:40 +00:00
Geoffrey White
892beeab6d
Swift: Add test case.
2023-11-13 18:25:59 +00:00
Geoffrey White
9ec2f9204b
Swift: Correct components(separatedBy:) models.
2023-11-13 17:43:21 +00:00
Mathias Vorreiter Pedersen
c73e6f1fa8
C++: Accept more test changes.
2023-11-13 16:51:07 +00:00
Mathias Vorreiter Pedersen
9aafbfce13
C++: Fix test annotation.
2023-11-13 16:17:18 +00:00
Mathias Vorreiter Pedersen
cc6268339b
C++: Fix failing test and accept test cases.
2023-11-13 15:57:22 +00:00
Mathias Vorreiter Pedersen
834b07e6ad
C++: Add failing tests.
2023-11-13 15:54:41 +00:00
Mathias Vorreiter Pedersen
8be6aeda3e
Merge pull request #14769 from MathiasVP/fix-nonterminating-test
...
C++: Fix nonterminating test
2023-11-13 15:49:39 +00:00
Owen Mansel-Chan
359dcf37e9
Merge pull request #14649 from Kwstubbs/go-cors
...
Go: Add Cors Gin Support
2023-11-13 15:46:59 +00:00
Mathias Vorreiter Pedersen
eb263e747f
C++: Make sure the test terminates.
2023-11-13 15:25:48 +00:00
Mathias Vorreiter Pedersen
bc576f658e
C++: Add a test that fails because of a non-terminating test that dominates this one.
2023-11-13 15:24:56 +00:00
Taus
cfdeb0edf5
Python: Define getScope and getAChildNode for new nodes
2023-11-13 15:19:54 +00:00
Geoffrey White
6f56a656e4
Merge pull request #14761 from geoffw0/moderntest
...
Swift: Update the inline dataflow tests
2023-11-13 14:59:08 +00:00
Alex Denisov
031f453af8
Swift: CFG for Copy/Consume expressions
2023-11-13 15:55:37 +01:00
Alex Denisov
002f2a0985
Swift: extract BorrowExpr
2023-11-13 15:55:37 +01:00
Alex Denisov
d21e27c717
Swift: extract ConsumeExpr
2023-11-13 15:55:37 +01:00
Alex Denisov
30e4822fb7
Swift: extract CopyExpr
2023-11-13 15:55:37 +01:00
Owen Mansel-Chan
d931ade182
Merge pull request #13366 from maikypedia/maikypedia/go-ldap-improper-auth
...
Go: Add Improper LDAP Authentication query (CWE-287)
2023-11-13 14:48:19 +00:00
Sam Browning
ed9a0ea155
Merge branch 'main' of https://github.com/github/codeql
2023-11-13 08:40:42 -05:00
Geoffrey White
c3577b34d3
Swift: Clean up logic.
2023-11-13 12:37:35 +00:00
Geoffrey White
e4da8da5d9
Swift: Update the example code.
2023-11-13 12:33:20 +00:00
Tamas Vajk
b455b2c1a6
C#: Change IsARM to Apple silicon check
2023-11-13 13:20:13 +01:00
Anders Schack-Mulligen
dc4dda1dbc
Merge pull request #14757 from aschackmull/rangeanalysis/simplify
...
Rangeanalysis: Misc simplifications
2023-11-13 13:16:04 +01:00
Geoffrey White
098ea50068
Swift: Repair non-inline dataflow test.
2023-11-13 12:09:08 +00:00
Geoffrey White
6e291711ac
Swift: Update just enough tests to prove that that source labels are working.
2023-11-13 11:47:24 +00:00
Geoffrey White
fca6ccd2f1
Swift: Remove more unused code.
2023-11-13 11:47:22 +00:00
AlexDenisov
291bb2210c
Merge pull request #14759 from github/alexdenisov/experimental-tuple
...
Swift: mark BuiltinTuple as experimental
2023-11-13 12:24:06 +01:00
Geoffrey White
4bf717c3e4
Swift: Use InlineFlowTest.qll in the data flow inline tests, so that we have less code duplication and can use flow labels.
2023-11-13 11:06:05 +00:00
Geoffrey White
d15c46836b
Swift: Add features tom InlineFlowTest.qll: extended source/sink names, custom flow tags, use of line-numbers as a fallback value.
2023-11-13 10:55:17 +00:00
Alex Denisov
c0fce80b7d
Swift: mark BuiltinTuple as experimental
2023-11-13 11:34:51 +01:00
Cornelius Riemenschneider
1b7e3814b0
Merge pull request #14719 from github/criemen/java-int-tests
...
Java integration tests: More preparations to be executed on GH M1 machines
2023-11-13 11:16:51 +01:00
Rasmus Wriedt Larsen
e1c47f5584
Python: Reorganize taint tests of re
...
Mostly to highlight that with flow-summary modeling, we don't expect
taint for a lot of these.
I aslo opted to make `finditer()` tainted for consistency.
2023-11-13 10:56:29 +01:00
Rasmus Wriedt Larsen
ffc27b5301
Python: Solve problems with missing TTupleElementContent
...
Ruby uses 10 as their number. I considered doing the same, but didn't
really care _too_ much about it 🤷
14cfb82a8c/ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll (L636)
2023-11-13 10:48:51 +01:00
Rasmus Wriedt Larsen
c3fa3f26a7
Python: Fix problems with missing TAttributeContent
2023-11-13 10:46:40 +01:00
Rasmus Wriedt Larsen
943b2a2ed1
Python: Highlight problem with flow summaries and TAttributeContent
2023-11-13 10:42:13 +01:00
Anders Schack-Mulligen
bf6cfd3bef
Rangeanalysis: Simplify api.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
30aefabb2a
Rangeanalysis: Rename predicate.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
f05b75e04f
Rangeanalysis: RIP standard order.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
c28f54a78b
Rangeanalysis: Remove superfluous pragmas. These appear useless after the abolishment of the different delta orders.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
66b03bfb12
Java: Remove unused import
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
71e25521cf
Rangeanalysis: Use SsaReadPositionBlock.getAnSsaRead.
2023-11-13 10:35:44 +01:00
Anders Schack-Mulligen
27e6173bb7
C++: Remove SemSsaExplicitUpdate.getSourceExpr.
2023-11-13 10:35:43 +01:00
Anders Schack-Mulligen
3a73faf061
Rangeanalysis: Remove unused getAlternateType predicates.
2023-11-13 10:35:43 +01:00
AlexDenisov
352ec91a08
Merge pull request #14756 from github/alexdenisov/do-not-extract-non-ast-types
...
Swift: do not extract non-AST types, NFC
2023-11-13 10:35:00 +01:00
Anders Schack-Mulligen
00549e36ed
Merge pull request #14742 from aschackmull/rangeanalysis/share-util-3
...
Java/C++/Rangeanalysis: Share more range analysis utility predicates.
2023-11-13 10:19:41 +01:00
Alex Denisov
b385ddbab1
Swift: do not extract non-AST types
2023-11-13 09:12:22 +01:00
AlexDenisov
f599c6d8a9
Merge pull request #14734 from github/alexdenisov/parameter-packs
...
Swift: extract parameter packs
2023-11-13 08:44:39 +01:00
Paolo Tranquilli
df967ce43f
Merge pull request #14750 from github/alexdenisov/update-wordings
...
Swift: update wordings in a downgrade script
2023-11-13 07:00:39 +01:00
Maiky
6e533c6284
Import PathGraph
2023-11-12 18:22:14 +01:00
Maiky
2b1b4cd85d
Remove unused LdapConn
2023-11-12 18:18:43 +01:00
Maiky
5280d69500
Change to DataFlow::ConfigSig
2023-11-12 18:17:09 +01:00
Maiky
39ed7876c3
Merge branch 'github:main' into maikypedia/go-ldap-improper-auth
2023-11-12 18:14:05 +01:00
Maiky
882280309f
equalityAsSanitizerGuard and add empty string comment
2023-11-12 17:42:56 +01:00
Mathias Vorreiter Pedersen
01a074c146
Merge pull request #14749 from MathiasVP/less-code-duplication
2023-11-10 19:45:56 +00:00
Geoffrey White
d56625cb8b
Swift: Rename the capture test to look more like the others.
2023-11-10 17:59:44 +00:00
Alex Denisov
8f10667ee1
Swift: update wordings in a downgrade script
2023-11-10 18:10:43 +01:00
AlexDenisov
837cdc8301
Merge pull request #14745 from github/alexdenisov/parameter-packs-db-upgrade
...
Swift: parameter packs migration scripts
2023-11-10 18:07:10 +01:00
Jeroen Ketema
3a62628938
Merge pull request #14735 from jketema/strl
...
C++: Add models for `strlcpy` and `strlcat`
2023-11-10 17:51:59 +01:00
Mathias Vorreiter Pedersen
9062fb666a
C++: Move a couple of predicates to 'Node0Impl'.
2023-11-10 16:26:03 +00:00
Jeroen Ketema
b48d483eba
C++: Add change note
2023-11-10 17:25:19 +01:00
Geoffrey White
c327f0f0a7
Merge branch 'main' into pathinjectionsinks
2023-11-10 16:04:56 +00:00
Rasmus Wriedt Larsen
c85d99d949
Merge branch 'main' into re-modeling
2023-11-10 16:32:50 +01:00
Alex Denisov
393aad5935
Swift: downgrade parameter packs
2023-11-10 16:22:09 +01:00
Geoffrey White
8f141cb157
Swift: Change note.
2023-11-10 15:13:51 +00:00
Geoffrey White
5a09a325f2
Swift: Add heuristic path injection sinks.
2023-11-10 15:13:51 +00:00
Rasmus Wriedt Larsen
5fc8a00487
Python: Rename test function
2023-11-10 15:58:20 +01:00
Rasmus Wriedt Larsen
b3feb4d7e9
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-11-10 15:57:00 +01:00
Anders Schack-Mulligen
0d8986cfad
Java: Accept test changes.
2023-11-10 14:04:45 +01:00
Jeroen Ketema
617d950a25
Apply suggestions from code review
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-11-10 13:55:39 +01:00
Jeroen Ketema
1c87875049
C++: Drop the size return value of strlcat from hasTaintFlow
2023-11-10 13:15:57 +01:00
Jeroen Ketema
5e21a5d284
C++: Fix flow for return values of strlcat and strlcpy
2023-11-10 12:28:48 +01:00
Alex Denisov
0fb439b54d
Swift: test ElementArchetypeType via PackType
2023-11-10 11:44:45 +01:00
Alex Denisov
e865c3cbd3
Swift: extract parameter packs
2023-11-10 10:20:14 +01:00
Jeroen Ketema
e4c8406365
C++: Split strlcat off in a separate model
2023-11-10 10:11:57 +01:00
Maiky
2d387a98ce
Add go.mod
2023-11-10 01:00:01 +01:00
Maiky
78a65a7787
Remove import
2023-11-09 23:35:33 +01:00
Maiky
6d7598115e
Undo changes in modules
2023-11-09 23:26:38 +01:00
Maiky
a7264c2b5c
Requested Changes
2023-11-09 23:17:45 +01:00
Maiky
dc265e7542
Requested Changes
2023-11-09 23:17:15 +01:00
Anders Schack-Mulligen
657c29f409
Java/C++: Share valueFlowStep.
2023-11-09 20:24:28 +01:00
Geoffrey White
ebf7231be7
Swift: Make the 'completePath' models work.
2023-11-09 18:21:12 +00:00
Geoffrey White
9b5556e245
Swift: Test 'completePath' more carefully.
2023-11-09 18:21:12 +00:00
Geoffrey White
2d313ef4c7
Swift: Add some path injection sink models.
2023-11-09 18:21:12 +00:00
Jeroen Ketema
a051a57e00
Update cpp/ql/lib/semmle/code/cpp/models/implementations/Strcat.qll
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-11-09 17:48:45 +01:00
Jeroen Ketema
0b91310357
C++: Add models for strlcpy and strlcat
2023-11-09 17:21:37 +01:00
Anders Schack-Mulligen
b8e7e1d15e
Java/C++: Share ssaUpdateStep.
2023-11-09 16:02:44 +01:00
Anders Schack-Mulligen
daffae020b
Java/C++: Share eqFlowCond.
2023-11-09 16:00:46 +01:00
Geoffrey White
cd147038cd
Swift: Fill some gaps in the URL, NSURL models.
2023-11-09 11:51:18 +00:00
Geoffrey White
a86862d578
Swift: Add test cases (heuristic).
2023-11-09 11:33:10 +00:00
Geoffrey White
04016ebd20
Swift: Add test cases (more library functions).
2023-11-09 11:31:58 +00:00
Geoffrey White
f99df55e94
Swift: Add test stubs.
2023-11-09 11:28:33 +00:00
Cornelius Riemenschneider
3dcb039c76
Merge branch 'main' into criemen/java-int-tests
2023-11-09 11:19:04 +01:00
Rasmus Wriedt Larsen
3023d3b8c0
Python: Add change-note
2023-11-08 17:20:05 +01:00
Rasmus Wriedt Larsen
4943fc5a57
Python: Model taint from re.<func> calls
2023-11-08 17:18:40 +01:00
Rasmus Wriedt Larsen
851c30e797
Python: Add taint modeling of re.Match objects
2023-11-08 17:18:09 +01:00
Rasmus Wriedt Larsen
ea4761d3b6
Python: Add tests of taint-flow for re module
2023-11-08 16:05:22 +01:00
Rasmus Wriedt Larsen
9b0ad8295e
Python: Add test of nested classes
2023-11-08 14:58:40 +01:00
Rasmus Wriedt Larsen
9d5cf0b331
Merge branch 'main' into class-attribute-flow
2023-11-08 14:30:53 +01:00
Cornelius Riemenschneider
f12310cb86
The java-version-too-old relies on a Java 8 installation.
...
We don't have a Java 8 build on the M1 machines, therefore skip this test.
2023-11-08 10:36:47 +01:00
Cornelius Riemenschneider
137403f649
Java: Move more tests to use the try_use_java11() helper.
...
This is in preparation of executing these tests on GH-hosted M1 runners,
where we need to have architecture-specific path handling.
It's nicer to fix all of this in one place (the helper), than to run around
fixing individual tests.
2023-11-08 10:33:50 +01:00
Rasmus Wriedt Larsen
5433907c33
Python: Accept more test changes
...
All are for the better 🎉
2023-11-07 15:49:14 +01:00
Rasmus Wriedt Larsen
5bee44dcfe
Python: add change-note
2023-11-07 11:27:11 +01:00
Rasmus Wriedt Larsen
6568332e3d
Python: Add basic flow for class attributes
2023-11-07 11:23:42 +01:00
Rasmus Wriedt Larsen
6c50c2bfe6
Python: Highlight missing flow for class attributes
2023-11-07 11:23:42 +01:00
amammad
e8eff78799
fix tests because of error in Frameworks.qll
2023-11-06 19:19:36 +01:00
amammad
ad756d59c8
put new frameworks in Frameworks.qll and fix some mistakes of Baize
2023-11-06 19:17:50 +01:00
amammad
315bdc2b48
add tests for new frameworks
2023-11-06 19:13:57 +01:00
amammad
637c52d10a
separate each new FileSystemAccess packages.
2023-11-06 19:03:55 +01:00
amammad
36f0a78450
fix typeorm test.ts according to Review
2023-11-06 16:23:35 +01:00
amammad
d7f1e19d40
fix sqlite.js test according to Review
2023-11-06 15:22:36 +01:00
amammad
cc5dd3180a
fix better-sqlite3 tests according to Review
2023-11-06 15:18:55 +01:00
amammad
c858e4974d
fix Sqlite and BetterSqlite3 issues according to Review
2023-11-06 14:57:40 +01:00
Taus
75e6de8311
Python: Add test
2023-11-06 13:50:55 +00:00
Taus
f67c68da9a
Python: Make TypeParameter extend AstNode
...
With `AstNode` defined as a union of other classes, we don't get this for free.
(Compare with `DictItem`, which is in a similar situation.)
2023-11-06 13:50:55 +00:00
Taus
878299823c
Python: Add up-/downgrade scripts
...
In the upgrade direction, we simply do nothing.
In the downgrade direction, we remove the two new relations, and
also any `Stmt` nodes corresponding to `TypeAlias` nodes.
2023-11-06 13:50:55 +00:00
Taus
9cd1e0e546
Python: Add stats for new relations
2023-11-06 13:50:55 +00:00
Taus
e8209a6a10
Python: Fix missing override compilation error
2023-11-06 13:50:55 +00:00
Taus
2e77b8d3c2
Python: Add wrapper classes around the newly added AST nodes
2023-11-06 13:50:55 +00:00
Taus
c397f707a1
Python: Add automatically generated files
...
For these, I opted for a placement that would cause as few changes to the
dbscheme as possible. This puts the new `type_parameters` fields as the
last field on function and class definitions.
2023-11-06 13:50:55 +00:00
Arthur Baars
01e7d57dba
Add changenote
2023-11-06 13:38:33 +01:00
Arthur Baars
7f4bcdfa64
Rename test files
2023-11-06 13:38:33 +01:00
Arthur Baars
eecf32db4d
Add tests for deprecated 'assert' syntax
2023-11-06 13:38:33 +01:00
Arthur Baars
4192d09e5c
Add tests for deprecated 'assert' syntax
2023-11-06 13:38:33 +01:00
Arthur Baars
b4d89f7554
Replace 'assert' with 'with' in QL test files
2023-11-06 13:38:33 +01:00
Arthur Baars
3d45944649
Rename 'assertions' to 'attributes' in JS extractor
2023-11-06 13:38:32 +01:00
Arthur Baars
bd62ec294e
Support TS 5.3 import attributes (previously import assertions)
2023-11-06 13:38:32 +01:00
Arthur Baars
1067dd9dd3
Auto-format
2023-11-06 13:38:32 +01:00
Arthur Baars
ec075f8fbe
Upgrade typescript to 5.3.1-rc
2023-11-06 13:38:24 +01:00
Rasmus Wriedt Larsen
92b13c4259
Merge branch 'main' into amammad-python-FileSystemAccess
2023-11-06 11:30:09 +01:00
Rasmus Wriedt Larsen
3d8a7e0ee3
Python: Add change-note
2023-11-06 11:29:52 +01:00
Kevin Stubbings
57c645bd24
Added support for same struct and added new test
2023-11-05 22:34:35 -08:00
Kevin Stubbings
1f2e8d898d
Address Feedback
2023-11-05 14:28:34 -08:00
Sam Browning
225c96ec9f
Merge branch 'main' of https://github.com/github/codeql
2023-11-03 09:42:55 -04:00
Sam Browning
37361d9f79
Merge branch 'main' of https://github.com/github/codeql
2023-11-01 11:43:33 -04:00
Kevin Stubbings
3697ef72c4
Small changes
2023-10-31 12:23:18 -07:00
Kevin Stubbings
5cab25662c
Address issues
2023-10-31 11:50:51 -07:00
Kevin Stubbings
8ed10317bd
Test comment changes
2023-10-31 11:07:41 -07:00
Kevin Stubbings
dd9a2db137
Minor name changes
2023-10-31 11:03:54 -07:00
Kevin Stubbings
020b4becfd
Finish up
2023-10-31 11:00:00 -07:00
Stephan Brandauer
5385cc3aaa
Merge branch 'main' into kaeluka/publish-automodel-querypack-007
2023-10-31 11:48:22 +01:00
Stephan Brandauer
9087259b1b
Java: add instructions to automodel query publish script
2023-10-31 11:11:22 +01:00
Stephan Brandauer
968127eaa3
Java: release automodel extraction queries 0.0.7
2023-10-31 11:09:02 +01:00
Alex Ford
8db23dc775
Ruby: refine ActiveRecord update_all as an SQL sink
2023-10-30 09:47:16 +00:00
Alex Ford
013e7aae97
Ruby: test whitespace changes
2023-10-30 09:32:44 +00:00
Kevin Stubbings
e0782683eb
Added gin cors framework
2023-10-27 17:50:43 -07:00
Kevin Stubbings
dafcd5ec98
Added support for Gin CORS
2023-10-25 17:23:10 -07:00
Maiky
a1e38c3444
Remove unnecessary imports and add returns
2023-10-26 01:16:43 +02:00
Maiky
eccde3f4f1
Add Tests
2023-10-25 18:31:51 +02:00
Rasmus Wriedt Larsen
e8f548ab52
Python: Model routed parameter flow to *args and **kwargs in Django + rest framework
2023-10-23 17:18:22 +02:00
Rasmus Wriedt Larsen
24687b4156
Python: Add test highlighting missing routed parameter flow to **kwargs parameter of request handler function
2023-10-23 16:49:43 +02:00
Rasmus Wriedt Larsen
8b23140a08
Python: Remove trailing ,
2023-10-23 16:45:08 +02:00
Rasmus Wriedt Larsen
60e7786b04
Python: Use explicit keyword parameter
2023-10-23 16:44:54 +02:00
Rasmus Wriedt Larsen
46e44a0036
Python: Fix import
2023-10-23 16:42:55 +02:00
amammad
e3dbdc3887
add custom query builder and active record querybuilder support
2023-10-22 21:39:59 +02:00
amammad
a0e2e1ef21
add to Frameworks.qll
2023-10-21 19:49:27 +02:00
amammad
1fe565a46f
cherrypy framework file system access Sinks are added
2023-10-21 19:47:30 +02:00
Mathew Payne
a24e168ec0
Merge branch 'main' into py-restframework
2023-10-20 11:39:07 +01:00
Maiky
20bf3c7f67
Apply suggestions from code review
...
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com >
2023-10-15 15:47:19 +02:00
amammad
242f7e1c53
update pg :)
2023-10-10 11:42:32 +02:00
amammad
18edef6ea4
add better-sqlite3 tests
2023-10-10 11:20:17 +02:00
amammad
bbeb7b39d7
add better-sqlite3
2023-10-10 11:17:04 +02:00
Remco Vermeulen
76e56cdac7
Adjust query severities
2023-10-09 12:52:09 -07:00
amammad
ad2631202d
fix comments
2023-10-08 21:32:04 +02:00
amammad
6c8cc79b4d
v1
2023-10-08 21:24:54 +02:00
Mathew Payne
a23904ca39
Add taint tests
2023-10-02 15:09:11 +01:00
Mathew Payne
3ab5fd5ca4
Add RestFramework handler kwargs
2023-10-02 14:58:21 +01:00
amammad
97c27ac11b
revert SqlInjection.ql changes
2023-09-29 01:36:00 +10:00
amammad
58f4cd77dc
add TypeORM to javascript.qll file
...
add tests
improvement on comments
2023-09-29 01:23:22 +10:00
amammad
0eb0c238f3
stash
2023-09-23 20:28:34 +10:00
amammad
bafe357500
V3
2023-09-23 18:22:43 +10:00
amammad
0c40223192
v1
2023-09-23 18:17:49 +10:00
amammad
a8aeb1d03e
add active record and data mapper patterns support
2023-09-22 22:50:55 +10:00
amammad
522a2e2594
v2
2023-09-22 18:56:47 +10:00
Maiky
52007fb9a2
Change v3 to v2
2023-09-17 21:42:18 +02:00
amammad
54a44777b7
v1
2023-09-13 19:14:15 +10:00
Maiky
08c54767f2
Correct Ldap Unauth Bind Sink
2023-07-05 17:56:49 +02:00
Maiky
d654e98650
Add empty string as source
2023-06-18 22:21:12 +02:00
Maiky
1a9bfb38aa
Correct barrier
2023-06-05 01:25:17 +02:00
Maiky
bf9d0b93d7
Add Improper LDAP Auth Query (CWE-287)
2023-06-03 23:20:11 +02:00
Sam Browning
1a51c015b4
Add requirements.txt
2023-04-27 15:19:45 -04:00