Cross-site Request Forgery (CSRF) Affecting org.owasp:csrfguard package, versions [0,4.0.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGOWASP-1912877
  • published8 Nov 2021
  • disclosed7 Nov 2021
  • creditunknown

Introduced: 7 Nov 2021

CVE-2021-28490  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade org.owasp:csrfguard to version 4.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) which can occur because the CSRF cookie may be retrieved by using only a session token.

Note:

  1. CSRFGuard uses headers which don't retrieve a CSRF cookie.
  2. token-per-page can be used with token rotation, which would assign unique, single-use tokens for each secured page.
  3. Validation of referrer headers could be done.

In order to bypass these validations, incorrect CSP/CORS rules along with a separate XSS vulnerability must be used.

CVSS Scores

version 3.1