Cross-Site Request Forgery (CSRF) in gunet/openeclass


Reported on

Dec 11th 2021


An attacker is able to log out a user if a logged-in user visits the attacker's website.

Proof of Concept

  <script>history.pushState('', '', '/')</script>
    <form action="">
      <input type="submit" value="Submit request" />


This vulnerability is capable of forging users to unintentional logout.

More details

One way GET could be abused here is that a person (competitor perhaps:) placed an image tag with src="<your logout link>" anywhere on the internet, and if a user of your site stumbles upon that page, he will be unknowingly logged out. This is why it should be a POST with a CSRF token.


While this cannot harm a user's account, it can be a great annoyance and is a valid CSRF.

We are processing your report and will contact the gunet/openeclass team within 24 hours. 2 years ago
KhanhCM modified the report
2 years ago
We have contacted a member of the gunet/openeclass team and are waiting to hear back 2 years ago
We have sent a follow up to the gunet/openeclass team. We will try again in 4 days. 2 years ago
KhanhCM modified the report
2 years ago
Alexandros Diamantidis validated this vulnerability 2 years ago
khanhchauminh has been awarded the disclosure bounty
The fix bounty is now up for grabs
Alexandros Diamantidis marked this as fixed in 3.12.5 with commit e4fb88 2 years ago
Alexandros Diamantidis has been awarded the fix bounty
index.php#L74-L96 has been validated
to join this conversation