Last active

omniauth vulnerability #2

  • Download Gist
1 2 3 4 5 6 7
We just put our state in user's session, then abort loading page to avoid deleting our value and then use OUR code with OUR state. CSRF again.
document.write('<iframe src="" name=im></iframe>');
document.write("<iframe src=''></iframe>");

Is this saying that the presence of the state parameter creates an opportunity for CSRF? Can you explain the gist a little more?

Does the presence of the state parameter make any difference in this scenario?

My understanding that the purpose of the state parameter itself is to help prevent CSRF (see: which states:

"Note: You may provide an optional state parameter to carry through any server-specific state you need to, for example, protect against CSRF issues."

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.