appsec.fyi › Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) Resources

Page 3 of 3: resources 101–114 of 114, added Jan 2018 to Aug 2025.

The newest Cross-Site Request Forgery (CSRF) resources are on the Cross-Site Request Forgery (CSRF) page. For a reading order instead of a date order, see the Cross-Site Request Forgery (CSRF) learning path.

Date AddedLinkExcerpt
2025-08-14 2025Avoiding CSRF Attacks with API Design intermediate 12 min readReference on avoiding CSRF attacks through API design, emphasizing never using GET to modify state and implementing CSRF tokens. It details how malicious websites can exploit GET requests and basic POST forms, and suggests using CSRF tokens as a hidden field or header. The article also touches on stateless "double submit cookies" and considerations for non-browser API clients, mentioning the `csurf` library for Express.
2025-08-14 2025Bypass SameSite Cookies Default to Lax and get CSRF intermediate 4 min readBypass SameSite Cookies default to Lax by leveraging the LAX+POST feature, which sends cookies set or changed within two minutes on non-idempotent top-level cross-site requests. This can enable CSRF attacks in scenarios where session cookies are frequently updated, users log in or out, or OAuth providers are used for authentication, as demonstrated in a challenge involving a GET logout function and a POST settings request.
2025-08-14 2025Account takeover using CSRF JSON based intermediate 3 min readAccount takeover is possible via JSON-based CSRF, exploiting a lack of protection on API endpoints that handle site information and account settings. Attackers can leverage shared file functionality to trick users, including administrators, into triggering requests that leak sensitive data such as API keys and user credentials, enabling unauthorized modification of account details through XHR-based exploits facilitated by pre-existing XSS vulnerabilities.
2025-08-14 2025What is CSRF (Cross-site request forgery)? Tutorial & Examples | Web Security Academy beginner 6 min readReference on Cross-Site Request Forgery (CSRF) detailing what it is, common vulnerabilities, and how to prevent it. The resource explains how attackers exploit cookie-based session handling and lack of unpredictable request parameters to make users perform unintended actions like changing email addresses or transferring funds. It also covers constructing and delivering CSRF attacks using tools like Burp Suite Professional and discusses common defenses such as CSRF tokens, SameSite cookies, and Referer-based validation. → portswigger.net
2022-03-17 2022Favorite tweet by @manicode newsFavorite tweet: Oldie but a good one. Old school #CSRF against @netflix https://t.co/kSVU9VP65D — Jim Manico (@manicode) Mar 17, 2022
2022-01-08 2022Cross-Site Request Forgery (CSRF) | Complete Guide beginnerCross-Site Request Forgery (CSRF) | Complete Guide
2022-01-05 20220xInfection/XSRFProbe intermediate 2 min readToolkit for auditing and exploiting Cross-Site Request Forgery (CSRF/XSRF) vulnerabilities. XSRFProbe features a robust crawling engine and performs systematic checks to detect CSRF flaws and bypasses. It supports custom cookie values, generic headers, and accurate token-strength detection. The toolkit can generate both normal and maliciously exploitable proof-of-concept examples for identified vulnerabilities, offering detailed logging and a user-controlled workflow.
2020-02-14 2020Samesite by Default and What It Means for Bug Bounty Hunters intermediate 4 min read Bug Bounty XSSSameSite=Lax default for cookies in Chrome 80 impacts bug bounty hunters by breaking cross-origin authenticated requests, affecting clickjacking, XSSI, JSONP leaks, data exfiltration, XSLeaks, CORS misconfigurations, Cross-Site WebSocket Hijacking, and some XSS exploit chains, though specific scenarios and configurations may still allow for exploitation.
2020-01-19 2020Facebook GraphQL CSRF – These aren't the access_tokens you're looking for intermediate GraphQLA CSRF-style query on business.instagram.com allowed unauthorized GraphQL calls. A bug was found in the "View the Assigned Roles and Emails of an Instagram Account" feature. The issue was discovered during authorization on business.instagram.com/login. Users without an Instagram Business account encountered an error page. This vulnerability highlights a potential security risk in Facebook's GraphQL system.
2019-03-13 2019Brute Forcing User IDS via CSRF To Delete all Users with CSRF attack. intermediate 1 min readTechnique demonstrating CSRF to brute-force numeric user IDs and delete all users. This method bypasses CSRF token validation on the delete user request. When X-Frame-Options prevents clickjacking and ORIGIN validation blocks XMLHttpRequest, requests are sent to an iframe target. Although responses are hidden due to X-Frame-Options, the script successfully brute-forces IDs and executes deletions by leveraging this CSRF vulnerability.
2018-06-26 2018Self-XSS + CSRF to Stored XSS intermediate 1 min read XSSSelf-XSS chained with CSRF can be leveraged to achieve stored XSS. This technique involves exploiting a website where a user changing their name can inject JavaScript, typically a Self-XSS, which has no inherent impact. By crafting a CSRF payload, an attacker can trick a victim into submitting a profile update containing malicious JavaScript from a service like XSSHunter. This, when combined with an on-load form submission, allows the attacker to execute code in the victim's browser upon homepage navigation, effectively creating a stored XSS vulnerability without the need for CSP protection.
2018-04-30 2018Steal CSRF/Auth/Unique key Header with XSS intermediate 1 min read XSSStealing CSRF and authentication tokens via Cross-Site Scripting (XSS) involves exploiting response headers. Attackers can use JavaScript's `XMLHttpRequest` to access headers not available via HTTP-only cookies, such as a `Csrf-token` header. By embedding a script that fetches a specific page, extracts the token using `getResponseHeader()`, and then sends it to an attacker-controlled server, vulnerabilities in applications can be leveraged to hijack user sessions.
2018-04-06 2018A Deep Dive into CSRF Protection in Rails – Ruby Inside – Medium intermediate 6 min readRails Cross-Site Request Forgery (CSRF) protection is detailed, explaining how unique tokens are generated, embedded in HTML via `csrf_meta_tags`, and stored in session cookies. The `protect_from_forgery` method in `ApplicationController` triggers verification, where incoming requests are checked against session tokens. This process involves masking tokens with a one-time pad for encryption and then decrypting them for comparison to prevent spoofed requests.
2018-01-02 20180ang3el/EasyCSRF beginner 2 min readLibrary for identifying weak CSRF protection in web applications, particularly effective against API endpoints and GraphQL. EasyCSRF modifies HTTP requests to bypass common protections like content type checks and token parameters, allowing researchers to manually analyze failed versus successful actions in Burp Suite's proxy history. It supports various parameter and header name configurations, request whitelisting, and conversion between data formats.