Csrf

From zakirkun/ice-tea · View interactive version

Csrf is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects web forms and state-changing endpoints that lack CSRF token protection.

How to use this skill

Skill file

Cross-Site Request Forgery (CSRF)

Overview

CSRF tricks authenticated users into unknowingly submitting requests to a web application they're logged into. Without CSRF tokens, an attacker can craft a malicious webpage that triggers state-changing actions (password change, fund transfer, account deletion) in the victim's session.

Detection Strategy

Remediation

Vulnerable (HTML form):

<form method="POST" action="/transfer">
    <input name="amount" value="1000">
    <input type="submit">
</form>

Safe:

<form method="POST" action="/transfer">
    <input type="hidden" name="_csrf" value="{{ csrf_token }}">
    <input name="amount" value="1000">
    <input type="submit">
</form>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.