Skip to content

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented May 26, 2020

Don't have taint flow to the return value of strftime (see discussion at the end of #3533).

I've also added the definition of taint from that discussion to the models library. We can change it if we later think of a better or clearer definition, but I strongly feel that we need to say something about what taint is.

Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this LGTM (other than the formatting) if everyone agrees that this definition of taint should go in the qldoc.

Comment on lines +18 to +20
* An expression is tainted if it could be influenced by an attacker to have
* an unusual value.
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know @jbj mentioned this the other day as his definition of "taint", but he also said that this changes every week. Do we really want to put this definition in a public qldoc?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only every month, not every week ;-). I've asked on Slack to see if the language teams can agree on a definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm keen for us to document a working definition of taint, even if we decide to change it later. It seems better than everyone inventing their own understanding, or trying to infer it backwards from existing behaviour of the models (as I have been).

jbj
jbj previously approved these changes May 28, 2020
Copy link
Contributor

@jbj jbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, except for the failing qlformat test.

@jbj jbj merged commit 87ad519 into github:master May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants