Anders Schack-Mulligen
|
a017f92b78
|
Merge pull request #17579 from aschackmull/java/type-sanitizers
Java: Add more type-based sanitizers.
|
2024-09-30 10:07:06 +02:00 |
|
Rasmus Wriedt Larsen
|
381ea93ec3
|
Merge pull request #17424 from RasmusWL/active-threat-model-source
Go/Java/C#: Rename `ThreatModelFlowSource` to `ActiveThreatModelSource`
|
2024-09-26 13:08:17 +02:00 |
|
Anders Schack-Mulligen
|
aaecb9bb7a
|
Java: Add more type-based sanitizers.
|
2024-09-25 10:38:17 +02:00 |
|
Chuan-kai Lin
|
75ec8ce58e
|
Java: apply query alert restrictions
|
2024-09-20 07:47:58 -07:00 |
|
Rasmus Wriedt Larsen
|
8c10155eb7
|
mass rename to ActiveThreatModelSource
|
2024-09-12 10:16:55 +02:00 |
|
erik-krogh
|
846882d22c
|
delete imports to a deleted file
|
2024-09-03 20:31:00 +02:00 |
|
erik-krogh
|
20dfdc9661
|
delete some deprecated files
|
2024-09-03 20:30:59 +02:00 |
|
erik-krogh
|
0fdd06fff5
|
use my script to delete outdated deprecations
|
2024-09-03 20:30:58 +02:00 |
|
Tom Hvitved
|
a7410e4a16
|
Java: Fix bad join
Before
```
[2024-08-06 10:37:59] Evaluated non-recursive predicate BoundingChecks::arrayReference/1#754911ba@0628dahn in 20981ms (size: 2009682526).
Evaluated relational algebra for predicate BoundingChecks::arrayReference/1#754911ba@0628dahn with tuple counts:
94480 ~0% {2} r1 = SCAN `Expr::ArrayAccess.getArray/0#dispred#b90c658a` OUTPUT In.1, In.0
32 ~0% {2} r2 = JOIN r1 WITH `Expr::MethodCall.getMethod/0#dispred#41989dc9` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
1013 ~1% {2} | JOIN WITH `Expr::MethodCall.getMethod/0#dispred#41989dc9_10#join_rhs` ON FIRST 1 OUTPUT Lhs.1, Rhs.1
92091 ~4% {2} r3 = JOIN r1 WITH variableBinding ON FIRST 1 OUTPUT Rhs.1, Lhs.1
2009681513 ~0% {2} | JOIN WITH variableBinding_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1
2009682526 ~0% {2} r4 = r2 UNION r3
return r4
[2024-08-06 10:38:02] Evaluated non-recursive predicate BoundingChecks::lessthanLength/1#48b5e1b7@2885308n in 0ms (size: 108).
Evaluated relational algebra for predicate BoundingChecks::lessthanLength/1#48b5e1b7@2885308n with tuple counts:
1518 ~0% {2} r1 = JOIN `Expr::ComparisonExpr.isStrict/0#dispred#fd8c6ddb` WITH `Expr::ComparisonExpr.getGreaterOperand/0#dispred#e8df4b14` ON FIRST 1 OUTPUT Rhs.1, Lhs.0
455 ~2% {2} | JOIN WITH Expr::FieldAccess#2b664c37 ON FIRST 1 OUTPUT Lhs.1, Lhs.0
455 ~1% {3} | JOIN WITH `Expr::ComparisonExpr.getLesserOperand/0#dispred#d7744bc2` ON FIRST 1 OUTPUT Lhs.1, Lhs.0, Rhs.1
455 ~0% {5} | JOIN WITH `Expr::FieldAccess.getField/0#dispred#29ef4aa0` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.0, Lhs.2
455 ~0% {5} | REWRITE WITH Out.1 := "length"
116 ~0% {3} | JOIN WITH `Element::Element.hasName/1#dispred#8acbbbde` ON FIRST 2 OUTPUT Lhs.4, Lhs.2, Lhs.3
93 ~0% {3} | JOIN WITH variableBinding ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
93 ~1% {3} | JOIN WITH `Expr::VarAccess.getQualifier/0#dispred#2b0f1cd1` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Rhs.1
484 ~2% {3} | JOIN WITH variableBinding_10#join_rhs ON FIRST 1 OUTPUT Lhs.1, Rhs.1, Lhs.2
277 ~3% {2} | JOIN WITH `BoundingChecks::conditionHolds/2#fa0354b9#bb` ON FIRST 2 OUTPUT Lhs.1, Lhs.2
166 ~5% {2} | JOIN WITH `Expr::ArrayAccess.getIndexExpr/0#dispred#345f6cf4_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
110 ~0% {1} | JOIN WITH `BoundingChecks::arrayReference/1#754911ba` ON FIRST 2 OUTPUT Lhs.0
return r1
```
After
```
[2024-08-06 13:29:50] Evaluated non-recursive predicate BoundingChecks::lengthAccess/2#54b10eff@719e68tb in 0ms (size: 309).
Evaluated relational algebra for predicate BoundingChecks::lengthAccess/2#54b10eff@719e68tb with tuple counts:
6241 ~0% {2} r1 = JOIN `BoundingChecks::getAnAccess/1#152ad44e_10#join_rhs` WITH `Expr::VarAccess.getQualifier/0#dispred#2b0f1cd1_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1
6240 ~0% {4} | JOIN WITH `Expr::FieldAccess.getField/0#dispred#29ef4aa0` ON FIRST 1 OUTPUT Rhs.1, _, Lhs.1, Lhs.0
6240 ~0% {4} | REWRITE WITH Out.1 := "length"
309 ~2% {2} | JOIN WITH `Element::Element.hasName/1#dispred#8acbbbde` ON FIRST 2 OUTPUT Lhs.3, Lhs.2
return r1
[2024-08-06 13:29:50] Evaluated non-recursive predicate BoundingChecks::lessthanLength/1#48b5e1b7@0fcac509 in 1ms (size: 108).
Evaluated relational algebra for predicate BoundingChecks::lessthanLength/1#48b5e1b7@0fcac509 with tuple counts:
94480 ~0% {3} r1 = JOIN `Expr::ArrayAccess.getArray/0#dispred#b90c658a` WITH `Expr::ArrayAccess.getIndexExpr/0#dispred#345f6cf4` ON FIRST 1 OUTPUT Rhs.1, Lhs.0, Lhs.1
648 ~4% {4} | JOIN WITH variableBinding ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.0, Rhs.1
621 ~1% {4} | JOIN WITH `BoundingChecks::getAnAccess/1#152ad44e_10#join_rhs` ON FIRST 1 OUTPUT Lhs.2, Lhs.1, Lhs.3, Rhs.1
344 ~0% {4} | JOIN WITH `BoundingChecks::conditionHolds/2#fa0354b9#bb_10#join_rhs` ON FIRST 1 OUTPUT Rhs.1, Lhs.1, Lhs.2, Lhs.3
341 ~0% {4} | JOIN WITH `Expr::ComparisonExpr.isStrict/0#dispred#fd8c6ddb` ON FIRST 1 OUTPUT Lhs.0, Lhs.1, Lhs.2, Lhs.3
341 ~0% {5} | JOIN WITH `Expr::ComparisonExpr.getGreaterOperand/0#dispred#e8df4b14` ON FIRST 1 OUTPUT Rhs.1, Lhs.3, Lhs.1, Lhs.2, Lhs.0
110 ~2% {3} | JOIN WITH `BoundingChecks::lengthAccess/2#54b10eff` ON FIRST 2 OUTPUT Lhs.4, Lhs.2, Lhs.3
110 ~0% {3} | JOIN WITH `Expr::ComparisonExpr.getLesserOperand/0#dispred#d7744bc2` ON FIRST 1 OUTPUT Rhs.1, Lhs.2, Lhs.1
110 ~0% {1} | JOIN WITH variableBinding ON FIRST 2 OUTPUT Lhs.2
return r1
```
|
2024-08-06 13:30:19 +02:00 |
|
Anders Schack-Mulligen
|
4d023f14a6
|
Merge pull request #17075 from RobbingDaHood/17052-second-try-do-not-expose-error-message
Java: 17052 Second try: do not expose error message
|
2024-08-02 12:44:27 +02:00 |
|
Owen Mansel-Chan
|
e259b25428
|
Add "tokenizer" to sensitive variable name FPs
|
2024-07-30 15:38:32 +01:00 |
|
Owen Mansel-Chan
|
0704946324
|
Factor out matching sensitive variable name FPs
|
2024-07-30 15:37:54 +01:00 |
|
Daniel Winther Petersen
|
1c1ba7734f
|
Now alerts about exposing exception.getMessage() in servlet responses are split out of java/stack-trace-exposure into its own alert java/error-message-exposure because this is a better fit.
|
2024-07-25 18:12:45 +02:00 |
|
Anders Schack-Mulligen
|
b5b9c4d931
|
Update java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll
Java: Make class private
|
2024-07-23 10:07:51 +02:00 |
|
Anders Schack-Mulligen
|
bb86a07a93
|
Update java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll
fix typo
|
2024-07-23 10:03:07 +02:00 |
|
Anders Schack-Mulligen
|
5912a17ab4
|
Update java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll
Autoformat
|
2024-07-23 10:01:49 +02:00 |
|
Salah Baddou
|
2ad70cbee2
|
Move SensitiveLoggerConfig source to extensible format
|
2024-07-22 17:34:00 +01:00 |
|
Owen Mansel-Chan
|
e2356d9820
|
Merge pull request #16914 from owen-mc/java/android-app-detection
Java: Improve Android app detection
|
2024-07-16 21:52:43 +01:00 |
|
Anders Schack-Mulligen
|
938f46b888
|
Java: Remove superfluous clone models.
|
2024-07-16 11:11:53 +02:00 |
|
Owen Mansel-Chan
|
5347770608
|
Update Android app detection
|
2024-07-07 00:24:25 +01:00 |
|
Owen Mansel-Chan
|
9c82966022
|
Move detection of Android app to one place
|
2024-07-05 23:47:56 +01:00 |
|
Michael Nebel
|
327dab69d0
|
Java: Opt-in the tainted permissions check query to threat models.
|
2024-06-17 11:02:08 +02:00 |
|
Rakshith Gopalakrishna
|
65af2556ed
|
fix: remove rsa/ecb/* from getASecureAlgorithmName
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
|
2024-06-04 11:20:05 -07:00 |
|
Rakshith Gopala krishna
|
97f9a882c6
|
fix: address PR comments
|
2024-06-04 11:20:05 -07:00 |
|
Rakshith Gopala krishna
|
80bf7cdb52
|
fix: remove the pkcs1 scheme
|
2024-06-04 11:20:05 -07:00 |
|
Rakshith Gopala krishna
|
dd223ed704
|
feat: add rsa/ecb/... variants to the list of secure algorithms
|
2024-06-04 11:20:05 -07:00 |
|
Mauro Baluda
|
bbe888c2b3
|
Update SpringCsrfProtection.qll
|
2024-05-30 23:13:08 +02:00 |
|
Mauro Baluda
|
e2479a7ce2
|
Disable csrf for ServerHttpSecurity
|
2024-05-30 23:08:57 +02:00 |
|
Anders Schack-Mulligen
|
d82acf5866
|
Java: Add simple type sanitization to java/zipslip.
|
2024-05-22 10:23:30 +02:00 |
|
Michael Nebel
|
b1329fd806
|
Merge pull request #16362 from michaelnebel/java/removelocalqueries
Java: Remove local query variants.
|
2024-05-16 14:34:04 +02:00 |
|
Anders Schack-Mulligen
|
76e740bc1d
|
Java: Clean up some instances of getQualifiedName.
|
2024-05-13 13:06:44 +02:00 |
|
Michael Nebel
|
8def1c2c13
|
Java: Address review comments and some other code quality improvements.
|
2024-05-03 11:11:52 +02:00 |
|
Michael Nebel
|
58bbfe694f
|
Java: Deprecate the content of ExecTaintedLocalQuery as this is unused.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
d9c7401ea2
|
Java: Deprecate the local content of UrlRedirectLocalQuery and remove the local query variant.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
ed7538d0b9
|
Java: Deprecate the local content of TaintedPathQuery and remove the local query variant.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
5b89bd23c7
|
Java: Deprecate the content of SqlTaintedLocalQuery and remove the local query variant.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
b68abab12a
|
Java: Deprecate the content of ResponseSplittingLocalQuery and remove local query variant.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
d05c5e3d94
|
Java: Deprecate the content of NumericCastTaintedLocalQuery, remove the local query variant and update the non-local query variant.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
301a6cc191
|
Java: Deprecate the content of ImproperValidationOrArray and remove local query variants.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
acd0fa4b7b
|
Java: Deprecate the content of ExternallyControlledFormatStringLocalQuery and remove the externally controlled format string local query variant.
|
2024-05-01 13:07:21 +02:00 |
|
Michael Nebel
|
85a4dd0325
|
Java: Deprecate the local content of CommandLineQuery and remove the exec tainted local query variant.
|
2024-05-01 13:07:20 +02:00 |
|
Michael Nebel
|
072f19008a
|
Java: Deprecate the content of ArithmeticTaintedLocalQuery and remove the arithmetic tainted local query variant.
|
2024-05-01 08:59:51 +02:00 |
|
Michael Nebel
|
93988e5834
|
Java: Deprecate the content of XxeLocalQuery and remove the Xxe local query variant.
|
2024-05-01 08:59:50 +02:00 |
|
Michael Nebel
|
e0c2a43780
|
Java: Deprecate the content of XssLocalQuery and remove the Xss local query variant.
|
2024-05-01 08:59:50 +02:00 |
|
Michael Nebel
|
f95b33049e
|
Java: Improve the Api sources and sinks implementation.
|
2024-04-26 14:12:41 +02:00 |
|
Michael Nebel
|
9db32f4d26
|
Java: Identify more APIs as supported in the telemetry queries (as QL defined sinks).
|
2024-04-26 12:39:46 +02:00 |
|
Michael Nebel
|
acb2bbb2a3
|
Java: Identify more APIs as supported in the telemetry queries (as QL defined sources).
|
2024-04-26 12:39:46 +02:00 |
|
Anders Schack-Mulligen
|
2925e45434
|
Java/Dataflow: Propagate MaD-id/model-id to PathGraph.
|
2024-04-12 09:19:51 +02:00 |
|
Jami
|
d889e3cf98
|
Merge pull request #14854 from jcogs33/jcogs33/unsafe-url-forward-promotion
Java: Promote Unsafe URL Forward query from experimental
|
2024-03-29 16:34:06 -04:00 |
|
Jami Cogswell
|
40c932a5f9
|
Java: move UrlForward.qll code to UrlForwardQuery.qll
|
2024-03-27 10:12:28 -04:00 |
|