[KongchangAI]
Concept跨站请求伪造

CSRF

CSRF (cross-site request forgery) is a web security vulnerability in which an attacker induces a user to perform unintended actions on a website where the user is already authenticated. Defenses include SameSite cookies and CSRF tokens.

Timeline (last 90 days)

Nov 2

Session tokens usually exist in the form of a Session ID in a Cookie or a JWT, and subsequent requests use them to identify the user; if the Cookie is not set with HttpOnly, XSS scripts can read it directly; if not set with Secure, the token may leak over plaintext HTTP; if not set with SameSite, it is vulnerable to CSRF attacks.

Unverified50%
Nov 2

CSRF is when an attacker induces a logged-in user to unknowingly initiate a request, essentially 'borrowing' the credentials in the user's browser; XSS is injecting malicious scripts into a page, which can directly steal tokens; the two are often exploited in combination, and defense requires multiple measures such as output encoding, CSP, SameSite cookies and CSRF tokens.

Unverified50%
Nov 1

The stateless nature of the HTTP protocol, request methods (GET/POST), status codes, header fields, and the Cookie mechanism are directly relevant to understanding Web vulnerabilities such as SQL injection, XSS, and CSRF.

Unverified50%
Oct 14

Complete security testing should also cover dimensions such as authentication bypass, privilege escalation, CSRF, and sensitive information leakage, requiring dedicated tools such as SAST and DAST plus manual penetration testing.

Unverified50%
Oct 13

The SameSite attribute cannot defend against compromised subdomains or requests initiated by same-site XSS, and also depends on correct browser implementation, so it cannot replace the double-submit cookie or synchronizer token pattern.

Unverified50%
Oct 12

The SameSite attribute is a cookie control field used by browsers to defend against CSRF, with three main values: Strict, Lax, and None.

Unverified50%

All Facts (6)

Unverified

Session tokens usually exist in the form of a Session ID in a Cookie or a JWT, and subsequent requests use them to identify the user; if the Cookie is not set with HttpOnly, XSS scripts can read it directly; if not set with Secure, the token may leak over plaintext HTTP; if not set with SameSite, it is vulnerable to CSRF attacks.

50%
Unverified

CSRF is when an attacker induces a logged-in user to unknowingly initiate a request, essentially 'borrowing' the credentials in the user's browser; XSS is injecting malicious scripts into a page, which can directly steal tokens; the two are often exploited in combination, and defense requires multiple measures such as output encoding, CSP, SameSite cookies and CSRF tokens.

50%
Unverified

The stateless nature of the HTTP protocol, request methods (GET/POST), status codes, header fields, and the Cookie mechanism are directly relevant to understanding Web vulnerabilities such as SQL injection, XSS, and CSRF.

50%
Unverified

Complete security testing should also cover dimensions such as authentication bypass, privilege escalation, CSRF, and sensitive information leakage, requiring dedicated tools such as SAST and DAST plus manual penetration testing.

50%
Unverified

The SameSite attribute cannot defend against compromised subdomains or requests initiated by same-site XSS, and also depends on correct browser implementation, so it cannot replace the double-submit cookie or synchronizer token pattern.

50%
Unverified

The SameSite attribute is a cookie control field used by browsers to defend against CSRF, with three main values: Strict, Lax, and None.

50%

Source Articles