Skip to main content

Cross-Site Request Forgery (CSRF)

CVE-2023-27490

Severity High
Score 8.8/10

Summary

NextAuth.js is an open source authentication solution for Next.js applications. next-auth applications using OAuth provider versions prior to 4.20.1 have been found to be subject to an Authentication Vulnerability. A bad actor who can read traffic on the victim's network or who is able to social engineer the victim to click a manipulated login link could intercept and tamper with the authorization URL to log in as the victim, bypassing the CSRF protection. This is due to a partial failure during a compromised OAuth session where a session code is erroneously generated. Users unable to upgrade may using Advanced Initialization, manually check the callback request for "state", "pkce", and "nonce" against the provider configuration to prevent this issue.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • REQUIRED
  • NONE
  • HIGH
  • HIGH

CWE-352 - Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) is a vulnerability that allows an attacker to make arbitrary requests in an authenticated vulnerable web application and disrupt the integrity of the victim’s session. The impact of a successful CSRF attack may range from minor to severe, depending upon the capabilities exposed by the vulnerable application and privileges of the user. An attacker may force the user to perform state-changing requests like transferring funds, changing their email address or password etc. However, if an administrative level account is affected, it may compromise the whole web application and associated sensitive data.

References

Advisory Timeline

  • Published