Cross-Site Request Forgery (CSRF) in emoncms/dashboard


Reported on

Jul 22nd 2021

ūüí• BUG

csrf bug to change email


  1. First login into your account and open the link http://localhost/emoncms/user/changeemail.json?&email=admin%40localhost.combm and your email will be changed.


Any attacker can send those link to vicitm and when vicitm open the link then email will be changed

ūüí• STUDY\

We have contacted a member of the emoncms/dashboard team and are waiting to hear back a year ago
A emoncms/dashboard maintainer
a year ago


Thanks @ranjit-git , I have a fix for this working its way into the core at the moment setting the samesite cookie property to strict, will link and update this shortly

A emoncms/dashboard maintainer validated this vulnerability a year ago
ranjit-git has been awarded the disclosure bounty
The fix bounty is now up for grabs
A emoncms/dashboard maintainer
a year ago


Here's the fix in the core repo

I will link last commit in the dashboard repo to close this issue.

Thanks again!

A emoncms/dashboard maintainer confirmed that a fix has been merged on 58af4f a year ago
The fix bounty has been dropped
to join this conversation