gofiber up to 2.52.0 Setting cross-domain policy

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.0$0-$5k0.00

Summaryinfo

A vulnerability has been found in gofiber fiber up to 2.52.0 and classified as critical. This issue affects some unknown processing of the component Setting Handler. This manipulation causes cross-domain policy. This vulnerability is tracked as CVE-2024-25124. The attack is possible to be carried out remotely. Moreover, an exploit is present. The affected component should be upgraded.

Detailsinfo

A vulnerability classified as critical was found in gofiber fiber up to 2.52.0. Affected by this vulnerability is an unknown part of the component Setting Handler. The manipulation with an unknown input leads to a cross-domain policy vulnerability. The CWE definition for the vulnerability is CWE-942. The product uses a cross-domain policy file that includes domains that should not be trusted. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was disclosed 02/21/2024 as GHSA-fmg4-x8pw-hjhg. It is possible to read the advisory at github.com. This vulnerability is known as CVE-2024-25124 since 02/05/2024. Technical details are unknown but a public exploit is available.

It is possible to download the exploit at blog.portswigger.net. It is declared as proof-of-concept.

Upgrading to version 2.52.1 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch f0cd3b44b086544a37886232d0530601f2406c23 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.3
VulDB Meta Temp Score: 8.0

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CNA Base Score: 9.4
CNA Vector (GitHub, Inc.): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Cross-domain policy
CWE: CWE-942 / CWE-346 / CWE-345
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: fiber 2.52.1
Patch: f0cd3b44b086544a37886232d0530601f2406c23

Timelineinfo

02/05/2024 🔍
02/21/2024 +16 days 🔍
02/21/2024 +0 days 🔍
02/21/2024 +0 days 🔍

Sourcesinfo

Product: github.com

Advisory: GHSA-fmg4-x8pw-hjhg
Status: Confirmed

CVE: CVE-2024-25124 (🔍)
GCVE (CVE): GCVE-0-2024-25124
GCVE (VulDB): GCVE-100-254467
scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 02/21/2024 22:21
Changes: 02/21/2024 22:21 (56)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!