{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-25124",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-02-05T14:14:46.380Z",
        "datePublished": "2024-02-21T21:01:44.672Z",
        "dateUpdated": "2024-08-26T14:39:19.825Z"
    },
    "containers": {
        "cna": {
            "title": "Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-346",
                            "lang": "en",
                            "description": "CWE-346: Origin Validation Error",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-942",
                            "lang": "en",
                            "description": "CWE-942: Permissive Cross-domain Policy with Untrusted Domains",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 9.4,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg"
                },
                {
                    "name": "https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23"
                },
                {
                    "name": "https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials"
                },
                {
                    "name": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials"
                },
                {
                    "name": "https://fetch.spec.whatwg.org/#cors-protocol-and-credentials",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://fetch.spec.whatwg.org/#cors-protocol-and-credentials"
                },
                {
                    "name": "https://github.com/gofiber/fiber/releases/tag/v2.52.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/gofiber/fiber/releases/tag/v2.52.1"
                },
                {
                    "name": "https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true"
                },
                {
                    "name": "http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html"
                }
            ],
            "affected": [
                {
                    "vendor": "gofiber",
                    "product": "fiber",
                    "versions": [
                        {
                            "version": "< 2.52.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-02-21T21:01:44.672Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Fiber is a web framework written in go. Prior to version 2.52.1, the CORS middleware allows for insecure configurations that could potentially expose the application to multiple CORS-related vulnerabilities. Specifically, it allows setting the Access-Control-Allow-Origin header to a wildcard (`*`) while also having the Access-Control-Allow-Credentials set to true, which goes against recommended security best practices. The impact of this misconfiguration is high as it can lead to unauthorized access to sensitive user data and expose the system to various types of attacks listed in the PortSwigger article linked in the references. Version 2.52.1 contains a patch for this issue. As a workaround, users may manually validate the CORS configurations in their implementation to ensure that they do not allow a wildcard origin when credentials are enabled. The browser fetch api, as well as browsers and utilities that enforce CORS policies, are not affected by this."
                }
            ],
            "source": {
                "advisory": "GHSA-fmg4-x8pw-hjhg",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T23:36:21.623Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg"
                    },
                    {
                        "name": "https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23"
                    },
                    {
                        "name": "https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials"
                    },
                    {
                        "name": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials"
                    },
                    {
                        "name": "https://fetch.spec.whatwg.org/#cors-protocol-and-credentials",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://fetch.spec.whatwg.org/#cors-protocol-and-credentials"
                    },
                    {
                        "name": "https://github.com/gofiber/fiber/releases/tag/v2.52.1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/gofiber/fiber/releases/tag/v2.52.1"
                    },
                    {
                        "name": "https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true"
                    },
                    {
                        "name": "http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html"
                    }
                ]
            },
            {
                "affected": [
                    {
                        "vendor": "gofiber",
                        "product": "fiber",
                        "cpes": [
                            "cpe:2.3:a:gofiber:fiber:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "2.52.1",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-02-22T16:40:32.534976Z",
                                "id": "CVE-2024-25124",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-08-26T14:39:19.825Z"
                }
            }
        ]
    }
}