New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS: DB reads as taint sources #7474
base: main
Are you sure you want to change the base?
Conversation
|
Had a chat with @erik-krogh, I'll for now not model streaming APIs. We might choose to do that later. |
|
left to be done:
|
e123c26
to
73a85c5
I've now used lgtm to select all database accesses. This means that there's no surprises. Does that make sense to you, @erik-krogh? |
That makes sense to me. But the 4 new results all look like FPs to me. |
It's generally looking good, I just got a bunch of minor comments.
The autoformatter is failing for a lot of your files.
I have the following installed as a pre-commit hook. That hook prevents me from commiting QL code that is not formatted correctly:
#!/bin/bash
exec 1>&2
exitVal=0
for f in $(git diff --cached --relative --name-only)
do
filename="${f##*/}"
extension="${filename##*.}"
p="$PWD/$f";
if [[ -f $p ]] && ([ $extension == "ql" ] || [ $extension == "qll" ])
then
codeql query format --check-only "$p"
retVal=$?
if [[ $retVal -ne 0 ]]
then
exitVal=1
fi
fi
done
exit $exitVal|
I have now fixed those issues. Thanks for the review, @erik-krogh — sorry that you had to deal with so much whitespace stuff. I now have a commit hook like your's that'll prevent this in the future :) |
Great |


This adds DB reads as taint sources in
AdditionalSources.qll.This is not yet complete, as it's not handling streaming database queries where the result is consumed by a pipe call (eg, knex, spanner, have such features).The text was updated successfully, but these errors were encountered: