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

Sniff::has_nonce_check(): ignore nonce checks in nested closed scopes #1683

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 1, 2019

A function, closure, anonymous class and other OO constructs are all "closed" scopes.

If any of these are nested, they open a nested closed scope and anything within that scope should be disregarded for the purpose of verifying whether or not a nonce check has been executed.

This small change implements that.

This fixes some potential false negatives.

Includes unit tests.

Related to #764

A function, closure, anonymous class and other OO constructs are all "closed" scopes.

If any of these are nested, they open a nested closed scope and anything within that scope should be disregarded for the purpose of verifying whether or not a nonce check has been executed.

This small change implements that.

This fixes some potential false negatives.

Includes unit tests.

Related to 764
@GaryJones GaryJones merged commit 5f56dbb into develop Apr 1, 2019
@GaryJones GaryJones deleted the feature/nonceverification-ignore-nested-closed-scopes branch April 1, 2019 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants