Skip to content

Sniff::has_nonce_check(): allow for comparing a variable before nonce check#1685

Merged
GaryJones merged 1 commit into
developfrom
feature/1114-1506-nonceverification-allow-comparisons-before
Apr 2, 2019
Merged

Sniff::has_nonce_check(): allow for comparing a variable before nonce check#1685
GaryJones merged 1 commit into
developfrom
feature/1114-1506-nonceverification-allow-comparisons-before

Conversation

@jrfnl

@jrfnl jrfnl commented Apr 1, 2019

Copy link
Copy Markdown
Member

This builds onto the similar changes made for the ValidatedSanitizedInput sniff in #1682.

This fixes false positives as reported in #1114 and #1506.

Note: it is not currently checked that the nonce check is done within the same conditional scope as the comparison. Just that it is done within the same function scope.

Includes unit tests.

Fixes #1114
Fixes #1506

… check

This builds onto the similar changes made for the `ValidatedSanitizedInput` sniff in ...

This fixes false positives as reported in 1114 and 1506.

Note: it is not currently checked that the nonce check is done within the same conditional scope as the comparison. Just that it is done within the same _function_ scope.

Includes unit tests.

Fixes 1114
Fixes 1506
@GaryJones GaryJones merged commit 146e9a1 into develop Apr 2, 2019
@GaryJones GaryJones deleted the feature/1114-1506-nonceverification-allow-comparisons-before branch April 2, 2019 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants