yesod/yesod-auth
Sibi Prabakaran 7f17d829b3
Fix CSRF security vulnerability in registerHelper function
Return a 403 status code if the csrf tokens are matched. This currently
affects two endpoints: During registration and during password reset
forms.

This curl request demonstrates how this can be exploited to register new
email:

curl -i --header "Accept: application/json" --request POST -F
"email=sibi@psibi.in" http://localhost:3005/auth/page/email/register

With the patch applied, it will respond with this:

{"message":"Permission Denied. A valid CSRF token wasn't present in HTTP
headers or POST parameters. Because the request could have been forged,
it's been rejected altogether. Check the Yesod.Core.Handler docs of the
yesod-core package for details on CSRF protection."}
2016-11-20 03:59:32 +05:30
..
Yesod Fix CSRF security vulnerability in registerHelper function 2016-11-20 03:59:32 +05:30
.gitignore Add 'yesod-auth/' from commit 'fe498e3dac01bfc999cad33b90a2b1b397785178' 2011-07-22 08:59:54 +03:00
auth2.hs Add 'yesod-auth/' from commit 'fe498e3dac01bfc999cad33b90a2b1b397785178' 2011-07-22 08:59:54 +03:00
browserid.hs Fix browserid.hs (closes #547) 2014-09-14 11:04:16 +03:00
ChangeLog.md Version bump 2016-09-02 12:39:01 +03:00
LICENSE Update license with MIT license 2012-04-29 09:38:45 +03:00
openid.hs Add the guessApproot function (pinging @gregwebs) 2015-10-13 10:32:25 +00:00
persona_sign_in_blue.png Include Persona login icon yesodweb/authenticate#19 2013-02-18 11:30:23 +02:00
README.md Doc link updates 2014-12-21 15:23:52 +02:00
Setup.lhs Add 'yesod-auth/' from commit 'fe498e3dac01bfc999cad33b90a2b1b397785178' 2011-07-22 08:59:54 +03:00
yesod-auth.cabal Version bump 2016-09-02 12:39:01 +03:00

yesod-auth

This package provides a pluggable mechanism for allowing users to authenticate with your site. It comes with a number of common plugins, such as OpenID, BrowserID (a.k.a., Mozilla Persona), and email. Other packages are available from Hackage as well. If you've written such an add-on, please notify me so that it can be added to this description.