Jonas Jensen
5917ce60b7
Merge pull request #3342 from dbartol/dbartol/SyncTask
...
Add a VS Code task to run `sync-files.py`
2020-04-24 16:42:44 +02:00
Dave Bartolomeo
c539e84071
Update README.md with VSCode info
2020-04-24 10:36:16 -04:00
Taus
bcb980b3d5
Merge pull request #3302 from RasmusWL/python-str-taint-add-methods
...
Python: Add taint for string methods
2020-04-24 16:29:11 +02:00
Rasmus Wriedt Larsen
b2b0296120
Merge pull request #3242 from BekaValentine/python-objectapi-to-valueapi-incorrectlyoverridenmethod
...
Python: ObjectAPI to ValueAPI: IncorrectlyOverriddenMethod
2020-04-24 16:28:11 +02:00
semmle-qlci
4c7a5007d8
Merge pull request #3314 from RasmusWL/python-model-stdlib-http.server
...
Approved by tausbn
2020-04-24 15:27:21 +01:00
Dave Bartolomeo
97565fd90f
Add Sync Identical Files tasks to build group
2020-04-24 10:24:17 -04:00
Jonas Jensen
718f4cd3f9
C++: Speed up SuspiciousAddWithSizeof select
...
This `select` clause had become very slow after we started caching
`ElementBase::toString` because the query used string concatenation to
produce alert messages, and those string concatenations were done very
early in the pipeline, producing lots of strings that would be discarded
moments later.
By using `$@` to interpolate elements into strings, the concatenation is
done outside of QL.
Testing on a Chromium snapshot, this commit takes us from
#select#ff ................ 6m2s
to
#select#cpe#134#fff ....... 15.2s
2020-04-24 16:18:18 +02:00
Dave Bartolomeo
8ed8d3ccc5
Merge pull request #3343 from sauyon/sync-files
...
sync-files.py: cast line to string before concat
2020-04-24 10:12:52 -04:00
Mathias Vorreiter Pedersen
98c2fd8401
Merge branch 'master' into get-an-assigned-value-join-order
2020-04-24 15:03:59 +02:00
Taus
266de2efa2
Merge pull request #3348 from RasmusWL/python-random-modernisation
...
Python: random modernisations
2020-04-24 14:18:10 +02:00
Anders Schack-Mulligen
beab320557
Java: Add more qldoc.
2020-04-24 14:17:47 +02:00
Rasmus Wriedt Larsen
2b3025265b
Python: Clean up QLdoc
...
Co-Authored-By: Taus <tausbn@gmail.com >
2020-04-24 14:05:02 +02:00
Calum Grant
fcc2b66d1a
Merge pull request #3347 from hvitved/csharp/vsvars-test
...
C#: Update expected test output
2020-04-24 12:12:31 +01:00
Rasmus Wriedt Larsen
367ee3e8c4
Python: Modernise security/injection/Path.qll
...
And we're making things a bit more clean since it's not *any* argument of `open()` that is a taint-sink.
2020-04-24 12:03:42 +02:00
Rasmus Wriedt Larsen
67837887c8
Python: Modernise security/injection/Exec.qll
2020-04-24 11:59:05 +02:00
Calum Grant
1f1ac72de8
Merge pull request #3309 from hvitved/csharp/cfg/catch-finally-bug
...
C#: Add missing CFG edge from generic `catch` block to `finally` block
2020-04-24 10:12:53 +01:00
Esben Sparre Andreasen
58b5bd5cfd
JS: fixup documentation
2020-04-24 10:56:53 +02:00
semmle-qlci
28cfe548d5
Merge pull request #3325 from erik-krogh/MoreEventClasses
...
Approved by asgerf
2020-04-24 09:02:27 +01:00
semmle-qlci
671e7c6637
Merge pull request #3335 from asger-semmle/js/cached-chained-methods
...
Approved by esbena
2020-04-24 08:28:05 +01:00
Tom Hvitved
6911937ab8
C#: Update expected test output
2020-04-24 09:26:50 +02:00
Esben Sparre Andreasen
f0a05f6a6c
JS: change notes
2020-04-24 09:18:16 +02:00
Esben Sparre Andreasen
6d6ec89ba8
JS: add qhelp
2020-04-24 09:18:09 +02:00
Esben Sparre Andreasen
708fd3d73f
JS: add query to query suite
2020-04-24 09:17:46 +02:00
Esben Sparre Andreasen
89613dbd23
JS: add query for incomplete HTML attribute sanitization
2020-04-24 09:17:46 +02:00
Mathias Vorreiter Pedersen
7df45a9bb4
Merge pull request #3316 from jbj/arithTypesMatch-perf
...
C++: inline arithTypesMatch predicate
2020-04-24 09:13:02 +02:00
Jonas Jensen
d98e956c2b
Merge pull request #3322 from felicitymay/merge-124-master
...
Merge rc/1.24 into master
2020-04-24 08:48:54 +02:00
Rasmus Wriedt Larsen
8878884724
Python: Rewrite web/stdlib/Request.qll QLDoc to be more clear
2020-04-24 08:07:23 +02:00
Rasmus Wriedt Larsen
23f3736b67
Python: Simplify CgiFieldStorageFieldKind.getTaintOfAttribute
2020-04-24 08:04:55 +02:00
Cornelius Riemenschneider
c25eb19b18
Add support for openssl allocation/deallocation functions.
2020-04-24 01:57:14 +02:00
Sauyon Lee
972551edd7
sync-files.py: cast line to string before concat
2020-04-23 15:32:28 -07:00
Dave
95b55f86ba
Add a VS Code task to run sync-files.py
...
If you're developing one of the libraries that has muiltiple copies auto-generated by `sync-files.py`, you can now run `sync-files.py --latest` by going to the `Terminal | Run Task...` menu in VS Code and selecting the `Sync Identical Files` task. You can set a keyboard binding to run this task for quicker access.
2020-04-23 16:58:34 -04:00
james
5e87bc998e
docs: add note about path queries
2020-04-23 20:30:28 +01:00
Erik Krogh Kristensen
19c6092998
autoformat
2020-04-23 20:59:34 +02:00
Erik Krogh Kristensen
ea1628ef54
fix typo in jQuery.qll
...
Co-Authored-By: Esben Sparre Andreasen <esbena@github.com >
2020-04-23 20:58:49 +02:00
Erik Krogh Kristensen
a71567da54
autoformat
2020-04-23 18:58:33 +02:00
Taus
1d6b6a48ae
Merge pull request #2924 from BekaValentine/python-objectapi-to-valueapi-wrongnumberargumentsincall
...
Python: ObjectAPI to ValueAPI: WrongNumberArgumentsInCall
2020-04-23 17:56:39 +02:00
Erik Krogh Kristensen
ee43db1b58
slightly expand the $().each model
2020-04-23 16:49:47 +02:00
Erik Krogh Kristensen
448ed150df
allow the empty string to flow to a JQuery XSS sink
2020-04-23 16:45:37 +02:00
Cornelius Riemenschneider
0ea7fedeb0
Address review and fix bug in deconstructSizeExpr/3.
...
Logic is hard, and I made a mistake inverting the formula for the second case, so the
predicate never held for a sizeExpr like sizeof(int)*sizeof(void).
Now, this case is correctly handled by the fallback.
2020-04-23 16:39:29 +02:00
Cornelius Riemenschneider
492f1f446a
Remove pragma[inline] from deconstructSizeExpr/3.
2020-04-23 15:53:11 +02:00
Erik Krogh Kristensen
96896fd7f5
second round of UnsafeJQueryPlugin reuse
2020-04-23 15:12:32 +02:00
Erik Krogh Kristensen
ea569dba78
update doc for JQuery plugin predicate
...
Co-Authored-By: Esben Sparre Andreasen <esbena@github.com >
2020-04-23 15:03:39 +02:00
Asger Feldthaus
cafdcfa4de
JS: Preserve reflective calls in getAMethodCall
2020-04-23 13:57:14 +01:00
Erik Krogh Kristensen
1954a60b6e
reuse existing predicate from UnsafeJqueryPlugin
2020-04-23 14:25:34 +02:00
Erik Krogh Kristensen
09b6727e6d
refactor $.each model
2020-04-23 14:24:56 +02:00
Erik Krogh Kristensen
ce106981b3
add tests
2020-04-23 14:24:33 +02:00
Mathias Vorreiter Pedersen
deff2820c2
C++: Modernize getAnAssignedValue following PR comments
2020-04-23 14:14:35 +02:00
Rasmus Wriedt Larsen
fe50811bbf
Python: In taint test, list comprehension => for loop
...
Apparently they're not the same thing :(
2020-04-23 14:13:00 +02:00
Rasmus Wriedt Larsen
06edd076b6
Python: Enable taint when iterating over ExternalFileObject
2020-04-23 14:11:50 +02:00
Erik Krogh Kristensen
e7d8cd8e8c
Merge remote-tracking branch 'upstream/master' into MoarJQuery
2020-04-23 14:10:53 +02:00