Skip to content
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: sanitize taint in the LHS of && #4681

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

esbena
Copy link
Contributor

@esbena esbena commented Nov 17, 2020

Suggested by @pwntester: SINK(TAINT && SAFE) is safe since the falsy value is unlikely to be exploitable.

I am not sure we want to merge this since it is very ad hoc compared to making use of type inference, but that is a not easy in practice IIRC.

@github-actions github-actions bot added the JS label Nov 17, 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.

1 participant