Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› CSRF Vulnerability
Threats, Abuse & Incident Response

CSRF Vulnerability

← Back to Glossary
By NHI Mgmt Group Updated October 25, 2026 Domain: Threats, Abuse & Incident Response

A CSRF vulnerability lets an attacker trick a logged-in user’s browser into sending unwanted requests to a trusted site. In technical terms, the application fails to verify that state-changing actions came from the legitimate user session, allowing forged requests to perform actions such as transfers, profile changes, or privilege updates.

How CSRF Vulnerabilities Work

A CSRF vulnerability appears when a web application trusts browser-sent state-changing requests without confirming that the request was intentionally initiated by the authenticated user. The weakness is usually in request validation, not in the browser itself.

Because the browser automatically includes ambient credentials such as cookies or session headers, a forged request can inherit the victim’s logged-in state. That makes CSRF a control failure at the application layer, where intent and authority are not separated clearly enough.

Why CSRF Is Dangerous

CSRF is dangerous because it can turn a normal session into a delivery path for unauthorized actions. An attacker may trigger money transfers, email changes, password resets, profile edits, or permission updates without ever seeing the victim’s credentials.

The practical harm depends on what the application lets a valid session do. If the action is high impact and the application does not require a user-specific proof of intent, the attacker only needs the victim to visit a malicious page while logged in.

For a broader view of how CSRF fits into the wider attack surface, NHIMG’s Web Application Attacks Guide places it alongside related web abuse patterns such as request tampering and injection.

Where CSRF Defences Need to Be Applied

CSRF defence belongs on every endpoint that changes state, especially where the request is authenticated by cookies or another browser-managed credential. Read-only endpoints are not the main concern; state changes are.

Well-designed defences confirm both origin and intent. In practice that usually means a request token, same-site cookie handling, and origin or referer validation where appropriate. The control has to be enforced consistently, not just on the most obvious forms or pages.

NHIMG’s CSRF Prevention Guide is the most direct reference for synchroniser tokens, signed double-submit patterns, Fetch Metadata, and framework settings that reduce bypass risk.

CSRF failures often arise when teams assume that authentication alone is enough. A user being logged in does not prove that the request was user-initiated, and same-origin browser behaviour can make a forged request look ordinary to the server.

Typical gaps include missing anti-CSRF tokens, weak validation on API-backed forms, unsafe GET requests that perform actions, and selective protection that leaves sensitive endpoints exposed. Security reviews should also look for login CSRF and for state changes hidden behind redirects or legacy handlers.

Where teams are validating exposed web attack paths more broadly, NHIMG’s Zero-Day and Exploited Vulnerabilities Guide is useful for understanding how exposed weaknesses are prioritised when they become actively exploited.

Risk and Threat Considerations

CSRF is a high-value abuse path because it exploits trust in the victim’s browser session rather than stealing the session outright. If a sensitive action is reachable through a browser-authenticated request, an attacker can often weaponise normal browsing behaviour as the delivery mechanism.

Failure mechanism: The application accepts state-changing requests without a verifiable proof that the authenticated user intentionally initiated them, so a forged cross-site request inherits ambient session authority.

Impact: Attackers can perform unauthorized transactions, change account settings, alter privileges, or chain the action into larger compromise if the target workflow exposes sensitive administrative or identity-related functions.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV8 — AuthorizationCSRF exploits missing intent checks on state-changing requests.
Recommendation — Require anti-CSRF checks on every state-changing request before authorizing the action.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementCSRF defenses commonly depend on managing session and anti-CSRF secrets correctly.
AC-3 — Access EnforcementCSRF bypasses intended access decisions by making the browser act without user intent.
Recommendation — Manage session-bound tokens and related authenticators so forged requests cannot reuse them. Enforce access decisions at the server side for every privileged state change.
CIS Controls v8CIS-6 — Access Control ManagementCSRF protection is part of controlling who can trigger sensitive application actions.
Recommendation — Restrict sensitive functions to verified, intentional requests and remove unsafe legacy pathways.
OWASP API Security Top 10API5 — Broken Function Level AuthorizationWhen browser-driven actions lack intent validation, functions can be invoked without proper authorization context.
Recommendation — Validate function-level authorization and request intent on every sensitive operation.

Practitioner Guidance

What to watch for: Focus review effort on every state-changing endpoint, not just classic form posts. If an action can be triggered by a browser cookie alone, it should be treated as CSRF-sensitive until proven otherwise.

Governance implication: csrf protection should be a standard engineering requirement for any web workflow that relies on ambient browser authentication. That expectation needs to be explicit in secure coding review, framework configuration, and release validation.

Practitioner takeaway: The safest rule is simple: never let a session prove permission by itself when the action matters.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org