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 Added | Link | Excerpt |
|---|---|---|
| 2026-05-12 2026 | Vulnerabilities in PAC4J software news 1 min read | PAC4J software is affected by CVE-2026-40458, a Cross-Site Request Forgery (CSRF) vulnerability, where attackers can exploit deterministic String.hashCode() collisions to bypass CSRF protection and perform unauthorized state-changing operations. Additionally, CVE-2026-40459 introduces an LDAP Injection flaw, allowing low-privileged attackers to conduct unauthorized LDAP queries and directory operations by injecting crafted LDAP syntax into ID-based parameters. These vulnerabilities have been addressed in PAC4J versions 5.7.10 and 6.4.1. → cert.pl |
| 2026-04-22 2026 | CVE-2025-12821: WordPress NewsBlogger CSRF Allowing RCE news 4 min read | CVE-2025-12821 affects the NewsBlogger WordPress theme, versions 0.2.5.6 through 0.2.6.1, allowing unauthenticated attackers to achieve remote code execution through Cross-Site Request Forgery (CSRF). This vulnerability, a regression of CVE-2025-1305, occurs due to missing nonce validation in the `newsblogger_install_and_activate_plugin()` function, enabling arbitrary file uploads and complete site compromise when an administrator clicks a malicious link. → sentinelone.com |
| 2026-04-22 2026 | Manipulating User Email: A CSRF PoC From TCM Academy intermediate | Manipulating User Email: A CSRF PoC From TCM Academy |
| 2026-04-22 2026 | Bypassing CSRF Token Validation Techniques intermediate 1 min read | Techniques for bypassing CSRF token validation are explored, focusing on scenarios where tokens are tied to non-session cookies or duplicated within cookies. The writeup details investigations and exploitation approaches for these specific flaws, highlighting the importance of secure token generation, validation, and binding for effective CSRF protection. |
| 2026-04-22 2026 | CVE-2026-40925: CSRF in WWBN AVideo Configuration Endpoint news 4 min read | CVE-2026-40925: CWE-352: Cross-Site Request Forgery (CSRF) in WWBN AVideo versions 29.0 and prior allows attackers to modify sensitive site configurations by exploiting an administrator's logged-in session. The configuration update endpoint lacks proper CSRF protections, enabling a malicious POST request to alter settings like encoder URLs, SMTP credentials, and site branding when an administrator visits an attacker-controlled page. A fix is available via commit f9492f5e6123dff0292d5bb3164fde7665dc36b4. → radar.offseq.com |
| 2026-04-22 2026 | Internet Bug Bounty: Argo CD CSRF leads to Kubernetes cluster compromise news 3 min read | Argo CD CSRF vulnerabilities, specifically CVE-2024-22424, allow attackers to compromise Kubernetes clusters by crafting malicious JavaScript that exploits the SameSite cookie policy's limitations on same-parent domains. By sending requests with a "text/plain" Content-Type, attackers bypass browser CORS checks, enabling the creation of privileged pods on the cluster. → hackerone.com |
| 2026-04-19 2026 | CVE-2025-9611: Microsoft Playwright MCP Server CSRF Flaw news 4 min read | CVE-2025-9611 describes a DNS rebinding vulnerability in Microsoft Playwright MCP Server versions prior to 0.0.40, allowing attackers to exploit browser interactions to invoke tool endpoints without proper authentication by bypassing same-origin protections. The vulnerability, rooted in the lack of Origin header validation, can lead to unauthorized commands and system manipulation. Mitigation involves upgrading to version 0.0.40+, configuring `allowedHosts`, and implementing workarounds such as restricting binding to localhost or using a reverse proxy with origin validation. → sentinelone.com |
| 2026-04-19 2026 | CVE-2025-23797: WP Options Editor CSRF Vulnerability news 4 min read | CVE-2025-23797 is a critical Cross-Site Request Forgery (CSRF) vulnerability affecting the WP Options Editor WordPress plugin (versions up to 1.1). This flaw allows unauthenticated attackers to escalate privileges by tricking administrators into clicking malicious links, leading to unauthorized modification of WordPress options. The vulnerability stems from insufficient CSRF token validation, enabling attackers to forge requests that manipulate user roles and create or elevate administrator accounts. Immediate mitigation involves deactivating and removing the plugin. → sentinelone.com |
| 2026-04-19 2026 | Web Security Academy: CSRF SameSite Lax Bypass via Method Override intermediate 4 min read | Walkthrough of a CSRF SameSite Lax bypass technique leveraging method override. This technique targets web applications, specifically addressing how the `SameSite=Lax` cookie attribute, a common default in modern browsers, can be circumvented. By crafting a GET request that includes a `_method=POST` parameter, an attacker can trick the browser into sending the session cookie while still executing a POST request on the server, enabling actions like changing a user's email. |
| 2026-04-16 2026 | Modern CSRF Mitigation in Single Page Applications intermediate 9 min read | Modern Cross-Site Request Forgery (CSRF) mitigation in Single Page Applications leverages techniques like API subdomain separation with CORS and `SameSite: Strict` cookies. By moving APIs to subdomains, applications can reliably check the `Origin` header for cross-origin requests, ensuring that only legitimate requests originating from the intended frontend are processed. Similarly, `SameSite: Strict` cookies prevent CSRF attacks by ensuring cookies are only sent with requests originating from the same site, offering a simpler yet effective defense for SPAs that minimize top-level navigation. |
| 2026-04-16 2026 | CSRF in the Age of JSON intermediate 5 min read | CSRF in JSON APIs: Attackers can exploit Cross-Site Request Forgery against web applications using JSON for data transfer by circumventing Same-Origin Policy protections. This often involves manipulating the request's MIME type to `text/plain` or similar, or by exploiting misconfigured Cross-Origin Resource Sharing (CORS) policies that allow credentials. Demonstrating these techniques, the analysis highlights how predictable request schemas and cookie-based authorization can be leveraged for malicious state-changing actions. |
| 2026-04-16 2026 | Top 25 CSRF Bug Bounty Reports intermediate | Top 25 CSRF Bug Bounty Reports → corneacristian.medium.com |
| 2026-04-16 2026 | The Bug Bounty Guide to Exploiting CSRF Vulnerabilities - YesWeHack beginner 9 min read | Guide to exploiting Cross-Site Request Forgery (CSRF) vulnerabilities, detailing POST-based, GET-based, and stored CSRF attacks. It explains how attackers leverage a user's authenticated session to trick their browser into executing unauthorized actions, such as changing account settings or transferring funds. The guide illustrates real-world scenarios and payloads, including HTML forms for POST requests and image tags for GET requests, to demonstrate the mechanisms and impact of these vulnerabilities, emphasizing the exploitation of trust between browser and site without proper anti-CSRF protections. → yeswehack.com |
| 2026-04-16 2026 | CSRF: Advanced Exploitation Guide - Intigriti advanced 8 min read | Guide to advanced CSRF exploitation techniques, detailing how to identify and exploit vulnerabilities by understanding conditions like the `SameSite` cookie policy and the absence of unpredictable tokens. It covers bypassing Content-Type and method-based restrictions, as well as exploiting weaknesses in anti-CSRF token validation and Referer header checks. → intigriti.com |
| 2026-04-10 2026 | Web Application Security: Anti-CSRF & Cookie SameSite Options beginner 12 min read | Guide to implementing anti-CSRF tokens and Cookie SameSite options, detailing how CSRF attacks leverage GET and POST requests and exploit HTML forms with JavaScript. It explains the mechanics of hidden input fields and form submission, then introduces secret, randomly generated tokens as a primary defense, to be verified by the server upon form submission. |
| 2026-04-10 2026 | CSRF Protection - Clerk Docs beginner 2 min read | Guide to CSRF protection detailing Cross-Site Request Forgery attacks and how to mitigate them using the `SameSite` cookie attribute. It explains the `Strict`, `Lax`, and `None` values for `SameSite` and highlights that Clerk configures session cookies with `Lax`, the modern browser default, to prevent CSRF without degrading user experience. The guide emphasizes that navigation alone should not trigger backend mutations to avoid XSS vulnerabilities. |
| 2026-04-10 2026 | Preventing CSRF with the SameSite Cookie Attribute intermediate 5 min read | Reference detailing the SameSite cookie attribute for preventing Cross-Site Request Forgery (CSRF) attacks. It explains how cookies function and how browsers send them with third-party requests, enabling CSRF. The attribute, with 'Strict' and 'Lax' values, instructs browsers to control cookie transmission, mitigating attacks like those exploiting POST requests to sensitive endpoints. The entry also notes Netsparker's implementation of checks for this attribute. → invicti.com |
| 2026-04-10 2026 | CSRF Attacks: Bypassing SameSite Cookies intermediate 2 min read | Guide to bypassing SameSite cookies in CSRF attacks, detailing methods like exploiting Lax policy GET requests, using 307/308 redirects, and leveraging subdomain takeovers. It covers testing methodologies and mitigation techniques for developers, including SameSite=Strict and CSRF tokens. |
| 2026-04-10 2026 | Advanced CSRF: How to Bypass SameSite Cookie Protections advanced 4 min read | Advanced CSRF techniques can bypass SameSite cookie protections, even when browsers default to "lax" settings. This occurs by exploiting how browsers define "site" versus "origin," and by manipulating GET requests to endpoints that poorly validate HTTP methods, or by using client-side redirect gadgets to trigger subsequent same-site requests when cookies are set to "strict." |
| 2026-04-10 2026 | CSRF & Bypasses - Cobalt intermediate 7 min read | Cross-Site Request Forgery (CSRF) attacks leverage authenticated users to execute unintended actions by tricking them into visiting malicious sites or clicking links. Vulnerabilities arise from inadequate defenses, such as missing CSRF tokens, improper request method handling, and bypasses of referrer header checks or SameSite cookie attributes. Attackers can exploit these weaknesses by changing request methods, removing token parameters, crafting specific content types, and utilizing client-side redirects to execute arbitrary actions. → cobalt.io |
| 2026-04-10 2026 | Cross-site request forgery - Wikipedia beginner 16 min read | Cross-site request forgery (CSRF) is a web application vulnerability where unauthorized commands are submitted from a trusted user's browser to a vulnerable website. Attackers exploit the trust a site has in a user's authenticated session, often by tricking the user into loading a specially crafted image tag or hidden form. This can lead to data leakage, session state changes, or account manipulation, as seen in past exploits against Netflix, ING Direct, YouTube, and McAfee Secure. The μTorrent CVE-2008-6586 vulnerability demonstrated how simple GET requests for critical actions could be exploited via image tags in forums or emails, leveraging the browser's automatic cookie submission. |
| 2026-04-10 2026 | CSRF - OWASP Foundation beginner 9 min read | Reference to Cross-Site Request Forgery (CSRF), an attack forcing authenticated users to execute unwanted actions. It details how attackers can trick victims via social engineering to perform state-changing requests, potentially compromising entire web applications or stealing private data through methods like login CSRF. The document highlights flawed prevention techniques and illustrates attack scenarios, including GET and POST request exploits, and mentions frameworks with built-in CSRF support and tools like OWASP CSRF Guard. → owasp.org |
| 2026-04-10 2026 | CSRF: Cross Site Request Forgery Example - Imperva beginner 3 min read | Cross-Site Request Forgery (CSRF) attacks trick users into executing unwanted actions on web applications. Attackers exploit this by embedding malicious requests within seemingly innocent links or forms, leveraging the user's existing authenticated session. Mitigation strategies include generating unique session tokens, double cookie submission, and implementing custom security policies that filter requests based on HTTP referrer headers, as demonstrated with Imperva's IncapRules. → imperva.com |
| 2026-04-10 2026 | CWE-352: Cross-Site Request Forgery beginner 4 min read | Reference defining CWE-352, Cross-Site Request Forgery, this entry details architecture and design strategies such as using anti-CSRF libraries like OWASP CSRFGuard or ESAPI Session Management. It explains the "double-submitted cookie" method for implementation, which requires JavaScript and may not function with JavaScript disabled. The reference highlights the relationship between CSRF and XSS, citing the Samy worm on MySpace as an example where CSRF was a root cause. Manual analysis techniques and tools like OWASP CSRFTester are suggested for detection. |
| 2026-04-10 2026 | What Is CSRF? - Palo Alto Networks beginner 24 min read | Reference defining CSRF (CWE-352), a web application attack exploiting session-based authentication to trick authenticated users into submitting unintended requests. Attackers leverage the browser's automatic inclusion of session cookies to perform unauthorized actions on behalf of the user without their knowledge or consent, such as changing settings or initiating transactions. This technique plays a supporting role in MITRE ATT&CK techniques like T1530. → paloaltonetworks.com |
| 2026-04-10 2026 | What is CSRF? Attacks, Mitigation, Prevention - Acunetix beginner 10 min read | Reference on Cross-Site Request Forgery (CSRF), detailing its mechanism of tricking authenticated users into performing unintended actions, often via social engineering or malicious links. It highlights how CSRF leverages session cookies to bypass authentication, affecting state changes in web applications. The entry explains CSRF execution through both GET and POST requests, providing examples using HTML tags and JavaScript. It also touches upon prevention mechanisms like referer headers and custom X-Requested-With headers. → acunetix.com |
| 2026-04-10 2026 | CSRF Attacks - Rapid7 beginner 5 min read | Reference defining Cross-Site Request Forgery (CSRF) attacks, detailing how they exploit user trust and authenticated sessions to perform unauthorized actions, such as money transfers or account alterations. It covers attack mechanisms, including social engineering and stored CSRF via XSS like the Samy MySpace worm, and highlights impacts on services like Gmail and Facebook. Prevention strategies emphasize enabling CSRF protection, utilizing CSRF tokens, and conducting regular web application security testing and penetration testing to mitigate risks. → rapid7.com |
| 2026-04-06 2026 | Cookies: HTTP State Management Mechanism (RFC 6265bis) beginner 34 min read | Reference document defining HTTP Cookie and Set-Cookie header fields. It details how servers store state at user agents for session management, superseding RFC 6265. The specification clarifies cookie scope, attributes like "Secure", and addresses historical security and privacy flaws, recommending a well-behaved profile for servers and liberal processing for user agents to maximize interoperability. |
| 2026-04-06 2026 | CVE-2026-34394: Wwbn Avideo CSRF Vulnerability news 4 min read | Analysis of CVE-2026-34394 reveals a critical Cross-Site Request Forgery (CSRF) vulnerability in WWBN AVideo. The admin plugin configuration endpoint, admin/save.json.php, fails to validate CSRF tokens and bypasses table security checks. This, combined with a SameSite=None cookie policy, allows attackers to overwrite arbitrary plugin settings by crafting forged cross-origin POST requests, potentially compromising payment processors, authentication providers, and cloud storage credentials. Mitigation involves restricting administrative access, implementing WAF rules, and advising administrators on secure browsing habits. → sentinelone.com |
| 2026-04-06 2026 | Cross-site request forgery (CSRF) - Security - MDN Web Docs beginner 8 min read | Reference detailing Cross-Site Request Forgery (CSRF) attacks, where attackers trick browsers into executing unwanted actions on legitimate sites by exploiting session cookies. It outlines attack vectors using forms and image tags, and explores defenses including CSRF tokens, Fetch metadata headers (specifically `Sec-Fetch-Site`), making requests non-simple by setting `Content-Type` to `application/json` or custom headers, and the `SameSite` cookie attribute for defense in depth. Modern frameworks like Django offer built-in CSRF token protection. |
| 2026-04-03 2026 | CSRF Exploitation Techniques — Flaws, Bypasses & SameSite Cookie Mechanics intermediate 3 min read | Cross-Site Request Forgery (CSRF) remains a critical web application vulnerability due to flawed token implementations and bypass techniques. This entry highlights common issues like tokens only validated on POST requests, missing or globally shared tokens, and tokens tied to non-session cookies. It also details how attackers exploit these flaws and the impact of SameSite cookie attributes (Strict, Lax, None) on mitigating CSRF, noting that misconfigurations in these defenses can still leave systems vulnerable. |
| 2026-04-03 2026 | Lab: SameSite Lax Bypass via Cookie Refresh | PortSwigger intermediate 4 min read | Lab demonstrating a CSRF attack to bypass SameSite cookie restrictions. This lab involves changing a victim's email address by exploiting a vulnerable account change function. The technique focuses on a SameSite Lax bypass via cookie refresh, requiring an attacker to circumvent browser popup blockers and induce user interaction to trigger the necessary OAuth flow and subsequent email modification. → portswigger.net |
| 2026-04-03 2026 | Lab: SameSite Lax Bypass via Method Override | PortSwigger intermediate 2 min read | Lab: SameSite Lax bypass via method override details a Cross-Site Request Forgery (CSRF) vulnerability within the "change email" function. The lab demonstrates how to bypass SameSite cookie restrictions, specifically the Lax default, by crafting a GET request that overrides the intended POST method using the `_method` parameter. The solution involves using an exploit server to trigger a top-level navigation that sends the malicious request, ultimately changing the victim's email address. → portswigger.net |
| 2026-04-03 2026 | Advanced Techniques to Bypass CSRF Defenses advanced 7 min read | Cross-Site Request Forgery (CSRF) bypass techniques exploit vulnerabilities in web application defenses, including header validation, predictable or unlinked CSRF tokens, and improper content type enforcement. Attackers leverage techniques like using `rel="noreferrer"` to suppress headers, forging request headers with tools like `curl`, and exploiting weak token generation. They also manipulate content types, bypass regex filters using special characters or relative path symbols, and leverage `<iframe>` payloads or JavaScript AJAX calls for automatic request execution. |
| 2026-04-03 2026 | Cross-Site Request Forgery (CSRF) Attack Guide | Hackviser beginner 7 min read | Guide to Cross-Site Request Forgery (CSRF) attacks, detailing its mechanics through examples like manipulated image tags and auto-submitting forms. It outlines manual testing techniques for CSRF token validation, HTTP methods, content types, and referrer headers. The guide also covers automated discovery using tools such as Burp Suite extensions (CSRF Scanner, CSurfer, Auto CSRF), XSRFProbe, and custom Python scripts, along with specific attack vectors including GET-based, POST-based, and JSON CSRF. |
| 2026-04-03 2026 | CSRF (Cross Site Request Forgery) | HackTricks beginner 14 min read | Reference detailing Cross-Site Request Forgery (CSRF) vulnerabilities, explaining how attackers exploit authenticated sessions to perform actions on behalf of users. It covers exploitation conditions, countermeasures like SameSite cookies, CORS, user verification, referrer checks, and CSRF tokens. The resource also highlights common anti-patterns, such as bypassing CSRF protections on non-POST verbs through method overrides and inadequate token validation tied to global pools. → book.hacktricks.xyz |
| 2026-04-03 2026 | Bypassing SameSite Cookie Restrictions - CSRF | PortSwigger intermediate 8 min read | SameSite cookie restrictions, designed to mitigate CSRF and other cross-site attacks, can be bypassed by understanding how browsers interpret "site" versus "origin" and the nuances of `Strict`, `Lax`, and `None` settings. Since Chrome now defaults to `Lax` if not specified, and other browsers may follow, exploiting vulnerabilities that permit arbitrary JavaScript execution or crafting specific GET requests that trigger top-level navigation can still allow attackers to craft cross-site requests that include sensitive cookies, leading to successful CSRF attacks against seemingly secure sites. → portswigger.net |
| 2026-04-03 2026 | CSRF & Bypasses | Cobalt intermediate 7 min read | Cross-Site Request Forgery (CSRF) attacks trick authenticated users into performing unintended actions on web applications. This analysis details how attackers exploit applications lacking CSRF defenses by crafting malicious links or websites that trigger requests using GET or POST methods. It further explores various bypass techniques for CSRF token validations, including altering request methods, removing token parameters, exploiting content type checks, manipulating referrer headers, session fixation, and leveraging SameSite cookie attribute misconfigurations to achieve successful exploitation. → cobalt.io |
| 2026-04-03 2026 | Cross-Site Request Forgery Prevention Cheat Sheet | OWASP beginner 40 min read | OWASP's Cross-Site Request Forgery Prevention Cheat Sheet details techniques to protect against CSRF attacks, which trick authenticated users into performing unwanted actions. It emphasizes using framework-built-in protection, implementing CSRF tokens for state-changing requests, and recommends the synchronizer token pattern for stateful applications or double submit cookies for stateless ones. The guide also discusses the importance of not using GET requests for modifications and highlights that Cross-Site Scripting (XSS) can bypass CSRF defenses. → cheatsheetseries.owasp.org |
| 2025-09-25 2025 | Side-by-Side Comparison of SSRF vs. CSRF | Attaxion beginner 9 min read SSRF | Server-side request forgery (SSRF) is a critical web security vulnerability, listed in OWASP Top 10 2021 (CWE-918), that enables attackers to manipulate a vulnerable backend server into making unauthorized requests to internal or external resources. This differs from cross-site request forgery (CSRF), which tricks an authenticated user's browser into submitting unwanted requests. SSRF attacks often target internal systems protected by firewalls, accessing data like localhost, database interfaces, and local file systems, and have been implicated in major breaches such as Capital One and Microsoft Exchange. Vulnerability scanners like OWASP ZAP can detect SSRF. |
| 2025-08-14 2025 | devanshbatham/Vulnerabilities-Unmasked beginner 14 min read IDOR XSS | Library providing simplified explanations and analogies for common web vulnerabilities, including Cross-Site Scripting (XSS), Cross-Site Request Forgery (CSRF), SQL Injection, ClickJacking, Subdomain Takeover, Privilege Escalation, Role-Based Access Control (RBAC) Vulnerabilities, Server-Side Request Forgery (SSRF), Vulnerable and Outdated Components, Local File Inclusion (LFI), Denial of Service (DOS), Authentication Bypass, Insecure Direct Object Reference (IDOR), 2FA Bypass, and Race Condition Vulnerability. |
| 2025-08-14 2025 | In Praise of CSRF Tokens – Tim MalcomVetter – Medium beginner 4 min read | Reference on CSRF tokens, emphasizing their critical role in preventing credential theft via forged login requests and aiding in attack detection by invalidating reused tokens. The piece highlights that CSRF tokens are often overlooked on login forms, despite their ability to thwart sophisticated phishing and credential stuffing attacks, even in conjunction with multi-factor authentication. It suggests that monitoring CSRF token invalidation events can provide valuable intelligence for blue teams to identify and respond to malicious activity. |
| 2025-08-14 2025 | Wiping out CSRF beginner 22 min read | Cross-Site Request Forgery (CSRF) persists as a significant vulnerability in web applications, often stemming from legacy code, inadequate framework implementations, or failure to adopt modern protections. This analysis details how CSRF exploits browser cookie management and improper HTTP verb usage, illustrating attack methods such as resource inclusion, form manipulation, and XMLHttpRequest payloads. A practical, post-development solution is presented that bypasses source code requirements, alongside an examination of a novel cookie extension proposed to mitigate CSRF comprehensively, supported by a code repository for hands-on implementation. |
| 2025-08-14 2025 | Bypassing CSRF tokens with pythons cgihttpserver intermediate 1 min read | Bypassing CSRF tokens with Python's `cgihttpserver` demonstrates a technique for exploiting Cross-Site Request Forgery vulnerabilities by leveraging Python's built-in HTTP server. This method focuses on how an attacker can craft malicious requests that circumvent CSRF protection mechanisms, often by manipulating the server-side handling of requests. |
| 2025-08-14 2025 | web application - Should login and logout action have CSRF protection? - In beginner 4 min read | Analysis of CSRF protection for web application login and logout actions, detailing how attackers can exploit login CSRF to redirect victims to attacker-controlled accounts, enabling credential hijacking and content manipulation. It also highlights the risks of logout CSRF, particularly when combined with phishing attacks or other vulnerabilities like self XSS, to facilitate account takeovers and persistent remote JavaScript execution, referencing scenarios like the LostPass exploit and WAF bypass techniques. |
| 2025-08-14 2025 | Using CORS policies to implement CSRF protection | Mixmax beginner 7 min read | Cross-Site Request Forgery (CSRF) protection can be strengthened beyond traditional CORS policies by using the new Node module, `cors-gate`, which layers Origin and Referer header checks. This approach, dependent on modern browser features, prevents unauthorized requests by verifying the origin of incoming requests against the server's configured origin. While CORS prevents data leakage, `cors-gate` actively blocks malicious requests, mitigating vulnerabilities where users logged into a service could have actions performed on their behalf by third-party websites. |
| 2025-08-14 2025 | Cross-Site Request Forgery is dead! beginner 8 min read | Reference detailing Cross-Site Request Forgery (CSRF) vulnerabilities and their solution via Same-Site Cookies. The article explains CSRF attacks, traditionally mitigated by checking Origin/Referer headers or employing Anti-CSRF tokens, and highlights the simplicity and effectiveness of Same-Site Cookies. It describes `Strict` and `Lax` modes for Same-Site Cookies, offering robust protection against CSRF by instructing browsers not to send cookies on cross-origin requests, with `Lax` allowing exceptions for top-level navigations using safe HTTP methods like GET. |
| 2025-08-14 2025 | oauth 2.0 - How does CSRF work without state parameter in OAuth2.0? - Stack intermediate 1 min read | Reference on CSRF vulnerabilities in OAuth 2.0, detailing an attack flow where an attacker intercepts a callback URL and tricks a logged-in user into visiting it. This exploit allows the attacker to gain unauthorized access to the victim's account on the service provider by exchanging the resulting authorization code for an access token. The discussion specifically questions the role of the state parameter in preventing such Cross-Site Request Forgery attacks within the OAuth 2.0 framework. → stackoverflow.com |
| 2025-08-14 2025 | WordPress Front End Security: CSRF and Nonces | CSS-Tricks beginner 5 min read | WordPress front-end security against Cross-Site Request Forgery (CSRF) can be strengthened using WordPress's built-in nonce functionality. CSRF attacks trick logged-in users into performing unintended actions by forging requests. WordPress nonces, or "numbers used once," validate user intent by generating unique, session-specific tokens that are verified on the backend. Functions like `wp_nonce_field`, `wp_verify_nonce`, `wp_nonce_url`, `wp_create_nonce`, and `check_ajax_referer` facilitate the implementation of these protections, preventing malicious request forgery. |
| 2025-08-14 2025 | ruby - Sinatra CSRF Authenticity tokens - Stack Overflow beginner | Sinatra CSRF authenticity tokens implementation using Rack Protection for Ruby web applications. This discussion addresses generating security tokens for preventing cross-site request forgery in Sinatra forms, particularly for input-gathering screens within primarily GET-based applications. The user seeks guidance on whether Sinatra can generate these tokens automatically or if manual generation is required, noting difficulty in finding Rack Protection examples within the Sinatra documentation. The goal is to enhance the security of user input forms against common web vulnerabilities. → stackoverflow.com |