gsd-2023-27490
Vulnerability from gsd
Modified
2023-12-13 01:20
Details
NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.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. This issue has been addressed in version 4.20.1. Users are advised to upgrade. 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. See the linked GHSA for details.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2023-27490", "id": "GSD-2023-27490" }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "aliases": [ "CVE-2023-27490" ], "details": "NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim\u0027s 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. This issue has been addressed in version 4.20.1. Users are advised to upgrade. 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. See the linked GHSA for details.", "id": "GSD-2023-27490", "modified": "2023-12-13T01:20:55.833969Z", "schema_version": "1.4.0" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2023-27490", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "next-auth", "version": { "version_data": [ { "version_affected": "=", "version_value": "\u003c 4.20.1" } ] } } ] }, "vendor_name": "nextauthjs" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim\u0027s 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. This issue has been addressed in version 4.20.1. Users are advised to upgrade. 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. See the linked GHSA for details." } ] }, "impact": { "cvss": [ { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 8.1, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N", "version": "3.1" } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "cweId": "CWE-384", "lang": "eng", "value": "CWE-384: Session Fixation" } ] }, { "description": [ { "cweId": "CWE-352", "lang": "eng", "value": "CWE-352: Cross-Site Request Forgery (CSRF)" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf", "refsource": "MISC", "url": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf" }, { "name": "https://authjs.dev/reference/core/providers#checks", "refsource": "MISC", "url": "https://authjs.dev/reference/core/providers#checks" }, { "name": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/", "refsource": "MISC", "url": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/" }, { "name": "https://next-auth.js.org/configuration/initialization#advanced-initialization", "refsource": "MISC", "url": "https://next-auth.js.org/configuration/initialization#advanced-initialization" }, { "name": "https://next-auth.js.org/configuration/providers/oauth", "refsource": "MISC", "url": "https://next-auth.js.org/configuration/providers/oauth" }, { "name": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12", "refsource": "MISC", "url": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12" }, { "name": "https://security.netapp.com/advisory/ntap-20230420-0006/", "refsource": "MISC", "url": "https://security.netapp.com/advisory/ntap-20230420-0006/" } ] }, "source": { "advisory": "GHSA-7r7x-4c4q-c4qf", "discovery": "UNKNOWN" } }, "gitlab.com": { "advisories": [ { "affected_range": "\u003c4.20.1", "affected_versions": "All versions before 4.20.1", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "cwe_ids": [ "CWE-1035", "CWE-352", "CWE-937" ], "date": "2023-04-20", "description": "NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim\u0027s 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. This issue has been addressed in version 4.20.1. Users are advised to upgrade. 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. See the linked GHSA for details.", "fixed_versions": [ "4.20.1" ], "identifier": "CVE-2023-27490", "identifiers": [ "CVE-2023-27490", "GHSA-7r7x-4c4q-c4qf" ], "not_impacted": "All versions starting from 4.20.1", "package_slug": "npm/next-auth", "pubdate": "2023-03-09", "solution": "Upgrade to version 4.20.1 or above.", "title": "Session Fixation", "urls": [ "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf", "https://nvd.nist.gov/vuln/detail/CVE-2023-27490", "https://authjs.dev/reference/core/providers#checks", "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/", "https://github.com/nextauthjs/next-auth/compare/next-auth@4.20.0...next-auth@4.20.1#diff-cf9257195d0cb6a835ae4ff1fc73fe2cac0bab847efb0832c1f551209a972b47R55", "https://next-auth.js.org/configuration/initialization#advanced-initialization", "https://next-auth.js.org/configuration/providers/oauth", "https://www.rfc-editor.org/rfc/rfc6749#section-10.12", "https://github.com/advisories/GHSA-7r7x-4c4q-c4qf" ], "uuid": "927af0aa-ebae-425e-9589-ceee45a65af8" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*", "cpe_name": [], "versionEndExcluding": "4.20.1", "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2023-27490" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "NextAuth.js is an open source authentication solution for Next.js applications. `next-auth` applications using OAuth provider versions before `v4.20.1` have been found to be subject to an authentication vulnerability. A bad actor who can read traffic on the victim\u0027s 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. This issue has been addressed in version 4.20.1. Users are advised to upgrade. 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. See the linked GHSA for details." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-352" }, { "lang": "en", "value": "CWE-384" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf", "refsource": "MISC", "tags": [ "Exploit", "Vendor Advisory" ], "url": "https://github.com/nextauthjs/next-auth/security/advisories/GHSA-7r7x-4c4q-c4qf" }, { "name": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/", "refsource": "MISC", "tags": [ "Not Applicable" ], "url": "https://danielfett.de/2020/05/16/pkce-vs-nonce-equivalent-or-not/" }, { "name": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12", "refsource": "MISC", "tags": [ "Not Applicable" ], "url": "https://www.rfc-editor.org/rfc/rfc6749#section-10.12" }, { "name": "https://next-auth.js.org/configuration/initialization#advanced-initialization", "refsource": "MISC", "tags": [ "Product" ], "url": "https://next-auth.js.org/configuration/initialization#advanced-initialization" }, { "name": "https://authjs.dev/reference/core/providers#checks", "refsource": "MISC", "tags": [ "Product" ], "url": "https://authjs.dev/reference/core/providers#checks" }, { "name": "https://next-auth.js.org/configuration/providers/oauth", "refsource": "MISC", "tags": [ "Product" ], "url": "https://next-auth.js.org/configuration/providers/oauth" }, { "name": "https://security.netapp.com/advisory/ntap-20230420-0006/", "refsource": "MISC", "tags": [], "url": "https://security.netapp.com/advisory/ntap-20230420-0006/" } ] } }, "impact": { "baseMetricV3": { "cvssV3": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 8.8, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "version": "3.1" }, "exploitabilityScore": 2.8, "impactScore": 5.9 } }, "lastModifiedDate": "2023-04-20T09:15Z", "publishedDate": "2023-03-09T21:15Z" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…