Cross-Site Request Forgery (CSRF) in francoisjacquet/rosariosis


Reported on

Jul 28th 2021

✍️ Description

When you don't set the SameSite attribute of cookies the browsers have special act in front of this issue.(I mean set default value on it) chrome and chromium based browsers set the attribute "Lax" that mean if you do add/delete/alter operation in a get HTTP request then your site more vulnerable with CSRF attacks.

But Firefox and Safari ( one of big ones ) don't set this attribute to "Lax" and set it to "none" that makes all POST and GET requests more Vulnerable to CSRF attack.

In Firefox and safari and chrome I can delete any student With CSRF.

🕵️‍♂️ Proof of Concept

// PoC.html

  <script>history.pushState('', '', '/')</script>
    <form action="" method="POST">
      <input type="hidden" name="delete&#95;ok" value="OK" />
      <input type="submit" value="Submit request" />

Here you should run PoC.html, after click on button you can see an student with id equals to 5 have been deleted.

💥 Impact

This vulnerability is capable of delete any student .


a year ago


Hey amammad, I've reached out to the rosariosis team. Waiting to hear back.

We have contacted a member of the francoisjacquet/rosariosis team and are waiting to hear back a year ago
francoisjacquet/rosariosis maintainer confirmed that a fix has been merged on f95bd0 a year ago
The fix bounty has been dropped
to join this conversation