Skip to content

Handle non-string authenticity tokens gracefully#19

Open
lautis wants to merge 1 commit intomeldium:masterfrom
flowdock:invalid-authenticity-token
Open

Handle non-string authenticity tokens gracefully#19
lautis wants to merge 1 commit intomeldium:masterfrom
flowdock:invalid-authenticity-token

Conversation

@lautis
Copy link
Copy Markdown

@lautis lautis commented May 7, 2014

Non-string authenticity tokens causes exceptions. These are generated by some automatic scanners that check if an application is vulnerable by replacing authenticity token with non-string data.

Some automatic scanners check if an application is vulnerable by replacing authenticity token with non-string data. As Base64.strict_decode only handles strings, let's stringify objects before decoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant