Cross-Site Request Forgery (CSRF) in hdinnovations/unit3d-community-edition


Reported on

Sep 23rd 2021


Attacker is able to change a torrents featured state to if a logged in user visits attacker website.

Proof of Concept

  1. When you logged in open this POC.html in a browser.
  2. You can check the torrents state changed to featured.
<script>history.pushState('', '', '/')</script>
<form action="">
    <input type="submit" value="Submit request" />


This vulnerability is capable of forging user to unintentional change torrents state to featured.


Tested on Safari.


You should set a CSRF token on such GET requests or you can use POST instead of GET then because of cookie SameSite is Lax, request from other origins could not carry cookie.


We have contacted a member of the hdinnovations/unit3d-community-edition team and are waiting to hear back 2 years ago
HDVinnie validated this vulnerability 2 years ago
hdvinnie has been awarded the disclosure bounty
The fix bounty is now up for grabs
HDVinnie marked this as fixed with commit 49cb0a 2 years ago
HDVinnie has been awarded the fix bounty
web.php#L275 has been validated
to join this conversation